/* core.css — shared by treasurecoastcompost.com and replenished-roots.com
   ONE source: /Users/macowner/Site Redesign/core.css. sync.sh copies it into both repos.
   The two sites differ only by the data-site attribute on <html>: "tcc" (surface, light) or "rr" (below, dark). */

:root {
  --font-display: "Zilla Slab", Rockwell, Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --fungal: #E0A458;      /* amber = fungi, everywhere */
  --bacterial: #5FB3A1;   /* teal  = bacteria, everywhere */
  --rail-w: 20px;
  --gutter: clamp(18px, 4vw, 40px);
}
html[data-site="tcc"] {
  --bg: #F7F5EF; --fg: #2B1E14; --muted: #6a5d4e;
  --accent: #1F4D2E; --accent-fg: #F7F5EF; --spark: #D9A441;
  --band: #1F4D2E; --band-fg: #F7F5EF; --rule: #2B1E14; --panel: #EDE7D8;
  --rail: linear-gradient(#8fb35a 0%, #6d8a3e 8%, #5A4630 22%, #3B2C1F 60%, #2b1f16 100%);
}
html[data-site="rr"] {
  --bg: #1C1712; --fg: #EDE8DA; --muted: #A79F8E;
  --accent: #E0A458; --accent-fg: #1C1712; --spark: #5FB3A1;
  --band: #2A211A; --band-fg: #EDE8DA; --rule: rgba(237,232,218,.28); --panel: #261E17;
  --rail: linear-gradient(#5A4630 0%, #3B2C1F 30%, #261e17 65%, #120e0a 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-left: var(--rail-w); background: var(--bg); color: var(--fg);
  font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 6vw, 72px); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; }
h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.1vw, 22px); font-weight: 700; }
p { margin: 0 0 1em; }
.mono, .cap { font-family: var(--font-mono); font-size: 13px; letter-spacing: .01em; }
.cap { color: var(--muted); margin-top: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; }
.lede { font-size: clamp(19px, 2.3vw, 24px); line-height: 1.5; max-width: 34em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 99; }

