/* =====================================================================
   ARGYLE FARMS — Direction 03 · THE FARMSTEAD
   "Yellowstone / old-simple-life rustic"
   Cinematic photography · weathered barn-red · canvas & typewriter.
   Fonts (loaded in HTML): Oswald (display), Bitter (body), Special Elite (archival).
   No framework. Only external dep = Google Fonts.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Palette */
  --barn: #8A3B12;
  --barn-dark: #6E2E0C;
  --night: #1A1613;
  --night-2: #241D18;
  --ink: #211B14;
  --canvas: #E8DFCC;
  --canvas-2: #DED2B8;
  --paper: #F1EADA;
  --sage: #6B7355;
  --sage-dark: #4F5641;
  --dust: #B9A98C;
  --gold: #B0862F;
  --bone: #EFE9DB;

  /* Derived */
  --ink-soft: #4A3F31;
  --line: rgba(33, 27, 20, 0.16);
  --line-strong: rgba(33, 27, 20, 0.28);

  /* Type */
  --ff-display: "Oswald", "Arial Narrow", sans-serif;
  --ff-body: "Bitter", Georgia, "Times New Roman", serif;
  --ff-type: "Special Elite", "Courier New", monospace;

  /* Rhythm */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.15rem, 4vw, 2.6rem);
  --section-y: clamp(3.4rem, 8vw, 6.4rem);

  /* Radius + shadow (rustic: tight radii, hard offset shadows) */
  --r: 3px;
  --shadow-hard: 6px 6px 0 rgba(33, 27, 20, 0.15);
  --shadow-hard-sm: 4px 4px 0 rgba(33, 27, 20, 0.14);
  --shadow-soft: 0 18px 40px -22px rgba(26, 22, 19, 0.7);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.5vw + 0.92rem, 1.075rem);
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--paper);
  /* canvas weave + warm ground */
  background-image:
    linear-gradient(rgba(120, 96, 60, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 96, 60, 0.028) 1px, transparent 1px),
    radial-gradient(120% 120% at 50% 0%, #F5EFE1 0%, var(--paper) 42%, var(--canvas) 100%);
  background-size: 3px 3px, 3px 3px, 100% 100%;
  background-attachment: fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fine film-grain / canvas tooth over everything (static, cinematic) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--barn); text-underline-offset: 3px; }
a:hover { color: var(--barn-dark); }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); letter-spacing: 0.015em; }
h4 { font-size: 1.02rem; letter-spacing: 0.05em; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* ---------- 3. Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 0.6rem;
  top: -3.4rem;
  z-index: 200;
  background: var(--barn);
  color: var(--bone);
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1rem;
  border-radius: var(--r);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0.6rem; color: var(--bone); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 4. Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tint { background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas-2) 100%); border-block: 1px solid var(--line); }
.center { text-align: center; }
.mt-lg { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ---------- 5. Type accents ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-type);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--barn);
  margin: 0 0 0.85rem;
}
.eyebrow--bone { color: var(--dust); }
.typeline {
  font-family: var(--ff-type);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.lede {
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.66;
  color: var(--ink-soft);
}

/* Section head block */
.head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head .lede { margin-inline: auto; }

/* Rule + typewriter plate divider */
.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.1rem 0;
  color: var(--line-strong);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}
.head .rule { justify-content: center; }
.rule__mark {
  font-family: var(--ff-type);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-dark);
  white-space: nowrap;
}
.rule--tight { max-width: 320px; }
.head .rule--tight { margin-inline: auto; }

/* Small chapter plate ("I.", "EST. ANDES, N.Y.") */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-type);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--barn);
  border: 1px solid var(--line-strong);
  padding: 0.34rem 0.8rem;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.35);
}

/* ---------- 6. Buttons ---------- */
.btn {
  --bg: var(--barn);
  --fg: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  border: 2px solid var(--bg);
  padding: 0.82rem 1.6rem;
  border-radius: var(--r);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  box-shadow: var(--shadow-hard-sm);
}
.btn:hover { color: var(--fg); background: var(--barn-dark); border-color: var(--barn-dark); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(33, 27, 20, 0.2); }
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(33, 27, 20, 0.2); }

