/* ==========================================================
   White Door Review — the engraved room.
   A dark stone room lit by what comes through a white door,
   cut like a wood engraving: black, white, and the light between.
   Pages for reading stand in the light beyond the door.
   ========================================================== */

:root {
  --room: #0b0b0a;
  --room-2: #161615;
  --on-room: #efeeea;
  --on-room-2: #b4b3ad;
  --on-room-3: #85847e;
  --rule-room: rgba(239, 238, 234, 0.17);

  --light: #f8f8f5;
  --light-2: #efefea;
  --ink: #121211;
  --ink-2: #44443f;
  --ink-3: #6a6a64;
  --rule: #d6d6cf;
  --rule-strong: #b9b9b2;
  --error: #9a2b1c;
  --error-room: #ef9f8f;

  --display: "Libre Caslon Display", "EB Garamond", Georgia, serif;
  --serif: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1360px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-light: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* tone: light by default; .on-room and .tone-room switch to the room */
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --ground: var(--light);
  --rule-c: var(--rule);
  --err: var(--error);
}

.on-room,
.tone-room .site-header,
.menu-is-open .site-header {
  --fg: var(--on-room);
  --fg-2: var(--on-room-2);
  --fg-3: var(--on-room-3);
  --ground: var(--room);
  --rule-c: var(--rule-room);
  --err: var(--error-room);
}
.on-light {
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --ground: var(--light);
  --rule-c: var(--rule);
  --err: var(--error);
}
.on-room, .on-light { background: var(--ground); color: var(--fg); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font: 400 clamp(18px, 0.3vw + 16.6px, 20px) / 1.6 var(--serif);
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.tone-room { background: var(--room); }
img, video, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--light); }
.on-room ::selection { background: var(--on-room); color: var(--room); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--light);
  color: var(--ink);
  font: 500 13px/1 var(--serif);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip:focus { transform: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- type ---------- */
.caps {
  font: 500 13px/1 var(--serif);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.meta {
  font-size: 17px;
  line-height: 1.45;
  font-variant-caps: all-small-caps;
  font-variant-numeric: oldstyle-nums;
  letter-spacing: 0.075em;
  color: var(--fg-3);
}
.page-title {
  font: 400 clamp(52px, 6.4vw, 96px) / 0.96 var(--display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.page-lede {
  margin-top: clamp(22px, 2.6vw, 34px);
  max-width: 34ch;
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1.45;
  color: var(--fg-2);
  text-wrap: pretty;
}
.section-title {
  font: 400 clamp(32px, 3vw, 46px) / 1.05 var(--display);
  letter-spacing: -0.006em;
}

/* links that draw a line of light beneath themselves */
.lit-line {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.55s var(--ease-out), opacity 0.3s;
}
.lit-line:hover, .lit-line:focus-visible, .lit-line[aria-current] { background-size: 100% 1px; }

/* ---------- buttons: a plain engraved frame that fills with light ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 calc(34px - 0.28em) 0 34px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--fg);
  font: 500 13px/1 var(--serif);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.5s var(--ease-light), color 0.5s var(--ease-light), border-color 0.5s var(--ease-light);
}
.btn:hover { background: var(--fg); color: var(--ground); border-color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--fg); color: var(--ground); border-color: var(--fg); }
.btn--solid:hover { background: transparent; color: var(--fg); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--fg);
  background: var(--ground);
  border-bottom: 1px solid var(--rule-c);
  transition: transform 0.6s var(--ease-out), background-color 0.45s, border-color 0.45s, color 0.45s;
}
.site-header.is-top { background: transparent; border-bottom-color: transparent; }
.site-header.is-hidden { transform: translateY(-101%); }
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  font: 500 14px/1 var(--serif);
  letter-spacing: 0.26em;
  margin-right: -0.26em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; gap: clamp(26px, 3.2vw, 52px); }
.nav a {
  font: 500 13px/1 var(--serif);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.82;
}
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.menu-toggle { display: none; }

/* small screens: the menu opens as the dark room */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 32px) var(--gutter) 36px;
  opacity: 0;
  transition: opacity 0.45s var(--ease-light);
}
.menu.is-open { opacity: 1; }
/* `display: flex` above would override the hidden attribute and leave an
   invisible menu over the page, swallowing every click */
.menu[hidden] { display: none; }
.menu:not(.is-open) { pointer-events: none; }
.menu ul { list-style: none; padding: 0; }
.menu li { border-top: 1px solid var(--rule-room); }
.menu a {
  display: block;
  padding: 14px 0 12px;
  font: 400 clamp(38px, 11vw, 56px) / 1.05 var(--display);
  text-decoration: none;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.8s var(--ease-out), opacity 0.6s var(--ease-light);
}
.menu.is-open a { transform: none; opacity: 1; }
.menu.is-open li:nth-child(2) a { transition-delay: 0.05s; }
.menu.is-open li:nth-child(3) a { transition-delay: 0.1s; }
.menu.is-open li:nth-child(4) a { transition-delay: 0.15s; }
.menu a[aria-current] { font-style: normal; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.menu-foot { margin-top: 28px; }
.menu-is-open .site-header { background: transparent; border-bottom-color: transparent; transform: none; }

/* ==========================================================
   Home: the door
   ========================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--room);
}
.hero-stage { position: absolute; inset: 0; overflow: hidden; }
/* the home page is the hero and nothing else: it fills the screen and never scrolls */
html:has(.page-home), .page-home { height: 100%; overflow: hidden; overscroll-behavior: none; }
.page-home .hero { min-height: 0; }
.hero-poster img,
.hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 50%;
}
.hero-poster img.is-placed, .hero-still.is-placed { inset: auto; max-width: none; object-fit: fill; }
.hero-still { opacity: 0; transition: opacity 1.8s var(--ease-light); }
.hero-still.is-shown { opacity: 1; }
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.hero.is-gl .hero-canvas { opacity: 1; }
/* the raw film sits under the poster, never seen: the canvas shows it keyed */
.hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 50%;
  pointer-events: none;
}
.hero-film.is-placed { inset: auto; max-width: none; object-fit: fill; }
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(11, 11, 10, 0.72) 0%, rgba(11, 11, 10, 0) 36%),
    linear-gradient(90deg, rgba(11, 11, 10, 0.55) 0%, rgba(11, 11, 10, 0) 30%, rgba(11, 11, 10, 0) 72%, rgba(11, 11, 10, 0.5) 100%),
    linear-gradient(180deg, rgba(11, 11, 10, 0.5) 0%, rgba(11, 11, 10, 0) 16%);
}
.hero-body {
  position: absolute;
  inset: 0;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  align-content: end;
  gap: 32px;
  padding-top: var(--header-h);
  padding-bottom: clamp(36px, 7.5vh, 84px);
  color: var(--on-room);
}
.hero-title {
  font: 400 clamp(54px, 6vw, 90px) / 0.94 var(--display);
  letter-spacing: -0.012em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: block; }
