/* The Land of Horror: one stylesheet for every page.
   Dark archive, sepia and silver photograph tones, a typewriter display face. */

@font-face {
  font-family: "Special Elite";
  src: url("/fonts/special-elite-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0e0c0a;
  --ink-2: #16130f;
  --ink-3: #201b15;
  --rule: #3b3329;
  --paper: #ece3cf;
  --paper-dim: #bdb19a;
  --sepia: #c9a46a;
  --sepia-bright: #e2c48f;
  --silver: #aeb2b4;
  --stamp: #e2715d;
  --focus: #ffd98a;

  --display: "Special Elite", "Courier Prime", "Courier New", Courier, monospace;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --print: #d9cfba;
  --ink-on-print: #2a2219;

  --wrap: 72rem;
  --gutter: 1rem;
  --radius: 2px;
  color-scheme: dark;
}
@media (min-width: 48em) {
  :root { --gutter: 2rem; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.65;
  font-optical-sizing: auto;
}

/* Fine paper grain over the whole page; static, so nothing moves. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, svg { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

a { color: var(--sepia-bright); text-underline-offset: 0.18em; text-decoration-thickness: 1px; transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 5vw, 5.2rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 46rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-family: var(--display);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  background: linear-gradient(rgba(14, 12, 10, 0.85), rgba(14, 12, 10, 0));
}
.site-header.solid { position: relative; background: var(--ink-2); border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.9rem;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--paper);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
}
.wordmark img { width: 28px; height: 28px; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.site-nav a {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--paper);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sepia-bright); text-decoration: underline; text-underline-offset: 0.35em; }
.site-nav a.btn { color: var(--ink); min-height: 40px; text-decoration: none; }
.site-nav a.btn:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid var(--sepia);
  border-radius: var(--radius);
  color: var(--paper);
  background: rgba(14, 12, 10, 0.55);
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--ink-3); color: var(--paper); border-color: var(--sepia-bright); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn:disabled:hover { background: rgba(14, 12, 10, 0.55); border-color: var(--sepia); }
.btn-primary { background: var(--sepia); color: var(--ink); border-color: var(--sepia); }
.btn-primary:hover { background: var(--sepia-bright); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0.35rem 0.9rem; font-size: 0.95rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-note { display: block; font-size: 0.85rem; color: var(--paper-dim); margin-top: 0.4rem; }

/* ---------- Stamps & labels ---------- */
.stamp {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 2px solid currentColor;
  padding: 0.2rem 0.7rem;
  transform: rotate(-2.5deg);
  margin-bottom: 1.25rem;
}
.label::before {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  margin-right: 0.6rem;
  vertical-align: 0.3em;
  background: currentColor;
  opacity: 0.7;
}
.label {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sepia);
  margin: 0 0 0.75rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 60rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #111;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-photo img,
.hero-tear img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 50%;
}
.hero-tear {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero-tear.bleed img { filter: sepia(0.9) saturate(2.2) hue-rotate(-12deg) brightness(0.92); }
/* Wear: a vignette and foxing spots that deepen as the hero's time runs out. */
.hero-wear {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(120, 80, 30, 0.35) 0 2%, transparent 6%),
    radial-gradient(circle at 12% 70%, rgba(120, 80, 30, 0.3) 0 1.5%, transparent 4.5%),
    radial-gradient(circle at 64% 82%, rgba(120, 80, 30, 0.25) 0 1%, transparent 3.5%),
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(20, 12, 4, 0.85) 100%);
  mix-blend-mode: multiply;
  opacity: 0.35;
}
.hero-tone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #8a5a22;
  mix-blend-mode: color;
  opacity: 0.12;
}
.hero-grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--ink) 0%, rgba(14, 12, 10, 0.88) 30%, rgba(14, 12, 10, 0.25) 62%, rgba(14, 12, 10, 0) 80%);
}
@media (min-width: 60em) {
  .hero::after {
    background:
      linear-gradient(to right, rgba(14, 12, 10, 0.9) 0%, rgba(14, 12, 10, 0.55) 40%, rgba(14, 12, 10, 0) 70%),
      linear-gradient(to top, var(--ink) 0%, rgba(14, 12, 10, 0) 35%);
  }
}
.hero-copy { padding-block: 7rem 3rem; }
.hero h1 { max-width: 12ch; margin-bottom: 0.3em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.hook {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.85rem);
  color: var(--sepia-bright);
  margin-bottom: 0.75em;
  max-width: 28ch;
}
.lede { max-width: 36rem; color: var(--paper); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.75rem 0 1rem; align-items: flex-start; }
.hero-meta {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  margin: 0;
}

