/* ============================================================
   Jeffco STR Brief — buyer-facing one-pager
   Palette: sandstone/rust, evergreen, warm cream, deep slate
   ============================================================ */

:root {
  --cream:        #F4EDE0;
  --cream-2:      #EFE6D3;
  --paper:        #FBF7EE;
  --rust:         #A8502E;
  --rust-deep:    #7A3A1F;
  --rust-tint:    #E9C9B4;
  --evergreen:    #2F4A3A;
  --evergreen-2:  #1F3328;
  --slate:        #1F2A33;
  --slate-2:      #2C3A45;
  --ink:          #1A1611;
  --muted:        #6B6256;
  --line:         #D6CDBB;
  --accent-soft:  #F6E8D9;
  --warn:         #B05A22;

  --radius:       14px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 0 rgba(31,42,51,0.04), 0 2px 6px rgba(31,42,51,0.05);
  --shadow-md:    0 6px 24px -8px rgba(31,42,51,0.18), 0 2px 8px rgba(31,42,51,0.06);

  --font-sans: "Satoshi", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Gambarino", "Satoshi", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--rust-deep); text-decoration: none; }
a:hover { color: var(--rust); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 8px 14px; border-radius: 6px; z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

/* Topographic background */
.topo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--rust);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
main, header, footer { position: relative; z-index: 1; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 36px; }
}

/* ======================== NAV ======================== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(244, 237, 224, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 38px; height: 38px;
  color: var(--rust);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links {
  display: none;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--rust-deep); }
@media (min-width: 880px) {
  .nav-links { display: flex; }
}

/* ======================== HERO ======================== */
.hero {
  padding: 72px 0 64px;
  position: relative;
}
@media (min-width: 768px) {
  .hero { padding: 110px 0 96px; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--rust-tint);
  color: var(--rust-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--rust);
  border-radius: 50%;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 22px 0 22px;
  color: var(--ink);
  max-width: 16ch;
}
.hero-title em {
  font-style: italic;
  color: var(--rust-deep);
  font-family: var(--font-display);
}
.hero-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--slate);
  max-width: 64ch;
  line-height: 1.6;
}
.hero-lede strong { color: var(--ink); font-weight: 700; }
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--rust-deep); color: var(--cream); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.hero-kpis {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) {
  .hero-kpis { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}
.kpi-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}
.kpi-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.01em;
}
.kpi-label sup a { color: var(--rust-deep); margin-left: 3px; font-weight: 600; }

/* ======================== SECTIONS ======================== */
.section {
  padding: 84px 0;
  position: relative;
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
}
.section-tinted {
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
  border-block: 1px solid var(--line);
}
.section-deep {
  background: var(--evergreen-2);
  color: var(--cream);
}
.section-deep .eyebrow { color: var(--rust-tint); }
.section-deep h2 { color: var(--cream); }
.section-deep .section-sub { color: rgba(244,237,224,0.75); }

.section-foot {
  padding: 60px 0 40px;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
}

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.invert { color: var(--cream); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust-deep);
  margin-bottom: 14px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.section-sub {
  color: var(--slate);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  margin: 0;
}
.section-sub strong { color: var(--ink); }

/* ======================== CORRIDOR MAP ======================== */
.map-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  overflow: hidden;
}
.map {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background:
    radial-gradient(60% 80% at 18% 50%, rgba(168,80,46,0.10) 0%, rgba(244,237,224,0) 75%),
    radial-gradient(40% 60% at 82% 40%, rgba(31,42,51,0.07) 0%, rgba(244,237,224,0) 70%),
    var(--cream);
}
.pin-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  fill: var(--ink);
  letter-spacing: 0.01em;
}
.pin-sub {
  font-family: var(--font-sans);
  font-size: 10.5px;
  fill: var(--muted);
}
.route-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: var(--rust-deep);
  text-transform: uppercase;
}
.compass {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 12px 6px 4px;
  font-size: 12.5px;
  color: var(--slate);
}
.map-legend i {
  display: inline-block; width: 22px; height: 8px; vertical-align: middle;
  margin-right: 8px; border-radius: 2px;
}
.lg-route   { background: var(--rust); }
.lg-target  { background: repeating-linear-gradient(90deg, var(--evergreen) 0 5px, transparent 5px 10px); }
.lg-anchor  { background: var(--slate); border-radius: 50% !important; width: 12px; height: 12px; }

