/* =============================================================
   TRACEY'S KITCHEN — STYLESHEET
   Palette drawn from West African textile traditions: palm-oil
   terracotta, kente gold, deep leaf green, on a warm charcoal.
   ============================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* surfaces */
  --ink:        #0E0C0A;
  --ink-2:      #181410;
  --ink-3:      #241D17;
  --ink-line:   rgba(251, 244, 231, 0.14);

  --cream:      #FBF4E7;
  --cream-2:    #F2E6D0;
  --cream-3:    #E3D2B4;
  --cream-line: rgba(14, 12, 10, 0.14);

  /* accents */
  --clay:       #C9521F;
  --clay-2:     #A63F13;
  --clay-soft:  #E8804A;
  --gold:       #E9A62E;
  --gold-2:     #C9821A;
  --leaf:       #2F6B46;
  --leaf-2:     #1E4A2F;
  --berry:      #8E1F26;

  /* text */
  --on-dark:        #FBF4E7;
  --on-dark-muted:  rgba(251, 244, 231, 0.66);
  --on-dark-faint:  rgba(251, 244, 231, 0.42);
  --on-light:       #1A1410;
  --on-light-muted: rgba(26, 20, 16, 0.66);

  /* type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* metrics */
  --rail: clamp(1.15rem, 4.5vw, 4.5rem);
  --maxw: 1240px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --nav-h: 68px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms var(--ease);
  --slow: 420ms var(--ease);

  --shadow-lift: 0 18px 44px -18px rgba(14, 12, 10, 0.55);
  --shadow-pop:  0 28px 70px -22px rgba(14, 12, 10, 0.7);
}

/* ---------- 2. PATTERNS ---------- */
:root {
  /* mudcloth chevron band — used as section rules */
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='18' viewBox='0 0 64 18'%3E%3Cpath d='M0 9 L8 1 L16 9 L8 17Z' fill='%23C9521F'/%3E%3Cpath d='M16 9 L24 1 L32 9 L24 17Z' fill='%23E9A62E'/%3E%3Cpath d='M32 9 L40 1 L48 9 L40 17Z' fill='%232F6B46'/%3E%3Cpath d='M48 9 L56 1 L64 9 L56 17Z' fill='%23E9A62E'/%3E%3C/svg%3E");

  /* adinkra-inspired geometric watermark */
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23E9A62E' stroke-width='1.4'%3E%3Cpath d='M70 18 L122 70 L70 122 L18 70 Z'/%3E%3Cpath d='M70 40 L100 70 L70 100 L40 70 Z'/%3E%3Cpath d='M70 58 L82 70 L70 82 L58 70 Z'/%3E%3Cpath d='M70 0 L70 18 M70 122 L70 140 M0 70 L18 70 M122 70 L140 70'/%3E%3C/g%3E%3Cg fill='%23C9521F'%3E%3Ccircle cx='4' cy='4' r='2.4'/%3E%3Ccircle cx='136' cy='4' r='2.4'/%3E%3Ccircle cx='4' cy='136' r='2.4'/%3E%3Ccircle cx='136' cy='136' r='2.4'/%3E%3C/g%3E%3C/svg%3E");

  /* fine grain for depth */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- 3. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.06; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--rail); }
.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;
}

/* grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: var(--grain);
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* ---------- 4. SHARED PIECES ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--clay);
}
.on-light .kicker { color: var(--clay-2); }

.rule-band {
  height: 18px;
  background-image: var(--band);
  background-repeat: repeat-x;
  background-size: auto 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.92em 1.7em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform var(--fast), background var(--fast), box-shadow var(--fast), color var(--fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--clay); color: #fff; box-shadow: 0 10px 26px -12px var(--clay); }
.btn--primary:hover { background: var(--clay-2); box-shadow: 0 16px 32px -12px var(--clay); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 26px -12px var(--gold-2); }
.btn--gold:hover { background: #f5b445; }
.btn--ghost { border: 1.5px solid var(--ink-line); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.on-light .btn--ghost { border-color: var(--cream-line); color: var(--on-light); }
.on-light .btn--ghost:hover { border-color: var(--clay); color: var(--clay); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

.badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.36em 0.75em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  vertical-align: middle;
}
.badge--leaf { background: var(--leaf); color: #fff; }
.badge--clay { background: var(--clay); color: #fff; }

/* ---------- 5. UTILITY BAR ---------- */
.utility {
  background: var(--ink-3);
  border-bottom: 1px solid var(--ink-line);
  font-size: 0.78rem;
  position: relative;
  z-index: 60;
}
.utility__inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.utility a { text-decoration: none; color: var(--on-dark-muted); transition: color var(--fast); }
.utility a:hover { color: var(--gold); }
.utility__spacer { margin-left: auto; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 currentColor;
}
.status--open { color: #6BD08E; }
.status--open .status__dot { background: #6BD08E; animation: pulse 2.4s infinite; }
.status--closed { color: var(--on-dark-faint); }
.status--closed .status__dot { background: var(--on-dark-faint); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(107, 208, 142, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(107, 208, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 208, 142, 0); }
}

/* ---------- 6. NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(14, 12, 10, 0.86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--ink-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
/* The real logo mark. It is keyed to transparency, so it sits directly on
   the dark surface with no plate or container behind it. */
.brand__mark {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
  transition: transform var(--fast);
}
.brand:hover .brand__mark { transform: scale(1.06) rotate(-3deg); }
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand__sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--on-dark-muted);
  position: relative;
  padding: 0.35em 0;
  transition: color var(--fast);
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fast);
}
.nav__links a:hover { color: var(--on-dark); }
.nav__links a:hover::after { transform: scaleX(1); }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.68em 1.25em;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  transition: background var(--fast), transform var(--fast);
}
.cart-btn:hover { background: var(--clay-2); transform: translateY(-1px); }
.cart-btn__count {
  min-width: 21px; height: 21px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700;
  padding-inline: 5px;
}
.cart-btn.is-bumped { animation: bump 480ms var(--ease); }
@keyframes bump {
  0%, 100% { transform: scale(1); }
  35%      { transform: scale(1.13); }
}

.nav__toggle { display: none; padding: 0.5em; color: var(--on-dark); }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 8% 0%, rgba(201, 82, 31, 0.28) 0%, transparent 58%),
    radial-gradient(90% 70% at 92% 22%, rgba(47, 107, 70, 0.26) 0%, transparent 60%),
    var(--ink);
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--motif);
  background-size: 190px;
  opacity: 0.055;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero__eyebrow span { width: 34px; height: 2px; background: var(--clay); }

.hero h1 {
  font-size: clamp(3.1rem, 9.5vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: normal;
  display: block;
  background: linear-gradient(96deg, var(--gold) 0%, var(--clay-soft) 48%, var(--clay) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--on-dark-muted);
  max-width: 34ch;
  margin-bottom: 2.1rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.4rem; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink-line);
}
.hero__fact { padding-block: 0.4rem; }
.hero__fact dt {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 0.25rem;
}
.hero__fact dd { margin: 0; font-weight: 600; font-size: 0.95rem; }
.hero__fact a { text-decoration: none; }
.hero__fact a:hover { color: var(--gold); }

