/* Webmorson — site styles
   Colours and fonts are set once here, so they are easy to change later. */
:root {
  --paper: #f4efe4;
  --paper-2: #ebe3d2;
  --ink: #1d261b;
  --ink-soft: #4a5246;
  --forest: #24331f;
  --moss: #3f5a3a;
  --fern: #6f8f52;
  --bark: #6b4a33;
  --rust: #b0532b;
  --rust-dark: #8f4020;
  --line: #d8ccb4;
  --radius: 6px;
  --wrap: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin-bottom: .9rem; }
.small { font-size: .875rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius);
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); color: #fff; }
.btn-quiet { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-quiet:hover { background: var(--forest); color: var(--paper); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 239, 228, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--forest); font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; color: var(--fern); }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 10px; border-radius: var(--radius); white-space: nowrap; }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav .nav-cta { background: var(--forest); color: var(--paper); margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--moss); color: #fff; }

@media (max-width: 899px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .site-nav { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 6px 16px 10px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: .9rem; padding: 6px 10px; }
}

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 5fr 6fr; gap: 56px; }
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.season-note { display: inline-flex; gap: 10px; align-items: baseline; font-size: .95rem; background: var(--paper-2); border-left: 3px solid var(--fern); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0; }
.season-note a { font-weight: 600; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius); }
figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.section-head p:last-child { color: var(--ink-soft); }
.section-tint { background: var(--paper-2); }