.hero-sub {
  margin-top: clamp(18px, 2.4vh, 28px);
  max-width: 30ch;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.4;
  color: var(--on-room);
  opacity: 0.86;
}
/* the hero text lets clicks through to the door, except its button */
.hero-body { pointer-events: none; }
.hero-issue { pointer-events: auto; }
/* the door itself is a link: click it to walk through */
.hero-door {
  position: absolute;
  left: 50%;
  top: 15%;
  width: 30%;
  height: 75%;
  cursor: pointer;
}
.hero-door:focus-visible { outline: 1px solid var(--on-room); outline-offset: 6px; }
/* testing only: steps through the season scenes behind the door */
.season-cycle {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 3;
  display: none;
  padding: 8px 14px;
  border: 1px solid var(--rule-room);
  background: none;
  color: var(--on-room-2);
  font: 500 13px/1 var(--serif);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.hero.is-gl .season-cycle { display: block; }
.season-cycle:hover { color: var(--on-room); border-color: var(--on-room-3); }
.season-cycle:focus-visible { outline: 1px solid var(--on-room); outline-offset: 4px; }
@media (max-width: 760px) { .season-cycle { bottom: auto; top: calc(var(--header-h) + 4px); } }
.hero-issue { display: grid; justify-items: stretch; gap: 20px; }
.hero-issue-name { font: 400 clamp(22px, 2vw, 30px) / 1.1 var(--display); }
.hero-issue .btn { min-width: min(300px, 100%); }
.js .hero-issue { opacity: 0; transform: translateY(12px); transition: opacity 1.4s var(--ease-light), transform 1.4s var(--ease-out); }
.hero.is-open .hero-issue { opacity: 1; transform: none; }
/* big screens: the hero text keeps growing with the door, and the corners it
   sits in get a deeper shade so it never sinks into the stone */
@media (min-width: 1700px) {
  .hero-title { font-size: min(5.4vw, 9.5vh); }
  .hero-sub { font-size: clamp(21px, 1.15vw, 30px); }
  .hero-issue-name { font-size: clamp(30px, 1.7vw, 46px); }
  .hero-issue { gap: clamp(20px, 1.2vw, 30px); }
  .hero-issue .btn { min-height: clamp(54px, 3.2vw, 76px); min-width: clamp(300px, 17vw, 420px); font-size: clamp(13px, 0.72vw, 18px); }
  .season-cycle { font-size: clamp(13px, 0.6vw, 16px); }
  .hero-shade {
    background:
      radial-gradient(ellipse 38% 46% at 0% 100%, rgba(11, 11, 10, 0.78), rgba(11, 11, 10, 0)),
      radial-gradient(ellipse 30% 40% at 100% 100%, rgba(11, 11, 10, 0.78), rgba(11, 11, 10, 0)),
      linear-gradient(0deg, rgba(11, 11, 10, 0.72) 0%, rgba(11, 11, 10, 0) 36%),
      linear-gradient(90deg, rgba(11, 11, 10, 0.55) 0%, rgba(11, 11, 10, 0) 30%, rgba(11, 11, 10, 0) 72%, rgba(11, 11, 10, 0.5) 100%),
      linear-gradient(180deg, rgba(11, 11, 10, 0.5) 0%, rgba(11, 11, 10, 0) 16%);
  }
}
/* the light you step into: covers the whole screen, header too, while the room folds away */
.hero-veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--light);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: rise 1.5s var(--ease-out) 0.15s both; }
  .hero-title .line + .line > span { animation-delay: 0.27s; }
  .hero-sub { animation: settle 1.6s var(--ease-light) 0.5s both; }
}
@keyframes rise { from { transform: translateY(104%); } }
@keyframes settle { from { opacity: 0; } }