.btn--barn { --bg: var(--barn); --fg: var(--bone); border-color: var(--barn); }
.btn--ghost { --bg: transparent; --fg: var(--barn); border-color: var(--barn); box-shadow: none; }
.btn--ghost:hover { --fg: var(--bone); background: var(--barn); border-color: var(--barn); }

.btn--bone { --bg: transparent; --fg: var(--bone); border-color: var(--bone); box-shadow: none; }
.btn--bone:hover { --fg: var(--night); background: var(--bone); border-color: var(--bone); }

.btn--forest { --bg: var(--sage-dark); border-color: var(--sage-dark); }
.btn--forest:hover { background: #3d4333; border-color: #3d4333; }

.btn--sm { font-size: 0.82rem; padding: 0.6rem 1.05rem; letter-spacing: 0.07em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- 7. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 22, 19, 0.96);
  border-bottom: 3px solid var(--barn);
  backdrop-filter: saturate(1.2) blur(2px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding-block: 0.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.06em;
  color: var(--bone);
  text-transform: uppercase;
}
.brand__sub {
  font-family: var(--ff-type);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--dust);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  padding: 0.5rem 0.78rem;
  border-radius: var(--r);
  position: relative;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current] { color: var(--gold); }
.nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0.78rem; right: 0.78rem; bottom: 0.28rem;
  height: 2px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid rgba(239, 233, 219, 0.4);
  border-radius: var(--r);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--bone); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 8. Hero (full-bleed cinematic) ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
/* cinematic scrim: darken bottom for the low-anchored headline + vignette */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 16, 12, 0.44) 0%, rgba(20, 16, 12, 0) 26%, rgba(20, 16, 12, 0) 40%, rgba(20, 16, 12, 0.72) 82%, rgba(16, 12, 9, 0.92) 100%),
    radial-gradient(120% 90% at 20% 100%, rgba(16, 12, 9, 0.6) 0%, rgba(16, 12, 9, 0) 60%),
    radial-gradient(130% 130% at 50% 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.4) 100%);
}
.hero__inner { position: relative; padding-block: clamp(2.4rem, 6vw, 4.6rem); padding-top: clamp(2rem, 8vw, 5rem); width: 100%; }
.hero__heritage {
  color: var(--dust);
  font-family: var(--ff-type);
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(239, 233, 219, 0.22);
  display: inline-block;
}
.hero h1 {
  color: var(--bone);
  font-size: clamp(2.7rem, 8.4vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.005em;
  margin: 0 0 1.1rem;
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__sub {
  color: #EDE6D6;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 1.8rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}
.hero .btn-row { margin-top: 0.3rem; }
/* subtle slow zoom on load (motion-safe only) */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: heroDrift 26s ease-out both; }
  @keyframes heroDrift { from { transform: scale(1.08); } to { transform: scale(1); } }
}

/* ---------- 9. Cinematic photo bands + figures ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--r); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease, filter 0.7s ease; }
@media (prefers-reduced-motion: no-preference) {
  .photo--zoom:hover img { transform: scale(1.04); filter: saturate(1.06) contrast(1.03); }
}

/* Thin cinematic full-bleed strip (panorama) */
.cine-strip {
  position: relative;
  height: clamp(180px, 26vw, 320px);
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}
.cine-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cine-strip::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(52% 118% at 50% 50%, rgba(20,16,12,0.5) 0%, rgba(20,16,12,0) 72%),
  linear-gradient(90deg, rgba(20,16,12,0.72) 0%, rgba(20,16,12,0.28) 42%, rgba(20,16,12,0.28) 58%, rgba(20,16,12,0.72) 100%); }
.cine-strip__label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--bone);
  font-family: var(--ff-type);
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,0.85), 0 2px 20px rgba(0,0,0,0.7);
  padding: 0 1rem;
  width: 100%;
}

