:root {
  color-scheme: dark;
  --ink: #090a0c;
  --paper: #f0eadf;
  --muted: #a9a397;
  --accent: #b99a62;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 0%, rgba(185,154,98,.09), transparent 38rem),
    linear-gradient(180deg, #101116, var(--ink));
  color: var(--paper);
  font-family: Inter, system-ui, sans-serif;
}

.experience {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 7vw, 5rem) 1.35rem;
}

.page, .state {
  width: min(100%, 40rem);
  animation: reveal .9s cubic-bezier(.22,1,.36,1) both;
}

.page__header { margin-bottom: clamp(2.2rem, 8vw, 4.5rem); }

.eyebrow {
  margin: 0 0 2.5rem;
  color: var(--accent);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .28em;
}

.chapter {
  margin: 0 0 .65rem;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .2em;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 10vw, 5rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.rule {
  display: block;
  width: 2.8rem;
  height: 1px;
  margin-top: 1.6rem;
  background: var(--accent);
}

.story-text {
  color: #d8d3ca;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.38rem, 5vw, 1.72rem);
  line-height: 1.48;
}

.story-text p { margin: 0 0 1.25em; }

.page__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: clamp(3rem, 12vw, 6rem);
}

.page__footer p {
  margin: 0;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
}

.page-number { color: #55534f; font-family: Georgia, serif; font-size: .75rem; }

.state__code { color: var(--muted); font-size: .72rem; letter-spacing: .18em; }
.state h1 { max-width: 12ch; font-size: clamp(2.5rem, 9vw, 4.5rem); }
.state > p:last-child { max-width: 30rem; margin-top: 2rem; color: var(--muted); line-height: 1.7; }

noscript { display: block; padding: 2rem; text-align: center; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 48rem) {
  .page { padding-left: 3rem; border-left: 1px solid rgba(185,154,98,.25); }
}

@media (prefers-reduced-motion: reduce) {
  .page, .state { animation: none; }
}