/* woven kente panel */
.weave {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  background:
    repeating-linear-gradient(90deg,
      var(--clay) 0 26px, var(--clay-2) 26px 34px,
      var(--gold) 34px 60px, var(--ink-3) 60px 68px,
      var(--leaf) 68px 94px, var(--ink-3) 94px 102px),
    var(--ink-2);
}
.weave::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg,
    rgba(14, 12, 10, 0.62) 0 22px,
    rgba(14, 12, 10, 0) 22px 30px,
    rgba(233, 166, 46, 0.28) 30px 38px,
    rgba(14, 12, 10, 0) 38px 62px);
}
.weave::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 12, 10, 0.1) 0%, rgba(14, 12, 10, 0.75) 100%),
    var(--motif);
  background-size: auto, 150px;
}
.weave__stamp {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(76%, 296px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  background: rgba(14, 12, 10, 0.88);
  border: 2px solid var(--gold);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  /* No padding: percentage padding resolves against the PARENT's width, not
     this element's, which made it wildly larger than intended. The children
     are sized as a share of the circle instead. */
  padding: 0;
}
/* Sized as a fixed share of the circle rather than left to flex negotiation —
   flex shrink was squeezing it to a fraction of the space. Both children are
   flex:none, so the logo and caption together always fit inside the round. */
.weave__logo {
  flex: none;
  width: 62%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}
/* Kept narrower than the stamp so it can never force the circle out of round.
   It wraps rather than pushing the stamp wider. */
.weave__est {
  flex: none;
  max-width: 100%;
  font-size: clamp(0.5rem, 1.1vw, 0.6rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(233, 166, 46, 0.4);
}

/* ---------- 8. PILLARS ---------- */
.pillars {
  background: var(--ink-2);
  border-block: 1px solid var(--ink-line);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.pillar { display: flex; gap: 1.1rem; align-items: flex-start; }
.pillar__icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(233, 166, 46, 0.13);
  border: 1px solid rgba(233, 166, 46, 0.3);
  color: var(--gold);
}
.pillar h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.pillar p { font-size: 0.92rem; color: var(--on-dark-muted); }

/* ---------- 9. MENU ---------- */
.menu {
  background: var(--cream);
  color: var(--on-light);
  position: relative;
  padding-block: clamp(3.25rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
}
.menu::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--motif);
  background-size: 210px;
  opacity: 0.045;
  pointer-events: none;
}
.menu > * { position: relative; }

.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-head h2 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  margin: 0.9rem 0 0.85rem;
  letter-spacing: -0.03em;
}
.section-head p { color: var(--on-light-muted); font-size: 1.02rem; }
.on-dark .section-head p { color: var(--on-dark-muted); }

/* sticky category rail */
.cat-rail {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  margin-bottom: 2.75rem;
  background: var(--cream);
  border-block: 1px solid var(--cream-line);
  margin-inline: calc(var(--rail) * -1);
  padding-inline: var(--rail);
}
.cat-rail__scroll {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.7rem;
}
.cat-rail__scroll::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none;
  padding: 0.6em 1.15em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--on-light-muted);
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--fast), color var(--fast);
}
.cat-tab:hover { background: var(--cream-2); color: var(--on-light); }
.cat-tab.is-active { background: var(--ink); color: var(--cream); }

/* category block */
.cat { scroll-margin-top: calc(var(--nav-h) + 74px); margin-bottom: clamp(3rem, 6vw, 4.75rem); }
.cat__head {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.9rem;
  border-bottom: 2px solid var(--ink);
}
.cat__head-text { flex: 1; min-width: 0; }
.cat__head h3 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  letter-spacing: -0.028em;
  margin: 0.35rem 0 0;
}
.cat__blurb {
  font-size: 0.94rem;
  color: var(--on-light-muted);
  max-width: 52ch;
  margin-top: 0.6rem;
}
.cat__count {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-light-muted);
  padding-bottom: 0.4rem;
  white-space: nowrap;
}

.dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.1rem;
}
.dish {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.4rem 1.3rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  transition: border-color var(--fast), transform var(--fast), box-shadow var(--fast), background var(--fast);
}
.dish:hover {
  border-color: var(--clay);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.dish.is-out { opacity: 0.5; }
.dish.is-out .dish__add { pointer-events: none; }

.dish__top { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.5rem; }
.dish__name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.dish__leader {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted rgba(26, 20, 16, 0.24);
  transform: translateY(-4px);
}
.dish__price { font-family: var(--display); font-weight: 700; font-size: 1.08rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish__price small { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; color: var(--on-light-muted); }

.dish__desc {
  font-size: 0.9rem;
  color: var(--on-light-muted);
  line-height: 1.6;
  margin-bottom: 1.05rem;
  flex: 1;
}
.dish__foot { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.dish__add {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.6em 1.15em;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 0.83rem;
  font-weight: 700;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.dish__add:hover { background: var(--ink); color: var(--cream); }
.dish__add.is-added { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.dish__meta { font-size: 0.72rem; color: var(--on-light-muted); font-weight: 600; }
.dish__badge { position: absolute; top: -9px; right: 14px; }

/* ---------- 10. CATERING ---------- */
.catering {
  position: relative;
  background: var(--ink-2);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.catering::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 85% 15%, rgba(201, 82, 31, 0.22) 0%, transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgba(47, 107, 70, 0.2) 0%, transparent 60%);
}
.catering > * { position: relative; }
.catering__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.tray-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0;
}
.tray-chip {
  padding: 0.45em 0.95em;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  font-size: 0.8rem;
  color: var(--on-dark-muted);
}
.tray-sizes { display: grid; gap: 0.75rem; margin-top: 1.75rem; }
.tray-size {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  background: rgba(251, 244, 231, 0.03);
}
.tray-size b { font-family: var(--display); font-size: 1.05rem; }
.tray-size span { font-size: 0.85rem; color: var(--on-dark-muted); }

/* forms */
.form-card {
  background: rgba(251, 244, 231, 0.045);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.field { margin-bottom: 1.05rem; }
.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 0.45rem;
}
.on-light .field label { color: var(--on-light-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8em 1em;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink-line);
  background: rgba(14, 12, 10, 0.45);
  color: var(--on-dark);
  transition: border-color var(--fast), background var(--fast);
}
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  background: rgba(14, 12, 10, 0.7);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field select option { background: var(--ink-2); }

.on-light .field input,
.on-light .field select,
.on-light .field textarea {
  background: #fff;
  border-color: var(--cream-line);
  color: var(--on-light);
}
.on-light .field input:focus { border-color: var(--clay); }

.form-note { font-size: 0.8rem; color: var(--on-dark-faint); margin-top: 0.9rem; }

/* ---------- 11. VISIT ---------- */
.visit {
  background: var(--cream-2);
  color: var(--on-light);
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
}
.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.hours-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--cream-line);
  font-size: 0.94rem;
}
.hours-table th { font-weight: 600; }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; color: var(--on-light-muted); }
.hours-table tr.is-today th { color: var(--clay-2); font-weight: 700; }
.hours-table tr.is-today td { color: var(--clay-2); font-weight: 700; }
.hours-table tr.is-today th::after {
  content: "Today";
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--clay); color: #fff;
  padding: 0.2em 0.5em; border-radius: 999px; margin-left: 0.6em;
  vertical-align: middle;
}

.map-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--cream-line);
  background: var(--ink);
  box-shadow: var(--shadow-lift);
}
.map-card__vis {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(45deg, rgba(233, 166, 46, 0.08) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(47, 107, 70, 0.1) 0 2px, transparent 2px 26px),
    radial-gradient(70% 70% at 50% 45%, rgba(201, 82, 31, 0.3) 0%, transparent 70%),
    var(--ink-2);
  display: grid;
  place-items: center;
}
.map-card__pin {
  width: 58px; height: 58px;
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
  background: linear-gradient(140deg, var(--gold), var(--clay));
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.8);
}
.map-card__pin span { transform: rotate(45deg); font-size: 1.5rem; }
.map-card__body { padding: 1.3rem 1.4rem; color: var(--on-dark); }
.map-card__body address { font-style: normal; font-size: 1.02rem; font-weight: 600; margin-bottom: 0.85rem; }
.map-card__links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- 12. FOOTER ---------- */
.footer { background: var(--ink); padding-block: clamp(2.75rem, 6vw, 4rem) 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--ink-line);
}
.footer h4 {
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.footer li { margin-bottom: 0.55rem; }
.footer a { text-decoration: none; color: var(--on-dark-muted); font-size: 0.92rem; transition: color var(--fast); }
.footer a:hover { color: var(--gold); }
.footer__blurb { color: var(--on-dark-muted); font-size: 0.92rem; max-width: 36ch; margin-top: 1rem; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.6rem; font-size: 0.8rem; color: var(--on-dark-faint);
}

/* ---------- 13. CART DRAWER ---------- */
.scrim {
  position: fixed; inset: 0;
  background: rgba(6, 5, 4, 0.66);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--slow), visibility var(--slow);
  z-index: 90;
}
.scrim.is-open { opacity: 1; visibility: visible; }

