@charset "utf-8";
/* ==========================================================================
   Virtus Green Ecological Consultancy — site stylesheet
   Design language: "field record". Peat and chalk neutrals, a lichen accent
   that is only ever used to mean "measured gain", and an amber that is only
   ever used to mean "survey window closing".
   Token values mirror assets/tokens.json (W3C Design Tokens 2025.10).
   ========================================================================== */

/* --------------------------------------------------------------- 1. Fonts */

@font-face {
  font-family: "VG Serif";
  src: url("../fonts/vg-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "VG Serif";
  src: url("../fonts/vg-serif-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "VG Sans";
  src: url("../fonts/vg-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "VG Sans";
  src: url("../fonts/vg-sans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "VG Mono";
  src: url("../fonts/vg-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* -------------------------------------------------------------- 2. Tokens */

:root {
  /* Peat — deep, green-cast neutrals */
  --peat-900: #111814;
  --peat-800: #19211b;
  --peat-700: #232d25;
  --peat-600: #334035;

  /* Chalk — cool limestone neutrals */
  --chalk-000: #fbfcf8;
  --chalk-050: #eff1ea;
  --chalk-100: #e4e7dc;
  --chalk-200: #c9cfbd;
  --chalk-300: #a9b39c;

  /* Text neutrals */
  --slate-600: #525c51;
  --slate-500: #66705f;
  --mist-300: #b8c1b4;
  --mist-200: #cfd6cb;

  /* Lichen — the accent. Means "measured gain". */
  --lichen-700: #3d5322;
  --lichen-600: #4c6a2a;
  --lichen-500: #5e812f;
  --lichen-400: #96b45f;
  --lichen-300: #b6ce86;

  /* Amber — reserved. Means "survey window closing". */
  --amber-700: #8a4e10;
  --amber-600: #a85e15;
  --amber-400: #d9973f;
  --amber-300: #e8b871;

  /* Water and heath — Phase 1 habitat-map derivatives, used sparingly */
  --water-700: #1f4c57;
  --water-400: #6fa3ae;
  --heath-500: #6e5a82;
  --heath-300: #a796b6;

  /* Semantic assignments — light ground */
  --bg: var(--chalk-050);
  --bg-raised: var(--chalk-000);
  --bg-sunken: var(--chalk-100);
  --text: var(--peat-900);
  --text-muted: var(--slate-600);
  --text-meta: var(--slate-500);
  --rule: var(--chalk-200);
  --rule-strong: var(--chalk-300);
  --accent: var(--lichen-700);
  --accent-soft: var(--lichen-300);
  --focus: var(--lichen-600);

  /* Type */
  --font-display: "VG Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "VG Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "VG Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Modular scale, 1.200 minor third, fluid between 360px and 1240px */
  --step--1: clamp(0.833rem, 0.81rem + 0.10vw, 0.889rem);
  --step-0:  clamp(1rem, 0.97rem + 0.14vw, 1.075rem);
  --step-1:  clamp(1.2rem, 1.14rem + 0.27vw, 1.35rem);
  --step-2:  clamp(1.44rem, 1.33rem + 0.48vw, 1.7rem);
  --step-3:  clamp(1.728rem, 1.54rem + 0.83vw, 2.18rem);
  --step-4:  clamp(2.074rem, 1.75rem + 1.42vw, 2.85rem);
  --step-5:  clamp(2.488rem, 2.02rem + 2.05vw, 3.5rem);

  /* Spacing — 4px base */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 5.5rem;  --sp-10: 7.5rem;

  /* Layout */
  --container: 74rem;
  --measure: 68ch;
  --radius: 2px;
  --radius-lg: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 120ms;
  --dur: 220ms;
}

/* Dark ground — applied per-section, not as a whole-page theme */
.on-peat {
  --bg: var(--peat-900);
  --bg-raised: var(--peat-800);
  --bg-sunken: var(--peat-800);
  --text: var(--chalk-050);
  --text-muted: var(--mist-300);
  --text-meta: var(--mist-300);
  --rule: #2c372e;
  --rule-strong: #5a6955;
  --accent: var(--lichen-300);
  --accent-soft: var(--lichen-400);
  --focus: var(--lichen-400);
  background: var(--peat-900);
  color: var(--chalk-050);
}

/* ---------------------------------------------------------- 3. Base reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--chalk-050);
  color: var(--peat-900);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.005em; }

p, ul, ol, dl, table { margin: 0 0 var(--sp-5); }
p { max-width: var(--measure); text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

strong { font-weight: 700; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--sp-7) 0;
}

::selection { background: var(--lichen-300); color: var(--peat-900); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 1px;
}

/* --------------------------------------------------------- 4. Utility bits */

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -4rem;
  z-index: 100;
  background: var(--peat-900);
  color: var(--chalk-000);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
@media (min-width: 48em) {
  .container { width: min(100% - 5rem, var(--container)); }
}

.section {
  padding-block: var(--sp-8);
  border-top: 1px solid var(--rule);
}
.section.is-flush { border-top: 0; }
.section.is-tall { padding-block: var(--sp-9); }
.section.is-short { padding-block: var(--sp-7); }

/* The field-record margin: a monospace index rail beside each section */
.record {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 64em) {
  .record {
    grid-template-columns: 9rem 1fr;
    gap: var(--sp-7);
  }
}
.record__rail {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-meta);
  line-height: 1.5;
  padding-top: 0.55rem;
  border-top: 2px solid var(--rule-strong);
}
.record__rail span { display: block; }
.record__rail em {
  font-style: normal;
  color: var(--text);
  display: block;
  margin-bottom: var(--sp-1);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin: 0 0 var(--sp-4);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 56ch;
}

.prose > :last-child { margin-bottom: 0; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.15rem; max-width: var(--measure); }
.prose li { margin-bottom: var(--sp-2); }
.prose h2 { margin-top: var(--sp-7); font-size: var(--step-3); }
.prose h3 { margin-top: var(--sp-6); font-size: var(--step-1); font-weight: 700; }
.prose blockquote {
  margin: var(--sp-6) 0;
  padding-left: var(--sp-5);
  border-left: 3px solid var(--accent-soft);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
}

.note {
  font-size: var(--step--1);
  color: var(--text-meta);
  max-width: var(--measure);
}

/* -------------------------------------------------------------- 5. Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--lichen-700);
  color: var(--chalk-000);
  border-color: var(--lichen-700);
}
.btn--primary:hover { background: var(--lichen-600); border-color: var(--lichen-600); }

.on-peat .btn--primary {
  background: var(--lichen-400);
  color: var(--peat-900);
  border-color: var(--lichen-400);
}
.on-peat .btn--primary:hover { background: var(--lichen-300); border-color: var(--lichen-300); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { border-color: var(--text); background: var(--bg-raised); }
.on-peat .btn--ghost { border-color: var(--mist-300); }
.on-peat .btn--ghost:hover { background: var(--peat-800); border-color: var(--chalk-050); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  margin-top: var(--sp-6);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  min-height: 1.6rem;
}
.arrow-link:hover { border-bottom-width: 2px; }
.arrow-link::after { content: "\2192"; font-family: var(--font-mono); }

/* --------------------------------------------------------------- 6. Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--chalk-050);
  background: color-mix(in srgb, var(--chalk-050) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--chalk-200);
}
@supports not (backdrop-filter: blur(8px)) {
  .site-header { background: var(--chalk-050); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--peat-900);
  flex-shrink: 0;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: -0.01em;
  line-height: 1;
  display: block;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text-meta);
  display: block;
  margin-top: 3px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--chalk-300);
  border-radius: var(--radius);
  color: var(--peat-900);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 0.85rem;
  min-height: 2.75rem;
  cursor: pointer;
}
@media (min-width: 64em) { .nav-toggle { display: none; } }

/* JS swaps the text of this element between "Menu" and "Close". */
.nav-toggle__text { display: inline-block; min-width: 3.2em; text-align: left; }

.nav { display: none; }
.nav.is-open { display: block; }
@media (min-width: 64em) { .nav { display: block; } }

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 64em) {
  .nav__list { flex-direction: row; align-items: center; gap: var(--sp-5); }
}

.nav__link {
  display: block;
  padding: 0.85rem 0;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--peat-900);
  border-bottom: 1px solid var(--chalk-200);
  min-height: 2.75rem;
}
@media (min-width: 64em) {
  .nav__link {
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    min-height: 0;
  }
}
.nav__link:hover { border-bottom-color: var(--lichen-600); }
.nav__link[aria-current="page"] { border-bottom-color: var(--lichen-700); font-weight: 700; }

.nav__cta { margin-top: var(--sp-4); }
@media (min-width: 64em) { .nav__cta { margin-top: 0; margin-left: var(--sp-2); } }

@media (max-width: 63.99em) {
  .nav.is-open {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--chalk-000);
    border-bottom: 1px solid var(--chalk-200);
    padding: var(--sp-4) 1.25rem var(--sp-6);
    box-shadow: 0 18px 30px -22px rgba(17, 24, 20, 0.4);
  }
}

/* ----------------------------------------------------------------- 7. Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-8) var(--sp-7);
}
@media (min-width: 64em) { .hero { padding-block: var(--sp-9) var(--sp-8); } }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: 1fr;
}
@media (min-width: 64em) {
  .hero__grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); gap: var(--sp-8); align-items: end; }
}

.hero h1 { margin-bottom: var(--sp-5); }
.hero__accent { color: var(--lichen-300); }

.hero__parcels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
  background: url("../brand/parcels.svg") center / cover no-repeat;
}

/* ------------------------------------------------- 8. Season status strip */

.season {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  padding: var(--sp-5);
}
.on-peat .season { background: rgba(35, 45, 37, 0.55); }

.season__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.season__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin: 0;
}
.season__date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-meta); }

