/* Fyler Farms — public design system, "Farm to Table Flour" (Oct 2026 brand refresh).
   Built from the new bag labels: slab wordmark, script taglines, stone-ground seal, sky over wheat,
   burnt-orange accent. The mill board borrows a mill-ticket voice (mono type) for batch data. */

:root {
  /* brand palette (from the bag labels) */
  --ff-ink: #1f1a15;
  --ff-ink-soft: #5e5143;
  --ff-bg: #fbf6ea;
  --ff-cream: #f7ecd4;          /* seal cream */
  --ff-cream-2: #f1e3c4;
  --ff-line: #e7d6b3;
  --ff-sky: #a9d2ec;
  --ff-sky-soft: #e3f0f8;
  --ff-wheat: #d69a3a;
  --ff-wheat-deep: #a8741f;
  --ff-orange: #c25b26;         /* fills / decorative accents (buttons overridden below) */
  --ff-orange-text: #ad5122;    /* 2026-11-10 approved text darken: tagline / kickers */
  --ff-orange-deep: #a3481a;
  --ff-forest: #1f3b2b;
  --ff-white: #ffffff;
  --ff-danger: #a53d2e;
  --ff-fresh: #2f5a3c;
  --ff-fresh-soft: #e2ecd9;

  /* aliases kept for templates that reference the older names */
  --ff-green: var(--ff-forest);
  --ff-green-deep: #16291e;
  --ff-green-soft: var(--ff-fresh-soft);
  --ff-wheat-soft: #f5e6c6;

  --ff-radius: 12px;
  --ff-radius-sm: 8px;
  --ff-shadow: 0 1px 2px rgba(31, 26, 21, .06), 0 10px 28px rgba(31, 26, 21, .08);
  --ff-shadow-lift: 0 2px 4px rgba(31, 26, 21, .07), 0 18px 40px rgba(31, 26, 21, .14);

  --ff-font-display: 'Bitter', 'Rockwell', Georgia, serif;
  --ff-font-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --ff-font-body: 'Libre Franklin', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ff-font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; } /* iOS: never overflow-x on body — breaks position:fixed */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--ff-font-body);
  color: var(--ff-ink);
  background: var(--ff-bg);
  line-height: 1.65;
  font-size: 16.5px;
}
a { color: var(--ff-orange-deep); }
a:focus-visible, button:focus-visible, .ff-btn:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--ff-wheat); outline-offset: 2px; border-radius: 4px;
}
img { max-width: 100%; height: auto; border-radius: var(--ff-radius-sm); }
h1, h2, h3, h4 { text-wrap: balance; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ff-wrap {
  max-width: 1140px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Shared type devices */
.ff-script { font-family: var(--ff-font-script); font-weight: 400; line-height: 1.3; }
.ff-flourish {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--ff-font-display); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ff-orange-text); font-size: .8rem;
}
.ff-flourish::before, .ff-flourish::after { content: ''; height: 2px; width: 34px; background: currentColor; border-radius: 2px; }