/* ---------- through the door: the statement ---------- */
.arrival { padding: clamp(110px, 17vh, 210px) 0 clamp(80px, 12vh, 150px); }
.arrival-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.arrival-side {
  grid-column: 1 / span 3;
  padding-top: 0.7em;
  max-width: 24ch;
  font-size: 18px;
  line-height: 1.5;
  font-style: italic;
  color: var(--fg-2);
}
.statement {
  grid-column: 4 / span 9;
  max-width: 25ch;
  font-size: clamp(30px, 3.5vw, 54px);
  line-height: 1.17;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.statement em { font-style: italic; }
/* a statement set in the author's own lines: no width cap or balancing; on phones the lines are too long, so it flows */
.statement--lines { max-width: none; text-wrap: wrap; }
@media (max-width: 560px) { .statement--lines br { display: none; } .statement--lines em { white-space: nowrap; } }

/* reveal: settles out of a soft blur, already present */
.has-reveal .reveal {
  opacity: 0.18;
  filter: blur(6px);
  transform: translateY(14px);
  transition: opacity 1.4s var(--ease-light), filter 1.4s var(--ease-light), transform 1.6s var(--ease-out);
}
.has-reveal .reveal.is-in { opacity: 1; filter: none; transform: none; }

/* ---------- engraved plates ---------- */
.plate { position: relative; }
.plate-art {
  position: relative;
  overflow: hidden;
  background: var(--room);
  outline: 1px solid var(--rule-c);
  outline-offset: 12px;
}
.plate-art img { width: 100%; height: auto; transform-origin: 50% 45%; }
@media (prefers-reduced-motion: no-preference) {
  /* the winter beyond the door keeps very slowly drawing nearer */
  .plate-art img { animation: drift 26s ease-in-out infinite alternate; }
}
@keyframes drift { to { transform: scale(1.06) translateY(-0.8%); } }
/* a printed cover holds still: drifting would crop its lettering */
.plate-cover .plate-art img { animation: none; }

/* a closed door with light breathing beneath it */
.door-art { position: relative; display: block; }
.door-art img { width: 100%; height: auto; mix-blend-mode: lighten; }
/* a door standing alone fades into the dark at its edges */
.knock-door .door-art, .submit-door .door-art {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.sill {
  position: absolute;
  left: var(--sill-x);
  top: var(--sill-y);
  width: var(--sill-w);
  height: 12%;
  transform: translate(-50%, -38%);
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(50% 9% at 50% 38%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 100%),
    radial-gradient(62% 52% at 50% 46%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 100%);
  opacity: 0.7;
}
@media (prefers-reduced-motion: no-preference) {
  .sill { animation: breathe 6s ease-in-out infinite; }
}
@keyframes breathe { 50% { opacity: 1; } }

/* ---------- current issue ---------- */
.issue-show { padding: clamp(40px, 6vh, 80px) 0 clamp(110px, 15vh, 190px); }
.issue-show-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.issue-show .plate { position: sticky; top: calc(var(--header-h) + 40px); }
.issue-name { font: 400 clamp(46px, 5vw, 76px) / 1 var(--display); letter-spacing: -0.01em; }
.issue-name a { text-decoration: none; }
.issue-meta { margin-top: 12px; }
.issue-blurb { margin-top: 22px; max-width: 40ch; font-size: clamp(19px, 1.4vw, 22px); line-height: 1.5; color: var(--fg-2); }
.issue-more { margin-top: 44px; }

/* ---------- the index ---------- */
.index { list-style: none; padding: 0; margin-top: 40px; border-top: 1px solid var(--rule-c); }
.index-row {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 20px;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--rule-c);
  text-decoration: none;
}
.index-title { transition: transform 0.6s var(--ease-out); }
.index-row:hover .index-title, .index-row:focus-visible .index-title { transform: translateX(14px); }
.index-no { font-size: 16px; letter-spacing: 0.06em; color: var(--fg-3); }
.index-title { font: 400 clamp(24px, 2.2vw, 33px) / 1.12 var(--display); text-wrap: balance; }
.index-by { display: grid; justify-items: end; gap: 2px; text-align: right; }
.index-poet { font-size: 19px; font-variant-caps: all-small-caps; letter-spacing: 0.08em; white-space: nowrap; }
.index-lines { font-size: 16px; font-style: italic; color: var(--fg-3); }
.index-note { margin-top: 18px; max-width: 60ch; }


/* ---------- a poem ---------- */
.feature { padding: clamp(100px, 14vh, 180px) 0; border-top: 1px solid var(--rule-c); }
.feature-poem { max-width: 38rem; margin: 0 auto; }
.poem-head { margin-bottom: clamp(36px, 4vw, 52px); }
.poem-title { font: 400 clamp(38px, 4vw, 60px) / 1.06 var(--display); letter-spacing: -0.008em; text-wrap: balance; }
.poem-poet { margin-top: 16px; font-size: 21px; font-variant-caps: all-small-caps; letter-spacing: 0.1em; color: var(--fg-2); }
.poem-body { font-size: clamp(19px, 0.45vw + 16.6px, 22px); line-height: 1.62; font-variant-numeric: oldstyle-nums; }
.stanza { margin-bottom: 1.3em; }
.stanza:last-child { margin-bottom: 0; }
.pline { display: block; padding-left: 1.6em; text-indent: -1.6em; }
.pline.indent { padding-left: 3.2em; }
.threshold { display: flex; justify-content: flex-start; margin: clamp(40px, 5vw, 60px) 0 0; color: var(--fg); }
.sunburst { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 0.7; overflow: visible; }
.sunburst .rays {
  transform-origin: 0 0;
  transform: scale(calc(0.55 + var(--read, 1) * 0.45)) rotate(calc(var(--read, 1) * 22deg));
  opacity: calc(0.3 + var(--read, 1) * 0.7);
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
}
.feature-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-c);
}

