:root {
  --ink: #111216;
  --paper: #ffffff;
  --paper-deep: #f4f5f6;
  --panel: #ffffff;
  --muted: #5c6068;
  --line: #dfe1e5;
  --teal: #1557d0;
  --teal-soft: #e8efff;
  --coral: #e54833;
  --coral-soft: #fff0ed;
  --shadow: 0 8px 24px rgba(17, 18, 22, 0.06);
  font-family: Pretendard, "Noto Sans KR", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 11px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border: 2px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 950; letter-spacing: 0; }
.brand strong { display: block; font-size: 1.06rem; letter-spacing: 0; }
.brand small { display: block; margin-top: 2px; color: var(--teal); font-size: 0.65rem; font-weight: 800; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; white-space: nowrap; }
.nav a { padding: 9px 11px; border-radius: 7px; color: #354247; font-size: 0.92rem; font-weight: 750; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--teal); background: var(--teal-soft); outline: none; }

.hero {
  position: relative;
  min-height: min(520px, calc(100vh - 67px));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 6vw, 78px);
  background: #111216;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(10, 11, 14, .57); }
.hero-image { position: absolute; inset: 0; background: url("https://images.unsplash.com/photo-1679868053865-c062b1d7f34a?auto=format&fit=crop&w=1800&q=85") center / cover no-repeat; }
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { margin-bottom: 15px; color: var(--teal); font-size: 0.78rem; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
h1 { margin-bottom: 20px; font-size: clamp(2.3rem, 5.4vw, 5.15rem); line-height: 1.08; letter-spacing: 0; }
.hero h1 { color: #fff; max-width: 900px; }
.hero .eyebrow { color: #a9c3ff; }
.hero-copy { max-width: 610px; color: rgba(255,255,255,.84); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 15px; border: 1px solid var(--ink); border-radius: 7px; font-weight: 850; }
.button.primary { border-color: var(--teal); background: var(--teal); color: #fff; }
.button.secondary { border-color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); color: #fff; }
.notice { margin-top: 18px; color: rgba(255,255,255,.72); font-size: .81rem; line-height: 1.65; }
.photo-credit { margin: 10px 0 0; color: rgba(255,255,255,.58); font-size: .72rem; }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.topic-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--ink); color: #fff; }
.topic-strip a { min-height: 58px; display: grid; place-items: center; padding: 12px; border-right: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.82); font-size: .88rem; font-weight: 800; text-align: center; }
.topic-strip a:hover { color: #fff; background: #263239; }

.section { max-width: 1190px; margin: 0 auto; padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 44px) 0; }
.section-header { max-width: 760px; margin-bottom: 28px; }
h2 { margin-bottom: 13px; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.18; letter-spacing: 0; }
h3 { margin-bottom: 9px; font-size: 1.16rem; line-height: 1.4; }
.section-header p:not(.eyebrow), .card p, .article p, .term-card p, .faq-list p, .footer p, .callout p { color: var(--muted); font-size: 1rem; line-height: 1.78; }

.page-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.page-link { min-height: 165px; display: block; padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 4px; background: var(--panel); box-shadow: none; }
.page-link:nth-child(2) { border-top-color: var(--coral); }
.page-link:nth-child(3) { border-top-color: #737d5c; }
.page-link:nth-child(4) { border-top-color: #46566b; }
.page-link span { display: block; margin-bottom: 14px; color: var(--teal); font-size: .74rem; font-weight: 900; }
.page-link p { margin-bottom: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.editor-note { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; margin-top: clamp(56px, 8vw, 88px); padding: clamp(42px, 7vw, 72px) clamp(18px, 6vw, 72px); background: #f3f6ff; border-top: 1px solid #d7e2ff; border-bottom: 1px solid #d7e2ff; }
.editor-note h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
.editor-note p { margin: 0 0 14px; color: #36504f; line-height: 1.8; }
.editor-note p:last-child { margin-bottom: 0; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 28px; align-items: start; }
.article { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 4px; background: var(--panel); box-shadow: none; }
.article h2 { margin-top: 42px; font-size: clamp(1.38rem, 2.35vw, 2rem); }
.article h2:first-child { margin-top: 0; }
.article p { margin-bottom: 18px; }
.article a { color: var(--teal); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article ul { display: grid; gap: 10px; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.side-nav { position: sticky; top: 91px; display: grid; gap: 8px; padding: 17px; border-left: 2px solid var(--teal); background: rgba(255,255,255,.42); }
.side-nav strong { margin-bottom: 4px; color: var(--teal); font-size: .72rem; letter-spacing: 0; }
.side-nav a { color: #4d5a5d; font-size: .9rem; font-weight: 760; }
.side-nav a:hover { color: var(--teal); }

.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.term-card { padding: 24px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.term-card h3 { font-size: 1.32rem; }
.term-card p { margin-bottom: 0; }
.term-card:nth-child(3n+2) { background: #fbf1ed; }
.term-card:nth-child(3n) { background: #edf5f1; }

.genre-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--ink); box-shadow: none; }
.genre-card { position: relative; min-height: 305px; display: flex; flex-direction: column; justify-content: end; gap: 7px; padding: 23px; overflow: hidden; border-right: 1px solid rgba(17,18,22,.16); color: var(--ink); background: #eef2f7; transition: background .2s ease; }
.genre-card:last-child { border-right: 0; }
.genre-card::before { content: "0"; position: absolute; top: 18px; right: 17px; color: rgba(17,18,22,.1); font-family: Georgia, serif; font-size: 6.5rem; font-weight: 700; line-height: 1; }
.genre-card:hover, .genre-card:focus-visible { background: #dce8ff; outline: 3px solid var(--teal); outline-offset: -3px; }
.genre-card--martial { background: #e9efff; }.genre-card--growth { background: #f1f3f6; }.genre-card--romance { background: #fff0ed; }.genre-card--mystery { background: #f0f0ed; }
.genre-card__label { align-self: flex-start; padding: 6px 8px; border: 1px solid rgba(17,18,22,.23); background: rgba(255,255,255,.65); font-size: .72rem; font-weight: 900; }
.genre-card strong { max-width: 14ch; font-size: 1.32rem; line-height: 1.25; }
.genre-card small { color: var(--muted); font-size: .83rem; font-weight: 750; line-height: 1.4; }
.genre-caption { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--coral); }
.genre-caption p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }

.discovery-flow { padding-bottom: clamp(10px, 2vw, 22px); }
.step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.step-grid li { min-height: 232px; padding: 22px; border-top: 4px solid var(--coral); background: #f9ece7; }
.step-grid li:nth-child(2) { border-top-color: var(--teal); background: #e9f2ef; }
.step-grid li:nth-child(3) { border-top-color: #8a7b55; background: #f3f0e5; }
.step-grid li:nth-child(4) { border-top-color: #46566b; background: #e9eef1; }
.step-grid span { display: block; margin-bottom: 27px; color: var(--coral); font-size: .8rem; font-weight: 950; }
.step-grid li:nth-child(2) span { color: var(--teal); }.step-grid li:nth-child(3) span { color: #756743; }.step-grid li:nth-child(4) span { color: #46566b; }
.step-grid h3 { font-size: 1.1rem; }.step-grid p { min-height: 53px; margin-bottom: 15px; color: var(--muted); font-size: .91rem; line-height: 1.6; }.step-grid a { color: var(--ink); font-size: .85rem; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }

.callout { padding: 25px; border-left: 5px solid var(--coral); border-radius: 0 7px 7px 0; background: var(--coral-soft); }
.callout p { margin-bottom: 0; color: #70453e; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { padding: 21px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.card span { display: block; margin-bottom: 12px; color: var(--coral); font-size: .78rem; font-weight: 900; }
.card p { margin-bottom: 0; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.faq-list summary { padding: 17px 19px; cursor: pointer; color: #263337; font-weight: 850; }
.faq-list p { margin: 0; padding: 0 19px 18px; }
.faq-list details[open] { border-color: #9fcac3; }
.faq-list details[open] summary { color: var(--teal); }

.page-hero { padding: clamp(64px, 10vw, 110px) clamp(18px, 6vw, 78px) clamp(48px, 7vw, 76px); background: var(--ink); color: #fff; }
.page-hero .breadcrumb { margin-bottom: 18px; color: rgba(255,255,255,.62); font-size: .86rem; font-weight: 750; }
.page-hero .breadcrumb a { color: #fff; }
.page-hero h1 { max-width: 900px; font-size: clamp(2rem, 4.7vw, 4.3rem); }
.page-hero .page-summary { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.76); font-size: 1.06rem; line-height: 1.8; }

.footer { max-width: 1190px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 88px auto 0; padding: 28px clamp(18px, 5vw, 44px); border-top: 1px solid var(--line); }
.footer .brand-mark { width: 40px; height: 40px; font-size: .8rem; }
.footer p { max-width: 360px; margin: 0; font-size: .86rem; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; color: #526064; font-size: .86rem; font-weight: 760; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .nav { width: 100%; padding-bottom: 1px; }
  .hero { min-height: 610px; align-items: end; }
  .hero::after { background: rgba(10, 11, 14, .64); }
  .hero-image { background-position: 62% center; }
  .topic-strip, .page-links, .mini-grid, .genre-grid, .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genre-card { min-height: 280px; }
  .editor-note, .article-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-nav strong { grid-column: 1 / -1; }
  .footer { align-items: flex-start; flex-direction: column; margin-top: 66px; }
  .footer nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 1rem; }
  .brand small { display: none; }
  .nav a { padding: 8px 9px; font-size: .84rem; }
  .hero { min-height: 555px; }
  h1 { font-size: 2.35rem; }
  .topic-strip, .page-links, .terms, .mini-grid, .genre-grid, .step-grid { grid-template-columns: 1fr; }
  .topic-strip a { min-height: 45px; }
  .genre-card { min-height: 225px; border-right: 0; border-bottom: 1px solid rgba(17,18,22,.16); }
  .genre-card:last-child { border-bottom: 0; }
  .side-nav { grid-template-columns: 1fr; }
  .editor-note { gap: 19px; }
}