/* Figure caption (typewriter, archival) */
.figure { margin: 0; }
.figure figcaption {
  font-family: var(--ff-type);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  text-transform: uppercase;
}

/* ---------- 10. Benefits / values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
}
.value {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--barn);
  border-radius: var(--r);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-hard-sm);
}
.value__mark {
  font-family: var(--ff-type);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--barn);
  text-transform: uppercase;
}
.value h3 { margin: 0.5rem 0 0.5rem; font-size: 1.18rem; }
.value p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- 11. Product / provisions cards (canvas + barn keyline) ---------- */
.card-grid { display: grid; gap: clamp(1.1rem, 2.6vw, 1.9rem); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card-grid--auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.prod-card {
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border: 2px solid var(--barn);
  border-radius: var(--r);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.prod-card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(33, 27, 20, 0.17); }
.prod-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-2); border-bottom: 2px solid var(--barn); }
.prod-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.6s ease; }
@media (prefers-reduced-motion: no-preference) {
  .prod-card:hover .prod-card__media img { transform: scale(1.05); filter: saturate(1.05) contrast(1.03); }
}
/* crest media fallback (for products without a photo) */
.prod-card__media--crest { display: grid; place-items: center; background: radial-gradient(120% 120% at 50% 15%, var(--night-2) 0%, var(--night) 100%); }
.prod-card__media--crest img { width: 58%; height: auto; object-fit: contain; filter: none; }
.prod-card__kicker {
  position: absolute;
  left: 0; top: 0.9rem;
  background: var(--barn);
  color: var(--bone);
  font-family: var(--ff-type);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32rem 0.8rem 0.32rem 0.7rem;
  border-radius: 0 var(--r) var(--r) 0;
}
.prod-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.25rem 1.35rem; }
.prod-card__body h3 { margin: 0 0 0.5rem; }
.prod-card__desc { color: var(--ink-soft); font-size: 0.96rem; margin: 0 0 1.1rem; flex: 1; }
.prod-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; }

/* Price stamp */
.price {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--barn-dark);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.price small { font-family: var(--ff-type); font-size: 0.64rem; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; }

/* ---------- 12. Dark NIGHT band (whole-animal story) ---------- */
.night {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: var(--bone);
  border-block: 3px solid var(--barn);
}
.night__media { position: absolute; inset: 0; z-index: -2; }
.night__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.night::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 12, 9, 0.92) 0%, rgba(16, 12, 9, 0.78) 42%, rgba(16, 12, 9, 0.42) 100%),
    linear-gradient(180deg, rgba(16, 12, 9, 0.55) 0%, rgba(16, 12, 9, 0.2) 40%, rgba(16, 12, 9, 0.7) 100%);
}
.night .wrap { position: relative; padding-block: clamp(3.6rem, 8vw, 6.4rem); }
.night__inner { max-width: 620px; }
.night h2 { color: var(--bone); }
.night h2 em { font-style: normal; color: var(--gold); }
.night .eyebrow { color: var(--gold); }
.night p { color: #E4DCCB; }
.night .typeline { color: var(--dust); }
.night__animals {
  list-style: none;
  margin: 1.6rem 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.night__animals li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  align-items: baseline;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(239, 233, 219, 0.16);
  font-size: 0.99rem;
  color: #E4DCCB;
}
.night__animals b { font-family: var(--ff-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bone); min-width: 8.5rem; font-size: 0.92rem; }

/* ---------- 13. Merch / goods highlight ---------- */
.goods-grid { display: grid; gap: clamp(1.1rem, 2.6vw, 1.9rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.goods {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.goods:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.goods__img { aspect-ratio: 1 / 1; background: #EAE2D2; overflow: hidden; }
.goods__img img { width: 100%; height: 100%; object-fit: cover; }
.goods__img--crest { display: grid; place-items: center; background: radial-gradient(120% 120% at 50% 15%, var(--night-2) 0%, var(--night) 100%); }
.goods__img--crest img { width: 56%; height: auto; object-fit: contain; }
.goods__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.25rem; }
.goods__body h3 { font-size: 1.14rem; margin: 0 0 0.4rem; }
.goods__desc { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 1rem; flex: 1; }
.goods__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: auto; }
.goods__price { font-family: var(--ff-display); font-weight: 700; font-size: 1.3rem; color: var(--barn-dark); }
.colorways { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.9rem; }
.colorways .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.25); }
.colorways .lbl { font-family: var(--ff-type); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-soft); margin-left: 0.2rem; }

