/* Apps To Grow — one stylesheet, no build step. Mobile first, dark-mode aware.
   Type: Bricolage Grotesque (self-hosted, SIL Open Font License, see /fonts/OFL.txt).
   Palette: greenhouse glass (paper), moss ink, one leaf-green accent. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f3f6ef;
  --ink: #1c2a21;
  --moss: #55665a;
  --leaf: #2f7a3e;
  --rule: #cbd5c8;
  --pot: #e3eadf;
  --alert: #a3261c;
  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --measure: 62ch;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.33rem;
  --step-2: 1.66rem;
  --step-3: 2.08rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a15;
    --ink: #e6ece3;
    --moss: #9dae9f;
    --leaf: #7cc98a;
    --rule: #2b392f;
    --pot: #1b2620;
    --alert: #f2988c;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0) / 1.55 var(--font);
  font-optical-sizing: auto;
}

a {
  color: var(--leaf);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }

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

img { max-width: 100%; display: block; }

h1, h2, h3, p, dl, ol, ul, figure { margin: 0; }

.wrap {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.brand {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: underline; }
.top nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}
.top nav a { color: var(--ink); }

/* Hero: the name as a stacked wordmark, the growth stem beside it. */
.hero {
  display: grid;
  gap: 3rem;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem);
}
@media (min-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 1fr);
    align-items: end;
    gap: 4rem;
  }
}
.hero h1 {
  font-size: clamp(3.4rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 5ch;
  margin-bottom: 1.25rem;
}
.tagline {
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: 1.25rem;
}
.intro {
  max-width: var(--measure);
  color: var(--moss);
}

/* The stem: Darwin's seven stages, read from the bottom up like a plant. */
.stem-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column-reverse;
  position: relative;
  margin-block: 1rem 0.75rem;
}
.stem-list::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: var(--rule);
  transform: translateX(-50%);
}
.node {
  position: relative;
  padding: 0.4rem 0 0.4rem 2rem;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  column-gap: 0.6rem;
  align-items: baseline;
}
.node::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 1.05rem;
  width: 0.7rem;
  height: 0.7rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--rule);
}
.node.has-projects::before {
  background: var(--leaf);
  border-color: var(--leaf);
}
.node-plant {
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}
.node-label { color: var(--moss); }
.node-count {
  color: var(--leaf);
  font-weight: 600;
}
.node-gloss {
  grid-column: 1 / -1;
  color: var(--moss);
  font-size: var(--step--1);
  max-width: 34ch;
}
.stem figcaption {
  color: var(--moss);
  font-size: var(--step--1);
  max-width: 36ch;
}

/* The register of projects: ledger rows, not boxes. */
.garden {
  padding-block: 3rem 4rem;
  border-top: 1px solid var(--rule);
}
.garden-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
h2 {
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.garden-head p { color: var(--moss); }
.register {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  gap: 2.75rem 2rem;
}
@media (min-width: 44rem) {
  .register { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.plant {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}
.plant-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--pot);
  border-radius: 0.375rem;
}
.plant-name {
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-top: 0.25rem;
}
.plant-line { max-width: 46ch; }
.plant-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  font-size: var(--step--1);
  margin-top: 0.25rem;
}
.plant-facts dt { color: var(--moss); }
.plant-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.meter {
  display: inline-flex;
  gap: 3px;
  margin-right: 0.5rem;
  vertical-align: -1px;
}
.meter span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--rule);
}
.meter span.on { background: var(--leaf); }
.plant-note {
  color: var(--moss);
  font-size: var(--step--1);
}
.coming { color: var(--moss); }

/* About, plain pages, footer */
.about {
  padding-block: 3rem 4rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
}
.about h2 { margin-bottom: 0.5rem; }

.page {
  padding-block: clamp(2.5rem, 6vw, 4rem) 4rem;
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
}
.page h1 {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.page h2 {
  font-size: var(--step-1);
  margin-top: 1.25rem;
}
.page ul { padding-left: 1.25rem; }
.page li + li { margin-top: 0.35rem; }
.page .meta { color: var(--moss); font-size: var(--step--1); }

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem 3rem;
  color: var(--moss);
  font-size: var(--step--1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}
.foot nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

/* Utilities */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}
.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;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Pre-launch gate: the coming-soon page that functions/_middleware.js serves until the site opens. */
.gate {
  padding-block: clamp(3rem, 10vw, 7rem) 4rem;
  display: grid;
  gap: 1.25rem;
  max-width: var(--measure);
}
.gate h1 {
  font-size: clamp(3.4rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 5ch;
}
.gate .tagline { margin-bottom: 0; }
.gate-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.gate-form label { font-weight: 600; }
.gate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.gate-row input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--moss);
  border-radius: 6px;
}
.gate-row input[aria-invalid="true"] { border-color: var(--alert); }
.gate-row button {
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 700;
  color: var(--paper);
  background: var(--leaf);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.gate-row button:hover { background: var(--ink); }
.gate-error { color: var(--alert); }
.gate-note {
  color: var(--moss);
  font-size: var(--step--1);
}
