:root {
  --bark: #6F4930;
  --bark-deep: #4E3321;
  --green: #56903A;
  --forest: #213A1B;
  --rust: #C56C39;
  --sky: #BAE5F9;
  --lake: #2F6E9A;

  --bg: #FAF6EE;
  --surface: #FFFFFF;
  --surface-2: #F1EADC;
  --text: #22261E;
  --muted: #5E6356;
  --line: #E2D9C7;
  --accent: var(--bark);
  --link: #2F6E9A;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14180F;
    --surface: #1D2317;
    --surface-2: #232B1C;
    --text: #EDEAE0;
    --muted: #A6AA9A;
    --line: #333C2A;
    --accent: #C08A5A;
    --link: #8CC4E0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  --bg: #14180F;
  --surface: #1D2317;
  --surface-2: #232B1C;
  --text: #EDEAE0;
  --muted: #A6AA9A;
  --line: #333C2A;
  --accent: #C08A5A;
  --link: #8CC4E0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Top bar: a trailhead sign band */
.topbar { background: var(--bark-deep); color: #F6EEDF; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: "Fraunces", Georgia, serif; font-weight: 650; font-size: 1.15rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.topbar nav { display: flex; gap: 20px; font-size: .95rem; }
.topbar nav a { color: #E9DCC4; text-decoration: none; }
.topbar nav a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 520px) { .topbar nav .optional { display: none; } }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1.1fr 1fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; line-height: 1.2;
  border: 1px solid #333;
}
.badge small { display: block; font-weight: 400; font-size: .72rem; opacity: .8; }
.badge svg { width: 24px; height: 24px; fill: currentColor; }
.cta .note { color: var(--muted); font-size: .92rem; }
.map-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 20px; box-shadow: var(--shadow); position: relative;
}
.map-card img { width: 100%; max-height: 560px; object-fit: contain; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .82rem; color: var(--muted); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }

/* Stats strip */
.stats { background: var(--forest); color: #EEF2E6; }
.stats .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 760px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-family: "Fraunces", Georgia, serif; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.stat span { font-size: .9rem; color: #BFD0B2; }

section.block { padding: 72px 0; }
section.block.alt { background: var(--surface-2); }
.section-head { max-width: 44em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Feature cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 14px; color: #fff;
}
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-green { background: var(--green); } .i-rust { background: var(--rust); } .i-bark { background: var(--bark); }
.i-lake { background: var(--lake); } .i-forest { background: var(--forest); } .i-heather { background: #7A5C99; }

/* How it counts */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { position: relative; padding-left: 52px; margin-bottom: 24px; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--rust); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.steps h3 { margin-bottom: .25em; font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; }

table.breakdown { width: 100%; border-collapse: collapse; font-size: .98rem; }
.breakdown th, .breakdown td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.breakdown th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.breakdown td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.breakdown tfoot td { border-bottom: 0; font-weight: 700; }
.breakdown .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; }

/* Reston facts */
.facts { display: grid; gap: 20px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { border-left: 4px solid var(--rust); padding: 4px 0 4px 20px; }
.fact h3 { margin-bottom: .3em; }
.fact p { color: var(--muted); margin: 0; }
.places { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.chip b { font-variant-numeric: tabular-nums; margin-right: 4px; }

/* Watch callout */
.callout {
  background: linear-gradient(135deg, var(--forest), #2E4A24);
  color: #EEF2E6; border-radius: 24px; padding: clamp(28px, 5vw, 48px);
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 880px) { .callout { grid-template-columns: 1.2fr 1fr; } }
.callout h2 { color: #fff; }
.callout p, .callout li { color: #CFDCC4; }
.callout ul { margin: 0; padding-left: 1.2em; }
.callout li { margin-bottom: .5em; }
.watch {
  width: min(220px, 70%); aspect-ratio: 41 / 50; margin: 0 auto;
  background: #0A0D08; border-radius: 44px; border: 6px solid #3A3F36;
  padding: 18px; display: grid; place-items: center; text-align: center; color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}
.watch .ring { width: 110px; height: 110px; }
.watch small { display: block; color: #A7B69C; font-size: .75rem; }

/* Prose pages */
.prose { max-width: 740px; padding: 56px 0 80px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: .92rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: .8em 0 0; }

footer.site { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: grid; gap: 16px; }
@media (min-width: 760px) { footer.site .wrap { grid-template-columns: 1fr auto; } }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site p { margin: 0; }

/* Screenshot gallery */
section.block.shots { padding: 48px 0; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
}
.gallery figure { margin: 0; scroll-snap-align: start; text-align: center; }
.gallery img { width: 100%; height: auto; filter: drop-shadow(0 12px 24px rgba(40, 25, 10, .18)); }
.gallery figcaption { margin-top: 12px; font-weight: 600; font-size: .95rem; }
@media (max-width: 720px) { .gallery { grid-auto-columns: 62%; } }