.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(455px, 100%);
  background: var(--ink-2);
  border-left: 1px solid var(--ink-line);
  display: flex;
  flex-direction: column;
  transform: translateX(101%);
  transition: transform var(--slow);
  z-index: 95;
  box-shadow: -30px 0 70px -30px rgba(0, 0, 0, 0.85);
}
.cart.is-open { transform: translateX(0); }

.cart__head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--ink-line);
}
.cart__head h2 { font-size: 1.3rem; margin-right: auto; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--on-dark-muted);
  transition: background var(--fast), color var(--fast);
}
.icon-btn:hover { background: rgba(251, 244, 231, 0.08); color: var(--on-dark); }

/* order type switch */
.otype {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 4px; margin: 1.1rem 1.4rem 0;
  background: rgba(14, 12, 10, 0.6);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
}
.otype button {
  padding: 0.66em 1em;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 700;
  color: var(--on-dark-muted);
  transition: background var(--fast), color var(--fast);
}
.otype button.is-active { background: var(--clay); color: #fff; }

.cart__eta {
  margin: 0.8rem 1.4rem 0;
  padding: 0.7rem 0.95rem;
  border-radius: var(--r-sm);
  background: rgba(47, 107, 70, 0.16);
  border: 1px solid rgba(47, 107, 70, 0.35);
  font-size: 0.82rem;
  color: var(--on-dark-muted);
}
.cart__eta.is-warn { background: rgba(142, 31, 38, 0.18); border-color: rgba(142, 31, 38, 0.45); }

.cart__body { flex: 1; overflow-y: auto; padding: 1.1rem 1.4rem; }
.cart__empty { text-align: center; padding: 3.5rem 1rem; color: var(--on-dark-faint); }
.cart__empty svg { margin-bottom: 1rem; opacity: 0.35; }

.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ink-line);
}
.line__name { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.line__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.line__opts { grid-column: 1 / -1; font-size: 0.79rem; color: var(--on-dark-faint); }
.line__note { grid-column: 1 / -1; font-size: 0.79rem; color: var(--gold); font-style: italic; }
.line__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.9rem; margin-top: 0.5rem; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--ink-line); border-radius: 999px; overflow: hidden;
}
.qty button {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--on-dark-muted);
  transition: background var(--fast), color var(--fast);
}
.qty button:hover { background: var(--clay); color: #fff; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: 0.86rem; }
.line__rm { font-size: 0.76rem; color: var(--on-dark-faint); text-decoration: underline; }
.line__rm:hover { color: var(--berry); }

.cart__foot { border-top: 1px solid var(--ink-line); padding: 1.15rem 1.4rem 1.4rem; background: rgba(14, 12, 10, 0.5); }
.totals { margin-bottom: 1rem; }
.totals div {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.88rem; color: var(--on-dark-muted); padding: 0.24rem 0;
  font-variant-numeric: tabular-nums;
}
.totals div.is-total {
  font-size: 1.12rem; font-weight: 700; color: var(--on-dark);
  border-top: 1px solid var(--ink-line); margin-top: 0.55rem; padding-top: 0.7rem;
  font-family: var(--display);
}
.totals .is-free { color: var(--leaf); }

.tips { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.tips button {
  flex: 1;
  padding: 0.55em 0.3em;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink-line);
  font-size: 0.8rem; font-weight: 700;
  color: var(--on-dark-muted);
  transition: all var(--fast);
}
.tips button.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- 14. MODALS ---------- */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  opacity: 0; visibility: hidden;
  transition: opacity var(--slow), visibility var(--slow);
  z-index: 100;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 780px);
  display: flex; flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  transform: translateY(18px) scale(0.985);
  transition: transform var(--slow);
}
.modal.is-open .modal__panel { transform: none; }
.modal__head {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.35rem 1.5rem 1.1rem;
  border-bottom: 1px solid var(--ink-line);
}
.modal__head h2 { font-size: 1.4rem; margin-right: auto; letter-spacing: -0.02em; }
.modal__head p { font-size: 0.86rem; color: var(--on-dark-muted); margin-top: 0.3rem; }
.modal__body { padding: 1.35rem 1.5rem; overflow-y: auto; flex: 1; }
.modal__foot { padding: 1.15rem 1.5rem 1.4rem; border-top: 1px solid var(--ink-line); background: rgba(14, 12, 10, 0.5); }

