/* ============================================================
   GOLDEN RIDGE APIARY — Bee demo · page layer
   Type, grid and components live in ../system.css (v4).
   Palette (VISION §3.2 Bee): honey #D97706 · beeswax #F59E0B ·
   hive dark #292524 · cream #FFFBEB · field green #3F6212
   ============================================================ */

:root {
  --hive: #292524;
  --honey: #D97706;
  --wax: #F59E0B;
  --cream: #FFFBEB;
  --field: #3F6212;
  --dusk: #7C8B99;               /* evening sky over the meadow — the one cool note. NON-TEXT only: idle hives, sold-out chip */
  --cool: var(--dusk);

  --bg: var(--cream);
  --bg-2: #F6EBC9;               /* inset level: panels, plates, bands — 5 L* under the paper */
  --bg-3: #EBDDB2;
  --card: #FFFEF7;               /* the cream is already L* 98.5: the card is only ~1 L* lighter, its edge and shadow carry it */
  --fg: var(--hive);
  --night-ink: var(--hive);
  --muted: #57534E;              /* 7.36:1 on cream · 6.41:1 on bg-2 */
  /* honey/wax never carry white text (VISION binding rule) → CTA is field green */
  --accent: var(--field);
  --accent-text: var(--field);   /* 6.82:1 on cream · 5.95:1 on bg-2 */
  --on-accent: var(--cream);
  --ok: var(--field);
  --dark-a: #2B2320;             /* ≈ brand hive; gradient only goes darker */
  --dark-b: #211B18;
  --dark-c: #1A1513;
  --on-dark: var(--cream);
  --muted-dark: rgba(255, 251, 235, .78);
  --accent-on-dark: var(--wax);        /* 7.06:1 on hive */
  --accent-on-dark-text: var(--wax);
  --rule-soft: rgba(41, 37, 36, .22);      /* decorative only */
  --rule: rgba(41, 37, 36, .55);           /* controls + leader rules: 3.54:1 on cream */
  --rule-dark-soft: rgba(255, 251, 235, .30);
  --rule-dark: rgba(255, 251, 235, .45);   /* 4.13:1 on hive */
  --focus: var(--field);
  --focus-dark: var(--wax);
  --scroll-pad: 24px;            /* static header on phones; 96px where the header is sticky (below) */

  /* honey colour bands on the labels (tints of the locked palette) */
  --sw-wildflower: var(--wax);
  --sw-basswood: #FBD691;        /* pale straw — basswood runs almost water-white */
  --sw-buckwheat: var(--hive);
  --sw-creamed: #FDEDC9;
}

@media (min-width: 64rem) { :root { --scroll-pad: 96px; } }
/* CRAFT v8 3.1 — hairlines are mixed from the accent, so they stay warm on the paper instead of turning grey.
   Only the decorative --rule-soft; --rule keeps its measured ≥ 3:1. Inside @supports: an unsupported color-mix()
   in a custom property would be "valid" and break every border that uses it. */
@supports (color: color-mix(in oklab, red, blue)) {
  :root { --rule-soft: color-mix(in oklab, var(--accent) 26%, rgba(41, 37, 36, .26)); }
}


.input:user-invalid { border-color: var(--honey); }

