/* Dry Basement Columbus. Palette: limestone, slate, a dry ochre and a "go" green for calls. */
:root {
  --bg: #f4f1ea; --surface: #ffffff; --sunk: #ebe6db; --text: #1b2a33; --muted: #566570; --line: #d9d2c3;
  --brand: #20404f; --brand-ink: #f4f1ea; --ochre: #b8741a; --water: #2f78a3; --soil: #c9b996;
  --accent: #23784a; --accent-hover: #1b603b; --accent-text: #ffffff; --link: #1c5f86;
  --head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11181c; --surface: #182227; --sunk: #0d1316; --text: #e7e4dc; --muted: #a3afb6; --line: #2c3a41;
    --brand: #0b1215; --brand-ink: #e7e4dc; --ochre: #e0a24a; --water: #6fb3dc; --soil: #4a4233;
    --accent: #3fae73; --accent-hover: #55c287; --accent-text: #08170f; --link: #8cc8e8; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.6 var(--body); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }

/* Header */
.top { background: var(--brand); color: var(--brand-ink); border-bottom: 4px solid var(--ochre); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; color: inherit; text-decoration: none; font: 700 1.15rem/1 var(--head); letter-spacing: -.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand span { opacity: .7; font-weight: 500; }
.top ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; padding: 0; }
.top li a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; font-size: .95rem; opacity: .85; border-bottom: 2px solid transparent; }
.top li a:hover { opacity: 1; }
.top li a[aria-current] { opacity: 1; font-weight: 600; border-bottom-color: var(--ochre); }

/* Type */
main.wrap { padding-top: 32px; padding-bottom: 56px; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.005em; color: var(--text); }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.08; font-weight: 700; margin: 0 0 14px; }
h2 { font-size: 1.45rem; line-height: 1.25; font-weight: 700; margin: 40px 0 10px; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--muted); margin: 0 0 8px; max-width: 38em; }
.meta { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.meta a { color: inherit; }
ul li, ol li { margin-bottom: 8px; }
strong { font-weight: 650; }

/* Home hero */
.hero { display: grid; gap: 8px 32px; align-items: center; margin-bottom: 8px; }
.hero svg { width: 100%; max-width: 340px; height: auto; justify-self: center; }
@media (min-width: 720px) { .hero { grid-template-columns: 1.25fr 1fr; } }
.x-soil { fill: var(--soil); } .x-grass { fill: var(--accent); } .x-wall { fill: var(--surface); stroke: var(--text); }
.x-room { fill: var(--sunk); } .x-water { fill: var(--water); } .x-flow { fill: none; stroke: var(--water); }
.x-tile { fill: var(--surface); stroke: var(--water); } .x-gravel { fill: var(--muted); opacity: .5; } .x-label { fill: var(--muted); font: 600 11px var(--body); }
.x-pump { fill: var(--ochre); }

/* Home guide list */
.guides { list-style: none; margin: 28px 0; padding: 0; border-top: 1px solid var(--line); }
.guides li { margin: 0; border-bottom: 1px solid var(--line); }
.guides a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 16px 4px; color: var(--text); text-decoration: none; }
.guides a::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); transition: transform .15s; }
.guides a:hover { background: var(--surface); }
.guides a:hover::after { transform: translateX(4px); color: var(--text); }
.guides b { font: 700 1.15rem/1.3 var(--head); }
.guides span { grid-column: 1; color: var(--muted); font-size: .98rem; }
.guides .urgent b { color: var(--ochre); }

/* Panels */
.panel { margin: 36px 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.panel h2 { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }

/* Tables */
.table { margin: 24px 0; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
caption { text-align: left; font: 700 1rem var(--head); padding: 14px 14px 10px; }
th, td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sunk); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
td:nth-child(2) { font-weight: 650; font-variant-numeric: tabular-nums; }
td:last-child { color: var(--muted); font-size: .9rem; }
tbody tr:hover { background: color-mix(in srgb, var(--sunk) 50%, transparent); }

/* Numbered steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0; }
.steps li { position: relative; counter-increment: s; padding: 2px 0 14px 52px; margin: 0; border-left: 2px solid var(--line); margin-left: 17px; padding-left: 34px; }
.steps li:last-child { border-left-color: transparent; }
.steps li::before { content: counter(s); position: absolute; left: -18px; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: 700 .95rem var(--head); }
.areas { columns: 2; padding-left: 20px; }

/* Calls */
.call { margin: 36px 0; padding: 22px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); }
.call p { margin: 0 0 12px; }
.call a:not(.btn) { color: inherit; }
.call .small { color: inherit; opacity: .8; margin: 12px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 6px; background: var(--accent); color: var(--accent-text); font: 700 1.05rem var(--head); text-decoration: none; }
.btn:hover { background: var(--accent-hover); }
.small { font-size: .88rem; color: var(--muted); }

/* Sources */
.sources { margin-top: 48px; padding: 16px 18px; background: var(--sunk); border-radius: 6px; font-size: .92rem; }
.sources h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 2px; color: var(--muted); }
.sources ul { margin: 8px 0 0; padding-left: 18px; }
.sources li { margin-bottom: 4px; }

/* Footer */
.foot { background: var(--brand); color: var(--brand-ink); padding: 28px 0 96px; font-size: .92rem; }
.foot p { opacity: .85; }
.foot a { color: inherit; display: inline-block; min-height: 44px; line-height: 44px; }
.foot strong { opacity: 1; }
.callbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; min-height: 58px; background: var(--accent); color: var(--accent-text); font: 700 1.05rem var(--head); text-decoration: none; z-index: 5; box-shadow: 0 -2px 12px rgb(0 0 0 / .18); }
@media (min-width: 900px) { .callbar { display: none; } .foot { padding-bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
