/* ===========================================================
   High Falls Woodlot · styles.css
   Warm, rustic, editorial. Mobile-first. WCAG AA.
   =========================================================== */

/* --- Tokens --- */
:root {
  --cream:      #f6efe4;
  --cream-2:    #ede3d2;
  --paper:      #fbf7ef;
  --ink:        #2a1b10;
  --ink-2:      #4a3426;
  --muted:      #6b5543;
  --line:       #d9c8ad;

  --amber:      #c48435;
  --amber-dk:   #a4661d;
  --amber-ink:  #744608; /* darker, WCAG AA on --paper for small text */
  --rust:       #b13b2c;
  --forest:     #314d36;
  --forest-dk:  #1f3424;

  --maxw:       1180px;
  --gutter:     clamp(1rem, 3vw, 2rem);
  --radius:     10px;
  --radius-lg:  18px;
  --shadow-sm:  0 1px 2px rgba(42,27,16,.08), 0 2px 8px rgba(42,27,16,.06);
  --shadow-md:  0 6px 24px rgba(42,27,16,.14);

  --f-serif:    "Fraunces", Georgia, "Times New Roman", serif;
  --f-sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: 1.0625rem;
  --t-lg:   1.1875rem;
  --t-xl:   clamp(1.25rem, 1.2vw + 1rem, 1.5rem);
  --t-2xl:  clamp(1.5rem, 1.6vw + 1.1rem, 2rem);
  --t-3xl:  clamp(1.85rem, 2.4vw + 1.2rem, 2.75rem);
  --t-4xl:  clamp(2.4rem, 4.5vw + 1rem, 4.25rem);

  --ease:   cubic-bezier(.2,.7,.2,1);
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--forest-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible, .g-btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 48, "SOFT" 50;
}
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); font-weight: 600; font-variation-settings: "opsz" 24; }

p { margin: 0 0 1em; }
em { font-style: italic; }

/* --- Utility --- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); font-size: var(--t-sm); }
.center { text-align: center; }

.eyebrow {
  font-family: var(--f-sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--amber-ink);
  margin: 0 0 .75rem;
}

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-title { font-size: var(--t-3xl); }
.section-head { max-width: 62ch; margin-inline: auto; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { text-align: center; }
.section-dek { font-size: var(--t-lg); color: var(--ink-2); }

/* --- Skip link --- */
.skip-link {
  position: absolute; left: -1000px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: .6rem 1rem; border-radius: 0 0 8px 0;
  font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 247, 239, .9);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-grid {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--f-serif);
}
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: .005em;
  font-variation-settings: "opsz" 20, "SOFT" 80;
}
.brand-sub {
  font-family: var(--f-sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
@media (max-width: 480px) {
  .brand-name { font-size: 1.32rem; }
  .brand-sub { font-size: .72rem; letter-spacing: .1em; }
}

.site-nav {
  display: flex; gap: 1.4rem; align-items: center;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--amber); }
.nav-cta {
  padding: .55rem 1.1rem !important;
  border: 2px solid var(--forest) !important;
  border-radius: 999px;
  color: var(--forest) !important;
}
.nav-cta:hover { background: var(--forest); color: var(--cream) !important; border-color: var(--forest) !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0;
  padding: 10px; cursor: pointer;
}
.nav-toggle-bar {
  display: block; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .25rem var(--gutter) 1.25rem;
    box-shadow: 0 12px 24px rgba(42,27,16,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); min-height: 44px; display: flex; align-items: center; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav .nav-cta { margin-top: .8rem; justify-content: center; text-align: center; }
}

/* --- Hero (split layout: image + cream text panel) --- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-2);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
  filter: saturate(1.08) contrast(1.04);
}
.hero-panel {
  display: flex;
  align-items: center;
  padding: clamp(2.25rem, 6vw, 4.5rem) var(--gutter);
  background: var(--paper);
}
.hero-panel-inner { width: 100%; max-width: 560px; margin: 0 auto; }
.hero-title {
  font-size: var(--t-4xl);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-title em {
  font-style: italic;
  color: var(--amber-dk);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  display: block;
  margin-top: .05em;
}
.hero-lede {
  font-size: clamp(1.05rem, .3vw + 1rem, 1.2rem);
  line-height: 1.6;
  max-width: 44ch;
  color: var(--ink-2);
  margin: 0 0 1.75rem;
}
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Desktop: side-by-side, text LEFT, image RIGHT */
@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "panel media";
    min-height: clamp(560px, 78svh, 760px);
  }
  .hero-panel { grid-area: panel; padding: clamp(2.5rem, 5vw, 5rem); }
  .hero-media { grid-area: media; aspect-ratio: auto; height: 100%; }
  .hero-panel-inner { max-width: 480px; margin: 0; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: .75rem 1.35rem;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s var(--ease), background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
  cursor: pointer;
  letter-spacing: .01em;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: #942e22; color: #fff; }
.btn-secondary { color: var(--forest-dk); border-color: var(--forest-dk); background: transparent; }
.btn-secondary:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn-ghost { color: var(--cream); border-color: rgba(246,239,228,.6); }
.btn-ghost:hover { background: rgba(246,239,228,.1); border-color: var(--cream); color: var(--cream); }

/* --- Story --- */
.story { background: var(--paper); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 860px) {
  .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); }
  .story-figure { position: sticky; top: 88px; }
}
.story-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--cream-2);
}
.story-figure img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 65% 65%; }
.story-figure figcaption {
  padding: .75rem 1rem;
  font-size: var(--t-xs);
  color: var(--muted);
  font-style: italic;
  text-align: center;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.story-copy p { margin: 0 0 1.1em; }
.story-copy .lead {
  font-family: var(--f-serif);
  font-size: clamp(1.25rem, .8vw + 1rem, 1.55rem);
  line-height: 1.4;
  color: var(--ink-2);
  font-style: italic;
  margin-bottom: 1.25em;
  font-variation-settings: "opsz" 40;
}
.story-copy .pull {
  font-family: var(--f-serif);
  font-size: clamp(1.3rem, 1vw + 1rem, 1.75rem);
  line-height: 1.3;
  color: var(--forest-dk);
  padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid var(--amber);
  margin: 1.5em 0;
  font-weight: 500;
}
.signature {
  font-family: "Fraunces", cursive;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink-2);
  margin-top: 2rem;
  font-variation-settings: "opsz" 72, "SOFT" 100;
}

