/* CampFit Atlas — tokens. Verdict colours are data: they appear only on fits/tight/no. */
:root {
  --paper: #e8ebe6;
  --paper-2: #dde2dc;
  --card: #f3f5f1;
  --ink: #23282d;
  --ink-2: #4f5860;
  --rule: #c3cac4;
  --spur: #4e6577;
  --spur-deep: #35495a;
  --road: #b9c2c8;
  --fits: #1f7a5a;
  --tight: #d4891c;
  --tight-ink: #8a5608;
  --no: #b8322a;
  --focus: #35495a;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --measure: 68ch;
  --wrap: 1060px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b2024; --paper-2: #242a30; --card: #222930; --ink: #e8ebe6; --ink-2: #aab3ba; --rule: #3a434b;
    --spur: #8aa3b5; --spur-deep: #b7c9d6; --road: #3b4650;
    --fits: #4fc394; --tight: #f0b04a; --tight-ink: #f0b04a; --no: #f07a70; --focus: #b7c9d6;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.68; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--spur-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--spur); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

h1, h2, h3, .brand, nav, th, .button, .stat, legend, label, summary, .post-card h2, .fac-list, figcaption, .verdict, .crumb, .spec dt {
  font-family: var(--font-display);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 0.98; letter-spacing: 0; font-weight: 700; margin: 0 0 18px; max-width: 20ch; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.1; font-weight: 600; margin: 48px 0 14px; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 600; margin: 26px 0 8px; }
p, ul, ol { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.small { font-size: 0.9rem; color: var(--ink-2); }
.crumb { font-size: 1.05rem; color: var(--ink-2); margin: 0 0 10px; }
.crumb a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }

/* header / footer */
.site-header { border-bottom: 3px solid var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; padding: 16px 16px; }
.brand { font-weight: 700; font-size: 1.5rem; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 14px; border: 2px solid var(--ink); border-radius: 2px; position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 3px; top: 2px; width: 12px; height: 6px; background: var(--fits); }
nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 1.1rem; font-weight: 500; }
nav a { text-decoration: none; color: var(--ink-2); }
nav a:hover, nav a[aria-current] { color: var(--ink); }
main { padding: 36px 16px 64px; }
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; }
.site-footer p { margin-bottom: 8px; max-width: none; }

/* home hero: the diagram is the hero */
.hero-section { display: grid; gap: 24px; padding: 4px 0 12px; }
.hero-section .sample { max-width: none; border-top: 3px solid var(--ink); padding-top: 14px; }
.hero-section .sample p { margin: 0 0 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 18px 0 8px; }

/* buttons */
.button { display: inline-block; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 1.15rem; border: 2px solid var(--ink); cursor: pointer; line-height: 1.2; letter-spacing: 0.01em; }
.button:hover { background: var(--spur-deep); border-color: var(--spur-deep); color: var(--paper); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--paper-2); color: var(--ink); }

/* feature list (home) */
.features { max-width: none; display: grid; gap: 6px 36px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 10px 0 0; padding: 0; list-style: none; }
.features li { border-top: 1px solid var(--rule); padding: 14px 0 10px; }
.features h3 { margin: 0 0 4px; }
.features p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

/* CTA */
.cta { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 18px 0 20px; margin: 40px 0; max-width: var(--measure); }
.cta-title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-bottom: 4px; }
.cta p:last-of-type { margin-bottom: 14px; color: var(--ink-2); }

.callout { background: var(--paper-2); border-left: 4px solid var(--tight); padding: 14px 18px; margin: 22px 0; max-width: var(--measure); }
.callout.info { border-left-color: var(--spur); }
.callout p:last-child { margin-bottom: 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 28px; margin: 22px 0 8px; border-top: 1px solid var(--rule); }
.stat { padding: 12px 0 10px; border-bottom: 1px solid var(--rule); }
.stat .label { font-size: 1rem; color: var(--ink-2); }
.stat .value { font-size: 2rem; font-weight: 700; line-height: 1.05; }

/* verdict band: colour encodes the data */
.verdict { font-size: 1.5rem; font-weight: 700; padding: 10px 14px; border-left: 8px solid var(--rule); background: var(--card); margin: 14px 0; max-width: var(--measure); }
.verdict.fits { border-left-color: var(--fits); }
.verdict.tight { border-left-color: var(--tight); }
.verdict.no { border-left-color: var(--no); }
.verdict small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: var(--ink-2); margin-top: 4px; }

