:root {
  color-scheme: light;
  --paper: #eeeadf;
  --bright-paper: #f8f5ec;
  --ink: #272722;
  --muted: #625b4f;
  --rule: #c8bfae;
  --green: #262d29;
  --serif: 'AppleMyungjo', 'Batang', 'Noto Serif KR', Georgia, serif;
  --sans: system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.6 var(--sans);
  word-break: keep-all;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
figure, blockquote { margin: 0; }
a { color: inherit; text-underline-offset: .28em; }
:focus-visible { outline: 2px solid #8c4b24; outline-offset: 5px; }
.wrap { width: min(100% - 6rem, 1280px); margin-inline: auto; }

.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner {
  min-height: 4.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.back, .masthead-link { font-size: .89rem; font-weight: 700; text-decoration: none; }
.back span { margin-inline-end: .5rem; }
.back:hover, .masthead-link:hover { text-decoration: underline; }

.hero {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr);
  background: var(--green);
  color: #faf0d9;
  min-height: min(39rem, 69vw);
}
.hero-copy {
  padding: clamp(2rem, 5.3vw, 5rem);
  align-self: center;
}
.hero-meta {
  margin: 0 0 1.25rem;
  color: #d9c69d;
  font-size: .9rem;
  font-weight: 650;
}
h1 {
  margin: 0;
  color: #fff5de;
  font-family: var(--serif);
  font-size: clamp(3rem, 6.2vw, 6.75rem);
  letter-spacing: -.08em;
  line-height: .99;
  font-weight: 720;
}
.hero-lede {
  margin: 1.65rem 0 0;
  max-width: 23rem;
  color: #ede2ce;
  line-height: 1.8;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.55rem;
  padding: .5rem 0;
  border-bottom: 1px solid #e6c995;
  color: #ffe4b2;
  text-decoration: none;
  font-weight: 750;
}
.hero-link:focus-visible { outline-color: #ffe2a9; }
.hero-link:hover { color: #fff7e5; }
.hero-image { position: relative; overflow: hidden; min-height: 100%; background: #655c45; }
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% center;
}
.hero-image figcaption {
  position: absolute;
  display: flex;
  gap: 1rem;
  inset: auto .9rem .9rem auto;
  align-items: center;
  padding: .52rem .7rem;
  background: #292922ec;
  color: #f8ead0;
  font-size: .82rem;
}
.hero-image figcaption time { color: #e2d0ad; }
.fiction-note { margin: .8rem 0 0; color: var(--muted); font-size: .84rem; }

.chapter { margin-top: clamp(3.5rem, 7vw, 6.75rem); scroll-margin-top: 1.6rem; }
.chapter-heading { border-bottom: 1px solid var(--ink); padding-bottom: .9rem; }
.chapter-heading h2 {
  margin: 0;
  font: 750 clamp(1.8rem, 3.3vw, 3rem)/1.2 var(--serif);
  letter-spacing: -.065em;
}
.chapter-heading p { margin: .4rem 0 0; color: var(--muted); }
.timeline {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style-type: none;
  border-bottom: 1px solid var(--rule);
}
.timeline li { padding: 1.65rem 1.55rem 1.65rem 0; }
.timeline li + li { padding-left: 1.55rem; border-left: 1px solid var(--rule); }
.timeline time { color: #724125; font-family: Georgia, serif; font-variant-numeric: tabular-nums; font-weight: 700; }
.timeline h3 { margin: .45rem 0 .5rem; font-size: 1.19rem; letter-spacing: -.04em; }
.timeline p { margin: 0; color: #514a3d; }

.artifact-list { border-bottom: 1px solid var(--rule); }
.artifact + .artifact { border-top: 1px solid var(--rule); }
.artifact { scroll-margin-top: 1.5rem; }
.artifact summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(5.8rem, .48fr) minmax(0, 2fr) auto 1.55rem;
  align-items: center;
  padding: 1.3rem .2rem;
}
.artifact summary::-webkit-details-marker { display: none; }
.artifact summary:hover { background: #e5dece; }
.artifact-type { color: #714527; font-size: .88rem; font-weight: 750; }
.artifact-name { font-size: clamp(1.12rem, 2.2vw, 1.65rem); font-weight: 760; letter-spacing: -.045em; }
.artifact summary time { color: #5e5546; font-family: Georgia, var(--sans); font-variant-numeric: tabular-nums; font-size: .95rem; }
.details-mark { text-align: center; font: 1.7rem/1 var(--sans); }
.details-mark::before { content: '+'; }
.artifact[open] .details-mark::before { content: '−'; }
.artifact-view {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr);
  gap: clamp(1.25rem, 5vw, 4rem);
  padding: .7rem 0 2.1rem;
  align-items: center;
}
.photo-print {
  background: #fffaf1;
  padding: clamp(.55rem, 1.7vw, 1.15rem);
  border: 1px solid #d1c5ae;
  box-shadow: 0 .4rem .7rem #4d3b2422;
}
.photo-print img { width: 100%; height: auto; }
.photo-print figcaption { margin-top: .62rem; color: var(--muted); font-size: .84rem; }
.artifact-copy h3 { margin: 0 0 .6rem; font: 760 clamp(1.3rem, 2.45vw, 2.1rem)/1.2 var(--serif); letter-spacing: -.065em; }
.artifact-copy p { margin: 0 0 .7rem; color: #514a3d; line-height: 1.8; }
.ticket-display {
  padding: clamp(.8rem, 4vw, 3.7rem);
  display: grid;
  align-items: center;
  background: #ded4bd;
}
.ticket-paper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.25rem;
  background: #f4d999;
  color: #382d1e;
  box-shadow: 0 .45rem .9rem #58451c38;
  border: 1px solid #7e6439;
  font-family: var(--serif);
}
.ticket-main { padding: clamp(.6rem, 2.25vw, 1.45rem); min-width: 0; }
.ticket-top, .ticket-route, .ticket-data { display: flex; align-items: center; justify-content: space-between; gap: .28rem; flex-wrap: wrap; }
.ticket-top { padding-bottom: .48rem; border-bottom: 1px solid #8a6a39; font-size: .82rem; }
.ticket-route { padding: .64rem 0; font-size: clamp(1.2rem, 3.25vw, 2.65rem); font-weight: 790; letter-spacing: -.07em; gap: .45rem; }
.ticket-data { padding-top: .65rem; border-top: 1px solid #8a6a39; font-size: .91rem; }
.ticket-stub { display: grid; place-items: center; writing-mode: vertical-rl; letter-spacing: .2em; border-left: 1px dashed #7b6034; color: #594521; font-size: .83rem; line-height: 1; }

.sound-view { align-items: start; }
.record-console { padding: clamp(1.05rem, 3.25vw, 2rem); background: var(--green); color: #f8edda; }
.record-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.record-title h3 { margin: 0; font: 740 1.35rem/1.2 var(--serif); }
.record-title span, .record-console p { color: #dfccaa; font-size: .85rem; }
.record-console p { margin: .5rem 0 0; }
.record-console audio { width: 100%; display: block; }
.transcript blockquote { color: #514a3d; line-height: 1.8; }

.footer { display: flex; justify-content: flex-end; padding: 1.65rem 0 3rem; }
.footer a { text-decoration: none; font-weight: 700; font-size: .9rem; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .wrap { width: min(100% - 2rem, 1280px); }
  .hero-copy { padding: clamp(1.6rem, 4vw, 3rem); }
}
@media (max-width: 600px) {
  .masthead-inner { min-height: 3.5rem; }
  .hero { margin-top: 1rem; grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 1.5rem 1.3rem 1.6rem; }
  .hero-meta { margin-bottom: .8rem; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.1rem); }
  .hero-lede { margin-top: .95rem; }
  .hero-link { margin-top: .85rem; }
  .hero-image { min-height: 0; aspect-ratio: 1.42; }
  .hero-image figcaption { inset: auto .6rem .6rem auto; }
  .chapter { margin-top: 3.3rem; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li, .timeline li + li { padding: 1.1rem .2rem; border-left: 0; }
  .timeline li + li { border-top: 1px solid var(--rule); }
  .artifact summary { grid-template-columns: 1fr auto 1.4rem; column-gap: .55rem; row-gap: .13rem; }
  .artifact-type { grid-column: 1; }
  .artifact-name { grid-row: 2; grid-column: 1; }
  .artifact summary time { grid-column: 2; grid-row: 1 / 3; }
  .details-mark { grid-column: 3; grid-row: 1 / 3; }
  .artifact-view { grid-template-columns: 1fr; }
}