/* ---------- the call for poems ---------- */
.knock { padding: clamp(110px, 15vh, 190px) 0 clamp(40px, 6vh, 80px); overflow: hidden; }
.knock-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: end;
}
.knock-copy { padding-bottom: clamp(60px, 10vh, 120px); }
.knock-title { max-width: 10ch; font: 400 clamp(48px, 5.8vw, 92px) / 0.98 var(--display); letter-spacing: -0.012em; }
.knock-text { margin: 28px 0 42px; max-width: 36ch; font-size: clamp(19px, 1.4vw, 22px); line-height: 1.5; color: var(--fg-2); }
.knock-door { max-width: 440px; justify-self: end; width: 100%; }
.knock-door figcaption { margin-top: 10px; padding-left: 11.4%; }

/* ==========================================================
   Footer: the nameplate over the door
   ========================================================== */
.site-footer { padding: clamp(80px, 12vh, 130px) 0 30px; }
.nameplate {
  width: min(540px, 88%);
  height: auto;
  margin: 0 auto clamp(64px, 9vh, 110px);
  mix-blend-mode: lighten;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  padding-top: 52px;
  border-top: 1px solid var(--rule-c);
}
.newsletter h2 { font: 400 clamp(30px, 3vw, 44px) / 1.08 var(--display); }
.newsletter > p { margin-top: 12px; color: var(--fg-2); }
.nl-row { display: flex; max-width: 540px; margin-top: 28px; }
.nl-row input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--rule-c);
  border-right: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: 400 18px var(--serif);
}
.nl-row input::placeholder { color: var(--fg-3); opacity: 1; }
.nl-row input:focus { outline: none; border-color: var(--fg); }
.nl-done { margin-top: 24px; font-style: italic; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-nav h2 { font: 500 12px/1 var(--serif); letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 20px; }
.footer-nav ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-nav a { font-size: 20px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  margin-top: clamp(64px, 9vh, 100px);
  padding-top: 22px;
  border-top: 1px solid var(--rule-c);
}

/* ==========================================================
   Inner pages
   ========================================================== */
.page-head { padding: calc(var(--header-h) + clamp(64px, 11vh, 140px)) 0 clamp(56px, 8vh, 100px); }
.section { padding: clamp(56px, 8vh, 100px) 0; }
.ruled-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px clamp(32px, 5vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--rule-c);
}

