/* =============================================================================
   Blauer Freeman Farms — shared design system
   -----------------------------------------------------------------------------
   One stylesheet for every page so the header, footer, type and color are
   identical sitewide. Page-specific rules live in a <style> block on that page
   and should be rare.

   THE PALETTE COMES OFF THE BARN.
   Every warm tone here was sampled from public/images/photos/barn.jpg and then
   white-balanced back to daylight: the oat-cream siding, the wheat-gold doors
   and trim, the slate roof. Where the site used to shout in orange and school-bus
   yellow it now speaks in the building's own colors. Greens come from the
   pasture, the terracotta from old barn paint. Nothing is at full saturation.

   Sections:
     1. Tokens
     2. Reset & base type
     3. Layout helpers
     4. Buttons, badges, pills
     5. Site header (announcement bar + nav)
     6. Section furniture (headings, ridge dividers)
     7. Cards (product, event, photo, link)
     8. Forms & the auth modal
     9. Footer
    10. Utilities, animation, responsive
   ========================================================================== */

/* ── 1. Tokens ───────────────────────────────────────────────────────────── */
:root {
  /* Barn siding, lightest to deepest — the site's paper and its quiet bands. */
  --wheat-50:   #fbf6ea;
  --wheat-100:  #f4ecd9;
  --wheat-200:  #e9dcbc;
  --wheat-300:  #d9c69a;

  /* Barn doors and trim — the one accent that carries the brand. */
  --gold:       #c2a164;
  --gold-dk:    #9a7c3e;
  --gold-lt:    #f6eedc;
  --gold-ink:   #4a3a1b;   /* text that sits on gold */

  /* The slate roof — a cool neutral that keeps all the warmth honest. */
  --slate:      #4f5c69;
  --slate-dk:   #37434e;
  --slate-lt:   #e7ebef;

  /* Pasture and hedgerow. */
  --leaf:       #5f8452;
  --leaf-dk:    #3d5a33;
  --leaf-lt:    #eaefe4;

  /* Weathered barn paint, for the rare warm alarm. */
  --clay:       #a85c42;
  --clay-dk:    #7c4230;
  --clay-lt:    #f7e9e3;

  --berry:      #8a5570;

  --cream:      var(--wheat-50);
  --cream-2:    var(--wheat-100);
  --paper:      #ffffff;
  --ink:        #2b2a24;
  --ink-2:      #56544a;
  --ink-3:      #7c776a;
  --line:       #e4dac4;
  --line-soft:  #efe7d5;

  --ring:       0 0 0 3px rgba(194, 161, 100, .45);
  --sh-sm:      0 1px 2px rgba(58, 47, 24, .05), 0 3px 10px rgba(58, 47, 24, .05);
  --sh:         0 2px 6px rgba(58, 47, 24, .06), 0 12px 30px rgba(58, 47, 24, .09);
  --sh-lg:      0 4px 12px rgba(58, 47, 24, .07), 0 28px 60px rgba(58, 47, 24, .14);

  --r-sm:       8px;
  --r:          12px;
  --r-lg:       18px;
  --r-pill:     999px;

  --wrap:       1180px;
  --gut:        clamp(18px, 4vw, 34px);

  /* Two families, used consistently: a variable serif for anything that is
     read as a voice, a humanist sans for anything that is read as information.
     The handwriting face is gone — the serif's italic does that job with more
     dignity and one less font to load. */
  --f-display:  'Fraunces', 'Playfair Display', Georgia, serif;
  --f-body:     'Karla', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-accent:   'Fraunces', Georgia, serif;   /* used italic, for asides */

  --nav-h:      76px;
  --bar-h:      36px;

  /* A drawn tick, as a mask so list markers take the palette rather than the
     visitor's emoji font. Used by .checklist on the events page. */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.8 12.6 4.6 4.6 9.8-10.4'/%3E%3C/svg%3E");
}

/* ── 2. Reset & base type ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--bar-h) + 12px); }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Fraunces at a large optical size and a middling weight: high contrast,
   generous serifs, none of the poster-weight shouting the site had before. */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 96, 'SOFT' 20;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.018em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.65rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; font-variation-settings: 'opsz' 36, 'SOFT' 20; letter-spacing: -.01em; }