/* ---------- Header ---------- */
.ff-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(251, 246, 234, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ff-line);
  padding: 10px 0;
}
.ff-header .ff-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.ff-logo { display: flex; align-items: center; gap: 10px; color: var(--ff-ink); text-decoration: none; }
.ff-logo img { width: 46px; height: auto; border-radius: 0; flex-shrink: 0; }
.ff-logo strong { display: block; font-family: var(--ff-font-display); font-weight: 900; font-size: 1.35rem; letter-spacing: .05em; line-height: 1; }
.ff-logo small { display: block; font-family: var(--ff-font-display); font-weight: 700; font-size: .58rem; letter-spacing: .2em; color: var(--ff-orange-text); margin-top: 4px; }
.ff-nav { display: flex; align-items: center; gap: 2px; }
.ff-nav a {
  color: var(--ff-ink); text-decoration: none; font-size: .93rem; font-weight: 600; padding: 8px 12px;
  border-radius: var(--ff-radius-sm); transition: color .14s ease, background .14s ease;
}
.ff-nav a:hover { color: var(--ff-orange-deep); background: var(--ff-cream); }
.ff-nav a.active { color: var(--ff-orange-deep); box-shadow: inset 0 -2px 0 var(--ff-orange); border-radius: 0; }
.ff-nav a.ff-nav-cta { background: var(--ff-orange); color: #fff; margin-left: 8px; padding: 9px 16px; border-radius: var(--ff-radius-sm); box-shadow: none; }
.ff-nav a.ff-nav-cta:hover { background: var(--ff-orange-deep); color: #fff; }
.ff-cartlink span {
  background: var(--ff-orange); color: #fff; border-radius: 999px;
  font-size: .72rem; font-weight: 700; padding: 1px 7px; margin-left: 2px;
}

.ff-menu-toggle { display: none; }
.ff-menu-btn { display: none; cursor: pointer; color: var(--ff-ink); font-size: 1.6rem; padding: 2px 10px; border-radius: 8px; user-select: none; }
@media (max-width: 900px) {
  .ff-menu-btn { display: block; }
  .ff-nav {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    background: var(--ff-bg); flex-direction: column; align-items: stretch;
    padding: 10px max(16px, env(safe-area-inset-left, 0px)) 18px; gap: 2px;
    border-bottom: 1px solid var(--ff-line); box-shadow: 0 20px 40px rgba(31, 26, 21, .15);
  }
  .ff-nav a { padding: 12px 14px; font-size: 1.02rem; }
  .ff-nav a.active { box-shadow: inset 3px 0 0 var(--ff-orange); }
  .ff-nav a.ff-nav-cta { margin: 8px 0 0; text-align: center; }
  .ff-menu-toggle:checked ~ .ff-nav { display: flex; }
}
.ff-logo strong, .ff-logo small { white-space: nowrap; }
@media (max-width: 420px) { .ff-logo strong { font-size: 1.12rem; } .ff-logo small { font-size: .52rem; letter-spacing: .14em; } .ff-logo img { width: 38px; } }
@media (max-width: 330px) { .ff-logo small { display: none; } .ff-logo strong { font-size: 1.02rem; } }

.ff-announce { background: var(--ff-ink); color: var(--ff-cream); text-align: center; padding: 9px 16px; font-weight: 600; font-size: .93rem; }

/* ---------- Buttons ---------- */
.ff-btn {
  display: inline-block; padding: 12px 26px; border-radius: var(--ff-radius-sm);
  background: var(--ff-orange); color: #fff; border: 2px solid var(--ff-orange);
  font-family: var(--ff-font-display); font-weight: 700; font-size: .98rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; line-height: 1.35;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ff-btn:hover { background: var(--ff-orange-deep); border-color: var(--ff-orange-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(194, 91, 38, .3); }
.ff-btn.alt { background: transparent; color: var(--ff-ink); border-color: var(--ff-ink); }
.ff-btn.alt:hover { background: var(--ff-ink); color: var(--ff-cream); box-shadow: none; }
.ff-btn.ink { background: var(--ff-ink); border-color: var(--ff-ink); }
.ff-btn.ink:hover { background: #000; border-color: #000; box-shadow: none; }

/* ---------- Generic hero (404 and fallbacks) ---------- */
.ff-hero {
  text-align: center; padding: 90px 20px 100px; color: var(--ff-ink);
  background:
    linear-gradient(180deg, rgba(169, 210, 236, .95) 0%, rgba(169, 210, 236, .45) 45%, rgba(251, 246, 234, .2) 100%),
    url('/uploads/site/stock-barn.jpg') center 80% / cover no-repeat, var(--ff-sky);
}
.ff-hero .est { font-family: var(--ff-font-script); font-size: 1.8rem; }
.ff-hero h1 { font-family: var(--ff-font-display); font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.8rem); margin: .2em auto; max-width: 780px; line-height: 1.05; }
.ff-hero p.tag { font-size: 1.12rem; max-width: 560px; margin: 0 auto 30px; }

/* ---------- Homepage hero: the bag, as a page ---------- */
.ff-home-hero {
  position: relative; text-align: center; padding: 46px 20px 0; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(169, 210, 236, .96) 0%, rgba(169, 210, 236, .42) 36%, rgba(0, 0, 0, 0) 64%),
    url('/uploads/site/stock-barn.jpg') center 80% / cover no-repeat, var(--ff-sky);
}
.ff-home-hero .ff-script { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--ff-ink); }
.ff-seal {
  width: min(440px, 92%); aspect-ratio: 1 / .86; margin: 16px auto 0;
  background: var(--ff-cream); border-radius: 50%;
  border: 3px solid #8a5a2b; outline: 2px dashed #8a5a2b; outline-offset: -13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 34px 40px; box-shadow: 0 22px 46px rgba(31, 26, 21, .3);
}
.ff-seal .arc { font-family: var(--ff-font-display); font-weight: 800; letter-spacing: .3em; font-size: .78rem; }
.ff-seal h1 {
  font-family: var(--ff-font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.7rem, 4.2vw, 2.55rem); line-height: 1; margin: 4px 0;
}
.ff-seal .fine { font-family: var(--ff-font-display); font-weight: 700; font-size: .72rem; letter-spacing: .12em; }
.ff-seal .ff-script { font-size: 1.25rem; }
.ff-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.ff-hero-ctas .ff-btn.alt { background: rgba(251, 246, 234, .9); }
.ff-ribbon {
  display: inline-flex; align-items: center; background: var(--ff-ink); color: var(--ff-cream);
  padding: 12px 40px 14px; margin-top: 28px; position: relative; top: 2px;
  font-family: var(--ff-font-script); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
}
@media (max-width: 520px) {
  /* On phones the oval would stretch into an egg; use the label's rounded panel instead. */
  .ff-seal { aspect-ratio: auto; border-radius: 34px; outline-offset: -10px; padding: 30px 22px; width: min(440px, 100%); }
  .ff-seal h1 { font-size: clamp(1.45rem, 7.2vw, 2rem); }
  .ff-seal .fine { font-size: .64rem; letter-spacing: .08em; }
  .ff-home-hero { padding-top: 28px; }
  .ff-ribbon { white-space: nowrap; font-size: 1.15rem; padding: 10px 28px 12px; }
}

/* ---------- Retail band (Hy-Vee) ---------- */
.ff-retail { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--ff-forest); color: var(--ff-cream); }
.ff-retail img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; border-radius: 0; }
.ff-retail-copy { padding: 44px max(20px, 5vw) 44px 44px; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.ff-retail h2 { font-family: var(--ff-font-display); font-weight: 900; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0; line-height: 1.1; }
.ff-retail p { margin: 0; opacity: .92; max-width: 46ch; }
.ff-retail ul { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ff-retail li { border: 1px solid rgba(247, 236, 212, .4); border-radius: 999px; padding: 4px 14px; font-size: .88rem; font-weight: 600; }
.ff-retail .ff-btn { align-self: flex-start; }
@media (max-width: 780px) { .ff-retail { grid-template-columns: 1fr; } .ff-retail-copy { padding: 32px 20px; } }

/* ---------- Mill board (freshness, borrowed from the Mill Ticket direction) ---------- */
.ff-mill { background: var(--ff-cream-2); border-top: 3px solid var(--ff-ink); border-bottom: 3px solid var(--ff-ink); padding-block: 48px; }
.ff-mill-in { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 36px; align-items: start; }
.ff-mill h2 { font-family: var(--ff-font-display); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 6px; }
.ff-mill .sub { font-family: var(--ff-font-mono); font-size: .78rem; color: var(--ff-ink-soft); margin: 0 0 18px; }
.ff-ticket { background: #fffaf0; border: 2px solid var(--ff-ink); border-radius: 4px; font-family: var(--ff-font-mono); font-size: .84rem; position: relative; }
.ff-ticket::before, .ff-ticket::after { content: ''; position: absolute; top: 50%; width: 18px; height: 18px; background: var(--ff-cream-2); border: 2px solid var(--ff-ink); border-radius: 50%; transform: translateY(-50%); }
.ff-ticket::before { left: -11px; } .ff-ticket::after { right: -11px; }
.ff-ticket .head { background: var(--ff-ink); color: var(--ff-cream); padding: 8px 18px; font-weight: 600; letter-spacing: .12em; font-size: .74rem; }
.ff-ticket div.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 20px; border-bottom: 1px dashed #9c8f7a; }
.ff-ticket div.row:last-child { border-bottom: 0; }
.ff-ticket b { font-weight: 600; text-align: right; }
.ff-mill-scroll { overflow-x: auto; min-width: 0; }
.ff-mill-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.ff-mill-table th { font-family: var(--ff-font-mono); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; text-align: left; border-bottom: 2px solid var(--ff-ink); padding: 6px 10px; }
.ff-mill-table td { padding: 11px 10px; border-bottom: 1px solid #d7c39c; font-variant-numeric: tabular-nums; vertical-align: middle; }
.ff-mill-table td.mono { font-family: var(--ff-font-mono); font-size: .84rem; white-space: nowrap; }
.ff-mill-table a { color: var(--ff-orange-deep); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ff-mill-table a:hover { text-decoration: underline; }
.ff-chip-fresh { display: inline-block; margin-left: 6px; background: var(--ff-fresh); color: #fff; font-family: var(--ff-font-mono); font-size: .66rem; padding: 2px 7px; letter-spacing: .06em; vertical-align: 1px; }
@media (max-width: 860px) { .ff-mill-in { grid-template-columns: 1fr; } .ff-ticket { max-width: 420px; } }
@media (max-width: 600px) {
  /* Phones: keep flour, date, price, link; grain and bag size live on the product page. */
  .ff-mill-table { min-width: 0; font-size: .9rem; }
  .ff-mill-table th:nth-child(2), .ff-mill-table td:nth-child(2),
  .ff-mill-table th:nth-child(4), .ff-mill-table td:nth-child(4) { display: none; }
  .ff-mill-table td.mono { white-space: normal; }
  .ff-chip-fresh { display: table; margin: 3px 0 0; }
}

/* ---------- Sections & headings ---------- */
.ff-section { padding-block: 56px; }
.ff-sectionhead { text-align: center; margin: 0 auto 26px; max-width: 640px; }
.ff-sectionhead h2 { font-family: var(--ff-font-display); font-weight: 900; font-size: clamp(1.6rem, 3.2vw, 2.15rem); margin: 0; color: var(--ff-ink); }
.ff-sectionhead .ff-script { display: block; font-size: 1.5rem; color: var(--ff-orange-text); margin-top: 2px; }
.ff-sectionhead p { color: var(--ff-ink-soft); margin: 8px 0 0; }
main h2, .ff-wrap > h2 { font-family: var(--ff-font-display); font-weight: 800; color: var(--ff-ink); font-size: clamp(1.45rem, 3vw, 1.9rem); }

/* Feature trio */
.ff-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; padding: 44px 0 20px; }
.ff-feature {
  background: var(--ff-white); border: 1px solid var(--ff-line); border-radius: var(--ff-radius);
  box-shadow: var(--ff-shadow); padding: 26px 24px; transition: transform .15s ease, box-shadow .15s ease;
}
.ff-feature:hover { transform: translateY(-3px); box-shadow: var(--ff-shadow-lift); }
.ff-feature .icon { font-size: 1.8rem; }
.ff-feature h3 { font-family: var(--ff-font-display); font-weight: 800; margin: 10px 0 6px; color: var(--ff-ink); font-size: 1.15rem; }
.ff-feature p { margin: 0; color: var(--ff-ink-soft); font-size: .95rem; }

/* ---------- Cards (shop, grains, recipes, home shelf) ---------- */
.ff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin: 30px 0 52px; }
.ff-card {
  background: var(--ff-white); border: 1px solid var(--ff-line); border-radius: var(--ff-radius);
  box-shadow: var(--ff-shadow); padding: 22px 20px; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ff-ink); overflow: hidden; min-width: 0;
  transition: transform .16s ease, box-shadow .16s ease;
}
.ff-card:hover { transform: translateY(-4px); box-shadow: var(--ff-shadow-lift); }
.ff-card img { transition: transform .5s ease; }
.ff-card:hover img { transform: scale(1.03); }
.ff-card img.bleed {
  display: block; width: calc(100% + 40px); max-width: none; margin: -22px -20px 14px;
  height: 250px; object-fit: cover; object-position: 50% 42%;
  border-radius: var(--ff-radius) var(--ff-radius) 0 0; background: var(--ff-cream);
}
.ff-card .kicker { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ff-orange-text); font-weight: 700; }
.ff-card h3 { font-family: var(--ff-font-display); font-weight: 800; color: var(--ff-ink); margin: 6px 0; font-size: 1.15rem; line-height: 1.2; }
.ff-card p { margin: 0; color: var(--ff-ink-soft); font-size: .92rem; }
.ff-card .more { margin-top: auto; padding-top: 14px; color: var(--ff-orange-deep); font-weight: 700; font-size: .92rem; }

/* Home flour shelf: taller bag cards, price on the right */
.ff-shelf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ff-shelf a { background: var(--ff-white); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); overflow: hidden; text-decoration: none; color: var(--ff-ink); min-width: 0; box-shadow: var(--ff-shadow); transition: transform .16s ease, box-shadow .16s ease; }
.ff-shelf a:hover { transform: translateY(-4px); box-shadow: var(--ff-shadow-lift); }
.ff-shelf img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%; display: block; border-radius: 0; background: var(--ff-cream); }
.ff-shelf .meta { padding: 11px 13px 13px; display: grid; grid-template-columns: 1fr; gap: 2px; }
.ff-shelf b { font-family: var(--ff-font-display); font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.ff-shelf .price { font-weight: 700; color: var(--ff-orange-deep); font-variant-numeric: tabular-nums; }
.ff-shelf small { color: var(--ff-ink-soft); font-size: .84rem; grid-column: 1 / -1; }
@media (max-width: 1000px) { .ff-shelf { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .ff-shelf { grid-template-columns: repeat(2, 1fr); gap: 12px; } .ff-shelf .meta { grid-template-columns: 1fr; } }

/* Coming-soon band (pressed oils + local growers) */
.ff-band { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); overflow: hidden; background: var(--ff-white); box-shadow: var(--ff-shadow); }
.ff-band > div { padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ff-band > div + div { background: var(--ff-sky-soft); border-left: 1px solid var(--ff-line); }
.ff-band .tagline { font-family: var(--ff-font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ff-orange-text); font-weight: 600; }
.ff-band h3 { font-family: var(--ff-font-display); font-weight: 900; font-size: 1.45rem; margin: 0; line-height: 1.15; }
.ff-band p { margin: 0; color: var(--ff-ink-soft); }
.ff-band .ff-btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 780px) { .ff-band { grid-template-columns: 1fr; } .ff-band > div + div { border-left: 0; border-top: 1px solid var(--ff-line); } }

/* ---------- Interior page head: label sky, script eyebrow ---------- */
.ff-pagehead {
  text-align: center; padding: 50px 20px 46px; color: var(--ff-ink);
  background: linear-gradient(180deg, var(--ff-sky) 0%, var(--ff-sky-soft) 62%, var(--ff-bg) 100%);
  border-bottom: 1px solid var(--ff-line);
}
.ff-pagehead .est { font-family: var(--ff-font-script); font-size: 1.7rem; color: var(--ff-ink); line-height: 1.2; }
.ff-pagehead h1 { font-family: var(--ff-font-display); font-weight: 900; font-size: clamp(2rem, 4.8vw, 3rem); margin: .1em 0 .15em; line-height: 1.08; }
.ff-pagehead p.sub { max-width: 640px; margin: 8px auto 0; color: var(--ff-ink-soft); font-size: 1.05rem; }
.ff-pagehead .ff-badge-fresh { font-size: .8rem; }

/* ---------- Prose ---------- */
.ff-prose { max-width: 760px; margin: 44px auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.ff-prose h2 { font-family: var(--ff-font-display); font-weight: 800; color: var(--ff-ink); margin-top: 2em; font-size: 1.55rem; }
.ff-prose figure { margin: 2em 0; }
.ff-prose img { border-radius: var(--ff-radius); box-shadow: var(--ff-shadow); }
.ff-prose figcaption { color: var(--ff-ink-soft); font-size: .88rem; margin-top: 8px; font-style: italic; }

.ff-timeline { list-style: none; margin: 34px 0; padding: 0 0 0 28px; border-left: 3px solid var(--ff-wheat); }
.ff-timeline li { margin-bottom: 28px; position: relative; }
.ff-timeline li::before {
  content: ''; position: absolute; left: -37px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--ff-orange); border: 3px solid var(--ff-bg); box-shadow: 0 0 0 2px var(--ff-orange);
}
.ff-timeline .year { font-family: var(--ff-font-display); font-size: 1.2rem; color: var(--ff-ink); font-weight: 900; }

/* ---------- Tables ---------- */
.ff-table {
  width: 100%; border-collapse: collapse; margin: 22px 0; background: var(--ff-white);
  border: 1px solid var(--ff-line); border-radius: var(--ff-radius-sm); overflow: hidden; font-size: .95rem;
}
.ff-table th {
  background: var(--ff-ink); color: var(--ff-cream); font-weight: 600;
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: 11px 16px;
}
.ff-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--ff-cream-2); }
.ff-table tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.ff-form { max-width: 560px; }
.ff-form label { display: block; font-size: .9rem; color: var(--ff-ink-soft); margin: 15px 0 5px; font-weight: 600; }
.ff-form input, .ff-form textarea, .ff-form select,
.ff-buybox select, .ff-buybox input[type=number] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ff-line); border-radius: var(--ff-radius-sm);
  font-size: 1rem; font-family: inherit; background: var(--ff-white); color: var(--ff-ink);
  -webkit-text-fill-color: var(--ff-ink); transition: border-color .13s ease, box-shadow .13s ease;
}
.ff-form input[type=checkbox], .ff-form input[type=radio] { width: auto; }
.ff-buybox select { width: auto; max-width: 100%; }
.ff-buybox input[type=number] { width: 90px; }
.ff-form input:focus, .ff-form textarea:focus, .ff-form select:focus,
.ff-buybox select:focus, .ff-buybox input:focus, .ff-newsletter-form input:focus {
  outline: none; border-color: var(--ff-wheat); box-shadow: 0 0 0 3px var(--ff-wheat-soft);
}
.ff-form textarea { min-height: 140px; resize: vertical; }
.ff-form .ff-btn { margin-top: 20px; }
.ff-msg-ok { background: var(--ff-fresh-soft); color: var(--ff-fresh); padding: 13px 18px; border-radius: var(--ff-radius-sm); margin: 16px 0; border: 1px solid #c4d8b9; }
.ff-msg-err { background: #f6ded9; color: var(--ff-danger); padding: 13px 18px; border-radius: var(--ff-radius-sm); margin: 16px 0; border: 1px solid #eac3ba; }

/* ---------- FAQ ---------- */
.ff-faq { max-width: 760px; margin: 40px auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.ff-faq details { background: var(--ff-white); border: 1px solid var(--ff-line); border-radius: var(--ff-radius-sm); margin-bottom: 10px; padding: 4px 22px; transition: border-color .15s ease, box-shadow .15s ease; }
.ff-faq details[open] { border-color: var(--ff-wheat); box-shadow: var(--ff-shadow); }
.ff-faq summary { font-family: var(--ff-font-display); font-weight: 700; color: var(--ff-ink); cursor: pointer; padding: 13px 0; font-size: 1.04rem; }
.ff-faq details p { color: var(--ff-ink-soft); margin: 0 0 16px; }

/* ---------- Store ---------- */
.ff-catchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 4px; }
.ff-catchips a {
  padding: 8px 18px; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 700;
  background: var(--ff-white); color: var(--ff-ink); border: 1px solid var(--ff-line); transition: all .13s ease;
}
.ff-catchips a.on, .ff-catchips a:hover { background: var(--ff-ink); color: var(--ff-cream); border-color: var(--ff-ink); }

.ff-badge-new { display: inline-block; background: var(--ff-orange); color: #fff; padding: 2px 9px; border-radius: 999px; font-size: .66rem; font-weight: 700; margin-left: 6px; letter-spacing: .04em; vertical-align: 1px; }
.ff-badge-out { display: inline-block; background: #eee3e0; color: var(--ff-danger); padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.ff-badge-fresh { display: inline-block; background: var(--ff-fresh); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; margin-left: 6px; }
.ff-freshline { background: var(--ff-cream); border-left: 4px solid var(--ff-orange); border-radius: 0 var(--ff-radius-sm) var(--ff-radius-sm) 0; padding: 12px 16px; font-family: var(--ff-font-mono); font-size: .9rem; }

/* Product page: photo left, buying right; stacks on phones */
.ff-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; padding-block: 36px 8px; }
.ff-product.no-photo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.ff-product-media { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); }
.ff-product-info { min-width: 0; }
.ff-product-info > p:first-of-type { margin-top: 0; font-size: 1.05rem; }
.ff-product-photo {
  display: block; width: 100%; max-height: 620px; object-fit: contain; background: var(--ff-cream);
  border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 10px;
}
@media (max-width: 820px) {
  .ff-product { grid-template-columns: 1fr; gap: 22px; }
  .ff-product-media { position: static; }
  .ff-product-photo { max-height: 440px; }
}
.ff-buybox { background: var(--ff-white); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); box-shadow: var(--ff-shadow); padding: 24px 26px; margin: 26px 0; }
.ff-buybox label { display: block; font-size: .9rem; color: var(--ff-ink-soft); margin: 13px 0 5px; font-weight: 600; }
.ff-buybox .ff-btn { margin-top: 18px; display: inline-block; }
.ff-buyline { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ff-price { font-family: var(--ff-font-display); font-size: 2rem; color: var(--ff-orange-deep); font-weight: 900; font-variant-numeric: tabular-nums; }
.ff-variant-label { color: var(--ff-ink-soft); font-size: 1.05rem; }

.ff-review { background: var(--ff-white); border: 1px solid var(--ff-line); border-radius: var(--ff-radius-sm); padding: 18px 22px; margin: 14px 0; }
.ff-review .stars { color: var(--ff-wheat-deep); font-weight: 700; letter-spacing: 2px; }
.ff-review p { margin: 8px 0 4px; }
.ff-review small { color: var(--ff-ink-soft); }

.ff-recipe-meta { color: var(--ff-ink-soft); font-size: .92rem; margin-bottom: 20px; }
.ff-ingredients { background: var(--ff-white); border-left: 4px solid var(--ff-wheat); border-radius: 0 var(--ff-radius) var(--ff-radius) 0; box-shadow: var(--ff-shadow); padding: 20px 24px; margin: 24px 0; white-space: pre-line; }
.ff-ingredients h3 { margin: 0 0 8px; font-family: var(--ff-font-display); font-weight: 800; color: var(--ff-ink); }

/* Quotes */
.ff-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.ff-quote { margin: 0; background: var(--ff-cream); border-radius: var(--ff-radius); padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ff-quote .stars { color: var(--ff-wheat-deep); letter-spacing: 2px; }
.ff-quote blockquote { margin: 0; font-family: var(--ff-font-display); font-weight: 500; font-size: 1.05rem; line-height: 1.5; }
.ff-quote figcaption { margin-top: auto; font-size: .9rem; color: var(--ff-ink-soft); font-weight: 600; }

/* ---------- Instagram strip ---------- */
.ff-instahead { display: flex; align-items: baseline; justify-content: center; gap: 16px; margin: 0 0 18px; flex-wrap: wrap; }
.ff-instahead h2 { margin: 0; }
.ff-instahead a { font-weight: 700; color: var(--ff-orange-deep); text-decoration: none; }
.ff-instahead a:hover { text-decoration: underline; }
.ff-instagrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 20px; }
.ff-instagrid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--ff-radius-sm); }
.ff-instagrid img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; transition: transform .4s ease; }
.ff-instagrid a:hover img { transform: scale(1.06); }