/* the overhead rig diagram */
.rig-figure { margin: 14px 0 26px; max-width: none; }
.rig { width: 100%; height: auto; background: var(--card); border: 1px solid var(--rule); }
.rig-road { fill: var(--road); }
.rig-pad { fill: var(--spur); fill-opacity: 0.22; stroke: var(--spur); stroke-width: 2; stroke-dasharray: 0; }
.rig.v-fits .rig-pad { fill: var(--fits); fill-opacity: 0.18; stroke: var(--fits); }
.rig.v-tight .rig-pad { fill: var(--tight); fill-opacity: 0.2; stroke: var(--tight); }
.rig.v-no .rig-pad { fill: var(--no); fill-opacity: 0.16; stroke: var(--no); }
.rig-tow { fill: var(--ink-2); }
.rig-rv { fill: var(--ink); }
.rig-gap { fill: var(--ink-2); }
.rig-slide { fill: var(--ink); fill-opacity: 0.82; }
.rig-over { fill: var(--no); fill-opacity: 0.35; stroke: var(--no); stroke-width: 2; stroke-dasharray: 6 4; }
.rig-axis { stroke: var(--ink); stroke-width: 2; }
.rig-dim { stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 4 4; }
.rig-tick, .rig-lbl { font-family: var(--font-display); font-size: 20px; fill: var(--ink); font-weight: 600; }
.rig-on { fill: var(--paper); }
@media (max-width: 600px) { .rig-tick, .rig-lbl { font-size: 38px; } .rig-on { font-size: 32px; } }
.rig-figure figcaption { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.95rem; color: var(--ink-2); margin-top: 8px; }
.key { display: inline-block; width: 18px; height: 10px; vertical-align: middle; margin-right: 6px; }
.key-fits { background: var(--fits); }
.key-tight { background: var(--tight); }
.key-no { background: var(--no); }
.key-rv { background: var(--ink); }
.key-tow { background: var(--ink-2); }

/* tables scroll inside their own box */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0 26px; border-top: 3px solid var(--ink); }
table { border-collapse: collapse; width: 100%; min-width: 600px; font-family: var(--font-display); font-size: 1.05rem; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; white-space: nowrap; color: var(--ink-2); }
tbody th { color: var(--ink); }
td.num, th.num { text-align: right; white-space: nowrap; }
.post-body table { display: block; overflow-x: auto; min-width: 0; border-top: 3px solid var(--ink); margin: 18px 0 26px; }
.post-body table th { white-space: normal; }

/* spec sheet (campground pages) */
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 0 20px; max-width: var(--measure); margin: 0 0 24px; border-top: 3px solid var(--ink); }
.spec dt { font-weight: 600; font-size: 1.1rem; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.spec dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.spec .cite { font-size: 0.85rem; color: var(--ink-2); display: block; }
@media (max-width: 520px) { .spec { grid-template-columns: 1fr; } .spec dt { border-bottom: 0; padding-bottom: 0; } }

/* posts */
.post { max-width: 800px; }
.post-header { margin-bottom: 26px; }
.post .hero { margin-top: 18px; border: 1px solid var(--rule); }
.post-body { max-width: var(--measure); }
.post-body h2 { scroll-margin-top: 80px; }
.post-body ul, .post-body ol { padding-left: 1.2em; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote { margin: 16px 0; padding: 4px 18px; border-left: 4px solid var(--spur); color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--rule); padding: 10px 0; max-width: var(--measure); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.2rem; }
.faq summary h3 { display: inline; margin: 0; font-size: inherit; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 8px 0 2px; }
.author-box, .related { margin-top: 44px; padding-top: 18px; border-top: 3px solid var(--ink); max-width: var(--measure); }
.author-box h2, .related h2 { margin-top: 0; font-size: 1.3rem; }
.post-list { list-style: none; padding: 0; margin: 0; max-width: 800px; }
.post-card { border-top: 1px solid var(--rule); padding: 18px 0; }
.post-card:first-child { border-top: 3px solid var(--ink); }
.post-card h2 { margin: 2px 0 6px; font-size: 1.5rem; }
.post-card h2 a { text-decoration: none; color: var(--ink); }
.post-card h2 a:hover { color: var(--spur-deep); }
.post-card .small { margin: 0 0 4px; }

/* facility list */
.fac-list { padding-left: 0; list-style: none; max-width: none; border-top: 3px solid var(--ink); }
.fac-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.fac-list a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.2rem; }
.fac-list a:hover { color: var(--spur-deep); }
.fac-list .small { display: block; font-family: var(--font-body); }
.fac-list .len { font-size: 1.4rem; font-weight: 700; white-space: nowrap; }

/* calculator */
.planner { border-top: 3px solid var(--ink); padding: 18px 0 6px; margin: 20px 0; }
.planner fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; } /* fieldsets default to min-content width and would otherwise force a horizontal scroll */
.planner legend { font-weight: 600; font-size: 1.35rem; margin-bottom: 10px; }
.planner label { display: block; margin-bottom: 8px; font-size: 1.05rem; }
.planner select, .planner input[type="number"], .planner input[type="text"] { font: inherit; font-family: var(--font-display); font-size: 1.15rem; padding: 8px 12px; border: 1px solid var(--rule); border-bottom: 2px solid var(--ink); border-radius: 0; background: var(--card); color: var(--ink); width: 100%; max-width: 260px; margin-top: 4px; }
.planner .row { display: grid; gap: 12px 20px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); max-width: 900px; }
.planner .check { display: flex; align-items: center; gap: 8px; }
.planner .check input { margin: 0; }
.assumptions { font-size: 0.95rem; color: var(--ink-2); max-width: var(--measure); }
.assumptions li { margin-bottom: 4px; }
@media print { .site-header, .site-footer, .cta, .planner .actions, nav { display: none; } body { background: #fff; color: #000; } }