h4 { font-variation-settings: 'opsz' 24, 'SOFT' 20; }
p  { color: var(--ink-2); }

::selection { background: var(--gold); color: var(--gold-ink); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ── 3. Layout helpers ───────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 820px; }

.section { padding: clamp(58px, 8vw, 110px) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--slate { background: var(--slate-lt); }
.section--wheat { background: var(--wheat-100); }
.section--leaf  { background: var(--leaf-lt); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.stack   { display: flex; flex-direction: column; gap: 18px; }
.row     { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.center  { text-align: center; }

/* ── Icons ───────────────────────────────────────────────────────────────
   Drawn line icons (views/partials/icon.ejs) replace the emoji the site used
   to lean on. They inherit color and optical weight from their context, which
   emoji never could — that alone is most of the "sophisticated" ask. */
.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.18em; display: inline-block;
}
.icon--lg { width: 30px; height: 30px; stroke-width: 1.35; }
.icon--xl { width: 40px; height: 40px; stroke-width: 1.2; }

/* ── 4. Buttons, badges, pills ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px;
  border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--f-body); font-weight: 700; font-size: .93rem; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--gold  { background: var(--gold); color: var(--gold-ink); border-color: var(--gold-dk); box-shadow: var(--sh-sm); }
.btn--gold:hover { background: #cfb079; box-shadow: var(--sh); }
.btn--leaf  { background: var(--leaf); color: #fff; border-color: var(--leaf-dk); box-shadow: var(--sh-sm); }
.btn--leaf:hover { background: #6d9460; box-shadow: var(--sh); }
.btn--clay  { background: var(--clay); color: #fff; border-color: var(--clay-dk); box-shadow: var(--sh-sm); }
.btn--clay:hover { background: #b76b50; box-shadow: var(--sh); }
.btn--slate { background: var(--slate); color: #fff; border-color: var(--slate-dk); box-shadow: var(--sh-sm); }
.btn--slate:hover { background: #5d6b79; box-shadow: var(--sh); }
.btn--ghost { background: rgba(255,255,255,.9); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-sm); }
.btn--ghost:hover { border-color: var(--gold); background: #fff; box-shadow: var(--sh); }
.btn--sm    { padding: 8px 16px; font-size: .84rem; border-radius: var(--r-sm); }
.btn--lg    { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--gold); color: var(--gold-ink);
}
.badge--leaf  { background: var(--leaf); color: #fff; }
.badge--clay  { background: var(--clay); color: #fff; }
.badge--slate { background: var(--slate); color: #fff; }
.badge--soft  { background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* The eyebrow used to be rotated handwriting. Now it is a small letterspaced
   label with a rule — the same job, said quietly. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-body); font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-dk);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .6; }

/* ── 5. Site header ──────────────────────────────────────────────────────── */
.site-top { position: sticky; top: 0; z-index: 600; }

/* The announcement bar, in the barn's siding color. This is the band Gail
   asked about: it was a bright orange gradient. */
.ticker {
  height: var(--bar-h);
  background: linear-gradient(90deg, var(--wheat-200), #f0e4c9 50%, var(--wheat-200));
  color: #5a4823; overflow: hidden; display: flex; align-items: center;
  font-size: .76rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 1px solid rgba(122, 98, 47, .22);
}
.ticker__track {
  display: flex; gap: 54px; white-space: nowrap; padding-left: 100%;
  animation: ticker 52s linear infinite;
}
.ticker__track span { display: inline-flex; align-items: center; gap: 9px; }
.ticker .icon { width: 1.4em; height: 1.4em; stroke-width: 1.5; opacity: .75; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

.site-nav {
  height: var(--nav-h);
  background:
    linear-gradient(rgba(35, 31, 22, .68), rgba(35, 31, 22, .68)),
    url('/images/top_nav_banner.jpg') center / cover no-repeat;
  border-bottom: 1px solid rgba(194, 161, 100, .35);
  box-shadow: 0 2px 18px rgba(43, 42, 36, .18);
}
.site-nav__in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 18px; }

/* min-width:0 lets the name wrap instead of forcing the bar wider than the
   phone — without it the login button and menu toggle push off screen. */
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.nav-login__short { display: none; }
.brand__mark {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--gold); background: var(--cream);
  object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,.35);
  transition: transform .35s ease;
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__name {
  font-family: var(--f-display); font-variation-settings: 'opsz' 36, 'SOFT' 20;
  font-weight: 500; font-size: 1.12rem; color: #fff;
  line-height: 1.15; letter-spacing: .002em;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.brand__tag {
  font-family: var(--f-accent); font-style: italic; font-weight: 400;
  font-size: .92rem; color: var(--gold); letter-spacing: .01em;
  text-shadow: 0 1px 6px rgba(0,0,0,.7); line-height: 1.2;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 9px 15px; border-radius: var(--r-sm);
  color: rgba(255,255,255,.92); font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-links a.is-active { background: var(--gold); color: var(--gold-ink); text-shadow: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.basket-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.32);
  display: grid; place-items: center; cursor: pointer; color: #fff;
  transition: background .18s, transform .18s, border-color .18s;
}
.basket-btn .icon { width: 20px; height: 20px; }
.basket-btn:hover { background: rgba(255,255,255,.22); border-color: var(--gold); transform: translateY(-1px); }
.basket-btn__count {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--clay); color: #fff;
  font-size: .66rem; font-weight: 700; display: none; place-items: center;
  border: 1.5px solid rgba(35,31,22,.5);
}
.basket-btn__count.is-on { display: grid; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.32);
  cursor: pointer; padding: 12px 10px;
}
.nav-toggle span { display: block; height: 1.8px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle span + span { margin-top: 5.5px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.3px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.3px) rotate(-45deg); }

.nav-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold); background: var(--cream);
}

