@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/newsreader-latin-600.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f4f0e8;
  --bg-elev: #fffcf6;
  --ink: #1b1915;
  --muted: #5f594f;
  --line: #e2dbcf;
  --accent: #1d5c49;
  --accent-soft: #e4f1eb;
  --shadow: 0 18px 40px rgba(40, 32, 20, 0.06);
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --bg-elev: #1e1c19;
    --ink: #f4f0e6;
    --muted: #b9b2a6;
    --line: #312e29;
    --accent: #9ed4c3;
    --accent-soft: #1a2c26;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 0% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: min(1080px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.intro {
  padding-top: clamp(2.75rem, 9vh, 5.75rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mark {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.lede,
.tagline {
  max-width: 40rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.tagline {
  color: var(--ink);
}

.bio {
  max-width: 40rem;
  margin: 0.85rem 0 0;
  font-size: 1.15rem;
  line-height: 1.5;
}

.section-title {
  margin: clamp(2.25rem, 5vh, 3.25rem) 0 0;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.1rem 0 0;
  padding: 0;
}

.door {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem 1.3rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--bg-elev);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.door-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.door h3 {
  margin: 0.7rem 0 0;
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.door p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.4;
}

.door p + p {
  margin-top: 0.45rem;
}

.door-url {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.35rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
}

.door:hover {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg-elev));
  transform: translateY(-2px);
}

.door:hover .door-url,
.door:focus-visible .door-url {
  color: var(--accent);
}

.bio a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

.door:focus-visible,
.text-link:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.text-link {
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  padding-top: 0.35rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
}

.missing {
  padding-top: clamp(4rem, 14vh, 8rem);
  padding-bottom: 4rem;
}

.missing h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
}

@media (min-width: 960px) {
  .doors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .door {
    min-height: 17.5rem;
    padding: 1.5rem 1.4rem 1.3rem;
  }

  .door-url {
    margin-top: auto;
    padding-top: 1.5rem;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(1080px, calc(100% - 1.5rem));
  }

  .door-url {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .door {
    transition: none;
  }

  .door:hover {
    transform: none;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .door {
    box-shadow: none;
    break-inside: avoid;
  }
}