/* ---------- 14. Newsletter / dispatch ---------- */
.dispatch {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  background: var(--paper);
  border: 2px solid var(--barn);
  border-radius: var(--r);
  box-shadow: var(--shadow-hard);
  padding: clamp(2rem, 4vw, 3rem);
}
.dispatch h2 { margin-bottom: 0.6rem; }
.dispatch__form { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin: 1.4rem 0 0.8rem; }
.dispatch__note { font-family: var(--ff-type); font-size: 0.74rem; letter-spacing: 0.05em; color: var(--ink-soft); margin: 0; }

input, textarea, select {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--ink);
  background: #FCF8EF;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 0.75rem 0.9rem;
}
input:focus, textarea:focus, select:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--barn); }
.dispatch__form input[type="email"] { flex: 1 1 260px; max-width: 340px; }

/* ---------- 15. Story / prose ---------- */
.page-head {
  position: relative;
  text-align: center;
  padding-block: clamp(2.6rem, 6vw, 4.4rem);
  background: linear-gradient(180deg, var(--canvas) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow { margin-bottom: 0.7rem; }
.page-head h1 { margin-bottom: 0.5rem; }
.page-head .lede { max-width: 640px; margin-inline: auto; }

.prose { font-size: clamp(1.05rem, 1.2vw, 1.16rem); line-height: 1.78; color: #2C2419; }
.prose p { margin-bottom: 1.3rem; }
.prose .lead-cap::first-letter {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.72;
  float: left;
  margin: 0.06em 0.12em 0 0;
  color: var(--barn);
}
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }

.ornament { text-align: center; color: var(--sage); font-family: var(--ff-type); letter-spacing: 0.4em; margin: 2.4rem 0; }
.ornament span { display: inline-block; }

.pull-quote {
  border-block: 2px solid var(--barn);
  padding: clamp(1.8rem, 4vw, 2.8rem) 0;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.pull-quote blockquote {
  font-family: var(--ff-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.8rem;
}
.pull-quote cite { font-family: var(--ff-type); font-style: normal; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--barn); }

/* Head-of-Farm note */
.headfarm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: center;
  background: var(--canvas);
  border: 2px solid var(--barn);
  border-radius: var(--r);
  box-shadow: var(--shadow-hard);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.headfarm__seal {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 2px solid var(--barn);
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle, var(--paper), var(--canvas-2));
  box-shadow: inset 0 0 0 4px rgba(138, 59, 18, 0.12);
}
.headfarm__seal span { display: block; }
.headfarm__seal .s-top { font-family: var(--ff-type); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--barn); }
.headfarm__seal .s-big { font-family: var(--ff-display); font-weight: 700; text-transform: uppercase; font-size: 1.7rem; color: var(--ink); line-height: 1; margin: 0.15rem 0; }
.headfarm__seal .s-bot { font-family: var(--ff-type); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-dark); }
.headfarm__sig { font-family: var(--ff-type); font-size: 0.86rem; letter-spacing: 0.04em; color: var(--barn); }

