/* USEOYO magazine — quiet dark editorial (navy/charcoal, not pure black) */
:root {
  --mag-bg: #141821;
  --mag-bg-elev: #1a2030;
  --mag-surface: #202838;
  --mag-line: rgba(255, 255, 255, 0.08);
  --mag-text: rgba(255, 255, 255, 0.88);
  --mag-muted: rgba(255, 255, 255, 0.72);
  --mag-faint: rgba(255, 255, 255, 0.52);
  --mag-accent: rgba(255, 255, 255, 0.92);
  --mag-serif: "Noto Serif KR", ui-serif, Georgia, serif;
  --mag-sans: "Pretendard", "SUIT", system-ui, sans-serif;
  --mag-radius: 2px;
  --mag-max: 38rem;
  --mag-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.magazine {
  margin: 0;
  min-height: 100vh;
  background: var(--mag-bg);
  color: var(--mag-text);
  font-family: var(--mag-sans);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

body.magazine .topbar {
  background: rgba(20, 24, 33, 0.82);
  border-bottom-color: var(--mag-line);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

body.magazine .brand {
  color: var(--mag-text);
}

body.magazine .nav a {
  color: var(--mag-muted);
}

body.magazine .nav a:hover {
  color: var(--mag-text);
}

body.magazine .nav a.active {
  color: var(--mag-accent);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

body.magazine .nav-dropdown-trigger {
  color: var(--mag-muted);
}

body.magazine .nav-dropdown-trigger:hover,
body.magazine .nav-dropdown.is-open .nav-dropdown-trigger,
body.magazine .nav-dropdown-trigger.is-active {
  color: var(--mag-text);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

body.magazine .nav-dropdown-chevron {
  border-top-color: rgba(255, 255, 255, 0.35);
}

body.magazine .nav-dropdown-panel {
  background: rgba(26, 32, 48, 0.97);
  border-color: var(--mag-line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

body.magazine .nav-dropdown-panel a {
  color: var(--mag-muted);
}

body.magazine .nav-dropdown-panel a:hover {
  color: var(--mag-text);
  background: rgba(255, 255, 255, 0.05);
}

body.magazine .nav-dropdown-panel a.active {
  color: var(--mag-text);
  background: rgba(255, 255, 255, 0.07);
}

/* ----- Layout ----- */
.mag-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: max(104px, calc(56px + env(safe-area-inset-top))) 22px max(72px, env(safe-area-inset-bottom));
}

.mag-hero {
  margin-bottom: 48px;
}

.mag-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mag-faint);
}

.mag-title {
  margin: 0 0 16px;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--mag-text);
}

.mag-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mag-muted);
}

.mag-lead + .mag-lead-note {
  margin-top: 14px;
}

.mag-lead-note {
  margin: 0;
  max-width: 36rem;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.58);
}

.mag-lead-note strong {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.mag-lead-cross {
  margin: 18px 0 0;
  max-width: 36rem;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mag-muted);
}

.mag-lead-cross a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mag-lead-cross a:hover {
  color: var(--mag-text);
  border-bottom-color: rgba(255, 255, 255, 0.32);
}

/* 허브·글 본문 사이 섹션 제목 (mag-kicker 타이포 재사용, 여백만 정리) */
.mag-section-label {
  margin: 0 0 16px;
}

.hub-grid--section-gap {
  margin-bottom: 56px;
}

.mag-hub-aside {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--mag-line);
}

.mag-crosslist {
  margin: 0;
  padding-left: 1.1em;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
}

.mag-crosslist a {
  color: var(--mag-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mag-crosslist a:hover {
  color: var(--mag-text);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.mag-crosslist-desc {
  color: rgba(255, 255, 255, 0.45);
}

/* 매거진 하단 — 인라인 푸터 제거 */
.mag-footer {
  margin-top: 48px;
  border-top: 1px solid var(--mag-line);
}

.mag-footer-inner {
  box-sizing: border-box;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 22px max(72px, env(safe-area-inset-bottom));
}

.mag-footer__tagline {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.mag-footer__nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.mag-footer__nav a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mag-footer__nav a:hover,
.mag-footer__nav a:focus-visible {
  color: var(--mag-text);
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.article-related {
  margin-top: 2.5rem;
}

.mag-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.38);
}

/* ----- Hub cards ----- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--mag-bg-elev);
  border: 1px solid var(--mag-line);
  border-radius: var(--mag-radius);
  overflow: hidden;
  transition: opacity 0.65s var(--mag-ease), transform 0.85s var(--mag-ease), border-color 0.45s ease;
  opacity: 0.94;
}

.hub-card:hover {
  opacity: 1;
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
}

.hub-card-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--mag-surface);
}

.hub-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.hub-card-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.hub-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--mag-text);
}

.hub-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mag-muted);
  flex: 1;
}

.hub-card-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--mag-faint);
}

/* ----- Article ----- */
.article-layout {
  max-width: var(--mag-max);
  margin: 0 auto;
}

.article-hero-img {
  width: 100%;
  border-radius: var(--mag-radius);
  border: 1px solid var(--mag-line);
  margin: 28px 0 32px;
  display: block;
  background: var(--mag-surface);
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  font-size: 12px;
  color: var(--mag-muted);
}

.article-meta-row time {
  font-variant-numeric: tabular-nums;
}

.article-prose {
  font-family: var(--mag-serif);
  font-size: 17px;
  line-height: 2;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.86);
}

.article-prose > p {
  margin: 0 0 1.35em;
}

.article-prose h2 {
  margin: 2.2em 0 0.85em;
  font-family: var(--mag-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mag-faint);
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.35em;
  padding-left: 1.2em;
}

.article-prose li {
  margin-bottom: 0.55em;
}

.mag-quote {
  margin: 2.5rem 0;
  padding: 1.35rem 0 1.35rem 1.15rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--mag-serif);
  font-size: 18px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.78);
}

