:root {
  --bg: #f4eadb;
  --paper: #fbf6ed;
  --cream: #eadbc4;
  --ink: #1d2328;
  --charcoal: #29333c;
  --line: #d8c8ae;
  --text: #1d2328;
  --muted: #506053;
  --faint: #8a7d6b;
  --red: #8b2635;
  --red-2: #a83a49;
  --brass: #a9792b;
  --sage: #506553;
  --panel: #fbf6ed;
  --panel-2: #eadbc4;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(251, 246, 237, .96), rgba(244, 234, 219, .92) 55%, rgba(234, 219, 196, .96)),
    linear-gradient(90deg, rgba(60, 53, 42, .055) 1px, transparent 1px),
    linear-gradient(rgba(60, 53, 42, .045) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 56px 56px, 56px 56px;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: .5rem .75rem;
  background: var(--red);
  color: var(--paper);
  border-radius: .5rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 2px solid rgba(60,53,42,.22);
  background: rgba(251, 246, 237, .9);
  backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 64px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(60,53,42,.58);
  border-radius: .55rem;
  display: grid;
  place-items: center;
  color: var(--red);
  background: linear-gradient(135deg, var(--cream), rgba(251,246,237,.9));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.52);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: .92rem;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.hero {
  min-height: min(700px, calc(100vh - 64px));
  display: grid;
  align-content: center;
  padding: 6.2rem 0 4rem;
}
.eyebrow {
  color: var(--red);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin: 0 0 .9rem;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5.15rem);
  background: linear-gradient(135deg, var(--ink) 20%, var(--charcoal) 62%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
}
h3 {
  margin: 0 0 .55rem;
  font-size: 1.13rem;
}
p { margin: 0 0 1rem; }
.lead {
  max-width: 760px;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.hero-actions, .actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .72rem 1rem;
  border-radius: .72rem;
  border: 1px solid rgba(60,53,42,.28);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  background: rgba(251,246,237,.72);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button.primary {
  color: #fffaf1;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  border-color: rgba(139,38,53,.72);
  box-shadow: 0 0 0 1px rgba(139,38,53,.12), 0 18px 42px rgba(139,38,53,.18);
}
.button:hover { transform: translateY(-1px); border-color: rgba(139,38,53,.42); box-shadow: 0 16px 34px rgba(60,53,42,.16), 0 0 24px rgba(139,38,53,.1); }

.section { padding: 4.2rem 0; }
.section.tight { padding: 2.7rem 0; }
.hero.wrap, .section.wrap {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  padding: 1.25rem;
  border: 1px solid rgba(60,53,42,.18);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(251,246,237,.9), rgba(234,219,196,.42));
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(139,38,53,.32);
  background:
    linear-gradient(180deg, rgba(251,246,237,.98), rgba(234,219,196,.5)),
    linear-gradient(135deg, rgba(139,38,53,.08), rgba(169,121,43,.08));
}
.card strong, .metric strong { color: var(--text); }
.card p, .muted, li { color: var(--muted); }
.kicker {
  margin-bottom: .45rem;
  color: var(--red);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.5rem;
}
.metric {
  padding: 1rem;
  border: 1px solid rgba(139,38,53,.18);
  border-radius: .9rem;
  background: linear-gradient(180deg, rgba(251,246,237,.88), rgba(234,219,196,.58));
}
.metric .num {
  display: block;
  color: var(--red);
  font-size: 1.65rem;
  font-weight: 800;
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(60,53,42,.18);
  border-radius: .9rem;
  overflow: hidden;
}
th, td {
  padding: .85rem;
  border-bottom: 1px solid rgba(60,53,42,.13);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--text);
  background: linear-gradient(90deg, rgba(139,38,53,.12), rgba(169,121,43,.1));
  font-size: .82rem;
}
td { color: var(--muted); }
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.badge {
  display: inline-flex;
  padding: .18rem .5rem;
  border: 1px solid rgba(139,38,53,.22);
  border-radius: 999px;
  color: var(--red);
  background: rgba(139,38,53,.06);
  font-size: .78rem;
}
.badge.lane {
  color: var(--charcoal);
  border-color: rgba(41,51,60,.28);
  background: rgba(80,101,83,.12);
}
.lane-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.3rem 0;
}
.lane-card {
  display: grid;
  gap: .45rem;
  text-align: left;
  width: 100%;
  min-height: 170px;
  padding: 1rem;
  border: 1px solid rgba(60,53,42,.18);
  border-radius: .9rem;
  color: var(--text);
  background: linear-gradient(180deg, rgba(251,246,237,.92), rgba(234,219,196,.48));
  font: inherit;
  cursor: pointer;
}
.lane-card:hover,
.lane-card.active {
  border-color: rgba(139,38,53,.42);
  box-shadow: 0 16px 34px rgba(60,53,42,.12);
}
.lane-card strong {
  line-height: 1.15;
}
.lane-card span:not(.lane-count) {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.4;
}
.lane-count {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: .7rem;
  color: #fffaf1;
  background: var(--red);
  font-weight: 800;
}
.lane-filter-row {
  display: flex;
  margin-top: 1rem;
}
.badge.ok {
  color: var(--sage);
  border-color: rgba(80,101,83,.28);
  background: rgba(80,101,83,.08);
}
.badge.warn {
  color: var(--brass);
  border-color: rgba(169,121,43,.35);
  background: rgba(169,121,43,.1);
}
.small-note {
  margin-top: .9rem;
  font-size: .92rem;
}
.article {
  max-width: 820px;
}
.article h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.article h2 { margin-top: 2.2rem; }
.article ul { padding-left: 1.2rem; }
.article li { margin-bottom: .55rem; }
.source-list a, .article a, td a { color: var(--red); }
.notice {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--red);
  border-radius: .7rem;
  background: rgba(139,38,53,.06);
  color: var(--muted);
}
.form-box {
  display: grid;
  gap: .7rem;
  max-width: 560px;
  margin-top: 1rem;
}
label {
  display: grid;
  gap: .35rem;
  color: var(--text);
  font-weight: 700;
  font-size: .92rem;
}
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(60,53,42,.22);
  border-radius: .65rem;
  padding: .8rem .9rem;
  background: rgba(251,246,237,.8);
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: rgba(139,38,53,.5);
  box-shadow: 0 0 0 3px rgba(139,38,53,.12);
}
select option { color: var(--ink); }
.optional, .form-note {
  color: var(--muted);
  font-weight: 500;
  font-size: .82rem;
}
.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
button {
  cursor: pointer;
  border: 0;
}
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(60,53,42,.16);
  padding: 2rem 0;
  color: var(--faint);
  font-size: .9rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: .75rem;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 780px) {
  .nav-inner { align-items: flex-start; flex-direction: column; padding: .9rem 1rem; }
  .nav-links { width: 100%; overflow-x: auto; white-space: nowrap; gap: .75rem; padding-bottom: .15rem; }
  main, .wrap, .hero.wrap, .section.wrap { max-width: 100vw; }
  .wrap { width: min(100%, 390px); max-width: 390px; margin-left: 0; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
  .hero { min-height: auto; padding-top: 4rem; padding-bottom: 2.4rem; }
  .hero.wrap, .section.wrap { padding-left: 1rem; padding-right: 1rem; }
  h1 { max-width: 22rem; font-size: 1.75rem; overflow-wrap: anywhere; }
  h2 { max-width: 22rem; font-size: 1.45rem; }
  h3, p, li { max-width: 22rem; overflow-wrap: anywhere; }
  .lead { font-size: 1rem; }
  .hero-actions, .actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .grid, .grid.two, .metrics, .lane-grid { grid-template-columns: 1fr; }
  .lane-card { min-height: auto; }
  .section { padding: 3rem 0; }
}
