/* =====================================================================
   Baked with Kate — site styles
   Brand: botanical apothecary · artisan sourdough
   Palette, type and motifs derived from the Brand Identity Suite.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --cream:   #f0e8d5;
  --sand:    #e0d4b8;
  --gold:    #b5a55a;
  --crust:   #c9784a;
  --herb:    #4a7243;
  --herb-dk: #3a5a35;
  --dark:    #1c1508;
  --dark2:   #251d0e;
  --ink-60:  rgba(28, 21, 8, 0.6);
  --cream-60: rgba(240, 232, 213, 0.6);
  --cream-35: rgba(240, 232, 213, 0.35);
  --hair-dark: rgba(28, 21, 8, 0.18);
  --hair-light: rgba(240, 232, 213, 0.18);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Josefin Sans', system-ui, sans-serif;
  --accent-serif: 'Cormorant Garamond', Georgia, serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--herb); outline-offset: 3px; border-radius: 2px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--sans); font-weight: 300;
  font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--dark);
}
.accent-line {
  font-family: var(--accent-serif); font-style: italic; font-weight: 400;
  color: var(--crust); letter-spacing: 0.04em;
}
.k-accent { color: var(--herb); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 11vw, 132px); position: relative; }
.section--cream { background: var(--cream); }
.section--dark  { background: var(--dark); color: var(--cream); }
.section--sand  { background: var(--sand); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 6vw, 60px); }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-head .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: 0.7; }
.section-head p { margin-top: 18px; max-width: 52ch; color: var(--ink-60); font-size: 1.02rem; }
.section--dark .section-head p { color: var(--cream-60); }
.section--dark .section-title { color: var(--cream); }

/* ---------- Sprigs (inline brand motif) ---------- */
.sprig { width: 18px; height: auto; }

/* =====================================================================
   Header / nav
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(240, 232, 213, 0.92);
  backdrop-filter: blur(10px);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--hair-dark);
}
.nav-mark {
  display: flex; align-items: baseline; gap: 7px;
  font-family: var(--serif); font-style: italic; font-weight: 900;
  color: var(--cream); font-size: 1.35rem; line-height: 1;
  transition: color 0.35s ease;
}
.nav-mark .nm-with {
  font-family: var(--sans); font-weight: 300; font-style: normal;
  font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.8;
}
.is-scrolled .nav-mark { color: var(--dark); }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav-links a {
  font-family: var(--sans); font-weight: 300; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream);
  position: relative; padding-block: 4px; transition: color 0.35s ease;
}
.is-scrolled .nav-links a { color: var(--dark); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--herb); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-links .nav-order {
  border: 1px solid currentColor; padding: 9px 18px; border-radius: 2px;
  letter-spacing: 0.18em;
}
.nav-links .nav-order::after { display: none; }
.nav-links .nav-order:hover { background: var(--herb); border-color: var(--herb); color: var(--cream); }

.nav-toggle { display: none; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--cream);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: var(--dark) center/cover no-repeat;
  background-image: url("../img/hero.svg");
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(28,21,8,0.35), rgba(28,21,8,0.78)),
    linear-gradient(to bottom, rgba(28,21,8,0.4), rgba(28,21,8,0.65));
}
.hero__inner { position: relative; z-index: 2; padding: 120px var(--gutter) 90px; }
.hero__sprigs { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin-bottom: 12px; }
.hero__sprigs .mascot { width: 96px; height: auto; }
.hero__eyebrow { color: var(--cream-60); margin-bottom: 22px; }

.lockup { display: inline-flex; flex-direction: column; align-items: center; }
.lockup__top {
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: 0.82; letter-spacing: -0.02em;
}
.lockup__with {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(0.6rem, 1.6vw, 0.78rem); letter-spacing: 0.55em; text-transform: uppercase;
  color: var(--cream-60); margin: 8px 0 2px; padding-left: 0.55em;
}
.lockup__name {
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(4.4rem, 16vw, 8.5rem); line-height: 0.84; letter-spacing: -0.03em;
}
.hero__rule {
  width: min(280px, 60vw); height: 1px; background: var(--cream-35);
  margin: 28px auto 18px;
}
.hero__tag {
  font-family: var(--accent-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem); letter-spacing: 0.06em; color: var(--cream);
}
.hero__sub {
  font-family: var(--sans); font-weight: 300; font-size: 0.72rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-60);
  margin-top: 10px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream-60);
}
.hero__scroll span { width: 1px; height: 32px; background: var(--cream-35); animation: scrollpulse 2.4s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.2; transform: scaleY(0.6); } 50% { opacity: 0.8; transform: scaleY(1); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 400; font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--herb); color: var(--cream); border-color: var(--herb); }
.btn--solid:hover { background: var(--herb-dk); border-color: var(--herb-dk); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream-35); }
.btn--ghost:hover { border-color: var(--cream); }
.btn--crust { background: var(--crust); color: var(--cream); border-color: var(--crust); }
.btn--crust:hover { background: #b3653a; border-color: #b3653a; }

/* =====================================================================
   Story
   ===================================================================== */