/* Logged-in menu */
.usermenu { position: relative; }
.usermenu__panel {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 214px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-lg);
  padding: 7px; display: none; z-index: 40;
}
.usermenu.is-open .usermenu__panel { display: block; }
.usermenu__panel a, .usermenu__panel button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 13px; border-radius: var(--r-sm); border: none; background: none;
  font-weight: 600; font-size: .91rem; text-align: left; cursor: pointer;
}
.usermenu__panel .icon { color: var(--gold-dk); }
.usermenu__panel a:hover, .usermenu__panel button:hover { background: var(--gold-lt); }
.usermenu__who { padding: 10px 13px 8px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.usermenu__who strong { display: block; font-size: .94rem; font-weight: 700; }
.usermenu__who span { font-size: .78rem; color: var(--ink-3); }

/* ── 6. Section furniture ────────────────────────────────────────────────── */
.sec-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 50px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head--center .eyebrow::before { display: none; }
.sec-head p { margin-top: 14px; font-size: 1.04rem; }
/* Emphasis inside a heading: the display italic, not a highlighter pen. */
.sec-head h2 em, .quote em {
  font-style: italic; font-variation-settings: 'opsz' 96, 'SOFT' 40;
  color: var(--gold-dk);
}

/* Dividers between color bands. The old wave was a cartoon hill; this is the
   Shawangunk ridge line you actually see from the field. */
.ridge { display: block; width: 100%; height: clamp(26px, 3.4vw, 48px); }
.ridge--flip { transform: scaleY(-1); }
/* Kept as an alias so any straggling markup still lays out correctly. */
.wave { display: block; width: 100%; height: clamp(26px, 3.4vw, 48px); }
.wave--flip { transform: scaleY(-1); }

/* A hairline rule with a small gold diamond — used to break long text. */
.rule { display: flex; align-items: center; gap: 14px; color: var(--line); margin: 34px 0; }
.rule::before, .rule::after { content: ''; height: 1px; background: currentColor; flex: 1; }
.rule i { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

/* ── 7. Cards ────────────────────────────────────────────────────────────── */
.card {
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--gold); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media .badge { position: absolute; top: 12px; left: 12px; box-shadow: var(--sh-sm); }
/* Drawn product artwork: scale rather than crop, and skip the photo zoom. */
.card__media--art { border-bottom: 1px solid var(--line-soft); }
.card__media--art img { object-fit: contain; }
.card:hover .card__media--art img { transform: scale(1.02); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card__body h3 { font-size: 1.16rem; }
.card__body p { font-size: .91rem; line-height: 1.6; }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.price { font-family: var(--f-display); font-variation-settings: 'opsz' 36, 'SOFT' 20; font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.price small { font-family: var(--f-body); font-weight: 600; font-size: .72rem; color: var(--ink-3); display: block; letter-spacing: .04em; }

.stock { font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.stock--in       { color: var(--leaf-dk); }
.stock--low      { color: var(--clay); }
.stock--preorder { color: var(--slate); }
.stock--inquire  { color: var(--berry); }

/* Event card: date chip on the left of the photo */
.event { display: grid; grid-template-columns: 96px 1fr; gap: 0; align-items: stretch; }
.event__date {
  background: var(--slate); color: #fff; display: grid; place-content: center; text-align: center; padding: 14px 8px;
}
.event__date .m { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .82; }
.event__date .d { font-family: var(--f-display); font-variation-settings: 'opsz' 72; font-size: 2.1rem; font-weight: 500; line-height: 1.05; }
.event__date .y { font-size: .66rem; opacity: .7; letter-spacing: .14em; }
.event__body { padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.event__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .81rem; color: var(--ink-3); font-weight: 600; }
.event__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event__meta .icon { color: var(--gold-dk); }

/* Photo tiles used in collages and galleries */
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); background: var(--cream-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.tile:hover img { transform: scale(1.04); }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 20px 16px;
  background: linear-gradient(transparent, rgba(30, 27, 18, .84));
  color: #fff; font-weight: 600; font-size: .98rem;
}
.tile__cap small { display: block; font-weight: 400; font-size: .8rem; opacity: .85; }

/* A small mounted-print frame for personality shots. Still tilted — the whimsy
   stays — but the mat is even and the caption is set, not scrawled. */
.polaroid {
  background: #fff; padding: 13px 13px 46px; border-radius: 3px;
  box-shadow: var(--sh); position: relative;
  border: 1px solid var(--line-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
/* Faces sit high in these phone shots, so bias the square crop upward. */
.polaroid img { border-radius: 1px; aspect-ratio: 1; object-fit: cover; object-position: 50% 28%; width: 100%; }
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 13px; text-align: center;
  font-family: var(--f-accent); font-style: italic; font-size: 1.02rem; color: var(--ink-2);
}
.polaroid:hover { transform: rotate(0deg) scale(1.02) !important; z-index: 3; box-shadow: var(--sh-lg); }

/* ── 8. Forms & modal ────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: .96rem; transition: border-color .18s, box-shadow .18s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: var(--ring);
}
.field textarea { min-height: 120px; resize: vertical; }
.help { font-size: .8rem; color: var(--ink-3); }

.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: clamp(22px, 3vw, 34px);
}

.notice { padding: 13px 18px; border-radius: var(--r-sm); font-size: .89rem; font-weight: 600; }
.notice--err  { background: var(--clay-lt); color: var(--clay-dk); }
.notice--ok   { background: var(--leaf-lt); color: var(--leaf-dk); }
.notice--info { background: var(--slate-lt); color: var(--slate-dk); }

.modal-bg {
  position: fixed; inset: 0; z-index: 900; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(35, 31, 22, .58); backdrop-filter: blur(5px);
}
.modal-bg.is-open { display: flex; }
.modal {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: var(--cream); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  animation: pop .3s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__head {
  padding: 28px 30px 22px; text-align: center;
  background: linear-gradient(165deg, var(--gold-lt), var(--cream));
  border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 1px solid var(--line);
}
.modal__head h2 { font-size: 1.7rem; }
.modal__head p { font-size: .92rem; margin-top: 6px; }
.modal__body { padding: 24px 30px 30px; }
.modal__x {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.9); cursor: pointer;
  display: grid; place-items: center; color: var(--ink-2);
  box-shadow: var(--sh-sm); transition: background .18s, color .18s, border-color .18s;
}
.modal__x:hover { background: var(--clay); border-color: var(--clay); color: #fff; }

.tabs { display: flex; gap: 5px; padding: 4px; background: var(--cream-2); border-radius: var(--r); margin-bottom: 22px; border: 1px solid var(--line); }
.tabs button {
  flex: 1; padding: 10px; border: none; border-radius: var(--r-sm); background: none;
  font-weight: 700; font-size: .89rem; cursor: pointer; color: var(--ink-2); transition: background .18s, color .18s;
}
.tabs button.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--sh-sm); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .83rem; color: var(--ink-2); }
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--leaf); flex-shrink: 0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%);
  z-index: 950; padding: 13px 24px; border-radius: var(--r);
  background: var(--ink); color: var(--wheat-100); font-weight: 600; font-size: .9rem;
  box-shadow: var(--sh-lg); transition: transform .35s ease, visibility 0s .35s;
  visibility: hidden;   /* otherwise the empty pill shows up in full-page captures */
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }

/* ── 9. Footer ───────────────────────────────────────────────────────────── */
.site-foot { background: #2a2c24; color: #cdcabb; padding-top: 0; }
.site-foot a { color: #cdcabb; transition: color .18s; }
.site-foot a:hover { color: var(--gold); }
.site-foot__in { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 38px; padding: 62px 0 36px; }
.site-foot h4 {
  font-family: var(--f-body); font-size: .7rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.site-foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.site-foot p { color: #9d9a8d; font-size: .9rem; }
.foot-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.foot-brand img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.foot-brand strong {
  font-family: var(--f-display); font-variation-settings: 'opsz' 36, 'SOFT' 20;
  font-weight: 500; font-size: 1.18rem; color: #fff; display: block;
}
.foot-brand span { font-family: var(--f-accent); font-style: italic; font-size: .95rem; color: var(--gold); }
.site-foot__bar {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: #8e8b7f;
}
.social { display: flex; gap: 9px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  transition: background .18s, transform .18s, border-color .18s;
}
.social a:hover { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); transform: translateY(-2px); }
.social .icon { width: 17px; height: 17px; }

/* ── 8b. Single-purpose account pages (verify, reset, forgot) ───────────── */
.authpage {
  min-height: 68vh; display: grid; place-items: center;
  padding: clamp(36px, 6vw, 76px) var(--gut);
  background:
    linear-gradient(rgba(251,246,234,.90), rgba(251,246,234,.97)),
    url('/images/photos/pasture-md.jpg') center / cover fixed no-repeat;
}
.authcard {
  width: 100%; max-width: 520px; text-align: center;
  background: var(--paper); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden;
}
.authcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--clay) 45%, var(--leaf) 78%, var(--slate));
  opacity: .8;
}
.authcard__ic {
  width: 68px; height: 68px; margin: 8px auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-dk);
  background: var(--gold-lt); border: 1px solid var(--gold);
}
.authcard h1 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
.authcard p { margin-top: 12px; }
.authcard form { text-align: left; display: flex; flex-direction: column; gap: 15px; margin-top: 24px; }
.authcard .btn { margin-top: 4px; }
.authcard__hint { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-3); }
.authcard__hint a { color: var(--gold-dk); font-weight: 700; }
.email-chip {
  display: inline-block; margin: 14px 0; padding: 9px 18px; border-radius: var(--r-pill);
  background: var(--leaf-lt); color: var(--leaf-dk); font-weight: 700; word-break: break-all;
}
.strength { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; }
.strength i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .3s, background .3s; }

/* ── 9b. Long-form documents (privacy, terms, SMS compliance) ────────────
   These pages keep the class names from the original static markup so the
   legal wording could be carried over untouched; this block re-skins them. */
.doc-hero {
  background: linear-gradient(170deg, var(--wheat-100), var(--cream));
  padding: clamp(34px, 5vw, 58px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.doc-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }

.doc { font-size: 1rem; }
.doc .effective-date, .doc .page-sub {
  display: inline-block; padding: 5px 13px; border-radius: var(--r-pill);
  background: var(--gold-lt); color: var(--gold-dk);
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px;
}
.doc .intro-text, .doc .page-intro { font-size: 1.06rem; line-height: 1.8; margin-bottom: 30px; }
.doc .page-badge { display: none; }

.doc .doc-sec {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--r); padding: 26px 28px; margin-bottom: 20px;
}
.doc .doc-sec.s-blue   { border-left-color: var(--slate); }
.doc .doc-sec.s-purple { border-left-color: var(--berry); }
.doc .doc-sec.s-green  { border-left-color: var(--leaf); }
.doc .section-number, .doc .section-label {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
}
.doc h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-bottom: 12px; }
.doc h3 { font-size: 1.08rem; margin: 18px 0 8px; }
.doc p { margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 9px; }
.doc li { color: var(--ink-2); }
.doc a { color: var(--gold-dk); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.doc .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 8px 0; }
.doc .card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.doc .card.accent-purple { border-top: 3px solid var(--berry); }
.doc .card.accent-pink   { border-top: 3px solid var(--clay); }
.doc .card.accent-green  { border-top: 3px solid var(--leaf); }
.doc .card-icon { color: var(--gold-dk); }
.doc .card-title { font-weight: 700; margin: 8px 0 6px; }
.doc .card-body { font-size: .92rem; color: var(--ink-2); }