/* ---------- 1 · HERO ---------- */
.hero { padding: 0 0 16px; }   /* the honey rule, then the demo note, close the hero — both in the flow */
.hero .demo-strip { margin-top: 8px; border-top: 0; }   /* the honey rule above it is the separator */
.hero-grid { padding-top: 36px; }
.hero-grid { align-items: center; }
.hero .lead { max-width: 44ch; margin-bottom: 30px; }
.season-line { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; max-width: none; }
.poster .stamp { top: 17%; right: 26px; transform: rotate(4deg); }
@supports (font-size: 1cqw) { .hero-plate .poster-big { font-size: min(62cqw, 18rem); } }
.hero-plate .plate-inner { view-transition-name: vt-bee; --ar: 1 / 1; }   /* square on phones, like the maple poster */
@media (min-width: 600px) and (max-width: 859px) { .hero-plate .plate-inner { --ar: 5 / 4; } }   /* square only on phones */
/* hex field: one tiny pattern, opacity baked into the stroke — no DOM nodes */
.poster-hex {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48'%3E%3Cg fill='none' stroke='%23F59E0B' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M13.85 0 L27.7 8 L27.7 24 L13.85 32 L0 24 L0 8 Z'/%3E%3Cpath d='M13.85 32 L13.85 48'/%3E%3Cpath d='M7 4 L0 8'/%3E%3Cpath d='M20.8 4 L27.7 8'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(130% 100% at 20% 0%, var(--dark-a) 0%, var(--dark-b) 60%, var(--dark-c) 100%);
}
/* replaces the old drip: one honey rule, drawn left to right */
.hero-rule { display: block; height: 2px; background: var(--honey); }
@media (min-width: 860px) {
  .hero-grid { padding-top: 72px; }
  .hero-plate .plate-inner { --ar: 4 / 5; }
  .hero { padding-bottom: 28px; }
}
/* short laptop viewports: copy starts at the top, poster goes square */
@media (min-width: 860px) and (max-height: 820px) {
  .hero-grid { padding-top: 34px; }   /* no eyebrow above this H1, so it needs the air */
  .hero-grid { align-items: start; }
  .hero-h1 { margin-bottom: 18px; }
  .season-line { margin-bottom: 12px; }
  .hero .lead { margin-bottom: 22px; }
  .hero-plate .plate-inner { --ar: 1 / 1; }
  .hero { padding-bottom: 4px; }
}

/* ---------- 2 · THIS SEASON'S HONEY ---------- */
/* a tasting flight: four labels in one row on desktop, 2×2 on tablets, stacked on phones */
.honey-grid { display: grid; gap: 40px 24px; }
@media (min-width: 640px) { .honey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .honey-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.h-card .plate { margin-bottom: 18px; }
.h-card .plate-inner { min-height: 250px; padding: 30px 12px; background: var(--bg-2); }   /* no crop marks here: one printer's detail per page */
.h-card .label { width: min(100%, 232px); padding: 20px 16px 16px; gap: 10px; }
.h-card .label-name { font-size: 1.75rem; }
.h-card .label-swatch { height: 24px; margin-inline: -16px; }
.sw-wildflower { --swatch: var(--sw-wildflower); }
.sw-basswood { --swatch: var(--sw-basswood); }
.sw-buckwheat { --swatch: var(--sw-buckwheat); }
.sw-creamed { --swatch: var(--sw-creamed); }
.h-notes { color: var(--muted); margin: 0 0 12px; max-width: 46ch; }
/* notes differ in length: the price lines still sit on one baseline across the four cards */
.h-card { display: flex; flex-direction: column; }
.h-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: auto 0 0; }
.h-meta .chip { align-self: center; }

/* D3 (DRAMA v7) — the shelf takes the colour of the jar under the pointer: clover gold, basswood straw, buckwheat
   almost black, creamed ivory. Pointer devices only; a touch screen keeps the paper. Labels stay cream cards. */
