/* The oddblossomexchange.com front page, in the app's design system (Naturalist's Ledger, a '70s greenhouse seed catalog). The colors
   are the app's own (leaf-of-absence/src/constants/theme.ts; test/page.test.mjs checks they still match): the Greenhouse (light) or
   the Night garden (dark), by the reader's device setting until they press the toggle in the header (a small inline script, allowed
   by its hash in netlify.toml, remembers the choice; without it the page just follows the device). Fraunces Soft for headings, Archivo
   for everything else, both self-hosted (the policy allows nothing from outside). The three-band stripe appears once, under the header.
   Brass frames mean "this is a plant" (the mark's plate and the specimen labels), as in the app; nothing else gets a box. */
@font-face { font-family: "Fraunces"; src: url("/fonts/FrauncesSoft_700Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces_500Medium_Italic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/ArchivoSemiCondensed_400Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/ArchivoSemiCondensed_600SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --surface: #F2E8CC; --surface-raised: #FBF6E6; --surface-sunk: #E6D9B2; --line: #CDBE90; --brass: #A57A1E;
  --sun: #D9A52A; --ink: #263020; --ink-muted: #5B573E;
  --action: #4E6B25; --on-action: #FBF6E6; --action-text: #46621F; --action-soft: #DCE3BA;
  --moss: #2C5E4A; --moss-soft: #D3E3D6; --held: #8A4A14; --held-soft: #F1DDB8;
  --focus-ring: #4E6B25; --stripe-deep: #173326;
  /* The welcome green: avocado with cream text in both themes, like the app's welcome header. */
  --band: #4E6B25; --on-band: #FBF6E6;
  --display: "Fraunces", "Cooper Black", "Iowan Old Style", Georgia, serif;
  --ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
/* The reader's choice (data-theme, set by the toggle's script) wins; with none, the device setting decides. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #151912; --surface-raised: #1E2419; --surface-sunk: #272E20; --line: #3A4230; --brass: #D6A93A;
  --sun: #D6A93A; --ink: #FFFFFF; --ink-muted: #A8A287;
  --action: #9FC14A; --on-action: #151912; --action-text: #B3CF62; --action-soft: #28321A;
  --moss: #6EC6A0; --moss-soft: #1A2E26; --held: #E39A4E; --held-soft: #332518;
  --focus-ring: #D6A93A; --stripe-deep: #2F6A52;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --surface: #151912; --surface-raised: #1E2419; --surface-sunk: #272E20; --line: #3A4230; --brass: #D6A93A;
    --sun: #D6A93A; --ink: #FFFFFF; --ink-muted: #A8A287;
    --action: #9FC14A; --on-action: #151912; --action-text: #B3CF62; --action-soft: #28321A;
    --moss: #6EC6A0; --moss-soft: #1A2E26; --held: #E39A4E; --held-soft: #332518;
    --focus-ring: #D6A93A; --stripe-deep: #2F6A52;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* The page itself (html and body) is the app's page color, so the strip Safari tints behind the notch and the toolbars is the same
   cream (or night green) as the header under it, never browser white. */
html, body { background: var(--surface); }
body { margin: 0; color: var(--ink); font: 400 17px/1.6 var(--ui); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--action-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface-raised); color: var(--ink); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--brass); z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.05; }
h2 { font-size: 22px; line-height: 1.2; }
h2.big { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.1; }
p { margin: 0; }

/* Header: the lockup and a way into the app, with the stripe under it (as under the app's tab headers). */
.top { padding-top: env(safe-area-inset-top); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.lockup { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.lockup img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--brass); }
.lockup .name { display: flex; flex-direction: column; white-space: nowrap; font: 700 19px/20px var(--display); }
.lockup .name em { font: italic 500 15px/18px var(--display); color: var(--ink-muted); }
.bar nav { display: flex; align-items: center; gap: 8px; }
.bar nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 16px; }
/* The light/dark toggle: hidden until the page's script runs (has-js), since without it the button would do nothing. The moon says
   "go dark" in the Greenhouse, the sun says "go light" in the Night garden; aria-pressed says whether dark mode is on. */
