:root {
  --paper: #eee7d9;
  --paper-light: #f6f1e7;
  --ink: #292824;
  --ink-soft: #676258;
  --saffron: #c56c21;
  --saffron-text: #984812;
  --line: rgba(41, 40, 36, 0.2);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.35), transparent 30rem),
    linear-gradient(90deg, transparent 49.95%, rgba(41, 40, 36, 0.025) 50%, transparent 50.05%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper-light);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem clamp(1.25rem, 4vw, 4.5rem);
  transition: background 240ms ease, border-color 240ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(238, 231, 217, 0.93);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  width: clamp(12rem, 18vw, 17rem);
}

.brand img,
footer img {
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  gap: clamp(1.15rem, 2.3vw, 2.5rem);
}

nav a,
.eyebrow,
.visual-note,
.card-meta,
.dialog-topbar,
.story-controls,
footer p {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
  position: relative;
}

nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  left: 0;
  height: 1px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

nav a:hover::after,
nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(7.5rem, 12vh, 10rem) clamp(1.25rem, 7vw, 8rem) 4rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(1.25rem, 7vw, 8rem);
  width: 1px;
  background: linear-gradient(transparent, var(--saffron) 32%, var(--saffron) 68%, transparent);
  opacity: 0.38;
}

.hero-copy {
  max-width: 56rem;
  padding-left: clamp(1.5rem, 4vw, 4rem);
}

.eyebrow {
  margin: 0 0 1.8rem;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5.2rem, 13vw, 12rem);
  font-weight: 400;
  line-height: 0.74;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  margin-left: clamp(1rem, 7vw, 7rem);
  color: var(--saffron);
  font-style: italic;
}

.hero-intro {
  max-width: 38rem;
  margin: clamp(2.6rem, 7vh, 5rem) 0 1.75rem clamp(1rem, 7vw, 7rem);
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  line-height: 1.5;
}