/* ---------- issue ---------- */
.issue-head { padding: calc(var(--header-h) + clamp(48px, 8vh, 110px)) 0 clamp(70px, 10vh, 130px); }
.issue-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}
.issue-head .page-lede { max-width: 38ch; margin-bottom: 44px; }
.issue-head-plate { max-width: 520px; justify-self: end; width: 100%; }
.contents { padding: 0 0 clamp(100px, 14vh, 170px); }
.contents-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px); }
.contents-grid .index { margin-top: 0; }
.contents-grid .section-title { padding-top: 18px; }
.contents-note { padding-top: 18px; border-top: 1px solid var(--rule-c); font: 400 clamp(22px, 1.9vw, 28px) / 1.35 var(--display); color: var(--fg-2); max-width: 30ch; }
.band { padding: clamp(80px, 12vh, 140px) 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
.band-title { font: 400 clamp(40px, 4.6vw, 72px) / 1 var(--display); letter-spacing: -0.01em; max-width: 13ch; }
.band-copy p { margin-bottom: 32px; max-width: 36ch; color: var(--fg-2); }
.band-copy p:not(:last-of-type) { margin-bottom: 14px; }

/* ---------- single poem ---------- */
.poem-page { padding: calc(var(--header-h) + clamp(48px, 8vh, 100px)) 0 clamp(90px, 12vh, 150px); }
.poem-layout {
  display: grid;
  grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.poem-rail { position: sticky; top: calc(var(--header-h) + 36px); }
.rail-issue { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--rule-c); text-decoration: none; }
.rail-name { font: 400 26px/1.1 var(--display); }
.rail-list { list-style: none; padding: 0; margin-top: 10px; }
.rail-list a {
  display: grid;
  grid-template-columns: 2.2em 1fr;
  padding: 7px 0;
  font-size: 17px;
  line-height: 1.3;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.3s;
}
.rail-list a:hover { color: var(--fg); }
.rail-list .no { color: var(--fg-3); font-size: 15px; padding-top: 2px; }
.rail-list a[aria-current] { color: var(--fg); }
.rail-list a[aria-current] .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.poem { max-width: 40rem; }
.poem-crumb { margin-bottom: clamp(28px, 4vw, 44px); }
.poem-crumb a { color: var(--fg-2); }
.poem-note { margin-top: 28px; max-width: 52ch; }
.next-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 90px);
  padding-top: 24px;
  border-top: 1px solid var(--rule-c);
}
.next-doors a { display: grid; gap: 6px; text-decoration: none; }
.next-doors a[rel="next"] { text-align: right; }
.next-doors .t { font: 400 clamp(22px, 2vw, 28px) / 1.15 var(--display); transition: opacity 0.3s; }
.next-doors a:hover .t { opacity: 0.7; }
.poem-missing { padding: clamp(40px, 8vh, 100px) var(--gutter); }
.poem-missing .page-lede { margin-bottom: 36px; }