.theme-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle:hover { background: var(--surface-sunk); }
.has-js .theme-toggle { display: inline-flex; }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle:hover { opacity: 0.92; }
:root[data-theme="dark"] .theme-toggle .moon, :root:not([data-theme="dark"]) .theme-toggle .sun { display: none; }
.stripe { display: grid; grid-template-rows: 1fr 1fr 1fr; height: 18px; overflow: hidden; }
.stripe span:nth-child(1) { background: var(--stripe-deep); }
.stripe span:nth-child(2) { background: var(--action); }
.stripe span:nth-child(3) { background: var(--sun); }
/* The stripe races in from the left as the page opens, a band at a time (top first, so the leading edge slants like a speed line),
   fast off the line and easing to a stop, as the app's first stripe does. Not for a reader whose device asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .stripe span { transform-origin: left; animation: race 750ms cubic-bezier(0.22, 1, 0.36, 1) 150ms both; }
  .stripe span:nth-child(2) { animation-delay: 240ms; }
  .stripe span:nth-child(3) { animation-delay: 330ms; }
}
@keyframes race { from { transform: scaleX(0); } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 14px; border: 1.5px solid transparent; font: 600 16px/20px var(--ui); text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--action); color: var(--on-action); }
.btn.secondary { background: var(--surface-sunk); color: var(--ink); }
.btn.cream { background: var(--on-band); color: #263020; }
.btn:hover { opacity: 0.92; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }


/* Hero: words on the left, the mark on the right in a frame, captioned like a specimen plate. */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 72px); align-items: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { max-width: 15em; margin-bottom: 18px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--ink-muted); max-width: 30em; margin: 0 0 28px; }
.plate { margin: 0; padding: 20px; background: var(--surface-raised); border: 1px solid var(--brass); border-radius: 14px; }
/* The mark's own cream ground is the frame's cream, so a hairline keeps its rounded corners in view. */
.plate img { width: 100%; aspect-ratio: 1; border-radius: 22px; box-shadow: 0 0 0 1px var(--line); }
.plate figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.plate .bin { font: italic 500 17px/22px var(--display); }
.plate .common { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* The page's one bold moment: a row of specimen labels on the sunk ground between brass rules, the way the app labels a plant
   (italic binomial, upright cultivar, the price in Fraunces). They are examples, and the line above says so. */
.specimens { background: var(--surface-sunk); border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass); padding: clamp(36px, 5vw, 56px) 0; margin-bottom: clamp(40px, 6vw, 64px); }
.specimens .sub { color: var(--ink-muted); margin: 10px 0 24px; max-width: 34em; }
.labels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.labels li { display: flex; flex-direction: column; gap: 2px; padding: 4px 20px; border-left: 1px solid var(--line); }
.labels li:first-child { border-left: 0; padding-left: 0; }
.labels .bin { font: italic 500 20px/1.3 var(--display); }
.labels .cv { font-style: normal; }
.labels .form, .labels .where { font-size: 15px; color: var(--ink-muted); }
/* Pushed down so the prices line up across the row, however long a name runs. */
.labels .price { font: 700 32px/1.15 var(--display); margin-top: auto; padding-top: 10px; }

/* Three points, as a ruled list: the heading on the left, what it means on the right. No icons, no boxes. */
.points { padding-bottom: clamp(48px, 7vw, 80px); }
.points dl { margin: 0; border-top: 1px solid var(--line); }
.points dl div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px 40px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.points dt { font: 700 22px/1.25 var(--display); }
.points dd { margin: 0; max-width: 36em; }

/* How it works: the numbered steps, and what it costs beside them. */
.how { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; padding-bottom: clamp(48px, 7vw, 80px); }
.how h2 { margin-bottom: 20px; }
.fee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fee p { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 12px 0; }
.fee p + p { border-top: 1px solid var(--line); }
.fee p span:first-child { color: var(--ink-muted); }
.fee p span:last-child { text-align: right; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
/* The steps are a real sequence, so they are numbered: big Fraunces numerals in the margin, like a catalog's plate numbers. */
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 52px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -6px; width: 36px; font: 700 34px/1 var(--display); color: var(--action-text); }
.steps strong { display: block; font-weight: 600; }

.band { background: var(--band); color: var(--on-band); padding: clamp(40px, 6vw, 64px) 0; }
.band p { max-width: 38em; margin: 12px 0 24px; }

/* Alpha and account notes: two short columns of plain text. */
.notes { display: grid; gap: 24px 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }
.notes h2 { font-size: 20px; line-height: 26px; margin-bottom: 8px; }
.notes p { color: var(--ink-muted); }

footer { border-top: 1px solid var(--line); padding: 28px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--ink-muted); }
footer p { margin: 0 0 8px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* The page that isn't here. */
/* The beta invite page (/beta): the steps to join on TestFlight, one button, and a note for Android and computers. */
.beta { max-width: 760px; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(56px, 9vw, 104px); }
.beta h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }
.beta .steps { margin: 8px 0 32px; }
.beta .note { margin-top: 24px; color: var(--ink-muted); }

.support { max-width: 760px; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(56px, 9vw, 104px); }
.support h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }
.support h2 { font-size: 22px; line-height: 28px; margin: 36px 0 8px; }
.support p { margin: 0 0 12px; }

.not-found { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 10vw, 120px); }
.not-found h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 12px; }

@media (max-width: 860px) {
  .hero, .how { grid-template-columns: 1fr; }
  .plate { max-width: 380px; }
  .notes { grid-template-columns: 1fr; }
  .points dl div { grid-template-columns: 1fr; }
  .labels { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .labels li:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .bar { gap: 12px; }
  .bar nav a:not(.btn), .bar nav .btn { display: none; }
  .lockup .name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Questions people ask: the same ruled list as the three points, under its own heading. */
.faq h2 { margin-bottom: 20px; }
