/* Ledger & Lock — editorial stylesheet
   Tokens first, then layout, then components. No frameworks, no build step. */

:root {
  --ink: #12232E;
  --ink-soft: #3C4F5A;
  --muted: #5F7078;
  --paper: #FFFFFF;
  --shade: #F1F4F3;
  --shade-deep: #E4EAE8;
  --rule: #DCE3E1;
  --accent: #0B6B5B;
  --accent-deep: #084D42;
  --cat: var(--accent);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --shell: 1160px;
  --narrow: 720px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --gap: clamp(1.5rem, 3vw, 2.75rem);
  --section-space: clamp(3rem, 7vw, 5.25rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 50;
}
.skip-link:focus { left: 0; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.shell-narrow { max-width: var(--narrow); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-space); }
.band { background: var(--shade); padding-block: var(--section-space); margin-block: var(--section-space) 0; }

.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); max-width: 46ch; }
.section-head h2 { margin-bottom: 0.25rem; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(140%) blur(6px);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -0.015em; }
.brand-line { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.01em; }

.masthead-inner { position: relative; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; margin-right: 0.5rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.65rem; margin: 0; padding: 0; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.nav-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  flex: none;
}
.nav-search-icon svg { width: 18px; height: 18px; }
.nav-search-icon:hover { color: var(--ink); border-color: var(--ink); background: var(--shade); }

.nav-search-mobile { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-bars { width: 18px; height: 2px; background: var(--ink); position: relative; display: block; }
.nav-bars::before, .nav-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-bars::before { top: -6px; }
.nav-bars::after { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: 2; }
  .nav-search-icon { order: 3; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--pad) 1.25rem;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav a { display: block; padding: 0.85rem 0; border-bottom: none; font-size: 1.05rem; }
  .nav-search-mobile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 0 0.2rem;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 1.05rem;
  }
  .nav-search-mobile svg { width: 18px; height: 18px; }
}

/* -------------------------------------------------------------------- hero */

.hero { border-bottom: 1px solid var(--rule); background: var(--paper); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.85fr);
  gap: var(--gap);
  align-items: end;
  padding-block: clamp(2.75rem, 7vw, 5rem);
}
.hero h1 { max-width: 16ch; margin-bottom: 0.6rem; }
.hero-support { font-family: var(--serif); font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 52ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 0; }

.btn {
  display: inline-block;
  padding: 0.72rem 1.35rem;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent-deep);
}
.btn-solid { background: var(--accent-deep); color: #fff; }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-quiet { background: transparent; color: var(--accent-deep); }
.btn-quiet:hover { background: var(--shade); color: var(--ink); }

.hero-facts { margin: 0; display: grid; gap: 1rem; border-left: 1px solid var(--rule); padding-left: var(--gap); }
.hero-facts dt { font-size: 0.8rem; color: var(--muted); }
.hero-facts dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-facts { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 1.25rem; grid-template-columns: repeat(3, 1fr); }
  .hero-facts dd { font-size: 1.2rem; }
}

/* -------------------------------------------------------- category cards */

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.cat-card { border-top: 3px solid var(--cat); padding-top: 1.1rem; }
.cat-card .cat-icon { width: 34px; height: 34px; color: var(--cat); margin-bottom: 0.85rem; }
.cat-card h3 { margin-bottom: 0.4rem; }
.cat-card h3 a { color: var(--ink); text-decoration: none; }
.cat-card h3 a:hover { color: var(--cat); }
.cat-card p { color: var(--muted); font-size: 0.95rem; }
.cat-card-link a { font-weight: 600; font-size: 0.92rem; text-decoration: none; border-bottom: 1px solid currentColor; }

