/* Blooms for You website. Values come from design/design-system/tokens.json.
   Light mode follows the app exactly. Dark mode sets the page on farm-olive.
   Layout: one column on phones; on wide screens the hero pairs copy with the stamp,
   and the sign-up card sits beside the photo. */

:root {
  /* Light: the app's tokens */
  --ground: #faeee8;        /* blush */
  --surface: #ffffff;       /* white: cards and fields */
  --field: #ffffff;
  --ink: #353822;           /* olive-ink */
  --title: #231f20;         /* title-ink */
  --muted: #5f6049;         /* olive-ink-muted */
  --control-border: #8a7f78;/* warm-grey, 3.43:1 on blush, 3.90:1 on white */
  --link: #b01f4e;          /* ranunculus-deep */
  --focus: #b01f4e;
  --error: #b01f4e;
  --button: #f96285;        /* ranunculus */
  --button-ink: #231f20;    /* title-ink, 5.52:1 on ranunculus */
  --tint: #f7d1c5;          /* coral-candy */
  --tint-ink: #353822;
  --stamp: #393d24;         /* farm-olive */
  --stamp-ring: transparent;
  --leaf: #393d24;
  --rule: #dcc9c2;          /* hairline, decorative only */
  --card-edge: transparent;
  --shadow: 0 2px 14px rgba(53, 56, 34, 0.10);

  --display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --text: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wordmark: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;

  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --gutter: 28px;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-pill: 999px;
}

/* Dark: farm-olive ground. Ratios: blush on farm-olive 9.89:1, #d6cbc3 7.06:1,
   coral-candy 7.97:1, hairline as a control border 7.06:1, #f9a3b6 5.86:1. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #393d24;
    --surface: #2c2f1b;
    --field: #2c2f1b;
    --ink: #faeee8;
    --title: #faeee8;
    --muted: #d6cbc3;
    --control-border: #dcc9c2;
    --link: #f7d1c5;
    --focus: #f7d1c5;
    --error: #f9a3b6;
    --tint: #2c2f1b;
    --tint-ink: #faeee8;
    --stamp: #393d24;
    --stamp-ring: #faeee8;
    --leaf: #a1ab62;
    --rule: #545836;
    --card-edge: #545836;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #393d24;
  --surface: #2c2f1b;
  --field: #2c2f1b;
  --ink: #faeee8;
  --title: #faeee8;
  --muted: #d6cbc3;
  --control-border: #dcc9c2;
  --link: #f7d1c5;
  --focus: #f7d1c5;
  --error: #f9a3b6;
  --tint: #2c2f1b;
  --tint-ink: #faeee8;
  --stamp: #393d24;
  --stamp-ring: #faeee8;
  --leaf: #a1ab62;
  --rule: #545836;
  --card-edge: #545836;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  padding-inline: var(--gutter);
  padding-block: 24px 48px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1040px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Header lockup: mark first, then the name */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  width: fit-content;
  min-height: 44px;
}
.mark { width: 36px; height: 36px; flex: none; display: block; }
.wordmark {
  font-family: var(--wordmark);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.4px;
}

/* Stamp and mark grounds carry a blush ring in dark mode only */
.disc { fill: var(--stamp); stroke: var(--stamp-ring); }

/* Type */
.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 11; /* small optical size: thicker hairlines, readable on blush */
  color: var(--title);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.12; }
h2 { font-size: 28px; line-height: 34px; }
p { margin: 0; }
.source { font-size: 15px; line-height: 22px; color: var(--muted); }
strong { font-weight: 600; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
.hero-copy h1 { margin-block: 4px var(--space-8); }
.lede { max-width: 34em; }
.stamp { width: 260px; height: 260px; display: block; }

/* Sign-up row */
.join-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.card {
  background: var(--surface);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  min-width: 0;
}
.group { display: flex; flex-direction: column; gap: var(--space-8); }

form { display: flex; flex-direction: column; gap: var(--space-24); }
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-16) var(--space-16);
}
.field { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
.field label { font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
input, select {
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  height: 48px;
  padding-inline: 14px;
  width: 100%;
  min-width: 0;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input::placeholder { color: var(--muted); }
.field.has-error input { border: 2px solid var(--error); }
.field-error { color: var(--error); }
.help { font-size: 15px; line-height: 22px; color: var(--muted); }

.button-primary {
  font-family: var(--text);
  font-size: 19px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--button-ink);
  background: var(--button);
  border: 0;
  border-radius: var(--radius-control);
  height: 56px;
  width: 100%;
  cursor: pointer;
}
.button-primary:active { filter: brightness(0.96); }

.done { display: flex; flex-direction: column; gap: var(--space-8); }

.photo { margin: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.photo picture { display: block; }
.photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* What the app does */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.about-copy { display: flex; flex-direction: column; gap: var(--space-24); min-width: 0; }
ul.does { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-16); max-width: 36em; }
ul.does li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; }
ul.does li::before {
  content: "";
  width: 10px; height: 10px;
  margin-top: 10px;
  border-radius: 50% 0;
  background: var(--leaf);
}

.tip {
  background: var(--tint);
  color: var(--tint-ink);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.tip .eyebrow { color: inherit; opacity: 1; }
.tip .claim {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 11;
  font-size: 24px;
  line-height: 30px;
  color: inherit;
}

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding-top: var(--space-24);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-16) 40px;
}
footer .group { gap: 4px; }
footer a { min-height: 44px; }

/* Long-form pages (privacy, confirmed) */
.prose { max-width: 40em; display: flex; flex-direction: column; gap: var(--space-24); }
.prose section { display: flex; flex-direction: column; gap: var(--space-8); }
.prose h2 { font-size: 24px; line-height: 30px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.address { font-style: normal; }

@media (max-width: 760px) {
  body { padding-block: 16px 40px; }
  .wrap { gap: 44px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
  .stamp { width: 200px; height: 200px; order: -1; }
  .join-row, .about { grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
  .card { padding: var(--space-16); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .photo img { aspect-ratio: 4 / 5; }
}
@media (max-width: 380px) {
  body { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
