:root {
  --ink: #15211f;
  --muted: #61706b;
  --paper: #f4efe3;
  --card: #fbf8f0;
  --line: #c9c4b7;
  --orange: #df6f32;
  --teal: #315f5d;
  --green: #67d19b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 3%, rgba(223, 111, 50, .12), transparent 23rem),
    var(--paper);
  font-family: var(--sans);
}
a { color: inherit; }
button, audio { font: inherit; }
.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { left: 1rem; }

.museum-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.museum-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.museum-header p { color: var(--muted); }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; text-decoration: none; }
.wordmark-mark { width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 50%; position: relative; }
.wordmark-mark::before { content: ""; position: absolute; width: 6px; height: 6px; inset: 7px; background: var(--orange); border-radius: 50%; }

.hero { min-height: 720px; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; padding: 7rem 0; }
.eyebrow, .section-label > p { margin: 0 0 1.2rem; color: var(--orange); font: 700 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font: 400 clamp(4rem, 8vw, 7.4rem)/.86 var(--serif); letter-spacing: -.065em; }
.dek { max-width: 33rem; margin: 2rem 0; color: #43504c; font: 1.15rem/1.7 var(--serif); }
.catalog-card { display: grid; grid-template-columns: 1fr 1fr; margin: 2.2rem 0 0; border-top: 1px solid var(--line); }
.catalog-card div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.catalog-card dt { color: var(--muted); font: .65rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.catalog-card dd { margin: .35rem 0 0; font-size: .84rem; font-weight: 600; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: var(--orange); }

.artifact-frame { margin: 0; transform: rotate(1.2deg); filter: drop-shadow(0 24px 28px rgba(32, 39, 34, .15)); }
.browser-chrome { height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 13px; border-radius: 10px 10px 0 0; color: #61706b; background: #d7d3c9; font: .6rem var(--mono); }
.browser-chrome > span { width: 8px; height: 8px; border-radius: 50%; background: #a8a69f; }
.browser-chrome div { flex: 1; margin-left: 8px; padding: 6px 10px; border-radius: 4px; background: #ebe8e0; }
.old-page { min-height: 405px; padding: clamp(2rem, 5vw, 3.8rem); background: white; font-family: "Lucida Grande", "Trebuchet MS", Arial, sans-serif; }
.old-kicker { color: #888; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.old-page h2 { margin: 0; color: #366; font-size: clamp(1.55rem, 3vw, 2.4rem); }
.old-page h2 small { color: #c00; font-size: .45em; }
.old-rule { width: 90%; height: 2px; margin: .5rem 0 1.5rem; background: #f93; }
.old-status { color: #c00; font-size: 1.35rem; font-weight: 700; }
.meter { width: 90%; height: 17px; margin: 1.2rem 0; border: 1px solid #bbb; background: #eee; }
.meter span { display: block; width: 50%; height: 100%; background: linear-gradient(90deg, #f93, #e66d30); transition: width .4s ease; }
.old-copy { max-width: 34rem; color: #333; font: .85rem/1.55 Georgia, serif; }
.test-button { padding: .65rem .85rem; border: 1px solid #900; color: #900; background: white; cursor: pointer; text-decoration: underline; }
.test-button:hover, .test-button:focus-visible { color: #06c; border-color: #06c; text-decoration: none; }
.demo-note { color: #777; font-size: .72rem; }
.artifact-frame figcaption { padding: 1rem 1.2rem; color: #eee; background: var(--ink); font: .7rem/1.5 var(--mono); }
.artifact-frame figcaption a { color: var(--green); text-underline-offset: 3px; }

.section-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 8vw, 9rem); padding: 7rem 0; border-top: 1px solid var(--line); }
.section-label h2 { max-width: 12ch; margin: 0; font: 400 clamp(2rem, 4vw, 3.5rem)/1 var(--serif); letter-spacing: -.04em; }
.prose { max-width: 680px; }
.prose p { margin: 0 0 1.5rem; color: #4d5b56; font-size: 1rem; line-height: 1.8; }
.prose .lead { color: var(--ink); font: 1.75rem/1.45 var(--serif); }

.sound-gallery { padding: 7rem clamp(1.2rem, 4vw, 4rem); color: #eef2ee; background: var(--ink); }
.sound-gallery .section-label { display: flex; justify-content: space-between; align-items: end; }
.sound-gallery .section-label h2 { font: 400 clamp(2.8rem, 6vw, 5rem)/1 var(--serif); }
.gallery-intro { max-width: 35rem; margin: 1rem 0 4rem; color: #aebbb5; line-height: 1.6; }
.sound-list { border-top: 1px solid #41504b; }
.sound-item { display: grid; grid-template-columns: 45px 1fr minmax(220px, 320px); gap: 1.2rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid #41504b; }
.track-number { color: var(--orange); font: .72rem var(--mono); }
.track-copy h3 { margin: 0 0 .35rem; font: 400 1.35rem var(--serif); }
.track-copy p { margin: 0; color: #9faaa5; font-size: .75rem; }
.sound-item audio { width: 100%; height: 38px; }

.timeline ol { margin: 0; padding: 0; list-style: none; }
.timeline-content { min-width: 0; }
.timeline-intro { margin: 0 0 2.5rem; color: var(--muted); line-height: 1.7; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 2rem; padding: 0 0 2.5rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 121px; top: 4px; bottom: -4px; border-left: 1px solid var(--line); }
.timeline li::after { content: ""; position: absolute; left: 117px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.timeline li:last-child::before { display: none; }
.timeline time { color: var(--muted); font: .72rem var(--mono); text-transform: uppercase; }
.timeline li div { padding-left: 1.4rem; }
.timeline h3 { margin: 0 0 .5rem; font: 400 1.3rem var(--serif); }
.timeline li p { margin: 0; color: var(--muted); line-height: 1.6; }
.timeline blockquote { margin: 0; padding-left: 1rem; border-left: 2px solid var(--orange); }
.timeline blockquote p + p { margin-top: .75rem; }
.timeline blockquote ul { margin: .75rem 0 0; padding-left: 1.2rem; color: var(--muted); line-height: 1.7; }
.timeline cite { font-style: italic; }
.timeline a { color: var(--ink); text-underline-offset: .2em; }

.artifact-gallery { padding: 7rem 0; border-top: 1px solid var(--line); }
.artifact-gallery > .section-label { display: flex; justify-content: space-between; align-items: end; margin-bottom: 2rem; }
.artifact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1px; background: var(--line); }
.artifact-cards a { min-height: 220px; display: flex; flex-direction: column; padding: 1.3rem; text-decoration: none; background: var(--card); transition: background .2s, transform .2s; }
.artifact-cards a:hover { z-index: 1; background: white; transform: translateY(-4px); }
.artifact-cards span { color: var(--muted); font: .65rem var(--mono); text-transform: uppercase; }
.artifact-cards strong { margin: auto 0; font: 400 1.35rem/1.25 var(--serif); }
.artifact-cards em { color: var(--orange); font: normal .7rem var(--mono); }
.artifact-note { color: var(--muted); font-size: .75rem; }

footer { display: flex; justify-content: space-between; padding: 2rem 0 4rem; border-top: 1px solid var(--line); color: var(--muted); font: .7rem var(--mono); }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding: 5rem 0; }
  .artifact-frame { transform: none; }
  .section-grid { grid-template-columns: 1fr; }
  .sound-item { grid-template-columns: 35px 1fr; }
  .sound-item audio { grid-column: 2; }
  .artifact-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .museum-header p { display: none; }
  .hero { min-height: auto; }
  h1 { font-size: 3.4rem; }
  .catalog-card, .artifact-cards { grid-template-columns: 1fr; }
  .old-page { min-height: auto; padding: 1.5rem; }
  .timeline li { grid-template-columns: 76px 1fr; gap: 1rem; }
  .timeline li::before { left: 84px; }
  .timeline li::after { left: 80px; }
  .archive-note { margin-left: 92px; }
  footer { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