@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- card grid */

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; }
.card-media { display: block; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; background: var(--shade); }
.card-media img { aspect-ratio: 1200 / 630; object-fit: cover; }
.card-body { padding-top: 0.95rem; }
.card-cat { margin: 0 0 0.45rem; font-size: 0.8rem; }
.card-cat a { color: var(--cat); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; }
.card-cat a:hover { border-bottom-color: currentColor; }
.card-title { font-size: 1.24rem; margin-bottom: 0.4rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-excerpt { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.7rem; }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: var(--muted); margin: 0; border-top: 1px solid var(--rule); padding-top: 0.6rem; }
.card-more { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.card-more:hover { text-decoration: underline; }

/* ------------------------------------------------------- popular + latest */

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: calc(var(--gap) * 1.4); }
.split-aside { border-left: 1px solid var(--shade-deep); padding-left: var(--gap); }
.split-aside p { color: var(--ink-soft); font-size: 0.98rem; }
.aside-links { display: flex; gap: 1.25rem; font-weight: 600; font-size: 0.92rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-aside { border-left: none; border-top: 1px solid var(--shade-deep); padding-left: 0; padding-top: 1.5rem; }
}

.rank-list { list-style: none; counter-reset: rank; margin: 0; padding: 0; }
.rank-list li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--shade-deep);
}
.rank-list li::before {
  content: counter(rank);
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--cat);
}
.rank-list a { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.rank-list a:hover { text-decoration: underline; }
.rank-cat { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 560px) {
  .rank-list li { grid-template-columns: 1.8rem minmax(0, 1fr); }
  .rank-cat { grid-column: 2; }
}

.latest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.latest-list li { border-top: 1px solid var(--rule); padding: 1.5rem 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--gap); }
.latest-meta { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.82rem; color: var(--muted); }
.latest-cat { color: var(--cat); font-weight: 600; text-decoration: none; }
.latest-list h3 { margin-bottom: 0.35rem; }
.latest-list h3 a { color: var(--ink); text-decoration: none; }
.latest-list h3 a:hover { text-decoration: underline; }
.latest-list p { color: var(--muted); margin: 0; max-width: 68ch; }
@media (max-width: 720px) {
  .latest-list li { grid-template-columns: 1fr; gap: 0.5rem; }
  .latest-meta { flex-direction: row; gap: 0.9rem; }
}

/* ------------------------------------------------------------- newsletter */

.newsletter { border-top: 1px solid var(--rule); background: var(--shade); }
.newsletter-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.newsletter h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); max-width: 22ch; }
.newsletter p { color: var(--muted); max-width: 46ch; }
.newsletter-form label, .search-form label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.field-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.field-row input {
  flex: 1 1 15rem;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.field-row input:focus-visible { border-color: var(--accent); }
.field-row button {
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--accent-deep);
  border-radius: 3px;
  background: var(--accent-deep);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.field-row button:hover { background: var(--ink); border-color: var(--ink); }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 0.65rem 0 0; }
@media (max-width: 760px) { .newsletter-inner { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- page heads */

.crumbs { padding-block: 1.15rem 0; font-size: 0.82rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--rule); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.page-head { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 20ch; }
.page-kicker a { color: var(--cat); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.page-intro { color: var(--ink-soft); font-family: var(--serif); font-size: 1.12rem; max-width: 64ch; margin: 0; }
.page-updated { font-size: 0.85rem; color: var(--muted); margin: 0.85rem 0 0; }
.empty { color: var(--muted); }

.split-wide { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: calc(var(--gap) * 1.3); align-items: start; }
.topic-rail h2 { font-size: 1.05rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--cat); }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); font-size: 0.93rem; }
.topic-list a { color: var(--ink-soft); text-decoration: none; }
.topic-list a:hover { color: var(--ink); text-decoration: underline; }
.topic-list span { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 880px) { .split-wide { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- article */

.article-head { padding-block: clamp(1.5rem, 3vw, 2.5rem) 1.5rem; }
.article-cat { display: flex; gap: 0.9rem; font-size: 0.85rem; margin-bottom: 0.9rem; }
.article-cat a { color: var(--cat); font-weight: 600; text-decoration: none; }
.article-cat a:hover { text-decoration: underline; }
.article-sub { color: var(--muted) !important; font-weight: 400 !important; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.article-standfirst { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); line-height: 1.55; max-width: 60ch; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  font-size: 0.85rem; color: var(--muted);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding-block: 0.8rem; margin-top: 1.5rem;
}
.byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.byline a:hover { text-decoration: underline; }

.article-figure { margin: 0 auto 2rem; }
.article-figure img { border: 1px solid var(--rule); border-radius: 3px; width: 100%; }
.article-figure figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.55rem; }

.article-layout {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, var(--narrow)) minmax(0, 250px);
  gap: calc(var(--gap) * 1.5);
  justify-content: center;
  align-items: start;
  padding-bottom: var(--section-space);
}
@media (max-width: 1040px) {
  .article-layout { grid-template-columns: minmax(0, var(--narrow)); justify-content: start; }
  .article-rail { max-width: var(--narrow); }
}