/* ======================== CARD GRIDS ======================== */
.cards { display: grid; gap: 16px; margin-top: 32px; }
.cards.three { grid-template-columns: 1fr; }
.cards.four  { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .cards.four  { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 1000px) {
  .cards.four  { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--rust-tint);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.6;
}
.card p sup a { color: var(--rust-deep); font-weight: 700; }

.card.pop { padding-top: 28px; }
.card-num {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--rust);
  opacity: 0.8;
}

/* ======================== RULES GRID ======================== */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px)  { .rules-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1080px) { .rules-grid { grid-template-columns: repeat(3, 1fr); } }

.rule {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.rule:hover {
  border-color: var(--rust-tint);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.rule-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--evergreen);
  background: rgba(47, 74, 58, 0.08);
  border: 1px solid rgba(47, 74, 58, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.rule h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.rule p {
  font-size: 14.5px;
  color: var(--slate);
  margin: 0 0 12px;
  line-height: 1.6;
}
.rule .src {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: auto;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.rule .src:hover { color: var(--rust-deep); }
.rule.rule-warn .rule-tag {
  color: var(--warn);
  background: rgba(176, 90, 34, 0.08);
  border-color: rgba(176, 90, 34, 0.25);
}
.pill-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}
.pill-list li {
  font-size: 12.5px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--slate);
}

/* ======================== CHECKLIST ======================== */
.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 720px)  { .checklist { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 1080px) { .checklist { grid-template-columns: repeat(3, 1fr); } }

.check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(244, 237, 224, 0.06);
  border: 1px solid rgba(244, 237, 224, 0.18);
  border-radius: 12px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  text-align: left;
  color: var(--cream);
  font: inherit;
  width: 100%;
}
.check:hover {
  background: rgba(244, 237, 224, 0.10);
  border-color: rgba(244, 237, 224, 0.32);
}
.check[aria-pressed="true"] {
  background: rgba(168, 80, 46, 0.18);
  border-color: var(--rust);
}
.check-box {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(244, 237, 224, 0.5);
  display: grid; place-items: center;
  margin-top: 2px;
  transition: background 150ms ease, border-color 150ms ease;
}
.check[aria-pressed="true"] .check-box {
  background: var(--rust);
  border-color: var(--rust);
}
.check-box svg {
  width: 14px; height: 14px; color: var(--cream); opacity: 0;
  transition: opacity 120ms ease;
}
.check[aria-pressed="true"] .check-box svg { opacity: 1; }
.check-text { display: flex; flex-direction: column; gap: 2px; }
.check-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--cream);
  letter-spacing: -0.005em;
}
.check-sub {
  font-size: 12.5px;
  color: rgba(244, 237, 224, 0.65);
  line-height: 1.5;
}

.checklist-progress {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.bar {
  flex: 1;
  height: 8px;
  background: rgba(244, 237, 224, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rust), #d97a4f);
  transition: width 280ms cubic-bezier(.2,.8,.2,1);
}
.bar-label {
  font-size: 12.5px;
  color: rgba(244, 237, 224, 0.8);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ======================== SCRIPT ======================== */
.script {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 14px;
  counter-reset: script;
}
.script li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  align-items: start;
}
.script .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--rust);
  letter-spacing: 0;
  line-height: 1.1;
  min-width: 36px;
}
.script p {
  margin: 0;
  font-size: 16px;
  color: var(--slate);
  line-height: 1.6;
  letter-spacing: -0.005em;
}
.script p sup a {
  color: var(--rust-deep);
  font-weight: 700;
  margin-left: 1px;
}

/* ======================== FOOTER GRID ======================== */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 880px) {
  .footer-grid { grid-template-columns: 5fr 6fr; gap: 56px; }
}
.disclaimer h3, .sources h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.disclaimer p {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.62;
  margin: 0 0 10px;
}
.disclaimer .updated {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
}
.sources ol {
  margin: 0; padding-left: 22px;
  display: grid; gap: 8px;
}
.sources li {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
}
.sources a { color: var(--rust-deep); word-break: break-word; border-bottom: 1px solid rgba(122,58,31,0.25); }
.sources a:hover { color: var(--rust); border-bottom-color: var(--rust); }

/* ======================== FOOT ======================== */
.foot {
  background: var(--ink);
  color: rgba(244, 237, 224, 0.7);
  padding: 18px 0;
  font-size: 12.5px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.foot .muted { color: rgba(244, 237, 224, 0.45); }

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

/* ======================== PRINT ======================== */
@media print {
  .topo, .nav, .hero-cta, .checklist-progress { display: none !important; }
  body { background: white; }
  .section { padding: 24px 0; }
  .card, .rule, .kpi { box-shadow: none; }
}
