/* ---------- Tokens ---------- */
:root {
  /* Palette — warm cream base, dark ink, earthy accents */
  --cream:       #F5ECD7;
  --cream-soft: #FAF4E5;
  --paper:       #FBF6EA;
  --ink:         #1F1A14;
  --ink-soft:    #4A4339;
  --muted:       #877E6F;
  --line:        #E3D8BD;

  --sage:        #8FA889;
  --sage-deep:   #2F4A3A;
  --rose:        #E2B89E;
  --rose-deep:   #B5532E;
  --mustard:     #E2A93A;
  --gold:        #C99020;
  --rust:        #B5532E;
  --forest:      #2F4A3A;

  /* Tinted flavor backgrounds */
  --tint-rose:    #F2D6C2;
  --tint-mustard: #F1D17A;
  --tint-sage:    #C8D4B6;
  --tint-forest:  #2F4A3A;
  --tint-rust:    #B5532E;

  /* Type */
  --serif: 'Fraunces', 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono:  'DM Mono', 'JetBrains Mono', 'Menlo', monospace;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
  --radius: 4px;
  --shadow-soft: 0 24px 60px -28px rgba(31, 26, 20, 0.30);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
}

/* Subtle paper grain via SVG noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.10;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12, 0 0 0 0 0.10, 0 0 0 0 0.08, 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(31, 26, 20, 0.35);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  text-decoration-color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: var(--radius);
  z-index: 200;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-feature-settings: "ss01";
}

.hero-title,
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0 0 24px;
  font-feature-settings: "ss01";
}

.hero-title {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 350;
}

.hero-title em,
.section-title em {
  font-style: italic;
  font-weight: 350;
  color: var(--ink);
}

.section-title {
  font-size: clamp(36px, 6vw, 72px);
}

.hero-lede,
.section-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 32px;
}

.hero-lede {
  margin-left: 0;
  margin-right: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn-large {
  padding: 20px 36px;
  font-size: 15px;
}

.btn-link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: gap 160ms ease;
}
.btn-link:hover {
  gap: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 236, 215, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 26, 20, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: block;
  height: 30px;
  width: auto;
}
.brand-mark.large {
  height: 84px;
}

.primary-nav {
  display: flex;
  gap: 32px;
}

.primary-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 2px;
  position: relative;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease;
}
.primary-nav a:hover {
  color: var(--ink);
}
.primary-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  border-top: 1px solid rgba(31, 26, 20, 0.08);
  background: var(--cream);
}
.mobile-nav a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid rgba(31, 26, 20, 0.06);
}
.mobile-nav a:last-child {
  border-bottom: 0;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 980px;
}

.hero-title {
  margin-top: 14px;
}

.hero-lede {
  margin-top: 8px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- Cookbook ---------- */
.cookbook {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--paper);
  position: relative;
}

.cookbook-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.cookbook-image {
  margin: 0;
  position: relative;
}
.cookbook-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.cookbook-copy .byline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin: -12px 0 20px;
}

.cookbook-copy p {
  margin: 0 0 18px;
  max-width: 56ch;
}

.cookbook-copy .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin: 28px 0;
  padding-left: 20px;
  border-left: 2px solid var(--mustard);
}

.cookbook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 28px 0 36px;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.meta-list li {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.meta-list li span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ---------- Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  background: var(--cream);
}
.divider .ornament {
  font-size: 22px;
  color: var(--mustard);
}
.divider-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Flavors ---------- */
.flavors {
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: var(--section-y);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 72px);
}
.section-head .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.flavor-banner {
  margin: 0 0 clamp(40px, 6vw, 72px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 7;
  background: var(--ink);
}
.flavor-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.flavor-list {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 28px);
}

.flavor {
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  background: var(--paper);
}