/* Calendar */
.calendar { --label: 112px; position: relative; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .calendar { --label: 230px; } }
.cal-row { display: grid; grid-template-columns: var(--label) 1fr; align-items: center; border-bottom: 1px solid var(--line); min-height: 64px; }
.cal-months { display: grid; grid-template-columns: var(--label) repeat(12, 1fr); min-height: 40px; font-weight: 600; font-size: .85rem; color: var(--ink-soft); text-align: center; }
.cal-months [data-m].is-now { color: var(--rust); }
.cal-label { text-align: left; padding: 10px 12px 10px 0; line-height: 1.25; }
.cal-label strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.cal-label small { display: none; color: var(--ink-soft); font-size: .82rem; }
@media (min-width: 700px) { .cal-label small { display: block; margin-top: 2px; } }
.cal-track { display: grid; grid-template-columns: repeat(12, 1fr); height: 100%; align-items: center; }
.bar { grid-row: 1; grid-column: var(--from) / var(--to); height: 18px; margin: 0 1px; }
.bar-main { background: var(--moss); }
.bar-soft { background: repeating-linear-gradient(135deg, #b8c9a3 0 6px, #cfdbbe 6px 12px); }
.cal-today {
  position: absolute; top: 0; bottom: 0; pointer-events: none;
  left: calc(var(--label) + (100% - var(--label)) * var(--m, 0) / 12);
  width: calc((100% - var(--label)) / 12);
  background: rgba(176, 83, 43, .12); border-left: 2px solid var(--rust); display: none;
}
.cal-today.on { display: block; }
.cal-key { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .875rem; color: var(--ink-soft); margin-top: 16px; }
.cal-key > span { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; width: 26px; height: 12px; border-radius: 6px; }
.key-now { width: 14px; height: 14px; border-radius: 2px; background: rgba(176, 83, 43, .18); border-left: 2px solid var(--rust); }
.key-main { background: var(--moss); }
.key-soft { background: repeating-linear-gradient(135deg, #b8c9a3 0 6px, #cfdbbe 6px 12px); }

/* What we grow */
.grow-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .grow-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.grow-intro > p:not(.eyebrow) { color: var(--ink-soft); }
.grow-figure { margin: 28px 0 0; }
.grow-figure img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.uses { list-style: none; margin: 0; padding: 0; counter-reset: use; }
.uses li { counter-increment: use; display: grid; grid-template-columns: 56px 1fr; padding: 26px 0; border-top: 1px solid var(--line); }
.uses li:last-child { border-bottom: 1px solid var(--line); }
.uses li::before { content: counter(use, decimal-leading-zero); font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--rust); line-height: 1.1; }
.uses h3 { margin-bottom: .35em; }
.uses p { margin: 0; color: var(--ink-soft); }
.uses li > * { grid-column: 2; }

/* Approach */
.approach-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .approach-grid { grid-template-columns: 5fr 6fr; gap: 72px; } }
.approach-figure { margin: 0; }
.approach-figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.approach-text p strong { color: var(--forest); }

/* Planting */
.section-dark { background: var(--forest); color: #e9e3d4; }
.section-dark h2, .section-dark h3 { color: #fbf7ee; }
.section-dark .eyebrow { color: #e0a274; }
.section-dark .section-head p:last-child { color: #c9c3b2; }
.planting-grid { display: grid; gap: 48px; }
@media (min-width: 980px) { .planting-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } .diagram { position: sticky; top: 96px; } }
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; border-radius: var(--radius); background: #33452c; }
.diagram-key { margin: 16px 0 0; padding-left: 1.4em; color: #d9d2c0; font-size: .95rem; }
.diagram-key li { margin-bottom: 4px; }
.diagram-key b { color: #fbf7ee; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #8fae6b; color: #cfe0b8; display: grid; place-items: center; font-weight: 600; font-size: .95rem; }
.steps h3 { font-size: 1.15rem; margin: 4px 0 .35em; }
.steps p { margin: 0; color: #d0c9b7; }
.glossary { margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.18); }
.glossary dl { display: grid; gap: 24px 40px; margin: 20px 0 0; }
@media (min-width: 700px) { .glossary dl { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .glossary dl { grid-template-columns: 1fr 1fr 1fr; } }
.glossary dt { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: #fbf7ee; }
.glossary dd { margin: 4px 0 0; color: #d0c9b7; font-size: .95rem; }

/* Planner */
.planner { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .planner { grid-template-columns: 7fr 5fr; gap: 48px; } .planner-summary { position: sticky; top: 96px; } }
.planner-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 22px 0 26px; min-width: 0; }
.planner-form legend { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; padding: 0 0 12px; float: left; width: 100%; }
.planner-form legend + * { clear: both; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fffdf8; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.chips input:hover + span { border-color: var(--moss); }
.chips input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--rust); outline-offset: 2px; }
.field { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; margin-bottom: 14px; }
.field small { font-weight: 400; color: var(--ink-soft); margin-top: -4px; }
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
input[type="text"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fffdf8;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 46px;
}
input:focus, select:focus, textarea:focus { border-color: var(--moss); outline: none; box-shadow: 0 0 0 3px rgba(63, 90, 58, .2); }
textarea { resize: vertical; }
.checks { display: grid; gap: 10px; margin-top: 6px; }
.checks label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--forest); flex: none; }

.planner-summary { background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.planner-summary h3 { font-size: 1.25rem; }
.estimate { background: var(--paper-2); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.estimate strong { font-family: var(--serif); font-size: 1.9rem; display: block; line-height: 1.1; color: var(--forest); }
.advice { margin: 0 0 20px; padding: 0; list-style: none; }
.advice li { padding: 10px 0 10px 22px; border-bottom: 1px dashed var(--line); position: relative; font-size: .95rem; }
.advice li:last-child { border-bottom: 0; }
.advice li:not(.muted)::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--fern); }
.summary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.summary-actions .btn { flex: 1 1 auto; }

/* Contact */
.contact { position: relative; background: var(--forest); color: #efe9da; padding: 96px 0; overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; z-index: -1; }
.contact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,38,27,.92), rgba(29,38,27,.55)); z-index: -1; }
.contact h2 { color: #fbf7ee; max-width: 18em; }
.contact .eyebrow { color: #e0a274; }
.contact p { max-width: 34em; color: #d9d2c0; }
.contact-email { display: inline-block; font-family: var(--serif); font-size: clamp(1.25rem, 4.2vw, 2.2rem); color: #fbf7ee; margin: 8px 0 22px; overflow-wrap: anywhere; text-decoration-thickness: 1px; }
.contact-email:hover { color: #e0a274; }

/* Footer */
.site-footer { background: #182016; color: #bdb6a4; padding: 48px 0 56px; font-size: .95rem; }
.site-footer a { color: #e6dfcd; }
.site-footer .small { color: #9d9785; }
.footer-inner { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr 1.3fr; gap: 64px; } }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: #f4efe4; margin-bottom: 4px; }
.credits summary { cursor: pointer; font-weight: 600; color: #e6dfcd; }
.credits ul { padding-left: 1.1em; margin: 8px 0 0; font-size: .85rem; }
.credits li { margin-bottom: 6px; }