/* ---------- archive: one wall of doors ---------- */
.archive-head { padding-bottom: clamp(32px, 5vh, 64px); }
.wall-section { padding: 0 0 clamp(70px, 10vh, 130px); }
.wall {
  list-style: none;
  display: flex;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0;
}
/* the wall's top and far ends fade into the room */
.wall-door .door-art {
  --fade-l: #000;
  --fade-r: #000;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%), linear-gradient(90deg, var(--fade-l) 0, #000 14%, #000 86%, var(--fade-r) 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 9%), linear-gradient(90deg, var(--fade-l) 0, #000 14%, #000 86%, var(--fade-r) 100%);
  mask-composite: intersect;
}
.wall-door:first-child .door-art { --fade-l: transparent; }
.wall-door:last-child .door-art { --fade-r: transparent; }
.wall-door { flex: var(--w) 1 0; min-width: 0; }
.wall-link { display: block; }
.wall-link .door-art img { transition: filter 0.8s var(--ease-light); }
.wall-link:hover .door-art img { filter: brightness(1.14); }
.wall-door:has(.wall-link:hover) .wall-name a { background-size: 100% 1px; }
.wall-caption { padding: 18px 12px 0 var(--door-l); }
.wall-name { font: 400 clamp(20px, 1.8vw, 28px) / 1.15 var(--display); }
.wall-name a { text-decoration: none; }
.wall-caption .meta { margin-top: 4px; }
.wall-caption .is-now { color: var(--fg); }
.is-forthcoming .wall-name { color: var(--fg-2); }

/* ---------- about ---------- */
.arrival--about { padding-top: clamp(30px, 5vh, 60px); }
.arrival--about + .arrival--about { padding-top: 0; }
.beliefs { display: grid; gap: 0; }
.belief { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule-c); }
.belief:first-child { padding-top: 6px; }
.belief dt { font: 400 clamp(24px, 2vw, 30px) / 1.15 var(--display); }
.belief dd { color: var(--fg-2); }
.masthead-list dd { align-self: center; }

/* ---------- submissions ---------- */
.submit-head { padding: calc(var(--header-h) + clamp(40px, 7vh, 90px)) 0 0; overflow: hidden; }
.submit-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: end;
}
.submit-head-copy { padding-bottom: clamp(56px, 9vh, 110px); }
.submit-door { max-width: 420px; width: 100%; justify-self: end; }
.terms { list-style: none; padding: 0; margin-top: clamp(36px, 5vh, 56px); border-top: 1px solid var(--rule-c); max-width: 560px; }
.terms li { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-c); }
.terms-k { font: 500 12px/1.9 var(--serif); letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3); }
.terms-v { font-size: 20px; }
.submit-section { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(100px, 14vh, 170px); }
.submit-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.guidelines { margin-top: 28px; border-top: 1px solid var(--rule-c); }
.guideline { padding: 20px 0; border-bottom: 1px solid var(--rule-c); }
.guideline dt { font: 400 clamp(22px, 1.9vw, 28px) / 1.2 var(--display); margin-bottom: 6px; }
.guideline dd { color: var(--fg-2); max-width: 46ch; }