/* ---------- 16. Visit page ---------- */
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.info-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--barn);
  border-radius: var(--r);
  box-shadow: var(--shadow-hard-sm);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.info-card h3 { margin-bottom: 1rem; }
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.55rem 0; border-bottom: 1px dashed var(--line-strong); }
.hours-table th { font-family: var(--ff-display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.92rem; }
.hours-table td { font-family: var(--ff-type); font-size: 0.86rem; text-align: right; color: var(--ink-soft); }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.info-list li { display: flex; gap: 0.75rem; align-items: baseline; }
.info-list .ic { color: var(--barn); font-size: 1rem; width: 1.2rem; flex-shrink: 0; text-align: center; }
.info-list b { display: block; font-family: var(--ff-display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; }
.info-list a { word-break: break-word; }
.info-list em { font-family: var(--ff-type); font-size: 0.74rem; color: var(--sage-dark); font-style: normal; }

.form-field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-family: var(--ff-display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.form-field input, .form-field textarea, .form-field select { width: 100%; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-family: var(--ff-type); font-size: 0.78rem; letter-spacing: 0.03em; color: var(--ink-soft); }

.ps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2.6vw, 1.6rem); }
.ps-card {
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-hard-sm);
}
.ps-card__ic { font-size: 1.7rem; display: block; margin-bottom: 0.5rem; }
.ps-card h4 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.ps-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- 17. Prototype / allergen notices ---------- */
.proto-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-type);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--barn-dark);
  background: rgba(138, 59, 18, 0.08);
  border: 1px dashed var(--barn);
  border-radius: 40px;
  padding: 0.4rem 0.9rem;
}
.allergen-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  margin-top: 2.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.allergen-note span[aria-hidden] { color: var(--gold); font-size: 1.1rem; }

/* ---------- 18. Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--dust);
  border-top: 3px solid var(--barn);
  padding-block: clamp(2.6rem, 5vw, 3.8rem) 1.4rem;
  position: relative;
  z-index: 1;
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(1.6rem, 4vw, 3rem); padding-bottom: 2rem; border-bottom: 1px solid rgba(239, 233, 219, 0.14); }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand h3 { color: var(--bone); margin-bottom: 0.5rem; }
.footer-brand p { color: var(--dust); font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer-est { font-family: var(--ff-type); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; }
.footer-col h4 { color: var(--bone); font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: var(--dust); text-decoration: none; font-size: 0.94rem; }
.footer-col a:hover { color: var(--bone); text-decoration: underline; }
.footer-col address { font-style: normal; color: var(--dust); font-size: 0.94rem; line-height: 1.7; }
.footer-col address a { color: var(--dust); }
.footer-social { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.footer-social a {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(239, 233, 219, 0.3);
  border-radius: 50%;
  font-family: var(--ff-display); font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--dust); text-decoration: none;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; justify-content: space-between;
  padding-top: 1.2rem;
  font-size: 0.8rem; color: var(--dust);
}
.footer-bottom a { color: var(--dust); }
.footer-legal { border: 0 !important; padding-top: 0.4rem; font-size: 0.74rem; line-height: 1.6; opacity: 0.85; }

/* ---------- 19. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 140%);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--night);
  color: var(--bone);
  border: 1px solid var(--barn);
  border-left: 4px solid var(--barn);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
  padding: 0.8rem 1.15rem;
  font-family: var(--ff-body);
  font-size: 0.94rem;
  max-width: min(92vw, 460px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.32s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast-seal { color: var(--gold); font-size: 1.05rem; }

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__media img { transform: none !important; }
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: rgba(20, 16, 12, 0.99);
    border-bottom: 3px solid var(--barn);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .nav[data-open="true"] { max-height: 70vh; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem var(--gutter) 1rem; }
  .nav a { padding: 0.85rem 0.4rem; border-radius: 0; border-bottom: 1px solid rgba(239, 233, 219, 0.1); }
  .nav a[aria-current]::after { left: 0.4rem; right: auto; width: 26px; bottom: 0.5rem; }
  .footer-top { grid-template-columns: 1fr; }
  .headfarm { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 520px) {
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .hero .btn-row .btn { width: 100%; }
  .dispatch__form { flex-direction: column; align-items: stretch; }
  .dispatch__form input[type="email"] { max-width: none; }
  .prod-card__foot { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .prod-card__foot .btn { width: 100%; }
  .goods__foot { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .goods__foot .btn { width: 100%; }
  .night__animals b { min-width: 100%; display: block; }
}
