/* Layout: forest header band with topo lines, plain editorial body (route list rows, prose, catalog kit tables), forest footer */
:root{
  --bg:#DEDBCE; --surface:#F3F1E9; --ink:#22251C; --muted:#585B4F; --line:#C3BFAD;
  --forest:#2E3A29; --forest-ink:#ECE9DD;
  --sign:#F2C200; --sign-ink:#1E2117; --blaze:#B8471B; --ok:#3D6A34;
  --display:"Barlow Condensed","Arial Narrow",Arial,sans-serif;
  --body:"Barlow",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#161913; --surface:#20241B; --ink:#E8E5D8; --muted:#A2A391; --line:#3A3F32;
  --forest:#0F130D; --forest-ink:#E8E5D8;
  --sign:#E5B700; --sign-ink:#151812; --blaze:#E5763F; --ok:#8DB872; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#161913; --surface:#20241B; --ink:#E8E5D8; --muted:#A2A391; --line:#3A3F32;
  --forest:#0F130D; --forest-ink:#E8E5D8;
  --sign:#E5B700; --sign-ink:#151812; --blaze:#E5763F; --ok:#8DB872; color-scheme:dark}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.6}
a{color:inherit;text-underline-offset:3px}
:focus-visible{outline:2px solid var(--sign);outline-offset:3px}
.inner{max-width:1100px;margin:0 auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}

/* Header and footer bands */
.band{background-color:var(--forest);color:var(--forest-ink);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='220' viewBox='0 0 420 220'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M-10 40C60 10 110 60 190 35S330 0 430 30'/%3E%3Cpath d='M-10 62C70 34 120 84 196 58S334 26 430 54'/%3E%3Cpath d='M-10 86C76 60 128 108 204 82S338 52 430 80'/%3E%3Cpath d='M-10 112C84 88 136 132 212 108S342 80 430 108'/%3E%3Cpath d='M-10 140C90 118 144 158 220 136S346 110 430 138'/%3E%3Cpath d='M-10 170C96 150 150 186 228 166S350 142 430 170'/%3E%3Cpath d='M-10 200C100 182 156 214 236 196S354 176 430 202'/%3E%3Cellipse cx='300' cy='92' rx='44' ry='20'/%3E%3Cellipse cx='300' cy='92' rx='24' ry='10'/%3E%3Cellipse cx='92' cy='150' rx='34' ry='14'/%3E%3C/g%3E%3C/svg%3E");
  background-size:420px 220px}
.head-row{display:flex;align-items:center;justify-content:space-between;gap:12px 28px;flex-wrap:wrap;padding-block:16px}
.sign{display:inline-block;background:var(--sign);color:var(--sign-ink);font-family:var(--display);font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  font-size:24px;line-height:1;padding:9px 30px 9px 14px;text-decoration:none;clip-path:polygon(0 0,calc(100% - 16px) 0,100% 50%,calc(100% - 16px) 100%,0 100%)}
nav.top{display:flex;flex-wrap:wrap;gap:2px 22px;font-family:var(--display);font-weight:600;font-size:18px;letter-spacing:.04em}
nav.top a{text-decoration:none;color:var(--forest-ink);opacity:.8;padding:4px 0;border-bottom:2px solid transparent}
nav.top a:hover{opacity:1}
nav.top a[aria-current="page"]{opacity:1;border-bottom-color:var(--sign)}
.hero{padding-block:34px 44px}
.hero h1{max-width:18ch}
.hero p{color:var(--forest-ink);opacity:.88;font-size:clamp(18px,1.6vw,20px);margin:14px 0 22px;max-width:56ch}

/* Type */
h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.08;text-wrap:balance;margin:0;letter-spacing:.005em}
h1{font-size:clamp(36px,5.2vw,60px)}
h2{font-size:clamp(26px,3vw,34px)}
h3{font-size:22px}
.lede{font-size:clamp(18px,1.6vw,20px);color:var(--muted);max-width:60ch;margin:10px 0 0}
.meta{color:var(--muted);font-size:15px}

/* Links and the one button */
.btn{display:inline-block;background:var(--sign);color:var(--sign-ink);border-radius:6px;padding:10px 18px;font-weight:600;text-decoration:none;font-size:16px;border:0;cursor:pointer;font-family:var(--body)}
.btn:hover{filter:brightness(1.05)}
.more{font-weight:600}

/* Sections */
main{display:block}
.sec{padding-top:48px}
.sec>h2{margin-bottom:6px}
.sec>p{max-width:62ch;margin:8px 0 0}
.intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 48px;padding-top:44px}
@media (max-width:760px){.intro{grid-template-columns:1fr}}
.intro p{margin:0 0 12px}

/* Route list */
.routes{list-style:none;margin:14px 0 0;padding:0;border-top:2px solid var(--ink)}
.routes li{border-bottom:1px solid var(--line)}
.routes a{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto;gap:4px 24px;align-items:baseline;padding:16px 2px;text-decoration:none}
.routes a:hover .rname{text-decoration:underline;text-underline-offset:4px}
.rname{font-family:var(--display);font-weight:700;font-size:23px;line-height:1.15}
.rdesc{grid-column:1/2;color:var(--muted);font-size:15.5px}
.rfacts{grid-column:2/3;grid-row:1/3;color:var(--muted);font-size:15px;font-variant-numeric:tabular-nums}
.rfacts span{display:block}
@media (max-width:640px){.routes a{grid-template-columns:1fr}.rfacts{grid-column:auto;grid-row:auto}.rfacts span{display:inline}.rfacts span+span::before{content:", "}}