/* Motion: only when the visitor has not asked for less.
   The grain shifts 8 times per 3 s (2.7 per second, under the 3-flashes limit);
   its average brightness never changes, so the picture does not flicker. */
@media (prefers-reduced-motion: no-preference) {
  .hero-grain { animation: grain 3s steps(1) infinite; }
  .hero-wear { animation: wear 150s ease-in forwards; }
  .hero-tone { animation: tone 150s ease-in forwards; }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  12% { transform: translate(-7%, 4%); }
  25% { transform: translate(5%, -6%); }
  37% { transform: translate(-3%, 9%); }
  50% { transform: translate(8%, 2%); }
  62% { transform: translate(-9%, -3%); }
  75% { transform: translate(3%, 7%); }
  87% { transform: translate(-5%, -8%); }
}
@keyframes wear { to { opacity: 0.95; } }
@keyframes tone { to { opacity: 0.4; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--rule); }
.section-head { margin-bottom: 2.25rem; max-width: 46rem; }
.section-head p:last-child { margin-bottom: 0; color: var(--paper-dim); }

.intro { display: grid; gap: 2rem; }
.intro .big {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.55;
}
@media (min-width: 60em) {
  .intro { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }
}

/* Places: three photographs pinned in a file. */
.places { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 48em) { .places { grid-template-columns: repeat(3, 1fr); } }
.place figure { margin: 0; }
.print {
  background: #d9cfba;
  padding: 0.55rem 0.55rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  border-radius: 1px;
}
.print img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; filter: contrast(1.02); }
.print figcaption {
  font-family: var(--display);
  color: #2a2219;
  font-size: 0.9rem;
  padding: 0.45rem 0.2rem 0.55rem;
}
.place:nth-child(1) .print { transform: rotate(-1.2deg); }
.place:nth-child(2) .print { transform: rotate(0.8deg); }
.place:nth-child(3) .print { transform: rotate(-0.5deg); }
.place h3 { margin-top: 1.5rem; margin-bottom: 0.4rem; }
.place p { color: var(--paper-dim); margin: 0; }

/* Trailer slot */
.trailer {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.trailer img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: grayscale(0.3); }
.trailer-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 1rem;
  gap: 0.5rem;
  background: radial-gradient(ellipse at center, rgba(14, 12, 10, 0.45), rgba(14, 12, 10, 0.85));
}
.trailer-overlay .stamp { margin: 0; font-size: clamp(0.8rem, 0.7rem + 0.6vw, 1.1rem); }
.trailer-overlay p { margin: 0; max-width: 30ch; font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.15rem); }
.trailer-play {
  appearance: none;
  border: 2px solid var(--paper);
  background: rgba(14, 12, 10, 0.6);
  color: var(--paper);
  border-radius: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.trailer-play:hover { background: var(--sepia); color: var(--ink); border-color: var(--sepia); }
.trailer-play svg { width: 34px; height: 34px; margin-left: 5px; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-note { font-size: 0.9rem; color: var(--paper-dim); margin-top: 0.75rem; }

/* Differentiators: numbered exhibits. */
.exhibits { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: ex; }
@media (min-width: 48em) { .exhibits { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.exhibit {
  position: relative;
  background: var(--ink-3);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--sepia);
  padding: 1.4rem 1.4rem 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.exhibit:hover, .exhibit:focus-within { border-left-color: var(--sepia-bright); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }
.exhibit-tag {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a2f21;
  background: var(--print);
  padding: 0.1rem 0.65rem 0.1rem 1.4rem;
  margin: 0 0 0.9rem;
  transform: rotate(-1.5deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.exhibit-tag::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.21rem;
  border-radius: 50%;
  background: var(--ink-3);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.7);
}
.exhibit:nth-child(even) .exhibit-tag { transform: rotate(1deg); }
.exhibit h3 { margin-bottom: 0.45rem; }
.exhibit > p:not(.exhibit-tag) { color: var(--paper-dim); }
.exhibit > p:last-child { margin-bottom: 0; }
.exhibit-try {
  font-size: 0.92rem;
  border-top: 1px dashed var(--rule);
  padding-top: 0.75rem;
  margin-top: 1rem;
}
.exhibit-try strong { font-family: var(--display); font-weight: 400; color: var(--paper); }

/* Gallery */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 36em) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery a {
  display: block;
  position: relative;
  border: 1px solid var(--rule);
  background: #000;
  overflow: hidden;
}
.gallery img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; transition: transform 0.4s, opacity 0.3s; opacity: 0.92; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.03); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none; }
  .gallery a:hover img, .gallery a:focus-visible img { transform: none; }
}
.gallery .cap {
  display: block;
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--paper);
  padding: 0.5rem 0.7rem;
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
}
.gallery a:focus-visible { outline-offset: 2px; }
.gallery .cap { transition: color 0.2s; }
.gallery a:hover .cap, .gallery a:focus-visible .cap { color: var(--sepia-bright); }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: rgba(8, 7, 6, 0.96);
  color: var(--paper);
}
.lightbox::backdrop { background: rgba(8, 7, 6, 0.9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem var(--gutter);
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--paper-dim);
}
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption {
  font-family: var(--display);
  text-align: center;
  padding: 0.75rem var(--gutter);
}
.lightbox-nav { display: flex; justify-content: center; gap: 1rem; padding: 0 var(--gutter) 1rem; }
.icon-btn {
  appearance: none;
  background: var(--ink-3);
  color: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 48px;
  min-height: 48px;
  padding: 0 1rem;
  font-family: var(--display);
  font-size: 1rem;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--sepia); }

