:root {
  --paper: #f4f1e9;
  --paper-deep: #e9e3d7;
  --ink: #173c35;
  --muted: #68736e;
  --line: #d4cec1;
  --amber: #e9a938;
  --white: #fffdf8;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); }
a { color: inherit; }

.site-header,
.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 clamp(12px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { text-decoration: underline; text-underline-offset: 3px; }
.brand:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.index-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.index-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.intro {
  display: grid;
  min-height: 56vh;
  align-content: center;
  padding: 80px 0 70px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 34px;
  height: 2px;
  margin: 0 11px 3px 0;
  background: var(--amber);
  content: "";
}

h1 { margin: 0; font-size: clamp(54px, 8vw, 106px); line-height: .86; letter-spacing: -.065em; }
h1 em { color: var(--amber); font: 500 italic 1.05em/1 Georgia, "Times New Roman", serif; }
.lede { max-width: 620px; margin: 34px 0 0 12%; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.collection { padding: 72px 0 100px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .11em; }
.section-heading span { color: var(--muted); font-size: 12px; }
.artifact-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.artifact-list li { border-bottom: 1px solid var(--line); }

.artifact-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 150px;
  padding: 30px 22px;
  text-decoration: none;
  transition: background .18s ease, padding .18s ease;
}

.artifact-card:hover,
.artifact-card:focus-visible { padding-right: 15px; background: var(--white); outline: none; }
.card-number { align-self: start; color: var(--amber); font: 500 italic 22px/1 Georgia, "Times New Roman", serif; }
.card-copy { display: grid; gap: 9px; }
.card-copy strong { font-size: clamp(25px, 3.2vw, 42px); letter-spacing: -.045em; }
.card-copy > span { max-width: 650px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.open-cue { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.open-cue b { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 18px; transition: transform .18s ease, background .18s ease; }
.artifact-card:hover .open-cue b { transform: rotate(45deg); background: var(--amber); border-color: var(--amber); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(20px, 4vw, 64px); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.viewer-page { height: 100vh; overflow: hidden; }
.viewer-header { position: relative; z-index: 2; height: 40px; min-height: 40px; padding-inline: 12px; }
.artifact-nav { display: flex; align-items: center; }
.artifact-nav a { padding: 5px 0; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.artifact-nav a:hover, .artifact-nav a:focus-visible { color: var(--ink); }
.artifact-nav a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.artifact-stage { height: calc(100vh - 40px); background: white; }
.artifact-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: white; }

.error-main { display: grid; min-height: calc(100vh - 40px); place-content: center; justify-items: start; padding: 40px; }
.error-code { margin: 0 0 12px; color: var(--amber); font: 500 italic 24px Georgia, "Times New Roman", serif; }
.error-main h1 { font-size: clamp(44px, 7vw, 80px); }
.error-main > p:not(.error-code) { max-width: 520px; margin: 24px 0; color: var(--muted); line-height: 1.6; }
.home-link { padding: 12px 0; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--amber); }
.error-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.error-links a { color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .index-header p { display: none; }
  .intro { min-height: 520px; padding: 60px 0; }
  .lede { margin-left: 0; }
  .artifact-card { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; min-height: 170px; padding-inline: 4px; }
  .open-cue { grid-column: 2; justify-self: start; }
  .open-cue b { width: 34px; height: 34px; }
  .section-heading span { display: none; }
  .site-footer { flex-direction: column; }
}

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