@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-sans-3-700.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fraunces-700.woff2") format("woff2");
}

:root {
  --paper: #f3eee4;
  --paper-2: #e7dfd0;
  --card: #fffdf8;
  --ink: #1c1914;
  --muted: #5c564c;
  --spruce: #1b3c34;
  --spruce-2: #24584c;
  --butter: #d7a441;
  --line: #d8d0c2;
  --warn-bg: #f8e7d8;
  --warn: #7a341c;
  --bad: #8a2e24;
  --shadow: 0 18px 40px rgba(28, 25, 20, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 100% -10%, rgba(215, 164, 65, 0.18), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}
body.has-banner { padding-bottom: 7.5rem; }
img { max-width: 100%; }
a { color: var(--spruce-2); }
a:hover { color: var(--ink); }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin: 0.2rem 0 0.8rem; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.25rem; margin: 0.2rem 0 0.4rem; }
p { margin: 0 0 0.8rem; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: white;
  padding: 0.4rem 0.7rem;
  z-index: 5;
}
.skip:focus { top: 0.75rem; }

.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 228, 0.9);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: var(--spruce);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
}
.mark span {
  width: 1.05rem;
  height: 0.16rem;
  background: var(--butter);
  display: block;
  margin-top: 0.28rem;
}
.byline, .fine, .hint { color: var(--muted); }
.byline a, .footer-inner a { color: inherit; }
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--spruce-2);
}

.banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: var(--spruce);
  color: #f6f3ec;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.16);
}
.banner a { color: #f3d48a; }
.banner-inner {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.9rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.banner p { margin: 0; }
.banner-actions, .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.hero { padding: 2.4rem 0 1rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}
.lede { font-size: 1.2rem; max-width: 38rem; }
.ratio-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1rem 0 0.4rem; }
.ratio {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--butter);
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  min-width: 9.5rem;
}
.ratio strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}
.panel, .news-card, .callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.panel { padding: 1.15rem 1.15rem 1.2rem; }
.stack { display: grid; gap: 0.85rem; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.choice {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.7rem 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: #fff;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--spruce);
  background: #f3f7f5;
}
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.field { display: grid; gap: 0.3rem; }
label { font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid #c9c0b0;
  background: white;
  color: var(--ink);
}
input:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(215, 164, 65, 0.85);
  outline-offset: 2px;
}
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-primary { background: var(--spruce); color: #f7f4ee; }
.btn-primary:hover { background: var(--spruce-2); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid #b7ad9d; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.result {
  border-radius: 0.8rem;
  background: #f7f4ee;
  padding: 0.85rem 0.9rem;
  min-height: 4.5rem;
}
.result p:last-child { margin-bottom: 0; }
.result-tall {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0.15rem 0 0.35rem;
}
.result.is-ok { background: #eef5f1; }
.result.is-warn { background: var(--warn-bg); }
.result.is-bad { background: #f8ecea; color: var(--bad); }
.warn { color: var(--warn); font-weight: 600; }

.section { padding: 1.2rem 0 0.4rem; }
.source-list, .prose ul { padding-left: 1.15rem; }
.source-list li, .prose li { margin: 0 0 0.7rem; }
.callout { padding: 1rem 1.1rem; }
.news-list { display: grid; gap: 0.8rem; }
.news-card { padding: 1rem 1.05rem; box-shadow: none; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 0.3rem; }
.status { min-height: 1.4rem; font-weight: 600; }
.status.is-ok { color: var(--spruce); }
.status.is-bad { color: var(--bad); }
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
.footer-inner { align-items: flex-start; padding-top: 1rem; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.admin-main { padding: 2rem 0 3rem; }
table.stats { width: 100%; border-collapse: collapse; background: var(--card); }
table.stats th, table.stats td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); }
code { font-size: 0.95em; }

@media (max-width: 800px) {
  .hero-grid, .split, .banner-inner, .header-inner, .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .choices { grid-template-columns: 1fr; }
  .btn, .banner-actions .btn { width: 100%; }
  .header-inner, .footer-inner { min-height: 0; padding: 0.8rem 0; }
  body.has-banner { padding-bottom: 13rem; }
  h1 { font-size: 2.15rem; }
}
