/* Descendant of the October 2024 stylesheet.
   Black canvas, #363636 cards, #1f1f1f footer, #898989 rules,
   white type, teal from the gallery hover. Logo SVGs are his. */

:root {
  --bg: #000000;
  --elev: #1f1f1f;
  --card: #363636;
  --line: #898989;
  --text: #ffffff;
  --muted: #d2d2d2;
  --accent: #7ee8e2;
  --accent-strong: #14b8b1;
  --accent-ink: #04221f;
  --teal: #008080;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 68ch;
  --max: 1120px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f1ea;
  --elev: #e7e2d8;
  --card: #ffffff;
  --line: #8a8478;
  --text: #141414;
  --muted: #3c3c3c;
  --accent: #0c6e69;
  --accent-strong: #0c6e69;
  --accent-ink: #ffffff;
  --shadow: 0 16px 32px rgba(20, 20, 20, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
}

main { flex: 1; }

img { max-width: 100%; height: auto; }

a { color: var(--accent); }
a:hover { color: var(--text); }

p, ul, blockquote { margin: 0 0 1rem; }

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin: 2rem 0 0.7rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.35rem; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent-strong);
  color: var(--accent-ink);
  padding: 0.5rem 0.8rem;
  z-index: 50;
}
.skip:focus { top: 0.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-top: 3px solid var(--teal);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-bar,
.site-nav,
.hero,
.catalog,
.doc,
.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-img { display: block; }
[data-theme="light"] .brand-img { filter: invert(1); }

.header-tools { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle,
.nav-toggle,
.slot,
button {
  font: inherit;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: inherit;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}

.theme-toggle svg { width: 1.15rem; height: 1.15rem; }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.45rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.35rem 0 0.8rem;
}

.nav-list > li { position: relative; }

.nav-list a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 0.55rem 0.9rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: var(--hover, #ddd);
  color: #000;
}

[data-theme="light"] .nav-list a:hover,
[data-theme="light"] .nav-list a[aria-current="page"] {
  background: #141414;
  color: #fff;
}

.sub {
  display: none;
  position: absolute;
  left: 0;
  min-width: 13rem;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: var(--elev);
  border: 1px solid var(--line);
  z-index: 30;
}

.nav-item:hover .sub,
.nav-item:focus-within .sub { display: block; }

.sub a { text-align: left; }

.hero, .catalog, .doc { padding: 2.2rem 0 1rem; }

.kicker {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome {
  max-width: 20em;
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.35;
}

.welcome p { margin: 0 0 0.35rem; }

blockquote {
  margin: 0 0 1rem;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--teal);
}

.attribution, .voice-note, .checked, .slot-note, .form-note, .legal {
  color: var(--muted);
  font-size: 0.95rem;
}

.text-link { font-weight: 600; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  padding: 0.85rem;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  outline: 2px solid #fff;
  border-radius: 1rem;
  background: #161616;
}

[data-theme="light"] .card img { outline-color: #141414; }

.card h3, .card h2 { color: var(--text); }
.card:hover { outline: 2px solid var(--teal); }
.card-line { color: var(--muted); margin: 0; }

.doc { max-width: 760px; }
.lede { font-size: 1.2rem; }

.place-figure { margin: 1.5rem 0; }
.place-figure img {
  width: min(100%, 420px);
  outline: 2px solid #fff;
  border-radius: 1rem;
  background: #161616;
}
[data-theme="light"] .place-figure img,
[data-theme="light"] .story-mark img { outline: 2px solid #141414; }

.story-mark img {
  width: 180px;
  outline: 2px solid #fff;
  border-radius: 1rem;
  background: #161616;
  padding: 0.6rem;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.slot {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 6.5rem;
  padding: 0.9rem 1rem;
  background: var(--accent-strong);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: 0.8rem;
}

.slot:hover { color: var(--accent-ink); filter: brightness(1.08); }
.slot-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.slot-label { font-weight: 600; }

.disclosure {
  margin: 1rem 0 1.4rem;
  padding: 0.9rem 1rem;
  background: var(--elev);
  border-left: 3px solid var(--teal);
}

.facts, .place-index, .archive-index { padding-left: 1.1rem; }
.facts li, .place-index li, .archive-index li { margin: 0 0 0.45rem; }

.link-row { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; }
.link-row a { font-weight: 600; }

.origin-voice blockquote p { margin: 0; }

.email-capture {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  background: var(--card);
}

.form-title { font-weight: 600; margin-bottom: 0.4rem; }

.email-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.email-capture input {
  flex: 1 1 14rem;
  min-height: 2.7rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.email-capture button {
  min-height: 2.7rem;
  padding: 0.4rem 0.9rem;
  border: 0;
  background: var(--accent-strong);
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
}

.email-capture button:disabled,
.email-capture input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.site-footer {
  width: 100%;
  margin-top: 2rem;
  background: var(--elev);
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.6fr);
  gap: 1.5rem;
}

.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-links p { margin: 0 0 0.35rem; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .slots { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .word { display: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1rem;
  }
  body.nav-open .nav-list { display: flex; }
  .sub {
    position: static;
    display: block;
    border: 0;
    background: transparent;
    padding-left: 0.8rem;
  }
}

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

@media print {
  .site-header, .site-footer, .slots, .email-capture { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