/* ---------- Gallery ---------- */
.ff-gallery { columns: 3 300px; column-gap: 22px; margin: 40px 0 10px; }
.ff-photo { break-inside: avoid; margin: 0 0 22px; cursor: zoom-in; background: var(--ff-white); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); box-shadow: var(--ff-shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.ff-photo:hover, .ff-photo:focus-visible { transform: translateY(-3px); box-shadow: var(--ff-shadow-lift); }
.ff-photo img { display: block; width: 100%; border-radius: 0; }
.ff-photo figcaption { padding: 12px 16px 14px; font-size: .88rem; color: var(--ff-ink-soft); }
.ff-photo .era { display: block; font-family: var(--ff-font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ff-orange-text); font-weight: 600; margin-bottom: 2px; }
.ff-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(24, 20, 15, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.ff-lightbox[hidden] { display: none !important; } /* display:flex would otherwise defeat the hidden attribute */
.ff-lightbox img { max-width: min(1100px, 94vw); max-height: 78vh; width: auto; border-radius: var(--ff-radius-sm); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.ff-lightbox .cap { color: var(--ff-cream); margin-top: 14px; font-size: .95rem; text-align: center; max-width: 700px; }
.ff-lightbox .close { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: calc(22px + env(safe-area-inset-right, 0px)); background: none; border: none; color: var(--ff-cream); font-size: 1.6rem; cursor: pointer; padding: 6px 10px; }

/* ---------- Newsletter band ---------- */
.ff-newsletter { background: var(--ff-sky-soft); text-align: center; padding: 52px 20px; border-top: 1px solid var(--ff-line); }
.ff-newsletter .ff-script { font-size: 1.6rem; color: var(--ff-orange-text); display: block; }
.ff-newsletter h2 { font-family: var(--ff-font-display); font-weight: 900; color: var(--ff-ink); margin: 0 0 6px; font-size: 1.6rem; }
.ff-newsletter p { color: var(--ff-ink-soft); margin: 0 0 20px; }
.ff-newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ff-newsletter-form input[type=email] {
  padding: 12px 16px; border: 1px solid var(--ff-line); border-radius: var(--ff-radius-sm); min-width: min(300px, 100%);
  font-size: 1rem; background: var(--ff-white); color: var(--ff-ink); -webkit-text-fill-color: var(--ff-ink);
}
.ff-newsletter-ok { color: var(--ff-fresh); font-weight: 700; }

/* ---------- Footer ---------- */
.ff-footer { background: var(--ff-ink); color: #d9cdb6; padding: 48px 0 30px; font-size: .93rem; }
.ff-footer a { color: var(--ff-cream); text-decoration: none; }
.ff-footer a:hover { color: var(--ff-wheat); text-decoration: underline; }
.ff-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding-bottom: 26px; border-bottom: 1px solid rgba(247, 236, 212, .12); }
.ff-footer .brand { display: flex; align-items: center; gap: 10px; }
.ff-footer .brand img { width: 44px; border-radius: 0; }
.ff-footer .brand strong { font-family: var(--ff-font-display); font-weight: 900; font-size: 1.25rem; letter-spacing: .05em; color: var(--ff-cream); }
.ff-footer .ff-script { color: var(--ff-wheat); font-size: 1.3rem; display: block; margin-top: 10px; }
.ff-footer h4 { font-family: var(--ff-font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ff-wheat); margin: 0 0 10px; font-weight: 600; }
.ff-footer ul { list-style: none; margin: 0; padding: 0; }
.ff-footer li { margin: 7px 0; }
.ff-footer .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; font-size: .85rem; color: #a8987c; }
.ff-footer .base a { color: #d9cdb6; }
@media (max-width: 860px) { .ff-footer .cols { grid-template-columns: 1fr 1fr; } .ff-footer .cols > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .ff-footer .cols { grid-template-columns: 1fr; } }

/* b51894e-plus: button/CTA fill nudged #c25b26 → #be5925 (ΔE≈1.4) for WCAG AA white-on-orange (~4.52:1).
   2026-11-10: text uses moved to --ff-orange-text (#ad5122). Decorative fills/borders keep --ff-orange (#c25b26).
   White-on-fill badges/cart count pinned to #be5925 so they match button AA (~4.52:1) instead of white-on-#c25b26 (~4.36:1). */
.ff-nav a.ff-nav-cta { background: #be5925; }
.ff-nav a.ff-nav-cta:hover { background: var(--ff-orange-deep); }
.ff-btn { background: #be5925; border-color: #be5925; }
.ff-btn:hover { background: var(--ff-orange-deep); border-color: var(--ff-orange-deep); }
.ff-cartlink span { background: #be5925; }
.ff-badge-new { background: #be5925; }