/* Comfort / features list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.ticks li { padding-left: 1.9rem; position: relative; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 2px solid var(--sepia);
  border-bottom: 2px solid var(--sepia);
  transform: rotate(-45deg);
}

.cta-band { text-align: center; }
.cta-band .cta-row { justify-content: center; }

/* Follow + newsletter */
.follow { display: grid; gap: 2.5rem; }
@media (min-width: 60em) { .follow { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--rule);
  background: var(--ink-3);
  font-family: var(--display);
  color: var(--paper);
  text-decoration: none;
}
a.social:hover { border-color: var(--sepia); color: var(--sepia-bright); }
.social small { font-size: 0.75rem; color: var(--paper-dim); letter-spacing: 0.05em; }
.letter {
  border: 1px dashed var(--sepia);
  padding: 1.5rem;
  background: var(--ink-2);
}
.letter p { color: var(--paper-dim); }

/* ---------- Placeholders the author must replace ---------- */
.placeholder {
  border: 2px dashed var(--stamp);
  background: rgba(226, 113, 93, 0.08);
  padding: 1rem 1.2rem;
  color: var(--paper);
}
.placeholder::before {
  content: "To write";
  display: block;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp);
  margin-bottom: 0.35rem;
}
span.placeholder { display: inline; padding: 0 0.3rem; border-width: 1px; }
span.placeholder::before { content: none; }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(3rem, 2rem + 4vw, 5rem) 1.5rem; }
.page-head p { color: var(--paper-dim); max-width: 42rem; }
.prose h2 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* Press kit */
.press-layout { display: grid; gap: 2.5rem; padding-bottom: 5rem; }
@media (min-width: 60em) {
  .press-layout { grid-template-columns: 19rem 1fr; gap: 4rem; align-items: start; }
  .factsheet { position: sticky; top: 1.5rem; }
}
.factsheet {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 1.4rem;
}
.factsheet h2 { font-size: 1.4rem; }
.factsheet dl { margin: 0; }
.factsheet dt {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-top: 1rem;
}
.factsheet dt:first-child { margin-top: 0; }
.factsheet dd { margin: 0.15rem 0 0; overflow-wrap: anywhere; }
.factsheet ul { list-style: none; padding: 0; margin: 0; }
.toc { margin-top: 1.5rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.toc ul { display: grid; gap: 0.1rem; }
.toc a { display: inline-block; padding-block: 0.3rem; font-family: var(--display); font-size: 0.95rem; }
.press-main section { padding-top: 0.5rem; margin-bottom: 3.5rem; scroll-margin-top: 1rem; }
.press-main h2 { border-bottom: 1px solid var(--rule); padding-bottom: 0.4rem; }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.downloads figure { margin: 0; background: var(--ink-2); border: 1px solid var(--rule); }
.downloads img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.downloads figcaption { padding: 0.6rem 0.8rem 0.8rem; font-size: 0.95rem; }
.downloads figcaption a { font-family: var(--display); font-size: 0.9rem; display: inline-block; margin-top: 0.25rem; padding-block: 0.25rem; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.file-list li { background: var(--ink-2); border: 1px solid var(--rule); padding: 0.8rem 1rem; }
.file-list a { font-family: var(--display); }
.file-list span { display: block; font-size: 0.92rem; color: var(--paper-dim); }
.warning {
  border-left: 4px solid var(--stamp);
  background: var(--ink-2);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.quote { border-left: 3px solid var(--sepia); padding-left: 1rem; font-style: italic; }

/* 404 */
.lost {
  min-height: 75svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: 4rem;
}
.lost .stamp { justify-self: center; font-size: 1.1rem; }
.lost p { color: var(--paper-dim); max-width: 32rem; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--ink-2);
  padding-block: 2.5rem;
  font-size: 0.95rem;
  color: var(--paper-dim);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer a { color: var(--paper); display: inline-block; padding-block: 0.6rem; }
.site-footer p { margin: 0; }

/* ---------- The game, shown: small pieces that each do one thing the game does ----------
   Every piece reads fully without JavaScript; site.js only adds the interaction.
   Nothing here flashes: every change is a fade of 0.4 s or longer, or one step a second. */

/* Scares: on / reduced (header). Off-switch for the ambient effects, like the game's setting. */
.scares-toggle {
  appearance: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--paper-dim);
  font-family: var(--display);
  font-size: 0.85rem;
  min-height: 40px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.scares-toggle:hover { border-color: var(--sepia); color: var(--paper); }
.scares-toggle [data-scares-state] { color: var(--sepia-bright); }
.scares-reduced .hero-grain,
.scares-reduced .hero-wear,
.scares-reduced .hero-tone { animation: none; }

/* The stopped watch (hero). The page shows 03:07:00; site.js may run the last seconds up to it. */
.watch { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.1rem; }
.watch-face { width: 44px; height: 44px; flex: none; overflow: visible; }
.watch-rim { fill: rgba(28, 24, 19, 0.85); stroke: var(--sepia); stroke-width: 3; }
.watch-ticks { fill: none; stroke: var(--paper); stroke-width: 2.5; stroke-linecap: round; }
.watch-hand { stroke: var(--paper); stroke-linecap: round; transform-box: view-box; transform-origin: 32px 32px; }
.watch-hour { stroke-width: 4; transform: rotate(93.5deg); }
.watch-minute { stroke-width: 3; transform: rotate(42deg); }
.watch-second { stroke: var(--stamp); stroke-width: 1.6; }
.watch-pin { fill: var(--stamp); }
.watch-time {
  margin: 0;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 48em) {
  .watch { position: absolute; top: 5.5rem; right: var(--gutter); flex-direction: column; gap: 0.6rem; margin: 0; }
  .watch-face { width: 76px; height: 76px; }
}
/* A short fade in, so the watch is never seen jumping back when site.js winds it. */
@media (prefers-reduced-motion: no-preference) {
  .watch { animation: watch-in 0.5s 0.3s ease-out both; }
}
@keyframes watch-in { from { opacity: 0; } }

/* The place lies: "1902" is struck through and the visitors' book is written over it. */
.lies-ready { padding-top: 1.5em; }
.lie-year { position: relative; white-space: nowrap; }
.lies-ready .lie-year { text-decoration: underline dotted; text-decoration-color: var(--sepia); text-underline-offset: 0.25em; cursor: help; }
.lies-ready.is-told .lie-year { text-decoration: none; cursor: auto; }
.lie-year::after {
  content: "";
  position: absolute;
  left: -0.15em;
  right: -0.15em;
  top: 54%;
  height: 2px;
  background: var(--stamp);
  transform: scaleX(0) rotate(-4deg);
  transform-origin: left center;
  transition: transform 0.45s ease-out;
}
.is-told .lie-year::after { transform: scaleX(1) rotate(-4deg); }
.lie-hand {
  position: absolute;
  left: -1.2em;
  bottom: 1.1em;
  white-space: nowrap;
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.25em;
  line-height: 1;
  color: #e0bb7f;
  transform: rotate(-4deg);
  transform-origin: left bottom;
  clip-path: inset(-0.3em 100% -0.3em 0);
  transition: clip-path 1.2s 0.35s ease-out;
  pointer-events: none;
}
.is-told .lie-hand { clip-path: inset(-0.3em -0.5em -0.3em 0); }

/* Colour is memory: where the gaze rests, the photograph drains to grey. */
.gaze { margin: 1.25rem 0 0; }
.gaze-frame {
  position: relative;
  border: 1px solid var(--rule);
  background: #000;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.gaze-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Without JavaScript: a still of the same photograph, drained where something lingered. */
.gaze-still {
  position: absolute;
  inset: 0;
  height: 100%;
  filter: grayscale(1) brightness(1.05) contrast(0.9);
  -webkit-mask-image: radial-gradient(ellipse 30% 45% at 24% 46%, #000 0 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 30% 45% at 24% 46%, #000 0 45%, transparent 100%);
}
.gaze canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gaze-reticle {
  position: absolute;
  width: 2.6rem;
  height: 2.6rem;
  margin: -1.3rem 0 0 -1.3rem;
  border: 1px solid rgba(236, 227, 207, 0.7);
  border-radius: 50%;
  pointer-events: none;
}
.gaze figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--paper-dim);
}

/* Choices that erase people: a family photograph; a kind lie bleaches someone out of it. */
.family {
  margin: 1.25rem 0 0;
  background: var(--print);
  padding: 0.55rem 0.55rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transform: rotate(0.6deg);
}
.family-photo { position: relative; }
.family-photo img { width: 100%; filter: sepia(0.2) contrast(1.02); }
.family-erase {
  position: absolute;
  inset: 0;
  background: var(--print);
  -webkit-mask: url("/img/family/estate-family-mask.png") center / 100% 100% no-repeat;
  mask: url("/img/family/estate-family-mask.png") center / 100% 100% no-repeat;
  opacity: 0;
  transition: opacity 2.4s ease-in;
}
.is-erased .family-erase { opacity: 0.9; }
.family figcaption {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--ink-on-print);
  padding: 0.3rem 0.3rem 0.45rem;
}
.family-choices { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }

/* It hunts you: a presence that gathers at the edge of the screen while you scroll fast.
   Opacity only, eased in over 0.9 s and out over 2.2 s: never a jump, never a flash. */
.presence {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.2s ease-out;
  /* A cold mist at the edge with something darker standing in it. */
  background:
    radial-gradient(ellipse 9% 15% at 68% 2%, rgba(2, 2, 2, 0.95), rgba(2, 2, 2, 0) 100%),
    radial-gradient(ellipse 20% 28% at 68% 0%, rgba(2, 2, 2, 0.75), rgba(2, 2, 2, 0) 100%),
    radial-gradient(ellipse 60% 26% at 60% 0%, rgba(174, 178, 180, 0.2), rgba(174, 178, 180, 0) 100%),
    linear-gradient(to bottom, rgba(5, 4, 3, 0.6), rgba(5, 4, 3, 0) 32%);
}
.presence.from-below {
  background:
    radial-gradient(ellipse 9% 15% at 32% 98%, rgba(2, 2, 2, 0.95), rgba(2, 2, 2, 0) 100%),
    radial-gradient(ellipse 20% 28% at 32% 100%, rgba(2, 2, 2, 0.75), rgba(2, 2, 2, 0) 100%),
    radial-gradient(ellipse 60% 26% at 40% 100%, rgba(174, 178, 180, 0.2), rgba(174, 178, 180, 0) 100%),
    linear-gradient(to top, rgba(5, 4, 3, 0.6), rgba(5, 4, 3, 0) 32%);
}
.presence.is-near { transition: opacity 0.9s ease-in; }

@media (prefers-reduced-motion: reduce) {
  .lie-year::after, .lie-hand, .family-erase, .exhibit { transition: none; }
  .presence { display: none; }
}