.form-panel {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  padding: clamp(28px, 3.4vw, 48px);
  background: var(--light-2);
  border: 1px solid var(--rule-c);
}
.form-panel h2 { font: 400 clamp(30px, 2.6vw, 40px) / 1.1 var(--display); margin-bottom: 28px; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; font: 500 12px/1.5 var(--serif); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.field .hint { letter-spacing: 0.06em; text-transform: none; font-style: italic; font-size: 15px; font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--light);
  color: var(--ink);
  font: 400 19px/1.4 var(--serif);
  transition: border-color 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field input[type="file"] { padding: 12px; font-size: 17px; }
.field input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 500 11.5px/1 var(--serif);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.field :is(input, select, textarea):hover { border-color: var(--ink-3); }
.field :is(input, select, textarea):focus { outline: 1px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field-error { display: none; margin-top: 8px; font-size: 16px; font-style: italic; color: var(--err); }
.field:has(:user-invalid) :is(input, select, textarea),
.field.is-touched:has(:invalid) :is(input, select, textarea),
.was-checked .field:has(:invalid) :is(input, select, textarea) { border-color: var(--err); }
.field:has(:user-invalid) .field-error,
.field.is-touched:has(:invalid) .field-error,
.was-checked .field:has(:invalid) .field-error { display: block; }
.word-count { display: block; margin-top: 6px; text-align: right; }
.word-count.is-over { color: var(--err); }
.form-panel .btn { margin-top: 10px; width: 100%; }
.form-panel > p { color: var(--ink-2); max-width: 40ch; }
.form-done { display: none; }
.form-done h2 { margin-bottom: 14px; }
.form-done p { margin-bottom: 8px; color: var(--ink-2); }
.is-sent form { display: none; }
.is-sent .form-done { display: block; }

/* ==========================================================
   Smaller screens
   ========================================================== */
@media (max-width: 1100px) {
  .issue-show-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .statement { grid-column: 3 / span 10; }
  .arrival-side { grid-column: 1 / span 2; font-size: 16px; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .brand { font-size: 13px; letter-spacing: 0.22em; margin-right: -0.22em; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: -6px;
    padding: 12px 6px;
    border: 0;
    background: none;
    color: inherit;
    font: 500 12.5px/1 var(--serif);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .menu-bars { position: relative; width: 22px; height: 7px; }
  .menu-bars::before, .menu-bars::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: currentColor;
    transition: transform 0.5s var(--ease-out);
  }
  .menu-bars::before { top: 0; }
  .menu-bars::after { bottom: 0; }
  [aria-expanded="true"] .menu-bars::before { transform: translateY(3px) rotate(45deg); }
  [aria-expanded="true"] .menu-bars::after { transform: translateY(-3px) rotate(-45deg); }

  .hero-shade { background: linear-gradient(0deg, rgba(11, 11, 10, 0.96) 0%, rgba(11, 11, 10, 0.75) 26%, rgba(11, 11, 10, 0) 50%), linear-gradient(180deg, rgba(11, 11, 10, 0.55) 0%, rgba(11, 11, 10, 0) 14%); }
  .hero-body { grid-template-columns: 1fr; gap: 26px; padding-bottom: 28px; }
  .hero-issue { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
  .hero-issue-name { font-size: 22px; }
  .hero-issue .btn { min-width: 0; padding-left: 22px; padding-right: calc(22px - 0.28em); }
  .hero-sub { max-width: 28ch; }

  .arrival-grid { display: block; }
  .arrival-side { max-width: 34ch; padding: 0; margin-bottom: 26px; }
  .statement { max-width: none; }

  .issue-show-grid, .issue-head-grid, .knock-grid, .submit-head-grid, .submit-grid,
  .band-grid, .contents-grid, .ruled-grid, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .issue-show .plate { position: static; max-width: 460px; }
  .issue-head-plate { justify-self: start; max-width: 440px; }
  .issue-head-copy { order: 1; }
  .knock-copy, .submit-head-copy { padding-bottom: 0; }
  .knock-door, .submit-door { justify-self: center; max-width: 320px; }
  .form-panel { position: static; }
  .poem-layout { grid-template-columns: minmax(0, 1fr); }
  .poem-rail { display: none; }
  .belief { grid-template-columns: minmax(0, 1fr); }

  .wall { flex-wrap: wrap; padding: 0 0; }
  .wall-door { flex: 0 0 var(--share); }
  .wall-door:nth-child(n + 3) { margin-top: 36px; }
  /* an odd door out stands centred on its own row, fading into the dark on both sides */
  .wall-door:last-child:nth-child(odd) { margin-inline: auto; }
  .wall-door:last-child:nth-child(odd) .door-art { --fade-l: transparent; }
  .wall-caption { padding-right: 8px; }
  .wall-name { font-size: 19px; }
  .wall-caption .meta { font-size: 15px; }
}

@media (max-width: 560px) {
  .btn { padding: 0 calc(24px - 0.28em) 0 24px; }
  .nl-row { flex-direction: column; gap: 10px; }
  .nl-row input { border-right: 1px solid var(--rule-c); }
  .index-row { grid-template-columns: 2.2em minmax(0, 1fr); }
  .index-by { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 12px; margin-top: 6px; }
  .next-doors { grid-template-columns: 1fr; }
  .next-doors a[rel="next"] { text-align: left; }
  .terms li { grid-template-columns: 1fr; gap: 2px; }
  .footer-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