.text-link {
  position: relative;
  display: inline-block;
  margin-left: clamp(1rem, 7vw, 7rem);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-visual {
  width: min(100%, 28rem);
  justify-self: end;
  margin-top: 2rem;
}

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #d8ccba;
  box-shadow: 0 2rem 6rem rgba(41, 40, 36, 0.12);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-control {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(246, 241, 231, 0.7);
  border-radius: 100vmax;
  color: var(--paper-light);
  background: rgba(41, 40, 36, 0.84);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.visual-note {
  display: flex;
  justify-content: space-between;
  margin: 0.9rem 0 0;
}

.visual-note span {
  color: var(--saffron-text);
}

.hero-index {
  position: absolute;
  right: clamp(1.25rem, 4vw, 4.5rem);
  bottom: 1.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.current,
.archive,
.manifesto,
.elsewhere {
  padding: clamp(5rem, 11vw, 10rem) clamp(1.25rem, 7vw, 8rem);
}

.current {
  display: grid;
  grid-template-columns: 0.25fr 1.25fr 0.8fr;
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  min-height: 75svh;
  border-bottom: 1px solid var(--line);
}

.section-number {
  color: var(--saffron);
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
}

.current h2,
.archive h2,
.manifesto h2,
.elsewhere h2,
.dialog-copy h2 {
  font-family: var(--display);
  font-weight: 400;
}

.current h2 {
  margin: 0;
  font-size: clamp(3.25rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.current-question {
  align-self: end;
  padding-top: 8rem;
}

.current-question > p {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.45;
}

.story-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1rem 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.story-link span {
  color: var(--saffron);
  font-size: 1.3rem;
  transition: transform 180ms ease;
}

.story-link:hover span,
.story-link:focus-visible span {
  transform: translate(0.2rem, -0.2rem);
}

.archive {
  background: var(--paper-light);
}

.archive-heading {
  display: grid;
  grid-template-columns: 0.55fr 1fr 0.7fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.archive-heading .eyebrow {
  margin: 0;
}

.archive h2,
.elsewhere h2 {
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.archive-heading > p:last-child {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-soft);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.story-card button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.card-image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ded4c4;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease;
}

.story-card button:hover img,
.story-card button:focus-visible img {
  transform: scale(1.025);
  filter: contrast(1.04);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--ink-soft);
}

.card-title {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.3vw, 2.5rem);
  line-height: 1.15;
}

.text-editions {
  margin-top: clamp(4.5rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
}

.text-editions-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.7fr;
  gap: 3rem;
  align-items: baseline;
  padding: 2rem 0;
}

.text-editions-heading .eyebrow {
  margin: 0;
}

.text-editions h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.text-edition {
  border-top: 1px solid var(--line);
}

.text-edition:last-child {
  border-bottom: 1px solid var(--line);
}

.text-edition summary {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.text-edition summary::-webkit-details-marker {
  display: none;
}

.text-edition summary > span {
  color: var(--saffron-text);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.text-edition summary small {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-edition[open] summary small::after {
  content: " — close";
}

.text-edition ol {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem 3.25rem;
}

.text-edition li {
  padding: 0.7rem 0 0.7rem 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.manifesto {
  min-height: 90svh;
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: clamp(3rem, 8vw, 10rem);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto-mark {
  min-height: 27rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

.manifesto-mark img {
  width: min(48%, 11rem);
  height: auto;
  display: block;
}

.manifesto h2 {
  max-width: 63rem;
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.manifesto .lead {
  max-width: 50rem;
  margin: 3rem 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
  line-height: 1.4;
}

.manifesto-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 58rem;
  color: var(--ink-soft);
}

.closing-line {
  margin-top: 3rem;
}

.closing-line em {
  color: var(--saffron-text);
  font-family: var(--display);
  font-size: 1.2em;
}

.elsewhere {
  min-height: 75svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-list {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--ink);
}

.social-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  transition: color 160ms ease, padding 160ms ease;
}

.social-list a:hover,
.social-list a:focus-visible {
  padding-left: 0.75rem;
  color: var(--saffron);
}

footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  align-items: end;
  padding: 3rem clamp(1.25rem, 7vw, 8rem);
  color: var(--paper-light);
  background: var(--ink);
}

footer img {
  max-width: 15rem;
  filter: invert(1) sepia(0.1);
}

footer p {
  margin: 0;
}

footer p:last-child {
  text-align: right;
}

.story-dialog {
  width: min(94vw, 84rem);
  max-width: none;
  max-height: 94svh;
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 0 3rem 10rem rgba(0, 0, 0, 0.35);
}

.story-dialog::backdrop {
  background: rgba(25, 24, 21, 0.78);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  min-height: min(88svh, 56rem);
  display: flex;
  flex-direction: column;
}

.dialog-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.dialog-topbar p {
  margin: 0;
}

.close-button {
  padding: 0.3rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  text-transform: uppercase;
  cursor: pointer;
}

.dialog-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(20rem, 1.18fr);
  min-height: 0;
}

.story-stage {
  min-height: 0;
  padding: clamp(1rem, 2.5vw, 2.25rem);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #ded4c4;
}

.story-stage > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.story-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 0.8rem;
}

.story-controls p {
  margin: 0;
}

.story-controls button {
  padding: 0.5rem;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
}

.story-controls button:first-child {
  justify-self: start;
}

.story-controls button:last-child {
  justify-self: end;
}

.dialog-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: auto;
}

.dialog-copy h2 {
  margin: 0 0 1.7rem;
  font-size: clamp(3rem, 5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.dialog-copy > p:not(.eyebrow, .dialog-hint) {
  max-width: 38rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.slide-track {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.35rem;
  margin-top: 2rem;
}

.slide-track button {
  height: 1.65rem;
  padding: 0;
  border: 0;
  border-top: 2px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.slide-track button.is-active {
  border-color: var(--saffron);
}

.dialog-hint {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.reveal.is-animated {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-animated.is-visible {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 4px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.48fr);
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(4.7rem, 15vw, 8rem);
  }

  .current {
    grid-template-columns: auto 1fr;
  }

  .current-question {
    grid-column: 2;
    padding-top: 1rem;
  }

  .archive-heading {
    grid-template-columns: 1fr 1fr;
  }

  .archive-heading > p:last-child {
    grid-column: 2;
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

  .text-editions-heading {
    grid-template-columns: 1fr 1fr;
  }

  .story-card:last-child {
    grid-column: 2;
  }

  .manifesto {
    grid-template-columns: 0.3fr 1.7fr;
  }

  .dialog-body {
    grid-template-columns: 1fr 1fr;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer p:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 1rem 1.1rem;
  }

  .brand {
    width: 10.5rem;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }

  nav a {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 8rem 1.1rem 4rem;
  }

  .hero::before {
    left: 1.1rem;
  }

  .hero-copy {
    padding-left: 1.2rem;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 24vw, 7rem);
    line-height: 0.78;
  }

  .hero h1 span:last-child,
  .hero-intro,
  .text-link {
    margin-left: 0;
  }

  .hero-intro {
    margin-top: 2.7rem;
  }

  .hero-visual {
    width: min(75vw, 20rem);
    justify-self: center;
    margin-top: 2rem;
  }

  .hero-index {
    display: none;
  }

  .current,
  .archive,
  .manifesto,
  .elsewhere {
    padding: 5rem 1.1rem;
  }

  .current {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-number,
  .current-question {
    grid-column: auto;
  }

  .current h2 {
    font-size: clamp(3.3rem, 16vw, 5.5rem);
  }

  .archive-heading,
  .story-grid,
  .manifesto,
  .manifesto-columns {
    grid-template-columns: 1fr;
  }

  .archive-heading > p:last-child,
  .story-card:last-child {
    grid-column: auto;
  }

  .story-grid {
    gap: 3rem;
  }

  .text-editions-heading {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .text-edition summary {
    grid-template-columns: 2.75rem 1fr;
  }

  .text-edition summary small {
    grid-column: 2;
  }

  .manifesto-mark {
    min-height: 12rem;
  }

  .manifesto-mark img {
    width: min(30%, 7rem);
  }

  .manifesto h2,
  .archive h2,
  .elsewhere h2 {
    font-size: clamp(3.1rem, 15vw, 5.5rem);
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  footer p:nth-child(2),
  footer p:last-child {
    grid-column: auto;
    grid-row: auto;
    text-align: left;
  }

  .story-dialog {
    width: 100vw;
    height: 100svh;
    max-height: none;
  }

  .dialog-shell {
    min-height: 100svh;
  }

  .dialog-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .story-stage {
    min-height: 72svh;
  }

  .dialog-copy {
    min-height: 70svh;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal.is-animated {
    opacity: 1;
    transform: none;
  }
}
