/* Land Finder: state and county pages. Homestead Ready nature palette. */
:root {
  --bg: #f5efe2; --surface: #fffaf0; --fg: #2b2a24; --muted: #5d5848; --rule: #e0d5bd;
  --accent: #9a4f1f; --accent-ink: #ffffff; --accent-hover: #7d3f17;
  --band: #2f4a32; --band-fg: #f5efe2; --step: #2f4a32; --warn: #9a3b1f;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1d16; --surface: #252a1f; --fg: #ece5d4; --muted: #b5ad99; --rule: #3a3f31;
    --accent: #d9884c; --accent-ink: #1a1d16; --accent-hover: #e9a068;
    --band: #12150f; --band-fg: #ece5d4; --step: #9fbf5e; --warn: #e58a6a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1d16; --surface: #252a1f; --fg: #ece5d4; --muted: #b5ad99; --rule: #3a3f31;
  --accent: #d9884c; --accent-ink: #1a1d16; --accent-hover: #e9a068;
  --band: #12150f; --band-fg: #ece5d4; --step: #9fbf5e; --warn: #e58a6a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.5; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
header { background: var(--band); color: var(--band-fg); }
header .wrap { padding-block: 28px 24px; position: relative; }
header a { color: inherit; }
.crumb { font-size: 15px; opacity: .85; margin: 0 0 6px; padding-right: 110px; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 7vw, 52px); line-height: .95; text-transform: uppercase; margin: 0 0 10px; text-wrap: balance; }
.lede { font-size: 18px; margin: 0; max-width: 680px; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; text-transform: uppercase; margin: 0 0 10px; color: var(--step); }
.theme { position: absolute; top: 24px; right: max(16px, env(safe-area-inset-right, 0px)); background: transparent; color: var(--band-fg); border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.card { background: var(--surface); border: 1px solid var(--rule); padding: 18px 20px; margin-bottom: 16px; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.buttons .btn { flex: 1 1 240px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 17px; text-decoration: none; padding: 12px 16px; border-radius: 6px; border: 2px solid transparent; line-height: 1.15; }
.btn:hover { background: var(--accent-hover); }
.btn small { display: block; font-weight: 400; font-size: 12.5px; opacity: .85; margin-top: 2px; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--fg); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--step); outline-offset: 2px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 22px; }
.facts li { border-top: 1px solid var(--rule); padding-top: 6px; }
.facts .k { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.facts .v { font-weight: 600; }
.src { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.note { font-size: 14.5px; color: var(--muted); margin: 12px 0 0; }
a { color: var(--accent); }
.near { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; }
.statelist { line-height: 1.9; margin: 0; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
footer { color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--rule); margin-top: 20px; }
footer .wrap { padding-block: 20px; }
footer a { color: var(--accent); }
.hr-family { color: var(--muted); }
.hr-family a { color: var(--accent); }
@media (max-width: 640px) { .buttons .btn { flex-basis: 100%; } th:nth-child(5), td:nth-child(5) { display: none; } }
