:root {
  --bg: #f6f1e7;
  --ink: #1d2230;
  --muted: #5a6070;
  --line: #d9d0bd;
  --accent: #b4491f;
  --accent-ink: #8a3510;
  --panel: #fbf8f1;
  --max: 46rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-ink); }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: .6rem 1rem;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  max-width: calc(var(--max) + 6rem);
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
}
.brand .sep { color: var(--accent); font-weight: 400; }
.mark { width: 1.75rem; height: 1.75rem; }
.mark-dot { fill: var(--accent); }

nav ul {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .95rem;
}
nav a {
  display: inline-block;
  padding: .5rem .8rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
nav a:hover { border-bottom-color: var(--accent); }

main, .site-footer {
  max-width: calc(var(--max) + 6rem);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}
main { flex: 1; }

.hero { padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }

.eyebrow {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 em { color: var(--accent); font-weight: 400; }

.lede { max-width: 34rem; color: var(--muted); margin: 0 0 1.5rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .9rem;
}
.dot {
  width: .6rem;
  height: .6rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.figure {
  display: block;
  width: min(100%, 26rem);
  margin-top: 2.5rem;
  color: var(--ink);
}
.pt { fill: var(--accent); }

section[id]:not(.hero) {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 .75rem;
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.num {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .85rem;
  color: var(--accent-ink);
}

section p { max-width: 38rem; margin: 0; }

.placeholder {
  padding: 1rem 1.25rem;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
}

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .85rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }

@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  nav ul { gap: 0; margin-left: -.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
}