#honey { background: var(--bg); color: var(--fg); transition: background-color .5s var(--ease), color .5s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  #honey:has(.h-card:nth-child(1):hover) { --bg: #F9E3A9; --bg-2: #F3D588; }
  #honey:has(.h-card:nth-child(2):hover) { --bg: #FBEFC9; --bg-2: #F6E3AE; }
  #honey:has(.h-card:nth-child(3):hover) {
    --bg: #2B2320; --bg-2: #1E1815; --fg: var(--cream); --muted: rgba(255, 251, 235, .8); --accent-text: var(--wax); --ok: #CFE3B0;
    --rule: rgba(255, 251, 235, .5); --rule-soft: rgba(255, 251, 235, .28);
  }
  #honey:has(.h-card:nth-child(4):hover) { --bg: #FDF3DC; --bg-2: #F8E8C2; }
}
.h-card .label { --fg: var(--hive); --muted: #57534E; color: var(--fg); }
.type-poster { --poster-bg: var(--honey); --poster-fg: var(--hive); --tp-size: 12.4vw; }   /* ink on honey 4.76:1 — never white on honey (VISION) */

/* ---------- 3 · BEYOND HONEY ---------- */
.beyond .grid12 { align-items: start; }
.beyond .order-strip { margin-top: 0; }

/* ---------- 4 · MEET THE BEEKEEPER (dark) ---------- */
.beekeeper .quote-pull { margin-top: 36px; }
.bk-copy .note { margin-top: 24px; }

/* ---------- 5 · ADOPT A HIVE ---------- */
.adopt-price { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 26px; }
.adopt-list li { display: block; }
.adopt-list strong { color: var(--fg); font-weight: 600; }
.adopt-panel { display: grid; gap: 32px; }
.adopt-offer .btn { margin: 0 0 14px; }
@media (min-width: 860px) {
  .adopt-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; padding: 56px 64px; }
}

/* ---------- 6 · WHERE TO FIND US ---------- */
.find-grid { align-items: start; }
.stand-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 600; }
@media (min-width: 860px) { .sec-head-split .stand-line { grid-column: 2; margin: 14px 0 0; } }   /* under the lead, not under the title */
.find-h { margin-bottom: 16px; }

/* ---------- 7 · JAR DROP ---------- */
.jd-grid { align-items: center; }
.jd-row { display: flex; flex-wrap: wrap; gap: 12px; }
.jd-row .input { flex: 1 1 240px; }
.jd-form .note { margin: 14px 0 0; }

/* ---------- short laptop screens: every section is one page (see ../components.css) ---------- */
@media (min-width: 64rem) and (max-height: 900px) {
  .h-card .plate-inner { min-height: 200px; padding: 22px 12px; }
}
@media (min-width: 64rem) and (max-height: 780px) {
  .h-card .plate { margin-bottom: 12px; }
  .h-card .plate-inner { min-height: 0; padding: 16px 12px; }
  .h-card .label { padding: 16px 14px 14px; gap: 8px; }
  .h-card .label-name { font-size: 1.5rem; }
  .h-notes { margin-bottom: 8px; }
  .adopt-panel { padding: 36px 48px; gap: 48px; }
  .adopt-price { margin: 6px 0 18px; }
  .beekeeper .quote-pull { margin-top: 20px; font-size: 2.5rem; }
}
@media (min-width: 64rem) and (max-height: 680px) {
  .hero-grid { padding-top: 10px; }
  .season-line { margin-bottom: 4px; }
  .hero { padding-bottom: 0; }
  .hero .lead { margin-bottom: 16px; }
  .hero-plate .plate-inner { --ar: 4 / 3; }
  .hero-plate .poster-big { font-size: min(54cqw, 18rem); }   /* the poster holds its caption in a 4/3 plate (.qa/poster-fit.js) */
  .h-card .plate { margin-bottom: 8px; }
  .h-card .plate-inner { padding: 6px 12px; }
  .h-card .label { padding: 12px 12px 10px; gap: 6px; }
  .h-card .label-name { font-size: 1.375rem; }
  .h-card .label-swatch { height: 18px; margin-inline: -12px; }
  .h-notes { font-size: 1rem; line-height: 1.6; margin-bottom: 6px; }
  .beekeeper .quote-pull { margin-top: 12px; font-size: 2rem; }
  .bk-copy p { margin-bottom: 12px; }
  .bk-copy .note { margin-top: 8px; }
  .find-h { margin-bottom: 8px; }
  .adopt-panel { padding: 24px 40px; gap: 40px; }
}
