/* Bahre's Land Company public site — brand direction #13 "Letter with a View, Signpost" (docs/brand/).
   One stylesheet for every page, served as /site.css (CSP style-src 'self': no inline <style>).
   Materials: letter paper, a flat park-poster band, routed-wood trail signs, a trailhead notice board. */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/Literata.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/BarlowCondensed-700.woff2") format("woff2"); }
@font-face { font-family: "Homemade Apple"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/HomemadeApple-400.woff2") format("woff2"); }

:root {
  --paper: #fbf7ee;
  --paper-2: #f3ead6;
  --note: #fffbf2;
  --ink: #2b2620;
  --muted: #574e42;
  --brown: #3a2617;
  --brown-2: #2c1c10;
  --post: #5b3d22;
  --sage: #93a787;
  --pine: #3e573f;
  --mustard: #d99f30;
  --rust: #a2432a;
  --rust-dark: #87361f;
  --cream: #f6ead0;
  --pen: #22386e;
  --rule: #ddd1b8;
  --serif: "Literata", Georgia, serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --measure: 720px;
  /* routed wood: fine horizontal grain over a top-lit board */
  --grain: repeating-linear-gradient(179.4deg, rgba(255, 236, 205, 0.055) 0 1px, transparent 1px 5px, rgba(0, 0, 0, 0.09) 5px 6px, transparent 6px 11px);
  --wood: var(--grain), linear-gradient(180deg, #4a321e 0%, #3a2617 55%, #301f11 100%);
  --wood-rust: var(--grain), linear-gradient(180deg, #ad4b30 0%, #a2432a 55%, #8e3a24 100%);
  --wood-post: repeating-linear-gradient(90.6deg, rgba(255, 236, 205, 0.06) 0 1px, transparent 1px 4px, rgba(0, 0, 0, 0.1) 4px 5px, transparent 5px 9px), linear-gradient(90deg, #4c321c, #5f4025 40%, #4a301b);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.7; text-rendering: optimizeLegibility; }
::selection { background: #ecd59e; color: var(--ink); }
a { color: var(--rust-dark); text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.12em; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 2px; }
.wide { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }
.skip:focus { left: 12px; top: 12px; z-index: 2; background: var(--paper); }

/* ---------- routed-wood arrow signs (.sb): call buttons, signposts, step boards ---------- */
.sb { --tip: 24px; --face: var(--wood); --fill: var(--brown); display: inline-flex; color: var(--cream); font-family: var(--cond); font-weight: 700; font-size: 25px; line-height: 1.1; letter-spacing: 0.03em; text-decoration: none; }
.sb > span { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px calc(var(--tip) + 20px) 6px 20px; background: var(--face); background-color: var(--fill); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); }
/* the routed groove: a thin light line 5px in from the edge, following the arrow */
.sb > span::before, .sb > span::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(0 0, calc(100% - var(--tip) + 5px) 0, 100% 50%, calc(100% - var(--tip) + 5px) 100%, 0 100%); }
.sb > span::before { inset: 5px; background: rgba(255, 238, 210, 0.3); }
.sb > span::after { inset: 6.5px; background: var(--face); background-color: var(--fill); }
.sb.rust { --face: var(--wood-rust); --fill: var(--rust); color: #fff8ea; }
a.sb:hover { --face: var(--grain), linear-gradient(180deg, #3c2716, #2c1c10); }
a.sb.rust:hover { --face: var(--grain), linear-gradient(180deg, #973c24, #7c311c); }
.sb .ico { width: 24px; height: 24px; flex: none; }

/* ---------- header ---------- */
.top { background: var(--paper); border-bottom: 3px solid var(--brown); }
.top-in { display: flex; align-items: center; gap: 14px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; margin-right: auto; min-width: 0; }
.brand svg { width: 60px; height: 60px; flex: none; }
.brand-txt { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-family: var(--cond); font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: 0.01em; }
.brand-tag { font-size: 16px; line-height: 1.2; color: var(--muted); }
.top-call { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.top-note { margin: 0; font-size: 16px; line-height: 1.3; color: var(--muted); }

/* ---------- the park-poster band ---------- */
.view { display: block; width: 100%; }
.view.full { height: clamp(180px, 28vw, 420px); }
.view.slim { height: clamp(120px, 20.8vw, 400px); border-bottom: 3px solid var(--brown); }
.poster-cap { margin: 0; padding: 12px 20px; background: var(--wood); color: var(--cream); font-family: var(--cond); font-weight: 700; font-size: 21px; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; }
.poster-cap > span { white-space: nowrap; }

/* ---------- page column (+ "on this page" rail on wide screens) ---------- */
.page { max-width: calc(var(--measure) + 56px); margin: 0 auto; padding: 0 28px; }
main { padding: 56px 0 40px; }
.slim + .page main { padding-top: 34px; }
.toc-side { display: none; }
@media (min-width: 1180px) {
  .page.has-toc { max-width: 1180px; display: grid; grid-template-columns: 240px minmax(0, var(--measure)); justify-content: center; gap: 0 72px; }
  .toc-side { display: block; padding-top: 112px; }
  .toc-side .toc { position: sticky; top: 24px; }
  .has-toc .toc-inline { display: none; }
}
.toc-title { margin: 0 0 8px; font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--rule); }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 6px 0 6px 16px; font-size: 16px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--rust-dark); text-decoration: underline; }
.toc-inline { margin: 28px 0 8px; border: 2px solid var(--rule); border-radius: 6px; background: var(--note); }
.toc-inline summary { display: flex; align-items: center; min-height: 52px; padding: 0 18px; cursor: pointer; font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; list-style: none; }
.toc-inline .toc ol { border-left: 0; padding: 0 18px 10px; }
.toc-inline .toc a { padding-left: 0; border-top: 1px solid var(--rule); }

/* ---------- type ---------- */
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 24px; text-wrap: balance; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.6vw, 31px); line-height: 1.25; margin: 56px 0 18px; text-wrap: balance; }
h2.sec { scroll-margin-top: 20px; }
/* a painted trail blaze before each section heading */
h2.sec::before { content: ""; display: inline-block; width: 11px; height: 0.82em; margin-right: 14px; background: var(--mustard); border-radius: 1px; vertical-align: -0.04em; }
p { margin: 0 0 20px; }
.lede p, .hello { font-size: 22px; line-height: 1.62; }
.dots { list-style: none; margin: 0 0 26px; padding: 0; }
.dots li { position: relative; padding-left: 34px; margin: 0 0 12px; }
.dots li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 13px; height: 13px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 2px var(--brown); }
@media (min-width: 700px) { .dots.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; } }
dd, .info dd { font-variant-numeric: tabular-nums; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; font-size: 16px; color: var(--muted); margin: -10px 0 6px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 8px; }

.photo { margin: 30px 0 14px; padding: 12px 12px 14px; max-width: 344px; background: #fff; box-shadow: 0 1px 2px rgba(43, 38, 32, 0.18), 0 6px 18px rgba(43, 38, 32, 0.1); transform: rotate(-1.2deg); }
.photo img { display: block; width: 100%; height: auto; }

/* ---------- how it works: three boards nailed to a capped post ---------- */
.steps { position: relative; list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 20px; }
.steps::before { content: ""; position: absolute; left: 26px; top: -26px; bottom: -34px; width: 22px; background: var(--wood-post); clip-path: polygon(0 11px, 50% 0, 100% 11px, 100% 100%, 0 100%); }
.steps li { display: grid; grid-template-columns: minmax(280px, 316px) 1fr; gap: 24px; align-items: center; }
.steps p { margin: 0; }
.steps + h2 { margin-top: 64px; }
.board { --tip: 30px; margin: 0; font-size: 30px; }
.board > span { min-height: 60px; width: 100%; padding-left: 60px; }
.board b { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--mustard); font-weight: 700; }
/* a nail head where the board meets the post */
.board { position: relative; }
.board::before { content: ""; position: absolute; z-index: 1; left: 34px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: #b9945a; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4); }

/* ---------- signposts: links as small arrow boards ---------- */
.where { list-style: none; margin: 10px 0 34px; padding: 0; display: grid; gap: 12px; justify-items: start; }
.where .sb { font-size: 24px; }
/* the homepage P.S.: one small state sign per state, the counties beside it */
.where-states { list-style: none; margin: 12px 0 36px; padding: 0; display: grid; gap: 12px; }
.where-states li { display: grid; grid-template-columns: 240px 1fr; gap: 6px 22px; align-items: center; }
.sb.sm { --tip: 20px; font-size: 21px; }
.sb.sm > span { min-height: 44px; width: 100%; }

/* ---------- a county's facts: a park information sign (no prices, ever) ---------- */
.info { margin: 34px 0; border: 3px solid var(--brown); border-radius: 6px; background: var(--note); overflow: hidden; }
.info h2 { margin: 0; padding: 12px 22px; background: var(--wood); color: var(--cream); font-family: var(--cond); font-weight: 700; font-size: 26px; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); }
.info dl { margin: 0; padding: 6px 22px 0; }
.info dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 19px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; font-weight: 600; text-align: right; }
.info .note { margin: 0; padding: 12px 22px 16px; font-size: 16px; color: var(--muted); line-height: 1.5; }

/* ---------- questions: plain accordions ---------- */
.faq { border-top: 2px solid var(--brown); margin: 6px 0 30px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 60px; padding: 12px 52px 12px 0; cursor: pointer; font-weight: 600; line-height: 1.4; list-style: none; }
.faq summary::-webkit-details-marker, .toc-inline summary::-webkit-details-marker, .sources summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 18px; height: 3px; margin-top: -1.5px; background: var(--rust); border-radius: 2px; transition: transform 0.2s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--rust-dark); }
.faq details p { margin: 0 0 18px; max-width: 64ch; }
.toc-inline summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 3px solid var(--rust); border-bottom: 3px solid var(--rust); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s ease; }
.toc-inline[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
@media (prefers-reduced-motion: reduce) { .faq summary::before, .faq summary::after, .toc-inline summary::after { transition: none; } }

/* ---------- the trailhead notice board ---------- */
.kiosk { margin: 60px 0 48px; }
.kiosk-roof { height: 30px; margin: 0 -14px; background: var(--wood); clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 100%, 0 100%); }
.kiosk-frame { padding: 14px; background: var(--wood); }
.kiosk-paper { position: relative; padding: 34px 34px 28px; background: var(--note); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
/* two thumbtacks */
.kiosk-paper::before, .kiosk-paper::after { content: ""; position: absolute; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #efc46a, var(--mustard) 60%, #a8751b); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.35); }
.kiosk-paper::before { left: 14px; }
.kiosk-paper::after { right: 14px; }
.kiosk h2 { margin: 0 0 16px; font-size: clamp(27px, 2.8vw, 33px); }
.kiosk p:first-of-type { font-size: 22px; font-weight: 600; }
.kiosk .call-row { margin: 26px 0 0; }

.sign { margin-top: 44px; }
.sign p { margin: 0; }
.sign .sig { font-family: "Homemade Apple", cursive; font-size: 30px; color: var(--pen); line-height: 1.8; margin: 10px 0 4px; }
.ps { margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--rule); }

.call-row { margin: 10px 0 14px; }
.sources { margin-top: 44px; font-size: 16px; color: var(--muted); }
.sources summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.sources ol { margin: 4px 0 0; padding-left: 22px; }
.sources li { margin: 0 0 6px; overflow-wrap: anywhere; }
.updated { margin-top: 18px; font-size: 16px; color: var(--muted); }

/* ---------- footer: the dark ridge ---------- */
.foot { margin-top: 40px; color: #e9dcc0; }
.foot-ridge { display: block; width: 100%; height: 48px; }
.foot-body { background: var(--brown); padding: 30px 0 26px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px 48px; }
.foot .brand { color: var(--cream); margin: 0 0 12px; }
.foot .brand svg { width: 48px; height: 48px; }
.foot .brand-name { font-size: 28px; }
.foot p { margin: 0 0 12px; font-size: 17px; line-height: 1.55; max-width: 36ch; }
.foot a { color: var(--cream); }
.foot-phone { font-family: var(--cond); font-weight: 700; font-size: 26px; letter-spacing: 0.02em; text-decoration: none; }
.foot-col h2 { margin: 6px 0 8px; font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mustard); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; line-height: 1.35; }
.foot-col .fw { padding: 6px 0; font-size: 17px; line-height: 1.5; }
.foot-col .fw-st { display: block; font-weight: 600; color: var(--cream); }
.foot-col .fw-st a { min-height: 32px; }
.foot-col .fw > span:last-child a { display: inline; min-height: 0; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(246, 234, 208, 0.18); }
.foot-legal p { margin: 0; font-size: 16px; }
.foot-legal nav { display: flex; gap: 0 24px; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.foot :focus-visible { outline-color: var(--mustard); }

@media (max-width: 900px) {
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .wide, .page { padding-left: 20px; padding-right: 20px; }
  .top-in { flex-wrap: wrap; }
  .brand svg { width: 50px; height: 50px; }
  .brand-name { font-size: 27px; }
  .brand-tag { font-size: 15px; }
  .top-call { width: 100%; align-items: stretch; }
  .top-note { text-align: center; font-size: 15px; }
  .top-call .sb, .call-row .sb { width: 100%; }
  .top-call .sb > span, .call-row .sb > span { width: 100%; justify-content: center; }
  .poster-cap { display: flex; flex-direction: column; font-size: 17px; letter-spacing: 0.08em; padding: 10px 14px; }
  .poster-cap .dot { display: none; }
  main { padding-top: 40px; }
  h2 { margin-top: 46px; }
  .lede p, .hello { font-size: 20px; }
  .steps::before { display: none; }
  .steps li { grid-template-columns: 1fr; gap: 10px; }
  .board { font-size: 27px; }
  .board > span { min-height: 56px; padding-left: 52px; }
  .board b { left: 20px; }
  .board::before { display: none; }
  .where .sb { font-size: 22px; }
  .where-states li { grid-template-columns: 1fr; }
  .sb.sm { justify-self: start; }
  .sb.sm > span { width: auto; min-width: 200px; }
  .info h2 { font-size: 22px; padding: 10px 16px; }
  .info dl { padding: 4px 16px 0; }
  .info dl div { flex-direction: column; gap: 0; }
  .info dd { text-align: left; }
  .info .note { padding: 10px 16px 14px; }
  .kiosk-roof { margin: 0 -8px; height: 24px; }
  .kiosk-frame { padding: 10px; }
  .kiosk-paper { padding: 30px 20px 22px; }
  .kiosk p:first-of-type { font-size: 20px; }
  .foot-in { grid-template-columns: 1fr; }
}