/* option groups */
.ogroup { margin-bottom: 1.6rem; }
.ogroup__label {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem;
}
.ogroup__req { font-size: 0.64rem; color: var(--on-dark-faint); letter-spacing: 0.1em; }
.ochoice {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-sm);
  margin-bottom: 0.45rem;
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast);
}
.ochoice:hover { border-color: rgba(233, 166, 46, 0.5); }
.ochoice input { accent-color: var(--clay); width: 18px; height: 18px; flex: none; }
.ochoice:has(input:checked) { border-color: var(--gold); background: rgba(233, 166, 46, 0.09); }
.ochoice__name { flex: 1; font-size: 0.92rem; font-weight: 500; }
.ochoice__price { font-size: 0.85rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }

/* checkout summary */
.co-summary {
  background: rgba(14, 12, 10, 0.5);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  padding: 1.05rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}
.co-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.co-summary div.is-total { color: var(--on-dark); font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--ink-line); margin-top: 0.5rem; padding-top: 0.6rem; }

.handoff { display: grid; gap: 0.6rem; }
.handoff__note {
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  background: rgba(233, 166, 46, 0.1);
  border: 1px solid rgba(233, 166, 46, 0.28);
  border-radius: var(--r-sm);
  padding: 0.8rem 0.95rem;
  margin-bottom: 1.1rem;
}

/* toast */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translate(-50%, 130%);
  background: var(--leaf);
  color: #fff;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 700; font-size: 0.88rem;
  box-shadow: var(--shadow-pop);
  z-index: 200;
  transition: transform var(--slow);
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.toast.is-up { transform: translate(-50%, 0); }
.toast.is-err { background: var(--berry); }

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 1040px) {
  .hero__inner { grid-template-columns: 1fr; }
  .weave { max-width: 420px; aspect-ratio: 5 / 4; order: -1; }
  .pillars__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .catering__grid, .visit__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links {
    position: fixed;
    inset: calc(var(--nav-h) + 40px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--ink-line);
    padding: 0.5rem var(--rail) 1.25rem;
    transform: translateY(-115%);
    transition: transform var(--slow);
    z-index: -1;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 0.85em 0; border-bottom: 1px solid var(--ink-line); font-size: 1rem; }
  .nav__toggle { display: grid; place-items: center; order: 3; }
  .cart-btn { order: 2; }
  .brand__sub { display: none; }
  .utility__inner { font-size: 0.72rem; gap: 0.9rem; }
  .utility__hide { display: none; }
  .dishes { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__facts { gap: 0 1.4rem; }
  .cart { width: 100%; }
  .tips button { font-size: 0.74rem; }
  /* the stamp is small here — let the logo carry it alone */
  .weave__est { display: none; }
  .weave__logo { width: 66%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .utility, .nav, .cart, .scrim, .modal, .toast, .dish__add, .cat-rail, .catering { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .menu, .visit { background: #fff; }
  .dish { break-inside: avoid; border-color: #ccc; }
}