.mag-quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--mag-sans);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mag-faint);
}

.article-internal {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mag-line);
}

.article-internal h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mag-faint);
}

.article-internal ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-internal li {
  margin-bottom: 10px;
}

.article-internal a {
  color: var(--mag-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.35s ease, border-color 0.35s ease;
}

.article-internal a:hover {
  color: var(--mag-text);
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mag-line);
}

.article-nav a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--mag-line);
  border-radius: var(--mag-radius);
  text-decoration: none;
  color: var(--mag-muted);
  font-size: 12px;
  line-height: 1.5;
  transition: opacity 0.5s var(--mag-ease), transform 0.75s var(--mag-ease), border-color 0.4s ease;
}

.article-nav a:hover {
  color: var(--mag-text);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.article-nav-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mag-faint);
  margin-bottom: 8px;
}

.article-nav span strong {
  display: block;
  font-weight: 500;
  color: var(--mag-text);
  letter-spacing: -0.02em;
}

.related-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.related-grid a {
  display: block;
  padding: 14px 14px 16px;
  border: 1px solid var(--mag-line);
  border-radius: var(--mag-radius);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.55s ease, transform 0.85s var(--mag-ease);
  opacity: 0.92;
}

.related-grid a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.related-grid .t {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--mag-text);
  margin: 0 0 6px;
}

.related-grid .d {
  font-size: 12px;
  color: var(--mag-muted);
  margin: 0;
  line-height: 1.5;
}

.related-grid .mag-hint {
  grid-column: 1 / -1;
}

/* Breadcrumb */
.mag-breadcrumb {
  margin: 0 0 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.mag-breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mag-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.15);
}

.mag-breadcrumb a {
  color: var(--mag-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.mag-breadcrumb a:hover {
  color: var(--mag-text);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.mag-breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

/* Trust / legal on dark */
body.magazine .legal-main,
body.magazine .trust-main {
  max-width: 40rem;
}

body.magazine .legal-title,
body.magazine .trust-title {
  color: var(--mag-text);
}

body.magazine .legal-lead,
body.magazine .legal-doc p,
body.magazine .trust-main p {
  color: var(--mag-muted);
  line-height: 1.9;
}

body.magazine .legal-doc h2 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mag-faint);
  margin-top: 2rem;
}

body.magazine .trust-main--narrow {
  max-width: 38rem;
}

/* 소개·문의·약관 등 짧은 본문 (article-prose와 구분) */
body.magazine .mag-trust-prose {
  font-family: var(--mag-serif);
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.82);
}

body.magazine .mag-trust-prose.mag-trust-prose--legal {
  font-size: 15px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.78);
}

body.magazine .mag-trust-prose > p {
  margin: 0 0 1.15em;
  color: rgba(255, 255, 255, 0.82);
}

body.magazine .mag-trust-prose.mag-trust-prose--legal > p {
  color: rgba(255, 255, 255, 0.78);
}

body.magazine .mag-trust-prose h2 {
  margin: 2rem 0 0.75em;
  font-family: var(--mag-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mag-faint);
}

body.magazine .mag-trust-prose a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.magazine .mag-trust-prose a:hover {
  color: var(--mag-text);
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.mag-mail-lead {
  margin-top: 2rem;
}

.mag-mail-lead a {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.mag-mail-lead a:hover {
  color: var(--mag-text);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}
.home-mag {
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}

.home-section {
  margin-top: 48px;
  opacity: 0;
  transform: translateY(10px);
  animation: homeFadeUp 1.1s var(--mag-ease) forwards;
}

.home-section:first-child {
  margin-top: 44px;
}

.home-section:nth-child(2) { animation-delay: 0.08s; }
.home-section:nth-child(3) { animation-delay: 0.16s; }
.home-section:nth-child(4) { animation-delay: 0.24s; }
.home-section:nth-child(5) { animation-delay: 0.32s; }
.home-section:nth-child(6) { animation-delay: 0.4s; }
.home-section:nth-child(7) { animation-delay: 0.48s; }
.home-section:nth-child(8) { animation-delay: 0.56s; }
.home-section:nth-child(9) { animation-delay: 0.64s; }
.home-section:nth-child(10) { animation-delay: 0.72s; }

@keyframes homeFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-section-kicker {
  margin: 0 0 10px;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
}

.home-section-title {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #111;
}

.home-quote-line {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(17px, 4vw, 20px);
  line-height: 1.85;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.home-pills a {
  display: inline-block;
  padding: 9px 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: color 0.45s ease, border-color 0.45s ease, opacity 0.45s ease;
}

.home-pills a:hover {
  color: #000;
  border-color: rgba(0, 0, 0, 0.22);
}

.home-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.home-list li {
  margin-bottom: 14px;
}

.home-list a {
  text-decoration: none;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: opacity 0.45s ease;
}

.home-list a:hover {
  opacity: 0.55;
}

.home-list span {
  display: block;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.38);
  margin-top: 4px;
}

.home-routine-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.48);
}

@media (prefers-reduced-motion: reduce) {
  .hub-card,
  .article-nav a,
  .related-grid a {
    transition: none;
  }
  .home-section {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