.season__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.season__item {
  display: grid;
  grid-template-columns: 0.55rem 1fr;
  gap: 0.3rem var(--sp-3);
  align-items: baseline;
  font-size: 0.95rem;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--rule);
}
.season__item:last-child { border-bottom: 0; padding-bottom: 0; }
.season__dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--chalk-300);
  align-self: center;
}
.season__dot.is-open { background: var(--lichen-400); }
.season__dot.is-closing { background: var(--amber-400); }
.season__dot.is-sub { background: transparent; box-shadow: inset 0 0 0 2px var(--lichen-400); }
.season__dot.is-closed { background: var(--slate-500); }
.season__status {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--text-meta);
}
@media (min-width: 30em) {
  .season__item { grid-template-columns: 0.55rem 1fr auto; }
  .season__status { grid-column: auto; text-align: right; }
}
.season__status.is-closing { color: var(--amber-700); font-weight: 700; }
.on-peat .season__status.is-closing { color: var(--amber-300); font-weight: 400; }

/* --------------------------------------------------------------- 9. Cards */

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 40em) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.card__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-meta);
}
.card h3 { font-size: var(--step-1); margin: 0; }
.card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); max-width: none; }
.card ul {
  margin: 0; padding-left: 1.05rem;
  font-size: 0.92rem; color: var(--text-muted);
}
.card li { margin-bottom: var(--sp-1); }
.card__foot { margin-top: auto; padding-top: var(--sp-3); }