.flavor-image {
  margin: 0;
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.flavor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flavor-body {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.flavor--rose    { background: var(--tint-rose); }
.flavor--mustard { background: var(--tint-mustard); }
.flavor--sage    { background: var(--tint-sage); }
.flavor--forest  { background: var(--tint-forest); color: var(--cream-soft); }
.flavor--rust    { background: var(--tint-rust); color: var(--cream-soft); }

.flavor--rose .flavor-body    { background: var(--tint-rose); }
.flavor--mustard .flavor-body { background: var(--tint-mustard); }
.flavor--sage .flavor-body    { background: var(--tint-sage); }
.flavor--forest .flavor-body  { background: var(--tint-forest); color: var(--cream-soft); }
.flavor--rust .flavor-body    { background: var(--tint-rust); color: var(--cream-soft); }

.flavor--forest .flavor-num,
.flavor--forest .flavor-ingredients,
.flavor--forest .flavor-note,
.flavor--rust .flavor-num,
.flavor--rust .flavor-ingredients,
.flavor--rust .flavor-note {
  color: rgba(250, 244, 229, 0.85);
}

.flavor-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink-soft);
}

.flavor-name {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
}
.flavor-name em {
  font-style: italic;
}

.flavor-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  margin: 0;
  color: var(--ink);
}
.flavor--forest .flavor-tag,
.flavor--rust .flavor-tag {
  color: var(--cream-soft);
}

.flavor-ingredients {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 6px 0 0;
}

.flavor-note {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.flavors-footnote {
  text-align: center;
  margin: 40px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Locations ---------- */
.locations {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--cream-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.location-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.location {
  padding: 32px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper);
  transition: background 200ms ease;
}
.location:last-child {
  border-right: 0;
}
.location:hover {
  background: var(--cream-soft);
}

.loc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--muted);
}

.loc-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 10px;
}

.location address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 4px;
}

.loc-phone {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-decoration: none;
  margin-top: auto;
  padding-top: 8px;
}
.loc-phone:hover {
  color: var(--ink);
}

.locations-footnote {
  margin: 40px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.locations-footnote a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
  padding-bottom: 2px;
}
.locations-footnote a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- Newsletter ---------- */
.newsletter {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background:
    radial-gradient(ellipse at center top, rgba(143, 168, 137, 0.18), transparent 60%),
    var(--cream);
  text-align: center;
}

.newsletter-inner {
  max-width: 640px;
}

.newsletter .eyebrow {
  text-align: center;
}

/* ---------- Farewell ---------- */
.farewell {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--forest);
  color: var(--cream-soft);
  text-align: center;
}

.farewell-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 7vw, 96px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: none;
  color: var(--cream-soft);
}
.farewell-quote em {
  font-style: italic;
}

.farewell-credit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 22px 0 0;
  color: rgba(250, 244, 229, 0.7);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(60px, 7vw, 100px) 0 36px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand .brand-mark.large {
  display: block;
  margin-bottom: 12px;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 26ch;
}

.footer-nav h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--ink-soft);
}
.footer-nav a {
  display: block;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  padding: 5px 0;
}
.footer-nav a:hover {
  color: var(--rust);
}

.footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-meta p {
  margin: 0 0 6px;
}
.footer-meta .muted {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-style: italic;
  font-family: var(--serif);
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .primary-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .site-header[data-open="true"] .mobile-nav {
    display: flex;
  }

  .cookbook-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cookbook-image {
    max-width: 460px;
    margin: 0 auto;
  }

  .flavor {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .flavor-image {
    aspect-ratio: 4 / 3;
  }
  .flavor:nth-child(even) .flavor-body {
    order: 2;
  }
  .flavor:nth-child(even) .flavor-image {
    order: 1;
  }

  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .location {
    border-right: 1px solid var(--line);
  }
  .location:nth-child(2n) {
    border-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .brand-mark { height: 24px; }

  .hero-title { font-size: clamp(44px, 14vw, 64px); }
  .section-title { font-size: clamp(32px, 9vw, 48px); }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .cookbook-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookbook-actions .btn {
    width: 100%;
    text-align: center;
  }

  .meta-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }
  .location {
    border-right: 0 !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Reveal on scroll (JS-gated) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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