/* DARKWATER DNA — shared shell CSS, 2026-06-04 */
/* Publication-style layout, system fonts, no animation, fast load. */
/* Per-domain palette + section labels live in accent.css */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 17px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Georgia, Charter, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.55;
  color: var(--ink, #1a1a1a);
  background: var(--paper, #fafaf8);
  text-rendering: optimizeLegibility;
}

/* ─── Top masthead ─────────────────────────────────────────────── */
.masthead {
  border-bottom: 1px solid var(--rule, #d8d4c8);
  padding: 1.4rem 0 1.2rem;
  background: var(--paper, #fafaf8);
}
.masthead-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: Georgia, Charter, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: 0.01em;
  color: var(--ink, #1a1a1a);
  text-decoration: none;
  line-height: 1;
}
.wordmark .wordmark-accent { color: var(--accent, #6b1f1f); }
.masthead-tagline {
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted, #6b665a);
}

/* ─── Primary nav (top of every page) ─────────────────────────── */
.nav {
  border-bottom: 1px solid var(--rule, #d8d4c8);
  background: var(--paper, #fafaf8);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav-inner a {
  color: var(--ink, #1a1a1a);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.nav-inner a:hover { border-bottom-color: var(--accent, #6b1f1f); }
.nav-inner a.current { border-bottom-color: var(--accent, #6b1f1f); }

/* ─── Page layout ──────────────────────────────────────────────── */
main { padding-bottom: 4rem; }

/* Typographic hero — V1 ships without photography */
.hero {
  width: 100%;
  border-bottom: 1px solid var(--rule, #d8d4c8);
  background: var(--ink, #1a1a1a);
  color: var(--paper, #fafaf8);
  padding: clamp(2.4rem, 6vw, 4.4rem) 0;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.hero .hero-kicker {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent, #6b1f1f);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: Georgia, Charter, serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 0.8rem;
  letter-spacing: -0.015em;
  color: var(--paper, #fafaf8);
  max-width: 18ch;
}
.hero .hero-subhead {
  font-family: Georgia, Charter, serif;
  font-style: italic;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  color: rgba(250, 247, 240, 0.78);
  max-width: 40em;
  margin: 0;
}

.lede {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.4rem 2rem 1rem;
}
.kicker {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent, #6b1f1f);
  margin-bottom: 0.6rem;
}
h1 {
  font-family: Georgia, Charter, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 0.8rem;
  letter-spacing: -0.01em;
}
.subhead {
  font-family: Georgia, Charter, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.18rem;
  color: var(--muted, #6b665a);
  margin: 0 0 0.4rem;
  max-width: 38em;
}

article {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.6rem 2rem;
}
article p { margin: 0 0 1.05rem; }
article h2 {
  font-family: Georgia, Charter, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 2.1rem 0 0.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule, #d8d4c8);
}
article h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
article a { color: var(--accent, #6b1f1f); text-decoration: underline; text-underline-offset: 2px; }
article a:hover { background: var(--accent-tint, rgba(107,31,31,0.08)); }
article ul { padding-left: 1.4rem; }
article li { margin-bottom: 0.4rem; }
article blockquote {
  margin: 1.4rem 0;
  padding: 0.4rem 0 0.4rem 1.2rem;
  border-left: 3px solid var(--accent, #6b1f1f);
  font-style: italic;
  color: var(--ink, #1a1a1a);
}

/* ─── Index grid (homepage card layout) ───────────────────────── */
.entries {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.4rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem 2.4rem;
}
.entry {
  border-top: 2px solid var(--ink, #1a1a1a);
  padding-top: 0.9rem;
}
.entry .entry-kicker {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent, #6b1f1f);
  margin-bottom: 0.45rem;
}
.entry h3 {
  font-family: Georgia, Charter, serif;
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.18;
  margin: 0 0 0.5rem;
}
.entry h3 a { color: inherit; text-decoration: none; }
.entry h3 a:hover { color: var(--accent, #6b1f1f); }
.entry p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--muted, #6b665a);
}

/* ─── Footer (site chrome — bridge anchor lives here) ─────────── */
footer {
  border-top: 1px solid var(--rule, #d8d4c8);
  padding: 2rem 0 2.4rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  color: var(--muted, #6b665a);
  background: var(--paper, #fafaf8);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-col { min-width: 200px; }
.footer-col h4 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  margin: 0 0 0.6rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.25rem; }
.footer-col a {
  color: var(--muted, #6b665a);
  text-decoration: none;
  font-size: 0.78rem;
}
.footer-col a:hover { color: var(--accent, #6b1f1f); }
.footer-meta { width: 100%; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule, #d8d4c8); font-size: 0.72rem; }

/* ─── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .masthead-inner, .nav-inner, .lede, article, .entries, .footer-inner { padding-left: 1.2rem; padding-right: 1.2rem; }
  .nav-inner { gap: 1rem; }
  .entries { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-inner { gap: 1.2rem; }
}