/* Article and guide pages */
.crumb{font-size:14.5px;color:var(--muted);padding-top:28px}
.crumb a{color:var(--muted)}
.gh{padding-top:10px}
.stats{display:flex;flex-wrap:wrap;gap:10px 36px;margin:22px 0 0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.stats div{min-width:0}
.stats dt{font-size:13.5px;color:var(--muted)}
.stats dd{margin:0;font-weight:600;font-size:17px;font-variant-numeric:tabular-nums}
.body{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:56px;align-items:start;padding-top:28px}
@media (max-width:860px){.body{grid-template-columns:1fr;gap:32px}}
.prose{max-width:68ch;min-width:0}
.prose p{margin:0 0 16px}
.prose h2{margin:34px 0 10px}
aside.side{min-width:0}
aside.side h3{font-size:20px;margin-bottom:4px}
.tips{margin:0 0 26px;padding:0}
.tips dt{font-weight:600;margin-top:12px}
.tips dd{margin:2px 0 0;color:var(--muted);font-size:15.5px}
.side ul{list-style:none;margin:6px 0 0;padding:0}
.side li{margin:4px 0}

/* Kit lists */
.cathead{display:flex;align-items:center;gap:8px;margin:24px 0 2px}
.cathead span{font-family:var(--display);font-weight:700;font-size:19px;white-space:nowrap}
.cathead i{flex:1;border-bottom:2px dotted var(--line);transform:translateY(-3px);min-width:12px}
.cathead em{font-style:normal;font-family:var(--mono);font-size:13.5px;color:var(--muted);white-space:nowrap}
.kit{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:16px}
td{padding:8px 0;border-top:1px solid var(--line);vertical-align:top}
td.g{text-align:right;font-family:var(--mono);font-size:14px;white-space:nowrap;color:var(--muted);padding-left:14px;font-variant-numeric:tabular-nums}
td small{display:block;color:var(--muted);font-size:14px}
.tag{font-size:12px;border:1px solid var(--blaze);color:var(--blaze);border-radius:3px;padding:0 5px;margin-left:7px;vertical-align:1px;white-space:nowrap}
.total{display:flex;justify-content:space-between;gap:12px;font-family:var(--mono);font-size:14.5px;border-top:2px solid var(--ink);padding-top:9px;margin-top:6px;font-variant-numeric:tabular-nums}
.fine{font-size:14.5px;color:var(--muted)}
.tiers{margin:14px 0 18px;border-top:1px solid var(--line)}
.tier{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}
.tier b{font-family:var(--mono);font-weight:500}

/* Forms and placeholders */
.form{max-width:560px;display:flex;flex-direction:column;gap:4px;margin-top:24px}
.form label{font-weight:600;font-size:15px;margin-top:10px}
.form input,.form textarea{font:inherit;color:inherit;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.form .btn{align-self:flex-start;margin-top:16px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.fmsg{margin:8px 0 0;font-size:15px;color:var(--muted)}
p.ph{border:1.5px dashed var(--blaze);border-radius:6px;padding:12px 14px;color:var(--muted);font-style:italic}
span.ph{background:color-mix(in srgb,var(--blaze) 16%,transparent);border-radius:3px;padding:0 4px}

/* Footer */
.site-foot{margin-top:72px}
.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px 40px;padding-block:28px;font-size:15px}
.foot nav{display:flex;flex-wrap:wrap;gap:6px 22px}
.foot a{color:var(--forest-ink);opacity:.86}
.foot p{margin:0;opacity:.75;flex-basis:100%}

@media (min-width:1100px){
  body{font-size:18px}
  .sign{font-size:27px;padding:10px 33px 10px 15px}
  nav.top{font-size:19.5px;gap:4px 28px}
  .hero{padding-block:52px 60px}
  .body{grid-template-columns:minmax(0,1fr) 300px;gap:64px}
  table{font-size:17px}
}

/* Photos */
figure{margin:26px 0;min-width:0}
figure img{display:block;width:100%;height:auto;border-radius:4px;background:var(--line)}
figcaption{font-size:14.5px;color:var(--muted);margin-top:6px}
figure.lead{margin:24px 0 0}
figure.lead img{aspect-ratio:16/9;object-fit:cover;max-height:560px}
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:26px 0}
.pair figure{margin:0}
@media (max-width:480px){.pair{grid-template-columns:1fr}}
.routes a{grid-template-columns:180px minmax(0,1.5fr) minmax(0,1fr)}
.rthumb{grid-row:1/3;width:180px;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:4px;align-self:center}
.rdesc{grid-column:2/3}
.rfacts{grid-column:3/4}
@media (max-width:640px){.routes a{grid-template-columns:1fr}.rthumb{grid-row:auto;width:100%}.rdesc,.rfacts{grid-column:auto}}
.tag.worn{border-color:var(--line);color:var(--muted)}
.side h3+p{margin-top:4px}

/* Article lists and Markdown content */
.routes.articles a{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
.routes.articles .rdesc{grid-column:1/2}
.routes.articles .rfacts{grid-column:2/3}
@media (max-width:640px){.routes.articles a{grid-template-columns:1fr}.routes.articles .rdesc,.routes.articles .rfacts{grid-column:auto}}
.prose ul,.prose ol{margin:0 0 16px;padding-left:22px}
.prose li{margin:4px 0}
.prose img{display:block;width:100%;height:auto;border-radius:4px;margin:22px 0 6px}
.prose blockquote{margin:20px 0;padding-left:16px;border-left:3px solid var(--line);color:var(--muted)}
.prose table{margin:14px 0 20px;font-size:16px}
.prose th{text-align:left;font-weight:600;padding:8px 12px 8px 0;border-bottom:2px solid var(--ink)}
.prose td{padding:9px 12px 9px 0}
.prose td:first-child{font-variant-numeric:tabular-nums;white-space:nowrap}