.doc .highlight {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--gold-lt); border: 1px solid var(--gold);
  border-radius: var(--r); padding: 18px 20px; margin: 14px 0;
}
.doc .highlight-icon { color: var(--gold-dk); flex: none; }

.doc .keyword-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.doc .kw {
  display: inline-block; padding: 6px 15px; border-radius: var(--r-pill);
  font-family: var(--f-body); font-weight: 700; font-size: .78rem; letter-spacing: .12em;
}
.doc .kw-stop { background: var(--clay); color: #fff; }
.doc .kw-help { background: var(--slate); color: #fff; }
.doc .kw-info { background: var(--leaf); color: #fff; }

.doc .contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 10px; }
.doc .contact-item { background: var(--cream); border-radius: var(--r-sm); padding: 14px 16px; }
.doc .ci-label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.doc .ci-val { font-weight: 600; font-size: .94rem; word-break: break-word; }

/* ── 10. Utilities, animation, responsive ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 22px; } .mt-3 { margin-top: 38px; }
.muted { color: var(--ink-3); }
/* An aside in the display italic — replaces the old marker-pen handwriting. */
.hand { font-family: var(--f-accent); font-style: italic; font-size: 1.15rem; color: var(--gold-dk); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 980px) {
  .site-foot__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: calc(var(--nav-h) + var(--bar-h)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); padding: 14px var(--gut) 24px;
    box-shadow: var(--sh-lg); border-bottom: 2px solid var(--gold);
    max-height: 0; overflow: hidden; padding-block: 0; transition: max-height .3s ease, padding .3s ease;
  }
  .nav-links.is-open { max-height: 80vh; overflow-y: auto; padding-block: 14px 24px; }
  .nav-links a { color: var(--ink); text-shadow: none; padding: 13px 14px; font-size: 1rem; border-radius: var(--r-sm); }
  .nav-links a:hover { background: var(--gold-lt); }
  .brand__tag { display: none; }
}

@media (max-width: 620px) {
  :root { --nav-h: 66px; }
  .site-nav__in { gap: 10px; }
  .brand { gap: 9px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: .88rem; }
  .brand > span { display: block; line-height: 1.2; }   /* tighten the wrapped name */
  .nav-actions { gap: 7px; }
  .nav-login { padding: 7px 12px; font-size: .8rem; }
  .nav-login__full { display: none; }
  .nav-login__short { display: inline; }
  .basket-btn { width: 38px; height: 38px; }
  .nav-toggle { width: 40px; height: 40px; padding: 11px 9px; }
  .site-foot__in { grid-template-columns: 1fr; gap: 28px; }
  .event { grid-template-columns: 76px 1fr; }
}

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