.card--link { text-decoration: none; color: inherit; transition: border-color var(--dur) var(--ease); }
.card--link:hover { border-top-color: var(--lichen-600); }

/* -------------------------------------------------- 10. Definition tables */

.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 0;
}
.dtable caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-meta);
  padding-bottom: var(--sp-3);
}
.dtable th, .dtable td {
  text-align: left;
  vertical-align: top;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 0;
  border-bottom: 1px solid var(--rule);
}
.dtable thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-meta);
  border-bottom: 2px solid var(--rule-strong);
  white-space: nowrap;
}
.dtable tbody th { font-weight: 700; padding-right: var(--sp-5); }
.table-scroll { overflow-x: auto; margin-bottom: var(--sp-5); }

/* --------------------------------------------- 11. Survey window calendar */

.calendar { --cal-label: 15rem; }

.cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-5);
  align-items: center;
  padding: var(--sp-4) 0;
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-meta);
}
.cal__key { display: inline-flex; align-items: center; gap: 0.5rem; }
.cal__swatch {
  width: 1.6rem; height: 0.7rem;
  border: 1px solid var(--rule-strong);
  display: inline-block;
}
.cal__swatch.is-optimal { background: var(--lichen-400); border-color: var(--lichen-600); }
.cal__swatch.is-sub {
  background: repeating-linear-gradient(
    -45deg, var(--lichen-300), var(--lichen-300) 3px, var(--chalk-000) 3px, var(--chalk-000) 6px);
  border-color: var(--lichen-600);
}
.cal__swatch.is-closed { background: var(--chalk-100); }
.cal__swatch.is-today { background: var(--amber-600); width: 0.35rem; border-color: var(--amber-700); }