/* ── The soil-core depth ruler (the signature) ───────────────────────── */
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); background: var(--rail); z-index: 40; overflow: hidden; }
.rail::before { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.34) 0 1px, transparent 1px 24px),
              repeating-linear-gradient(to bottom, rgba(255,255,255,.7) 0 2px, transparent 2px 120px);
  -webkit-mask: linear-gradient(90deg, #000 0 45%, transparent 45%); mask: linear-gradient(90deg, #000 0 45%, transparent 45%); }
.depth { position: fixed; left: 0; top: 0; z-index: 41; transform: translateY(0); pointer-events: none;
  background: var(--fg); color: var(--bg); font: 500 12px/1 var(--font-mono); padding: 6px 8px 6px 10px;
  border-radius: 0 3px 3px 0; white-space: nowrap; }
.depth::before { content: ""; position: absolute; left: 0; top: 50%; width: var(--rail-w); height: 2px; background: var(--bg); transform: translateY(-1px); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 30; background: var(--band); color: var(--band-fg); }
html[data-site="rr"] .nav { border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 19px/1.1 var(--font-display); }
.brand img { width: 56px; height: 56px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-size: 16px; font-weight: 500; opacity: .92; white-space: nowrap; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.cross { font: 500 13px/1.2 var(--font-mono); border: 1px solid currentColor; padding: 8px 12px; border-radius: 2px; white-space: nowrap; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font: 500 14px var(--font-mono); padding: 10px 12px; border: 1px solid currentColor; border-radius: 2px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--band); padding: 12px var(--gutter) 20px; display: grid; gap: 4px; border-top: 1px solid var(--rule); }
.menu-panel a { padding: 12px 0; text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--rule); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-block; padding: 15px 24px; font: 600 16px/1 var(--font-body); text-decoration: none; border: 2px solid currentColor; border-radius: 2px; cursor: pointer; background: transparent; color: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
html[data-site="tcc"] .band .btn-solid { background: var(--spark); border-color: var(--spark); color: #2B1E14; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── Sections ────────────────────────────────────────────────────────── */
section { padding: clamp(56px, 9vw, 110px) 0; }
.band { background: var(--band); color: var(--band-fg); }
.panel { background: var(--panel); }
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: 5fr 7fr; }
.split.partner-split { grid-template-columns: 5fr 6fr; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
hr.rule { border: 0; border-top: 2px solid var(--rule); margin: 0; }

/* take / leave lists */
.take li, .leave li { list-style: none; padding: 9px 0 9px 34px; position: relative; border-bottom: 1px solid var(--rule); }
.take, .leave { padding: 0; margin: 18px 0 0; }
.take li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--accent); font-size: 22px; line-height: 1.3; }
.leave li::before { content: "✕"; position: absolute; left: 0; font-weight: 800; color: #b3472f; font-size: 20px; line-height: 1.4; }
.big-yes { font: 800 clamp(26px, 4vw, 40px)/1.1 var(--font-display); }

/* steps drawn on the core */
.steps { display: grid; gap: 0; margin-top: 34px; }
.step { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 22px 0; border-top: 2px solid var(--rule); }
.step .at { font: 500 clamp(24px, 3.4vw, 34px)/1 var(--font-mono); color: var(--accent); padding-top: 2px; }
.step h3 { margin-bottom: 6px; }

/* lens frame — REAL photographs only */
.lens { width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto; position: relative;
  box-shadow: 0 0 0 8px var(--bg), 0 0 0 11px var(--fg); background: var(--panel); }
.lens img, .lens .ph { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
.photo { border: 2px solid var(--fg); }
.photo img, .photo .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo img { height: auto; display: block; }

/* placeholder for a photo we do not have yet — impossible to mistake for real content */
.ph { display: grid; place-items: center; text-align: center; padding: 18px; min-height: 180px;
  border: 2px dashed var(--muted); color: var(--muted); font: 500 13px/1.4 var(--font-mono);
  background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(127,127,127,.09) 10px 20px); }
.lens .ph { border: 0; border-radius: 50%; }

/* fungi / bacteria language */
.tagf, .tagb { font: 500 13px var(--font-mono); padding: 3px 9px; border-radius: 2px; color: #1C1712; white-space: nowrap; }
.tagf { background: var(--fungal); } .tagb { background: var(--bacterial); }

/* price rows */
.prices { margin-top: 26px; border-top: 2px solid var(--rule); }
.price { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.price b { font: 800 clamp(26px, 3.6vw, 36px)/1 var(--font-display); color: var(--accent); }
.price p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 16px; }

/* dig-deeper / back-to-surface doorway */
.dig { background: #1C1712; color: #EDE8DA; padding: clamp(60px, 10vw, 120px) 0; }
.dig h2 { max-width: 14em; }
.dig .btn-solid { background: #E0A458; border-color: #E0A458; color: #1C1712; }
.surface-bar { display: block; padding: 11px var(--gutter); text-align: center; background: #1F4D2E; color: #F7F5EF; text-decoration: none; font: 500 13px var(--font-mono); }

/* forms */
form label { display: block; font-weight: 600; margin: 0 0 6px; font-size: 15px; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; padding: 13px 14px; font: 400 17px var(--font-body); color: var(--fg); background: transparent; border: 2px solid var(--rule); border-radius: 2px; }
html[data-site="rr"] select { background: #1C1712; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.form-field { margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--rule); padding: 10px 14px; border-radius: 2px; cursor: pointer; font-weight: 500; margin: 0; }
.chip input { accent-color: var(--accent); width: 18px; height: 18px; }
.svc-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.svc-tab { padding: 12px 16px; border: 2px solid var(--rule); background: transparent; color: inherit; font: 600 15px var(--font-body); cursor: pointer; border-radius: 2px; }
.svc-tab.is-active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin-top: 12px; font-weight: 600; } .form-status.error { color: #e0765f; }

/* footer */
footer { padding: 48px 0 60px; border-top: 2px solid var(--rule); font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
footer a { text-decoration: underline; text-underline-offset: 3px; }
footer .fine { grid-column: 1 / -1; color: var(--muted); font-size: 13px; max-width: 70ch; }

@media (max-width: 860px) {
  .nav-links { display: none; } .menu { display: block; }
  .split, .split.flip, .split.partner-split, .cols-2, .cols-3, footer .wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --rail-w: 10px; }
  body { font-size: 17px; }
  .depth { font-size: 11px; padding: 5px 6px 5px 12px; }
  .step { grid-template-columns: 78px 1fr; gap: 10px; }
  .layer .wrap { grid-template-columns: 62px 1fr; gap: 10px; }
  .nav .wrap { min-height: 60px; } .brand span { font-size: 16px; } .brand img { width: 40px; height: 40px; }
  .lens { width: min(88%, 380px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* ── Soil cross-section: the profile drawn in the middle of the page ─────────── */
.strata { display: block; }
.layer { display: block; text-decoration: none; color: #F4EFE3; padding: 0; }
.layer .wrap { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.layer .d { font: 500 15px var(--font-mono); opacity: .8; }
.layer b { font: 700 clamp(19px, 2.6vw, 26px)/1.2 var(--font-display); display: block; }
.layer span { font-size: 16px; opacity: .88; display: block; }
.l1 { background: #7A9A4E; color: #14210a; padding: 20px 0; }
.l2 { background: #5A4630; padding: 26px 0; }
.l3 { background: #3B2C1F; padding: 34px 0; }
.l4 { background: #1C1712; padding: 52px 0 46px; }
.l4 b { color: #E0A458; font-size: clamp(24px, 3.6vw, 40px); }
.l4:hover b { text-decoration: underline; text-underline-offset: 6px; }
.l4 .d { color: #5FB3A1; opacity: 1; }

/* ── RR extras: ratio bar, faq, cards ───────────────────────────────────── */
.ratio { display: flex; height: 46px; margin: 22px 0 6px; border: 2px solid var(--fg); }
.ratio i { display: grid; align-items: center; padding: 0 12px; font: 500 13px var(--font-mono); font-style: normal; color: #1C1712; }
.ratio .f { background: var(--fungal); width: 38%; } .ratio .b { background: var(--bacterial); flex: 1; }
.measure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--rule); margin-top: 30px; }
.measure > div { padding: 22px 18px 22px 0; border-bottom: 1px solid var(--rule); }
.measure h3 { margin: 10px 0 6px; font-size: 21px; }
.measure p { color: var(--muted); font-size: 16px; margin: 0; }
details.faq { border-top: 2px solid var(--rule); padding: 0; }
details.faq:last-of-type { border-bottom: 2px solid var(--rule); }
details.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 700 clamp(18px, 2.4vw, 22px)/1.3 var(--font-display); position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 500 28px var(--font-mono); color: var(--accent); }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding: 0 0 20px; max-width: 60ch; color: var(--muted); margin: 0; }
.svc-panel[hidden], .form-success[hidden], .svc-toggle[hidden] { display: none; }
.phone { font: 700 clamp(28px, 4vw, 44px)/1 var(--font-display); color: var(--accent); text-decoration: none; }
@media (max-width: 860px) { .measure { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .measure { grid-template-columns: 1fr; } .price b { font-size: 26px; } }

html[data-site="tcc"] .band .step .at { color: var(--spark); }

/* Zilla Slab + IBM Plex Sans: compact sizing */
.brand { font-weight: 700; font-size: 17px; letter-spacing: 0; }
.nav-links a { font-size: 15px; }
.layer b { font-size: clamp(18px, 2.1vw, 22px); }
.l4 b { font-size: clamp(20px, 3vw, 32px); }
.price b { font-size: clamp(24px, 3vw, 32px); }
.phone { font-size: clamp(26px, 3.4vw, 36px); }
.measure h3 { font-size: 19px; }
details.faq summary { font-size: clamp(16px, 1.9vw, 19px); text-transform: none; letter-spacing: 0; }
.lede { font-size: clamp(18px, 2vw, 21px); }
.btn { font-size: 15px; padding: 13px 20px; }
.btn, form label, .cross, .svc-tab { font-family: var(--font-body); }
.figure-frame { border: 2px solid var(--fg); background: #fff; }
.figure-frame img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .depth { font-size: 10px; padding: 4px 5px 4px 11px; opacity: .88; } }

.steps.noat .step { grid-template-columns: 1fr; }
