/* Larkspur & Loam — shared styles */
@font-face { font-family: "Newsreader LL"; src: url("fonts/newsreader-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree LL"; src: url("fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree LL"; src: url("fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --ink: #241c16;
  --ink-soft: #5c5148;
  --paper: #f6f1e8;
  --paper-deep: #ebe3d4;
  --card: #fffaf3;
  --moss: #1e4634;
  --moss-deep: #143226;
  --clay: #8c4a2f;
  --larkspur: #8c4a2f;
  --line: #d9cebc;
  --radius: 2px;
  --shadow: none;
  --serif: "Newsreader LL", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Figtree LL", "Segoe UI", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--moss); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--moss-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--larkspur); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: .75rem; display: block; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--paper-deep); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: .55rem .85rem; border-radius: 0; color: var(--ink); text-decoration: none; font-size: .97rem; font-weight: 500; }
.nav a:hover { background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current="page"] { background: transparent; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .nav { position: absolute; inset: 72px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; }
  .nav a { padding: .8rem 1rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 0; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); min-height: 48px; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--moss); color: #fff; }
.btn-primary:hover { background: var(--moss-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-art { background: #1a1612; border: 0; border-radius: 0; padding: 0; overflow: hidden; }
.hero-art img, .page-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art img { height: min(68vh, 560px); object-position: center 40%; }
.page-photo { margin: 0 0 1.5rem; height: 280px; overflow: hidden; }
.photo-row { display: grid; grid-template-columns: 1.4fr .8fr; gap: .75rem; margin: 1.5rem 0 0; }
.photo-row img { width: 100%; height: 220px; object-fit: cover; }
.photo-credit { font-size: .78rem; line-height: 1.4; max-width: 46rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.25rem; color: var(--ink-soft); font-size: .95rem; }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* Cards & grids */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p:last-child { margin-bottom: 0; }
.card .tag { align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: var(--paper-deep); color: var(--moss-deep); margin-bottom: 1rem; }
.card-link { margin-top: auto; padding-top: 1rem; font-weight: 600; }
.card-art { border-radius: 10px; margin: -0.5rem -0.5rem 1.25rem; overflow: hidden; background: var(--paper-deep); }
.meta { font-size: .88rem; color: var(--ink-soft); margin-bottom: .75rem; }

/* Light scale */
.light-scale { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.light-scale div { padding: 1.5rem; border-right: 1px solid var(--line); }
.light-scale div:last-child { border-right: 0; }
.light-scale .swatch { height: 8px; border-radius: 4px; margin-bottom: 1rem; }
@media (max-width: 820px) { .light-scale { grid-template-columns: 1fr 1fr; } .light-scale div:nth-child(2) { border-right: 0; } .light-scale div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.8rem; color: var(--clay); display: block; margin-bottom: .5rem; }

/* Quote / pull */
.pull { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35; border-left: 4px solid var(--clay); padding-left: 1.5rem; margin: 0; }
.pull cite { display: block; font-family: var(--sans); font-size: .95rem; font-style: normal; color: var(--ink-soft); margin-top: 1rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--moss); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); }

/* Newsletter */
.signup { background: var(--moss); color: #f3efe4; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.signup h2 { color: #fff; }
.signup p { color: #dbe6dc; }
@media (max-width: 820px) { .signup { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .97rem; }
.field .hint { font-size: .88rem; color: var(--ink-soft); margin-top: .3rem; }
.signup .field label, .signup .hint { color: #f3efe4; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid #bfb49c; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); min-height: 48px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--larkspur); outline: 3px solid rgba(90, 95, 168, .25); outline-offset: 0; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--moss); flex-shrink: 0; }
.field-error { color: #a1301b; font-size: .9rem; margin-top: .3rem; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #a1301b; }
.form-status { padding: 1rem 1.1rem; border-radius: 10px; background: #e3eee5; color: var(--moss-deep); font-weight: 600; display: none; }
.form-status.show { display: block; }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }

/* Article / long-form */
.prose h2 { margin-top: 2.5em; font-size: 1.9rem; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .97rem; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-deep); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--moss); border-radius: 10px; padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.callout p:last-child { margin: 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 96px; }
.toc ol { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.toc li { margin-bottom: .4rem; }
.with-toc { display: grid; grid-template-columns: 260px 1fr; gap: 3.5rem; align-items: start; }
@media (max-width: 920px) { .with-toc { grid-template-columns: 1fr; } .toc { position: static; } }
.page-head { padding: clamp(3rem, 6vw, 5rem) 0 2rem; border-bottom: 1px solid var(--line); }
.updated { color: var(--ink-soft); font-size: .95rem; }

/* Plant profile */
.profile { display: grid; grid-template-columns: 180px 1fr; gap: 1.75rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.profile dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1rem 0 0; font-size: .95rem; }
.profile dt { font-weight: 700; }
.profile dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #cfd6cf; padding: 4rem 0 2rem; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #eef1ea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb0a2; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-base { border-top: 1px solid #3a463d; margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: #9fb0a2; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #eef1ea; cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Cookie consent */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; max-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(31, 42, 34, .22); padding: 1.5rem; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions .btn { padding: .65rem 1.1rem; min-height: 44px; font-size: .95rem; }
.cookie-prefs { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; display: none; }
.cookie-prefs.show { display: block; }
.pref-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.pref-row:last-of-type { border-bottom: 0; }
.pref-row strong { display: block; }
.pref-row span { font-size: .9rem; color: var(--ink-soft); }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; background: #c9c0ac; border-radius: 999px; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + .track { background: var(--moss); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:disabled + .track { opacity: .6; }
.switch input:focus-visible + .track { outline: 3px solid var(--larkspur); outline-offset: 2px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Review fixes */
:root { --clay: #9a4a2b; }
.nav a { min-height: 44px; display: flex; align-items: center; }
@media (max-width: 880px) { .hero-art { max-width: 380px; margin-inline: auto; } }
@media (max-width: 640px) { .profile > svg { max-width: 140px; } }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: 1rem; }
.chips-label { font-weight: 700; }
.chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; color: var(--ink); font-size: .95rem; }
.chips a:hover { border-color: var(--moss); color: var(--moss-deep); }
.profile { scroll-margin-top: 90px; }