.article-body, .prose { font-family: var(--serif); font-size: 1.14rem; line-height: 1.72; color: #1B2C36; }
.article-body h2, .prose h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 2.4vw, 1.75rem); scroll-margin-top: 5rem; }
.article-body h3, .prose h3 { margin-top: 1.7em; font-size: 1.22rem; scroll-margin-top: 5rem; }
.article-body ul, .article-body ol, .prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.article-body li, .prose li { margin-bottom: 0.55em; }
.article-body blockquote, .prose blockquote {
  margin: 1.8em 0; padding: 0.2em 0 0.2em 1.4rem;
  border-left: 3px solid var(--cat); color: var(--ink-soft); font-style: italic;
}
.article-body code, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--shade); padding: 0.1em 0.35em; border-radius: 2px; }
.article-body hr, .prose hr { border: none; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.article-body a, .prose a { color: var(--accent-deep); }

.toc { background: var(--shade); border-radius: 3px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; font-family: var(--sans); }
.toc h2 { font-size: 1rem; margin: 0 0 0.6rem; font-family: var(--sans); font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 0.95rem; }
.toc li { margin-bottom: 0.35em; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent-deep); text-decoration: underline; }

.disclosure {
  font-family: var(--sans); font-size: 0.88rem; color: var(--ink-soft);
  border: 1px solid var(--rule); border-left: 3px solid var(--cat);
  border-radius: 3px; padding: 0.9rem 1.15rem; margin-bottom: 2rem; background: #FBFCFC;
}
.disclosure p { margin: 0; }

.takeaways {
  margin-top: 2.5rem; padding: 1.5rem 1.75rem;
  background: var(--shade); border-radius: 3px; font-family: var(--sans);
}
.takeaways h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 700; margin-top: 0; }
.takeaways ul { margin: 0; padding-left: 1.2em; font-size: 0.98rem; color: var(--ink-soft); }
.takeaways li { margin-bottom: 0.5em; }

.sources { margin-top: 2.5rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; font-family: var(--sans); }
.sources h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; }
.sources ol { font-size: 0.92rem; color: var(--muted); padding-left: 1.2em; }
.sources a { color: var(--accent-deep); }

.faq { margin-top: 2.5rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; font-family: var(--sans); }
.faq h2 { font-size: 1.2rem; font-family: var(--sans); font-weight: 700; margin-bottom: 1rem; }
.faq-item { border-bottom: 1px solid var(--rule); padding: 0.9rem 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 1.6rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--cat);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0.7rem 0 0; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }

.trust-line {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}
.trust-line a { color: var(--muted); text-decoration: underline; }
.trust-line a:hover { color: var(--ink); }

