:root {
  --void: #212736;
  --well: #1a1f2c;
  --ink: #f1e8d7;
  --whisper: rgba(241, 232, 215, 0.6);
  --faint: rgba(241, 232, 215, 0.22);
  --ember: #d69a7d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a { color: var(--ember); text-decoration: none; border-bottom: 1px solid var(--faint); transition: border-color 160ms ease; }
a:hover { border-color: var(--ember); }
a:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.wrap {
  width: min(660px, 92vw);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Mobile-first: stacked and left-aligned by default. */
nav.site {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 0 8px;
}
nav.site .mark {
  font-size: 12px;
  letter-spacing: 0.38em;
  color: var(--ink);
  border: 0;
  text-transform: lowercase;
  white-space: nowrap;
}
nav.site .mark:hover { color: var(--ember); }
nav.site .links { display: flex; gap: 20px; flex-wrap: wrap; }
nav.site .links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--whisper);
  border: 0;
  text-transform: lowercase;
}
nav.site .links a:hover, nav.site .links a[aria-current="page"] { color: var(--ember); }

/* From tablet up: one row, wordmark and links spread apart. */
@media (min-width: 640px) {
  nav.site {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 34px 0 10px;
  }
}

main { flex: 1; }

h1, h2, h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: 42px; margin: 44px 0 8px; }
h2 { font-size: 27px; margin: 46px 0 10px; }
h3 { font-size: 21px; margin: 34px 0 8px; }

p { margin: 0 0 18px; color: var(--whisper); }
p strong { color: var(--ink); font-weight: 400; }
li { color: var(--whisper); margin-bottom: 10px; }
li strong { color: var(--ink); font-weight: 400; }
em { font-style: italic; }

.subtitle {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: var(--whisper);
  margin: 0 0 30px;
}

blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 1px solid var(--ember);
}
blockquote p {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  color: var(--ink);
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--faint);
  margin: 44px 0;
}

.footnote {
  font-size: 13.5px;
  border-top: 1px solid var(--faint);
  padding-top: 24px;
  margin-top: 44px;
}
.footnote p { font-size: 13.5px; }

footer.site {
  padding: 60px 0 54px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
footer.site .knock {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--whisper);
}
footer.site .fine {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--faint);
  text-transform: lowercase;
}
footer.site a { border: 0; color: var(--whisper); }
footer.site a:hover { color: var(--ember); }

/* Home — mobile-first: compact top padding, smaller mark, grows at the same breakpoint as nav. */
.hero { padding: 28px 0 32px; text-align: center; }
.hero .amp {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero h1 { font-size: 28px; margin: 0 0 14px; }
.hero p { max-width: 46ch; margin: 0 auto 0; }

@media (min-width: 640px) {
  .hero { padding: 90px 0 40px; }
  .hero .amp { font-size: 90px; margin-bottom: 26px; }
  .hero h1 { font-size: 34px; }
}

.doors { display: flex; flex-direction: column; gap: 26px; padding: 44px 0 20px; }
.door { border-top: 1px solid var(--faint); padding-top: 22px; }
.door a.title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 24px;
  color: var(--ink);
  border: 0;
}
.door a.title:hover { color: var(--ember); }
.door p { margin: 6px 0 0; font-size: 14.5px; }

/* Essay lists */
.essay-list { display: flex; flex-direction: column; gap: 30px; padding: 10px 0; }

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