@import url("https://fonts.bunny.net/css?family=fraunces:400,500,600,700|inter:400,500,600");

:root {
  --paper: #f8f4ea;
  --ivory: #fffdf8;
  --cream: #f0e9dc;
  --forest: #1d342c;
  --ink: #202e2a;
  --muted: #56655b; /* was #65756a; darkened for WCAG AA 4.5:1 on all surfaces */
  --terracotta: #9c4a31; /* was #b75b3e; AA contrast */
  --rust: #a95038;
  --sage: #a5b09b;
  --pale-sage: #ebf0e6;
  --gold: #d6aa64;
  --pale-gold: #f6edda;
  --line: #e4ddcf;
  --dark: #172b24;
  --white: #ffffff;
  --blue: #345d7c;
  --pale-blue: #eef3f6;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
::selection { background: #e6d7b8; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
@media (min-width: 768px) {
  .wrap { width: min(var(--max), calc(100% - 48px)); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -200px; z-index: 100;
  background: var(--forest); color: var(--ivory); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; font-weight: 600;
  color: var(--muted); margin: 0 0 10px;
}
h1, h2, h3, .brand-name {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; color: var(--forest);
}
h1 { font-size: clamp(30px, 5vw, 56px); line-height: 1.12; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
p { margin: 0 0 1em; color: var(--ink); }
.lede { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 38em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 500; white-space: nowrap;
}
.btn.primary { background: var(--terracotta); color: var(--ivory); }
.btn.primary:hover { background: var(--rust); }
.btn.outline { border: 1.5px solid var(--terracotta); color: var(--terracotta); background: transparent; }
.btn.ghost { color: var(--forest); }
.btn.light { background: var(--ivory); color: var(--forest); border: 1px solid var(--line); }
.text-link { color: var(--terracotta); text-underline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 244, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand-name { font-size: 22px; letter-spacing: -0.04em; line-height: 1; }
.nav-links { display: none; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--forest); min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { color: var(--terracotta); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; color: var(--forest); font-size: 14px;
}
@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 80; background: rgba(23, 43, 36, 0.28);
}
.nav-overlay.open { display: block; }
.nav-panel {
  position: absolute; inset: 12px; background: var(--paper); border-radius: 28px;
  padding: 16px; overflow: auto; display: flex; flex-direction: column; gap: 8px;
}
.nav-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nav-close { min-width: 44px; min-height: 44px; border-radius: 12px; font-size: 22px; color: var(--forest); }
.nav-panel a.nav-item {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 8px 4px; text-decoration: none; border-bottom: 1px solid var(--line);
  font-size: 18px; color: var(--forest);
}
.nav-panel .nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.nav-panel .sponsor { color: var(--muted); font-size: 14px; margin-top: auto; padding: 16px 4px; }

.hero {
  display: grid; gap: 28px; align-items: center;
  background: var(--ivory); border-radius: var(--radius); padding: 28px 22px; margin: 22px 0 36px;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; padding: 36px 40px; gap: 40px; }
}
.hero-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.crumb { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.card-grid { display: grid; gap: 16px; margin: 0 0 40px; }
@media (min-width: 760px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--ivory); border-radius: var(--radius-sm); padding: 22px;
  text-decoration: none; display: block; min-height: 44px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 15px; }
.card .meta { font-size: 13px; color: var(--terracotta); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.model-tag {
  display: inline-block; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--pale-gold); color: var(--forest); padding: 6px 10px; border-radius: 999px; margin: 8px 0;
}

.get-involved {
  background: var(--pale-sage); border-radius: var(--radius); padding: 28px 24px; margin: 40px 0;
  display: grid; gap: 20px;
}
@media (min-width: 800px) {
  .get-involved { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding: 32px 36px; }
}
.get-involved h2 { margin-bottom: 6px; }
.get-involved .gi-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.get-involved .gi-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; text-align: right; }
@media (max-width: 799px) {
  .get-involved .gi-actions, .get-involved .gi-note { justify-content: flex-start; text-align: left; }
}

.site-footer {
  border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 24px;
  font-size: 14px; color: var(--muted);
}
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.footer-links a:hover { color: var(--forest); }
.sponsor-line { margin: 12px 0 0; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; color: var(--ink); }
.prose li { margin: 0 0 0.5em; }
.pullquote {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.3;
  color: var(--forest); border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; margin: 28px 0;
}
.compare { width: 100%; border-collapse: collapse; font-size: 15px; margin: 20px 0 32px; }
.compare th, .compare td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }

.notice {
  background: var(--pale-gold); border-radius: 16px; padding: 16px 18px; margin: 0 0 24px; font-size: 15px;
}
.notice.review { background: #f3efe2; }
.disclosure {
  background: var(--pale-gold); border-radius: 16px; padding: 18px 20px; margin: 0 0 24px; border: 1px solid #ead9b2;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; align-items: center; }
.filters button, .chip {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--ivory); color: var(--forest); font-size: 14px;
}
.filters button[aria-pressed="true"] { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.result-count { font-size: 14px; color: var(--muted); margin: 0 0 16px; }

.video-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
.video-card { background: var(--ivory); border-radius: 18px; overflow: hidden; text-decoration: none; display: block; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--cream); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: rgba(183, 91, 62, 0.92); color: #fff;
  display: grid; place-items: center; font-size: 18px;
}
.video-card .pad { padding: 14px 16px 18px; }
.video-card h3 { font-size: 17px; }
.video-card p { font-size: 13px; color: var(--muted); margin: 0; }

.checklist-item {
  background: var(--ivory); border-radius: 16px; padding: 14px 16px; margin: 0 0 10px;
  display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: start;
}
.checklist-item input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--forest); }
.checklist-item.selected { outline: 2px solid var(--sage); }
.why { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.improve { font-size: 14px; margin: 8px 0 0; }
.checklist-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 20px; }

.form-card { background: var(--ivory); border-radius: 18px; padding: 18px; margin: 0 0 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
input:not([type]), input[type="text"], input[type="url"], input[type="email"], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); padding: 10px 12px; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.field { margin: 0 0 14px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.error-summary {
  background: #f8e8e2; border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; color: #6b2c1c;
}
.success-panel {
  background: var(--ivory); border-radius: var(--radius); padding: 28px; margin: 12px 0 24px;
}
.check-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check-label input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }

.search-bar {
  display: flex; gap: 10px; background: var(--ivory); border-radius: 999px; padding: 8px 8px 8px 18px;
  margin: 0 0 24px; align-items: center;
}
.search-bar input { border: 0; background: transparent; min-height: 44px; flex: 1; padding: 0; }
.search-results { display: grid; gap: 12px; }
.search-hit { background: var(--ivory); border-radius: 16px; padding: 18px 20px; text-decoration: none; display: block; }
.search-hit .type { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.empty-search h2 { margin-top: 8px; }
.suggest-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.source-list { font-size: 15px; }
.source-list li { margin: 0 0 10px; }
.related { margin: 32px 0; }

body.nav-lock { overflow: hidden; }

.admin-wrap { width: min(1100px, calc(100% - 32px)); margin: 24px auto 60px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .get-involved, .nav-toggle, .hero-actions, .checklist-toolbar { display: none !important; }
  body { background: #fff; }
  .checklist-item { break-inside: avoid; }
}
/* headings renumbered for a11y heading-order keep their original visual size */
h2.h3 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.video-card h2.h3 { font-size: 17px; }
h3.h4 { font-size: inherit; }