.cal__months {
  display: none;
  grid-template-columns: var(--cal-label) repeat(12, 1fr);
  gap: 0 2px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-meta);
  border-bottom: 2px solid var(--rule-strong);
  padding-bottom: var(--sp-2);
  position: sticky;
  top: 4.5rem;
  background: var(--bg);
  z-index: 2;
}
@media (min-width: 56em) { .cal__months { display: grid; } }
.cal__months span { text-align: center; }
.cal__months span:first-child { text-align: left; }

.cal__row { border-bottom: 1px solid var(--rule); }
.cal__row:last-of-type { border-bottom: 0; }

.cal__summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  padding: var(--sp-4) 0;
  cursor: pointer;
  list-style: none;
  align-items: center;
}
.cal__summary::-webkit-details-marker { display: none; }
@media (min-width: 56em) {
  .cal__summary { grid-template-columns: var(--cal-label) 1fr; gap: 0 var(--sp-2); }
}
.cal__summary:hover .cal__name { text-decoration: underline; text-underline-offset: 0.2em; }

.cal__label { min-width: 0; padding-right: var(--sp-4); }
.cal__name { font-weight: 700; font-size: 0.95rem; display: block; line-height: 1.3; }
.cal__latin { font-style: italic; color: var(--text-meta); font-size: 0.82rem; display: block; }
.cal__state {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-meta);
  margin-top: 0.2rem;
  display: block;
}
.cal__state.is-open { color: var(--lichen-700); }
.cal__state.is-closing { color: var(--amber-700); }

.cal__bands {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  height: 1.55rem;
}
.cal__cell { background: var(--chalk-100); border-radius: 1px; }
.cal__cell.is-optimal { background: var(--lichen-400); }
.cal__cell.is-sub {
  background: repeating-linear-gradient(
    -45deg, var(--lichen-300), var(--lichen-300) 3px, var(--chalk-000) 3px, var(--chalk-000) 6px);
}
.cal__today {
  position: absolute;
  top: -0.35rem;
  bottom: -0.35rem;
  width: 2px;
  background: var(--amber-600);
  z-index: 1;
  pointer-events: none;
}
.cal__today::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px;
  width: 8px; height: 8px;
  background: var(--amber-600);
  border-radius: 50%;
}

.cal__detail {
  padding: 0 0 var(--sp-5);
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 56em) {
  .cal__detail { grid-template-columns: var(--cal-label) 1fr; }
  .cal__detail > :first-child { grid-column: 2; }
}
.cal__detail p { font-size: 0.93rem; color: var(--text-muted); margin: 0 0 var(--sp-3); max-width: var(--measure); }
.cal__detail p:last-child { margin-bottom: 0; }
.cal__ref {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-meta);
  line-height: 1.5;
}

/* -------------------------------------------------------- 12. Callout box */

.callout {
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}
.callout--alert { border-left-color: var(--amber-600); }
.callout__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin: 0 0 var(--sp-2);
}
.callout p { margin-bottom: var(--sp-3); }
.callout > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ 13. Stat row */

.stats {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 40em) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { border-top: 2px solid var(--rule-strong); padding-top: var(--sp-4); }
.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stats span { font-size: 0.9rem; color: var(--text-muted); display: block; }

/* -------------------------------------------------------------- 14. Steps */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--rule);
}
.steps li:first-child { border-top: 2px solid var(--rule-strong); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-meta);
  padding-top: 0.35rem;
}
.steps h3 { font-size: var(--step-1); font-weight: 700; margin: 0 0 var(--sp-2); font-family: var(--font-body); letter-spacing: 0; }
.steps p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------------------------------------------------------------- 15. FAQ */

.faq { border-top: 2px solid var(--rule-strong); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  cursor: pointer;
  list-style: none;
  padding: var(--sp-5) 2.5rem var(--sp-5) 0;
  font-weight: 700;
  font-size: 1.02rem;
  position: relative;
  min-height: 2.75rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1;
}
.faq__item[open] .faq__q::after { content: "\2212"; }
.faq__a { padding-bottom: var(--sp-5); }
.faq__a p { color: var(--text-muted); }
.faq__a > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- 16. Forms */

