/* ==========================================================================
   PLANTED.CARE — foundation
   Palette sampled from the app: ground #0e1f15, surface #13231a, leaf #66bb6a.
   The pale lime #d4eb99 comes off the app icon and is used sparingly as a
   second highlight — it's the only thing on the page brighter than the text.
   ========================================================================== */

:root {
  --ground: #0e1f15;
  --ground-deep: #081c10;
  --surface: #13231a;
  --surface-2: #1a2c21;

  --leaf: #66bb6a;
  --leaf-lt: #8fd694;
  --lime: #d4eb99;
  --leaf-dim: rgba(102, 187, 106, 0.22);

  --paper: #f3f8f5;
  --text: #dbe7de;
  --text-2: #a3b8a9;
  --text-3: #7d9384;
  --text-4: #58705f;

  --rule: rgba(255, 255, 255, 0.07);
  --rule-leaf: rgba(102, 187, 106, 0.24);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max: 1080px;
  --header-h: 74px;
  --r: 16px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms var(--ease);
  --t: 320ms var(--ease);
  --t-slow: 560ms var(--ease);
}

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

html {
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; background: var(--ground); line-height: 1.65; overflow-x: hidden; }

::selection { background: var(--lime); color: #0e1f15; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  line-height: 1.16;
  color: var(--paper);
}
p { color: var(--text-2); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--leaf-lt); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 500;
  padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--lime); color: #0e1f15; font-weight: 800; font-size: 0.875rem;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

.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;
}

.wrap {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
}
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }

/* Light through a window, from the top right — the thing a houseplant is
   always reaching for. Nothing multicoloured. */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-sun {
  position: absolute; top: -32%; right: -12%;
  width: 80vw; height: 80vw; max-width: 1040px; max-height: 1040px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 214, 148, 0.16), transparent 66%);
  filter: blur(70px);
}
.ambient-soil {
  position: absolute; inset: auto 0 0 0; height: 44vh;
  background: linear-gradient(to top, rgba(8, 28, 16, 0.92), transparent);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.rule { height: 1px; width: 100%; background: var(--rule); }
.rule-leaf {
  height: 1px; width: 100%;
  background: linear-gradient(to right, var(--rule-leaf), rgba(102,187,106,0.05) 70%, transparent);
}

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--rd, 0ms); }
.js .reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
