:root {
  --bg: #eef0f3;
  --surface: #e2e5ea;
  --ink: #0b0c0e;
  --muted: #4f5662;
  --accent: #1f2de6;
  --accent-ink: #ffffff;
  --m: clamp(16px, 2.8vw, 40px);
  --sans: 'Noto Sans KR', system-ui, sans-serif;
  --serif: 'Noto Serif KR', Georgia, serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--serif); word-break: keep-all; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 800; letter-spacing: -0.035em; }
p { margin: 0; max-width: 62ch; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.soft { color: var(--muted); }

/* 첫 화면: 오늘의 답이 기념비 */
.hero { position: relative; min-height: 100svh; background: var(--accent); color: var(--accent-ink); padding: 0 var(--m); display: grid; grid-template-rows: auto 1fr auto; }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; padding-top: 24px; font: 500 14px/1.4 var(--sans); }
.hero-top a { text-decoration: none; }
.hero-top a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mark { font-weight: 800; }
.hero-links a + a { margin-left: 22px; }
.answer { align-self: start; margin-top: 12vh; font-size: clamp(64px, min(17vw, calc(92vw / var(--ch, 5))), 290px); line-height: 0.98; letter-spacing: -0.045em; }
.answer .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.answer .line > span { display: inline-block; animation: lineUp 900ms var(--ease) both; }
.answer .line:nth-child(2) > span { animation-delay: 110ms; }
.l1 { color: #b4baff; }
.l2 { color: var(--accent-ink); }
.hero-foot { justify-self: end; max-width: 34ch; padding-bottom: 40px; text-align: right; display: grid; gap: 20px; justify-items: end; animation: fadeUp 700ms 500ms var(--ease) both; }
.hero-foot p { font: 400 17px/1.55 var(--serif); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--ink); color: #fff; font: 500 16px/1 var(--sans); text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.btn:hover { background: #262a31; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

main > section { padding: clamp(96px, 14vw, 200px) var(--m); }

/* 숫자 */
.stats { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.stats-rows { grid-column: 2 / 8; }
.stats h2 { font-size: 32px; margin: 0 0 56px 156px; }
.stats dl { margin: 0; display: grid; gap: 28px; }
.stats .row { display: grid; grid-template-columns: 132px 1fr; column-gap: 24px; align-items: baseline; }
.stats dt { text-align: right; font: 800 32px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stats dd { margin: 0; max-width: 40ch; font-size: 17px; }
.stats-img { grid-column: 9 / 12; margin-top: 160px; aspect-ratio: 1; object-fit: cover; width: 100%; }

/* 기록 */
.record { background: var(--bg); }
.record-col { max-width: 640px; margin: 0 auto; container-type: inline-size; }
.giant { font-size: 47cqw; line-height: 1; letter-spacing: -0.06em; margin-left: -0.04em; }
.record-lead { margin: 28px 0 24px; }
#bars { display: grid; gap: 6px; }
.bar { background: var(--surface); transition: background .2s; }
.bar:hover { background: #d8dce2; }
.bar summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 18px; font: 500 17px/1.3 var(--sans); }
.bar summary::-webkit-details-marker { display: none; }
.bar summary .n { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar summary::after { content: '+'; font: 500 24px/1 var(--sans); width: 18px; text-align: center; transition: transform .25s var(--ease); }
.bar[open] summary::after { transform: rotate(45deg); }
.bar ol { list-style: none; margin: 0; padding: 4px 20px 24px; display: grid; gap: 22px; }
.bar li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; font-size: 17px; line-height: 1.55; }
.bar time { font: 800 17px/1.55 var(--sans); font-variant-numeric: tabular-nums; }
.bar .where { font: 500 17px/1.55 var(--sans); }
.bar .src { color: var(--muted); font-size: 14px; margin-top: 4px; }
.bar li.today time { color: var(--accent); }

/* 사진 */
.photos { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 72px; padding-top: 0 !important; }
.photos figure { margin: 0; overflow: hidden; }
.photos figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.ph-wide { grid-column: 1 / -1; }
.ph-wide img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; transition: transform 8s linear; }
.ph-wide:hover img { transform: scale(1.04); }
.ph-a { grid-column: 1 / 8; }
.ph-a img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-b { grid-column: 9 / 13; margin-top: 140px; }
.ph-b img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* 기준 */
.about { background: var(--surface); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.facts { grid-column: 1 / 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; align-content: start; font-size: 14px; }
.facts b { display: block; font: 500 14px/1.4 var(--sans); }
.about-text { grid-column: 3 / 13; display: grid; gap: 1.2em; }
.statement { font-size: clamp(22px, 2.2vw, 32px); max-width: 30em; line-height: 1.3; }
.dropcap { float: left; width: 3.9em; height: 3.9em; object-fit: cover; margin: 0.2em 0.5em 0 0; }
.statement b { font-weight: 600; }

/* 질문 */
.faq { display: grid; gap: clamp(56px, 6vw, 84px); }
.qa { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: baseline; }
.q { grid-column: 1 / 7; font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; }
.qa > p, .qa > div { grid-column: 8 / 13; max-width: 42ch; font-size: 17px; }

/* 끝: 반전 */
.foot { min-height: 100svh; background: var(--ink); color: var(--bg); padding: 40px var(--m) 24px; display: grid; grid-template-rows: auto 1fr auto; }
.foot-cols { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; font-size: 14px; line-height: 1.6; }
.foot-cols > div { grid-column: span 3; display: grid; gap: 4px; align-content: start; }
.foot-cols > .credits-col { grid-column: 8 / 13; }
.foot-cols p { color: #a8afba; }
.foot-cols .f1 { color: var(--bg); font-family: var(--sans); font-weight: 500; }
.foot-cols a { text-decoration: none; transition: color .2s; }
.foot-cols a:hover { color: #fff; text-decoration: underline; }
.credits { font-size: 14px; }
.credits a { text-decoration: underline !important; }
.foot-mark { grid-row: 3; }
.wordmark { font: 800 calc((100vw - 2 * var(--m)) / 6.2)/0.9 var(--sans); letter-spacing: -0.05em; white-space: nowrap; color: var(--bg); }
.legal { margin-top: 20px; font-size: 14px; color: #a8afba; }

/* 등장 */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero-links a:not(:first-child) { display: none; }
  .answer { margin-top: 20vh; font-size: min(21vw, calc(92vw / var(--ch, 5))); }
  .hero-foot { justify-self: start; text-align: left; justify-items: start; padding-bottom: 24px; max-width: none; }
  .hero-foot p { font-size: 16px; }
  .stats, .about, .photos { display: block; }
  .stats h2 { font-size: 24px; margin: 0 0 40px 112px; }
  .stats .row { grid-template-columns: 88px 1fr; }
  .stats dt { font-size: 24px; }
  .stats dd { font-size: 16px; }
  .stats-img { width: 56%; margin: 56px 0 0 auto; }
  .bar li { grid-template-columns: 1fr; gap: 2px; }
  .photos figure + figure { margin-top: 48px; }
  .ph-b { width: 70%; margin-left: auto; }
  .facts { display: flex; gap: 20px; margin-top: 40px; font-size: 14px; }
  .about { display: flex; flex-direction: column-reverse; }
  .statement { font-size: 20px; line-height: 1.4; }
  .dropcap { width: 5em; height: 5em; }
  .qa { display: block; }
  .q { font-size: 24px; }
  .qa > p { margin-top: 12px; }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot-cols > div, .foot-cols > .credits-col { grid-column: auto; }
  .foot-cols > .credits-col { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