.article-rail { font-size: 0.92rem; position: sticky; top: 5.5rem; }
.rail-block { border-top: 2px solid var(--cat); padding-top: 0.9rem; margin-bottom: 2rem; }
.rail-block h2 { font-size: 0.95rem; font-family: var(--sans); font-weight: 700; margin-bottom: 0.6rem; }
.rail-block p { color: var(--muted); }
.rail-author { font-family: var(--serif); font-size: 1.1rem; color: var(--ink) !important; margin-bottom: 0.1rem; }
.rail-role { font-size: 0.82rem; margin-bottom: 0.7rem; }
.rail-links { list-style: none; margin: 0; padding: 0; }
.rail-links li { border-bottom: 1px solid var(--rule); padding: 0.55rem 0; }
.rail-links a { color: var(--ink-soft); text-decoration: none; }
.rail-links a:hover { color: var(--ink); text-decoration: underline; }
.rail-note { border-top-color: var(--rule); }
.rail-note p { font-size: 0.85rem; }
@media (max-width: 1040px) { .article-rail { position: static; } }

.page-prose { padding-block: clamp(2rem, 4vw, 3rem) var(--section-space); }
.page-prose h2:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: calc(var(--gap) * 1.4);
  align-items: start;
}
.contact-form {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.15rem;
}
.field-stack { display: grid; gap: 0.4rem; }
.field-stack label { font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
.field-stack input, .field-stack select, .field-stack textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
}
.field-stack textarea { resize: vertical; min-height: 8rem; }
.field-stack input:focus-visible, .field-stack select:focus-visible, .field-stack textarea:focus-visible { border-color: var(--accent); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button {
  justify-self: start;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--accent-deep);
  border-radius: 3px;
  background: var(--accent-deep);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.contact-form button:hover { background: var(--ink); border-color: var(--ink); }
.contact-form button[disabled] { opacity: 0.6; cursor: default; }
.contact-form [data-contact-status] { margin: 0; font-size: 0.88rem; min-height: 1.2em; }
.contact-form [data-contact-status][data-state="ok"] { color: var(--accent-deep); }
.contact-form [data-contact-status][data-state="error"] { color: #8A3324; }
.contact-prose h2:first-child { margin-top: 0; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ search */

.search-wrap { max-width: 860px; margin-inline: auto; }
.search-form { margin-bottom: 1.5rem; }
.search-status { font-size: 0.9rem; color: var(--muted); }
.search-results { display: grid; gap: 1.5rem; }
.result {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1.25rem;
  border-top: 1px solid var(--rule); padding-top: 1.5rem;
}
.result img { border: 1px solid var(--rule); border-radius: 3px; }
.result h2 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.result h2 a { color: var(--ink); text-decoration: none; }
.result h2 a:hover { text-decoration: underline; }
.result-meta { font-size: 0.82rem; color: var(--muted); display: flex; gap: 1rem; margin: 0 0 0.4rem; }
.result-cat { color: var(--accent-deep); font-weight: 600; }
.result p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 620px) { .result { grid-template-columns: 1fr; } .result img { max-width: 240px; } }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--ink); color: #C9D6D1; margin-top: var(--section-space); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.footer-brand .mark { width: 32px; height: 32px; margin-bottom: 0.75rem; }
.footer-name { font-family: var(--serif); font-size: 1.25rem; color: #F4F6F5; margin: 0 0 0.4rem; }
.footer-blurb { color: #9FB3AC; max-width: 40ch; }
.footer-group h2 { font-size: 0.92rem; font-family: var(--sans); font-weight: 700; color: #F4F6F5; margin-bottom: 0.75rem; }
.footer-group ul { list-style: none; margin: 0; padding: 0; }
.footer-group li { margin-bottom: 0.5rem; }
.site-footer a { color: #C9D6D1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid #27404D; margin-top: 2.5rem; padding-top: 1.5rem; color: #8FA5A0; font-size: 0.82rem; }
.footer-base p { max-width: 90ch; }
.footer-base a { text-decoration: underline; }
.footer-legal { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- utilities */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .masthead, .site-footer, .newsletter, .article-rail, .toc { display: none; }
  body { font-size: 11pt; }
}
