:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --alt: #f0eee8;
  --text: #16202c;
  --muted: #4a5666;
  --line: #d9d5ca;
  --accent: #0b5563;
  --accent-ink: #ffffff;
  --accent-hover: #083f4a;
  --ph-bg: #fff1c2;
  --ph-text: #4a3500;
  --focus: #b4410a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1319;
    --surface: #161d26;
    --alt: #121920;
    --text: #e8edf2;
    --muted: #b0bac6;
    --line: #2b3643;
    --accent: #6cc7d6;
    --accent-ink: #06222a;
    --accent-hover: #93d8e4;
    --ph-bg: #4a3b0a;
    --ph-text: #ffe9a3;
    --focus: #ffb27a;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1.0625rem/1.65 var(--font);
}
.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 0; }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.1em; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.skip { position: absolute; left: .75rem; top: -4rem; background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; z-index: 100; border-radius: 4px; }
.skip:focus { top: .75rem; }

.draft-bar { background: var(--text); color: var(--bg); text-align: center; font-size: .85rem; padding: .35rem 1rem; }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.nav-toggle { display: none; font: inherit; background: none; color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: .45rem .9rem; min-height: 2.75rem; cursor: pointer; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: inline-block; padding: .6rem .8rem; color: var(--text); text-decoration: none; border-radius: 6px; }
.site-nav a:hover { background: var(--alt); }
.site-nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.hero { padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 40rem; }
.note { font-size: .9rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
section.wrap { padding-top: 2rem; padding-bottom: 2rem; }
.prose h2 { margin-top: 2rem; }
.fine { font-size: .875rem; color: var(--muted); }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
  padding: .8rem 1.4rem; border-radius: 6px; border: 2px solid var(--accent); min-height: 2.75rem; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--alt); color: var(--accent-hover); }

.grid3, .grid2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid2 { grid-template-columns: repeat(2, 1fr); } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.card p:last-child { margin-bottom: 0; }
.empty { border: 2px dashed var(--line); border-radius: 10px; padding: 1.5rem; color: var(--muted); }
.empty p { margin: 0; }
.band { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3rem 0; margin-top: 2rem; }
.band.alt { background: var(--surface); }
.fallback { margin-top: 1rem; }
.reslist { list-style: none; padding: 0; }
.reslist li { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.reslist h3 { margin-bottom: .2rem; }
.reslist p { margin: 0; color: var(--muted); }

.ph { background: var(--ph-bg); color: var(--ph-text); padding: .05em .35em; border-radius: 4px; }

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; margin-top: 3rem; }
.foot-brand { font-family: var(--serif); font-weight: 700; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer li a { display: inline-block; padding: .35rem 0; }

@media (max-width: 47.99rem) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.open { display: block; padding-bottom: .75rem; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { display: block; }
}
@media print { .site-header, .draft-bar, .skip { display: none; } }