.form { display: grid; gap: var(--sp-5); max-width: 40rem; }
.field { display: grid; gap: var(--sp-2); }
.field > label { font-weight: 700; font-size: 0.95rem; }
.field__hint { font-size: 0.85rem; color: var(--text-meta); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--peat-900);
  background: var(--chalk-000);
  border: 1px solid var(--peat-600);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  min-height: 2.9rem;
  width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--lichen-600); outline-offset: 1px; }

.field-row { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 40em) { .field-row { grid-template-columns: repeat(2, 1fr); } }

.form__hp { position: absolute; left: -9999px; }

/* -------------------------------------------------------------- 17. Footer */

.site-footer {
  --text-meta: var(--mist-300);
  --text-muted: var(--mist-300);
  --rule: #2c372e;
  --rule-strong: #5a6955;
  background: var(--peat-900);
  color: var(--chalk-050);
  padding-block: var(--sp-8) var(--sp-6);
  margin-top: var(--sp-8);
}
.site-footer a { color: var(--chalk-050); }
.footer__grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--peat-700);
}
@media (min-width: 48em) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 64em) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-300);
  margin: 0 0 var(--sp-4);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer__list a { font-size: 0.93rem; text-decoration: none; border-bottom: 1px solid transparent; }
.footer__list a:hover { border-bottom-color: var(--lichen-400); }
.footer__note { font-size: 0.9rem; color: var(--mist-300); max-width: 34ch; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  padding-top: var(--sp-5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--mist-300);
}
.footer__legal a { text-decoration: none; border-bottom: 1px solid var(--peat-600); }

/* --------------------------------------------------------- 18. Page header */

.page-head { padding-block: var(--sp-8) var(--sp-7); }
.page-head h1 { font-size: var(--step-4); }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0 0 var(--sp-5);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: var(--chalk-300); }
.breadcrumb a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--chalk-200); }

/* --------------------------------------------------------- 19. Article bits */

.article__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.article__body { max-width: 44rem; }
.article__body h2 { font-size: var(--step-2); }

.insight-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.insight-list li { border-bottom: 1px solid var(--rule); }
.insight-list a {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-5) 0;
  text-decoration: none;
  grid-template-columns: 1fr;
}
@media (min-width: 56em) {
  .insight-list a { grid-template-columns: 9rem 1fr; gap: var(--sp-5); align-items: baseline; }
}
.insight-list time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--slate-500);
}
.insight-list h2 { font-size: var(--step-1); margin: 0 0 var(--sp-2); }
.insight-list p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.insight-list a:hover h2 { text-decoration: underline; text-underline-offset: 0.18em; }

/* ------------------------------------------------------- 20. Brand swatches */

.swatches { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0 0 var(--sp-6); padding: 0; }
@media (min-width: 48em) { .swatches { grid-template-columns: repeat(4, 1fr); } }
.swatches li { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.swatch__chip { height: 4.5rem; }
.swatch__meta { padding: var(--sp-3); font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.5; }
.swatch__meta b { display: block; font-weight: 400; color: var(--text); }
.swatch__meta span { color: var(--text-meta); }

/* ------------------------------------------------ 23. Spacing utilities
   These exist so no HTML in this site needs a style attribute, which lets the
   Content-Security-Policy forbid inline styles outright. */

.stack-xs { margin-top: 0.75rem; }
.stack-sm { margin-top: 1.5rem; }
.stack-md { margin-top: 1.75rem; }
.stack-lg { margin-top: 2rem; }
.stack-xl { margin-top: 2.5rem; }
.stack-2xl { margin-top: 3rem; }
.flush-bottom { margin-bottom: 0; }
.flush-pad-bottom { padding-bottom: 0; }
.brand--footer { color: var(--chalk-050); }
.logo-demo { margin: 2rem 0; max-width: 100%; }

.swatch--peat-900 { background: #111814; }
.swatch--chalk-050 { background: #eff1ea; }
.swatch--lichen-700 { background: #3d5322; }
.swatch--lichen-400 { background: #96b45f; }
.swatch--amber-600 { background: #a85e15; }
.swatch--water-700 { background: #1f4c57; }
.swatch--heath-500 { background: #6e5a82; }
.swatch--slate-500 { background: #66705f; }

/* ------------------------------------------------------------ 21. Motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ------------------------------------------------------------- 22. Print */

@media print {
  .site-header, .site-footer, .nav-toggle, .btn-row, .hero__parcels { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { border-top: 1px solid #999; page-break-inside: avoid; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