.story__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.story__media { position: relative; }
.story__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow-soft); }
.story__media::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold);
  border-radius: 2px; opacity: 0.5; z-index: 2; pointer-events: none;
}
.story__body p { margin-top: 20px; color: var(--ink-60); font-size: 1.04rem; }
.story__body .lead {
  font-family: var(--accent-serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--dark); margin-top: 24px; line-height: 1.45;
}
.story__sign {
  margin-top: 26px; font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 1.6rem; color: var(--herb);
}

/* =====================================================================
   Breads / menu
   ===================================================================== */
.bread-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px);
}
.bread-card {
  background: var(--dark2); border-radius: 3px; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid rgba(240, 232, 213, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bread-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.bread-card__media { aspect-ratio: 1 / 1; overflow: hidden; }
.bread-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.bread-card:hover .bread-card__media img { transform: scale(1.05); }
.bread-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; }
.bread-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bread-card__name { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.4rem; color: var(--cream); }
.bread-card__price { font-family: var(--sans); font-weight: 300; font-size: 1.05rem; color: var(--gold); white-space: nowrap; }
.bread-card__note {
  font-family: var(--sans); font-weight: 300; font-size: 0.66rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cream-60);
}
.bread-card__desc { color: var(--cream-60); font-size: 0.92rem; margin-top: 4px; }
.menu-foot { margin-top: clamp(32px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.menu-foot p { color: var(--cream-60); font-family: var(--accent-serif); font-style: italic; font-size: 1.15rem; }

/* =====================================================================
   Process
   ===================================================================== */
.process__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.process__step { position: relative; padding-top: 30px; }
.process__step .num {
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 2.4rem;
  color: var(--herb); line-height: 1;
}
.process__step h3 {
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.45rem;
  color: var(--cream); margin: 12px 0 10px;
}
.process__step p { color: var(--cream-60); font-size: 0.96rem; }
.process__step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 1px; background: var(--gold); opacity: 0.6;
}

/* =====================================================================
   Order
   ===================================================================== */
.order__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: stretch; }
.order__media { position: relative; border-radius: 3px; overflow: hidden; min-height: 320px; }
.order__media img { width: 100%; height: 100%; object-fit: cover; }
.order__how { list-style: none; margin: 24px 0 0; display: grid; gap: 18px; }
.order__how li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-60); }
.order__how .step-dot {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--herb);
  display: grid; place-items: center; color: var(--herb);
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 0.85rem;
}
.order__how strong { color: var(--dark); font-weight: 400; display: block; margin-bottom: 2px;
  font-family: var(--sans); letter-spacing: 0.04em; }

.order-form {
  background: var(--cream); border: 1px solid var(--hair-dark); border-radius: 3px;
  padding: clamp(24px, 4vw, 36px); position: relative;
}
.order-form::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--hair-dark); border-radius: 2px; pointer-events: none; opacity: 0.5; }
.order-form h3 {
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.6rem;
  color: var(--dark); margin-bottom: 6px; position: relative;
}
.order-form .form-note { color: var(--ink-60); font-size: 0.86rem; margin-bottom: 22px; position: relative; }
.field { position: relative; margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--sans); font-weight: 400; font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--herb); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-weight: 300; font-size: 0.95rem;
  color: var(--dark); background: rgba(255,255,255,0.5);
  border: 1px solid var(--hair-dark); border-radius: 2px; padding: 12px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--herb); background: #fff;
}
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-status { margin-top: 14px; font-size: 0.85rem; color: var(--herb); min-height: 1.2em; position: relative; }
.form-status.is-error { color: var(--crust); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--dark); color: var(--cream); padding: clamp(56px, 8vw, 84px) 0 32px; position: relative; overflow: hidden; }
.footer__pattern { position: absolute; inset: 0; opacity: 0.05; pointer-events: none; }
.footer__grid {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(32px, 5vw, 64px);
  padding-bottom: 48px; border-bottom: 1px solid var(--hair-light);
}
.footer__mark .lockup__top { font-size: 2rem; }
.footer__mark .lockup__name { font-size: 3.4rem; }
.footer__mark .lockup__with { color: var(--cream-60); }
.footer__mark p { margin-top: 18px; color: var(--cream-60); max-width: 32ch; font-size: 0.92rem; }
.footer__col h4 {
  font-family: var(--sans); font-weight: 300; font-size: 0.64rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.footer__col a, .footer__col p { display: block; color: var(--cream-60); font-size: 0.92rem; margin-bottom: 10px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--cream); }
.footer__bottom {
  position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  padding-top: 28px;
}
.footer__bottom p { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--cream-35); }
.footer__legal { font-family: var(--sans); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.62rem !important; }

/* =====================================================================
   Reveal-on-scroll
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  .story__grid, .order__grid { grid-template-columns: 1fr; }
  .bread-grid, .process__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__mark { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: var(--dark); padding: 48px var(--gutter); box-shadow: -10px 0 40px rgba(0,0,0,0.4); }
  .nav-links.is-open { display: flex; }
  .nav-links a { color: var(--cream) !important; font-size: 0.9rem; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 6px; z-index: 60;
  }
  .nav-toggle span { width: 24px; height: 1.5px; background: var(--cream); transition: background 0.35s ease, transform 0.3s ease, opacity 0.3s ease; }
  .is-scrolled .nav-toggle span { background: var(--dark); }
  .nav-toggle.is-open span { background: var(--cream); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .bread-grid, .process__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
