:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #172133;
  --muted: #4f5969;
  --rule: #cecac1;
  --blue: #173a79;
  --navy: #17263f;
  --cream: #f4e5d5;
  --serif: 'Noto Serif KR', AppleMyungjo, Batang, Georgia, serif;
  --sans: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1rem; line-height: 1.72; }
a { color: var(--blue); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #235bc3; outline-offset: 5px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, dl, dd { margin: 0; }
h1, h2 { font-family: var(--serif); line-height: 1.27; letter-spacing: -.035em; word-break: keep-all; }
p { overflow-wrap: anywhere; }
button, input { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(72rem, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; top: .75rem; left: .75rem; padding: .6rem .85rem; color: white; background: var(--navy); transform: translateY(-200%); z-index: 2; }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--rule); background: #fffdf9; }
.header-inner { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.045em; white-space: nowrap; }
.brand::before { width: 1.6rem; height: 1.6rem; flex: none; background: url('/assets/mark.png') center / contain no-repeat; content: ''; }
.header-inner nav { display: flex; gap: clamp(.75rem, 3vw, 2rem); }
.header-inner nav a { color: var(--muted); text-decoration: none; white-space: nowrap; padding: .55rem .15rem; }
.header-inner nav a[aria-current] { border-bottom: 2px solid #a54e32; color: var(--ink); font-weight: 700; }
.home { padding-top: clamp(2.15rem, 4vw, 3.45rem); }
.detail-head > p:last-child { color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.15rem); max-width: 36rem; margin-top: .85rem; word-break: keep-all; }
.eyebrow { font-weight: 750; font-size: .88rem; letter-spacing: .02em; }

.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(1.65rem, 5vw, 4.4rem); padding-bottom: clamp(1.75rem, 4vw, 2.85rem); border-bottom: 1px solid var(--rule); }
.feature-copy { grid-column: 2; grid-row: 1; }
.feature .eyebrow, .story .eyebrow { color: #813e2d; }
.feature h1 { margin-top: .68rem; font-size: clamp(2rem, 4vw, 3.5rem); }
.feature-copy > p:last-of-type { color: var(--muted); margin: 1.05rem 0 1.3rem; max-width: 25rem; word-break: keep-all; }
.button { display: inline-block; border: 1px solid var(--navy); padding: .57rem 1.05rem; color: white; background: var(--navy); text-decoration: none; font-weight: 750; border-radius: .2rem; }
.button:hover { background: #27476e; }
.feature figure { grid-column: 1; grid-row: 1; min-width: 0; }
.feature img { width: 100%; object-fit: cover; object-position: center 42%; aspect-ratio: 1.48; background: #303b64; }
figcaption { padding: .6rem .85rem; font-size: .88rem; }
.feature figcaption, .score-figure figcaption { padding-inline: 0; color: var(--muted); }

.more-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 1.7rem; }
.story { min-width: 0; display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 1.4fr); align-items: center; gap: 1.05rem; }
.story-art { display: block; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.date-art { display: flex; flex-direction: column; justify-content: center; align-items: center; background: #efe2cf; color: #63372b; font: 700 clamp(1.65rem, 3.2vw, 2.72rem)/1.14 Georgia, serif; text-decoration: none; font-variant-numeric: lining-nums; }
.date-art span + span { margin-top: .2rem; padding-top: .27rem; border-top: 1px solid #af8d76; }
.score-art { background: #e7dfd0; }
.score-art img { width: 100%; height: 100%; object-fit: cover; object-position: 53% center; }
.story-copy .eyebrow { margin-bottom: .35rem; }
.story h2 { font-size: clamp(1.45rem, 2.55vw, 2rem); }
.story h2 a { color: var(--ink); }
.story-copy > p:last-child { margin-top: .55rem; color: var(--muted); word-break: keep-all; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding: 1.4rem 0 2.2rem; margin-top: 3.4rem; font-size: .9rem; }

.detail { padding-top: clamp(2.5rem, 6vw, 4.65rem); }
.detail-head { padding-bottom: clamp(1.65rem, 4vw, 2.65rem); }
.detail-head .eyebrow { color: #773820; margin-bottom: .85rem; }
.detail-head h1 { font-size: clamp(2.2rem, 5.35vw, 4.3rem); }
.exhibit { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(18.5rem, 1fr); gap: 1.35rem; align-items: start; }
.exhibit-photo { background: #e5eaf4; }
.exhibit-photo img { width: 100%; }
.quiz { padding: clamp(1.2rem, 3vw, 2rem); background: #ecf0f6; border-top: 3px solid #30486d; }
.quiz fieldset { margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.quiz legend { font-weight: 750; line-height: 1.35; font-size: clamp(1.08rem, 2vw, 1.35rem); margin-bottom: .75rem; }
.quiz label { display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; margin: .45rem 0; border: 1px solid #9aa9bf; background: white; cursor: pointer; line-height: 1.5; }
.quiz label:has(:checked) { border-color: #234878; background: #dfebfb; }
.quiz input { accent-color: #234878; flex: 0 0 auto; margin: 0; }
.quiz-result:not(:empty) { margin-top: .95rem; border-left: 3px solid #45678a; padding: .15rem .75rem; }
.quiz-result.correct { border-color: #2d664b; }

.timeline { max-width: 53rem; margin: 3.1rem auto 0; }
.timeline h2, .reading section h2 { font-size: clamp(1.55rem, 2.8vw, 2.12rem); }
.timeline > p { color: var(--muted); margin: .6rem 0 1rem; }
details { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; padding: .9rem 0; font-weight: 750; }
.timeline details:first-of-type { border-top: 1px solid var(--rule); }
.timeline summary span { display: inline-block; width: min(12rem, 100%); font-weight: 500; color: var(--muted); padding-inline-start: .35rem; }
.timeline details > div { padding: 0 .6rem 1rem 1.38rem; }
.timeline details a { display: inline-block; margin: .38rem 1rem .1rem 0; }

.reading { max-width: 45rem; margin-inline: auto; }
.reading section + section { margin-top: 2.45rem; }
.reading section p { margin-top: .66rem; }
.reading blockquote { margin: 1rem 0; padding: .7rem 1.2rem; color: #442c24; border-inline-start: 3px solid #98492d; background: #f1e7d9; }
.reading blockquote p { margin: 0; font-family: var(--serif); font-size: 1.15rem; }
.reading blockquote cite { display: block; font-size: .88rem; font-style: normal; margin-top: .25rem; }
.calendar-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid #c5aa94; background: var(--cream); margin-bottom: 2.3rem; }
.calendar-pair > div { padding: clamp(.85rem, 3vw, 1.7rem); display: grid; gap: .45rem; }
.calendar-pair > div + div { border-left: 1px solid #c5aa94; }
.calendar-pair time, .calendar-date { font: 700 clamp(2.12rem, 6.15vw, 4rem)/1.05 Georgia, serif; color: #783b2b; }
.source-line { margin-top: .95rem !important; font-size: .9rem; color: var(--muted); }
.source-line a { display: inline-block; margin-right: .85rem; }

.score-figure { margin-bottom: .9rem; }
.score-figure img { width: 100%; height: auto; border: 1px solid var(--rule); }
.audio-panel { padding: 1.3rem 0; border-top: 1px solid var(--rule); }
.reading .audio-panel.cafe { margin-top: 0; }
.audio-panel audio, .transcript audio { display: block; width: 100%; margin-top: .9rem; }
.audio-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; margin: .5rem 0 .85rem; font-size: .88rem; }
.audio-meta p { margin: 0 !important; }
.pitch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #abbbaf; background: #e6eee7; margin-top: 1.2rem; }
.pitch-grid > div { padding: .7rem .2rem; text-align: center; }
.pitch-grid > div + div { border-left: 1px solid #abbbaf; }
.pitch-grid dt { font: 700 clamp(1.7rem, 6vw, 2.85rem)/1.2 Georgia, serif; }
.pitch-grid dd { color: #264439; word-break: keep-all; }
.transcript { margin-top: .4rem; border-top: 1px solid var(--rule); }
.transcript p { margin: 0 0 .8rem; }
.transcript .cue { color: var(--muted); font-weight: 750; }

@media (max-width: 47.5rem) {
  .feature, .exhibit { grid-template-columns: 1fr; }
  .feature-copy, .feature figure { grid-column: auto; grid-row: auto; }
  .feature img { max-height: 23rem; }
  .more-stories { grid-template-columns: 1fr; gap: 1.2rem; }
  .story { grid-template-columns: minmax(6.7rem, .62fr) minmax(0, 1.45fr); }
}
@media (max-width: 34rem) {
  .wrap { width: calc(100% - 1.6rem); }
  .header-inner { min-height: 3.75rem; }
  .header-inner nav a { font-size: .9rem; }
  .timeline summary span { width: auto; margin-right: .55rem; }
}