/* --- Process --- */
.process { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none; padding: 0; margin: 0 0 clamp(3rem, 6vw, 4.5rem);
  counter-reset: step;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--f-serif);
  font-size: 1.75rem;
  color: var(--amber-ink);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.02em;
  margin-bottom: .4rem;
  font-variation-settings: "opsz" 60;
}
.step h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }

.process-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 760px) {
  .process-feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.process-figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.process-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.process-note h3 { font-size: var(--t-2xl); margin-bottom: .6em; color: var(--forest-dk); }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.checklist li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: .6rem;
  font-weight: 500;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px;
  background: no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23314d36' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
}

/* --- Syrup --- */
.syrup { background: var(--paper); }
.syrup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 820px) {
  .syrup-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}
.syrup-copy .lead {
  font-family: var(--f-serif);
  font-size: clamp(1.2rem, .7vw + 1rem, 1.45rem);
  line-height: 1.45;
  color: var(--ink-2);
  font-style: italic;
  font-variation-settings: "opsz" 36;
}
.color-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  margin: 1.5rem 0 .6rem;
}
.swatch {
  --c: #c48435;
  display: flex; flex-direction: column; align-items: center;
  background: var(--c);
  aspect-ratio: 1 / 1.15;
  border-radius: 10px;
  position: relative;
  color: #fff;
  box-shadow: inset 0 -12px 24px rgba(0,0,0,.15), 0 2px 6px rgba(42,27,16,.1);
  overflow: hidden;
}
.swatch::before {
  content: "";
  position: absolute; left: 20%; right: 20%; top: 0;
  height: 10%; background: rgba(255,255,255,.18);
  border-radius: 0 0 10px 10px;
}
.swatch em {
  position: absolute; bottom: .5rem; left: 0; right: 0;
  font-style: normal;
  font-family: var(--f-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.syrup-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.syrup-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* --- Gallery --- */
.gallery { background: var(--cream); border-top: 1px solid var(--line); }
.gallery-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.6rem, 1.4vw, 1rem);
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.g-item { position: relative; }
.g-item.g-tall { grid-row: span 2; }
.g-item.g-wide { grid-column: span 2; }
@media (max-width: 719px) {
  .g-item.g-tall, .g-item.g-wide { grid-column: auto; grid-row: auto; }
}
.g-btn {
  display: block; width: 100%; padding: 0;
  background: var(--cream-2); border: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.g-item.g-tall .g-btn { aspect-ratio: 1 / 2.05; }
.g-item.g-wide .g-btn { aspect-ratio: 2 / 1; }
@media (max-width: 719px) {
  .g-item.g-tall .g-btn { aspect-ratio: 3 / 4; }
  .g-item.g-wide .g-btn { aspect-ratio: 1 / 1; }
}
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-btn:hover img { transform: scale(1.04); }
.g-btn:hover { box-shadow: var(--shadow-md); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 95vw; max-height: 95vh;
  color: var(--cream);
}
.lightbox::backdrop { background: rgba(20,12,6,.88); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-img { max-width: 95vw; max-height: 85vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox-close {
  position: fixed; top: 1rem; right: 1rem;
  width: 44px; height: 44px; font-size: 2rem; line-height: 1;
  background: rgba(0,0,0,.4); color: #fff; border: 0; border-radius: 50%;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(0,0,0,.7); }

/* --- Where to Buy --- */
.where { background: var(--paper); }
.retailers {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 760px) { .retailers { grid-template-columns: repeat(2, 1fr); } }
.retailer {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.retailer::before {
  content: "";
  position: absolute; top: 0; left: clamp(1.5rem, 3vw, 2rem); right: clamp(1.5rem, 3vw, 2rem);
  height: 3px; background: var(--amber);
  border-radius: 0 0 3px 3px;
}
.retailer h3 { font-size: var(--t-2xl); color: var(--forest-dk); margin-bottom: .5rem; }
.retailer p { color: var(--ink-2); margin-bottom: 1.25rem; }
.retailer-meta {
  display: grid; gap: .6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin: 0;
}
.retailer-meta > div { display: grid; grid-template-columns: 5rem 1fr; gap: .5rem .75rem; font-size: var(--t-sm); }
.retailer-meta dt {
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  padding-top: .18rem;
}
.retailer-meta dd { margin: 0; color: var(--ink-2); }

/* --- Contact --- */
.contact {
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-dk) 100%);
  color: var(--cream);
  padding-block: clamp(4rem, 8vw, 7rem);
  text-align: center;
}
.contact .eyebrow { color: #eac97f; }
.contact .section-title { color: var(--cream); max-width: 20ch; margin-inline: auto; }
.contact .lead { color: rgba(246,239,228,.88); font-size: var(--t-lg); max-width: 52ch; margin: 0 auto 2rem; }
.contact .muted { color: rgba(246,239,228,.6); }
.contact-cta { margin: 0 0 1.75rem; }
.btn-contact {
  background: var(--cream);
  color: var(--forest-dk);
  padding: 1rem 2rem;
  font-size: 1.05rem;
  min-height: 52px;
  letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.btn-contact:hover {
  background: #fff;
  color: var(--forest-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: rgba(246,239,228,.72);
  padding-block: 2.5rem;
  font-size: var(--t-sm);
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    text-align: left;
  }
}
.footer-brand { display: flex; flex-direction: column; color: var(--cream); }
.footer-brand .brand-name { color: var(--cream); font-family: var(--f-serif); font-size: 1.1rem; }
.footer-brand .brand-sub { color: rgba(246,239,228,.55); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.footer-nav a { color: rgba(246,239,228,.8); text-decoration: none; }
.footer-nav a:hover { color: var(--cream); }
.footer-meta { margin: 0; font-size: .8rem; color: rgba(246,239,228,.5); }

/* --- Print --- */
@media print {
  .site-header, .hero-scroll, .nav-toggle, .hero-ctas, .lightbox { display: none !important; }
  .hero { color: var(--ink); min-height: auto; }
  .hero-img, .hero-scrim { display: none; }
  body { background: #fff; }
}

/* --- High-contrast safety --- */
@media (prefers-contrast: more) {
  :root { --muted: #3d2e1f; --line: #8e7355; }
}
