/* ============================================================
   [Bakery name] — custom cakes, Nairobi
   Palette: bleached cream + oxblood + navy
   Type: extra-thin display, extra-bold body
   ============================================================ */

:root {
  --bg: #f7ecd7;          /* honeyed cream */
  --bg-alt: #f0dfc2;      /* warm sand */
  --ink: #2a1c14;         /* warm near-black brown */
  --ink-soft: #6b5343;    /* warm taupe */
  --accent: #a83a22;      /* warm terracotta red — text accent, rules, links */
  --secondary: #6d3a2c;   /* warm brown — structure, buttons, bands */
  --line: #d8c3a0;
  --card: #fdf5e6;
  --grain-opacity: 0.07;
  --shadow: 0 1px 0 rgba(42, 28, 20, 0.07);
  --maxw: 1180px;
  --pad: clamp(1.15rem, 4vw, 3rem);
}

html[data-theme="dark"] {
  --bg: #1c1310;          /* warm dark brown */
  --bg-alt: #251a15;
  --ink: #f6e8d5;
  --ink-soft: #c4ad96;
  --accent: #f0a07a;      /* warm apricot */
  --secondary: #d9a878;   /* warm caramel */
  --line: #453026;
  --card: #261a15;
  --grain-opacity: 0.05;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--secondary); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  margin: 0 0 0.5em;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h1 { font-weight: 200; font-size: clamp(2.4rem, 1.4rem + 5.2vw, 5.4rem); }
h2 { font-weight: 200; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem); }
h3 { font-weight: 300; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.2; }

p { margin: 0 0 1rem; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { text-decoration: none; color: inherit; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: "Fraunces", serif; font-weight: 300; font-size: 1.28rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.5rem); }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.55rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.nav-cta {
  background: var(--secondary);
  color: var(--bg) !important;
  padding: 0.6rem 1rem !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }

.theme-toggle {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--secondary);
  color: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee-scroll 42s linear infinite;
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ---------- hero ---------- */

.hero { padding-bottom: clamp(2rem, 5vw, 4rem); }

.bleed { margin: 0; }
.bleed img {
  width: 100%;
  height: clamp(300px, 56vh, 620px);
  object-fit: cover;
}

.hero-copy {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 3rem) var(--pad) 0;
}
.hero-copy h1 { max-width: 18ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

.btn {
  display: inline-block;
  background: var(--secondary);
  color: var(--bg);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--secondary);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

/* ---------- sections ---------- */

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-intro { max-width: 62ch; color: var(--ink-soft); }

/* ---------- menu ---------- */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.2rem, 3vw, 2.2rem);
  margin-top: clamp(1.8rem, 4vw, 3rem);
}

.menu-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  box-shadow: var(--shadow);
}
.menu-card h3 { color: var(--secondary); }
.menu-note {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
}
.menu-list li:last-child { border-bottom: none; }
.dish { font-weight: 800; font-size: 0.98rem; }
.price {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--accent);
  white-space: nowrap;
}
.desc {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

.fineprint {
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 70ch;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
}
.gallery figure { margin: 0; position: relative; background: var(--bg); }
.gallery img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; }
.gallery figcaption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  color: var(--ink);
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- order steps ---------- */

.steps {
  list-style: none;
  margin: clamp(1.8rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  counter-reset: step;
}
.steps li {
  border-top: 2px solid var(--secondary);
  padding-top: 1rem;
}
.step-num {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 200;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); margin: 0; }

/* ---------- order panel ---------- */

.order-panel {
  margin-top: clamp(2.2rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}
@media (max-width: 860px) {
  .order-panel { grid-template-columns: 1fr; }
}

.order-form-col {
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(1.3rem, 3vw, 2.2rem);
}
.form-intro { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }

.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.field label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
  min-height: 44px;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: 0.7; }

.form-status {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
}
.form-status[data-state="error"] { color: var(--accent); }

.order-side {
  border-left: 3px solid var(--accent);
  padding-left: clamp(1rem, 2vw, 1.6rem);
}
.facts { margin: 0 0 1.2rem; }
.facts dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.9rem;
}
.facts dd {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.side-note { font-size: 0.9rem; font-weight: 600; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy p { color: var(--ink-soft); font-weight: 500; }
.about-figure { margin: 0; }
.about-figure img { width: 100%; height: clamp(240px, 34vw, 420px); object-fit: cover; }
.about-figure figcaption {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ---------- faq ---------- */

.faq { margin-top: clamp(1.5rem, 3vw, 2.4rem); max-width: 78ch; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 2rem 0.85rem 0;
  position: relative;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  max-width: 68ch;
}

/* ---------- closing ---------- */

.closing {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--secondary);
  color: var(--bg);
  text-align: center;
}
.closing h2 { color: var(--bg); max-width: 20ch; margin-inline: auto; }
.closing p { color: var(--bg); opacity: 0.85; max-width: 52ch; margin-inline: auto; font-weight: 500; }
.closing .btn { background: var(--bg); color: var(--secondary); border-color: var(--bg); margin-top: 1rem; }
.closing .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem) 0 1rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.foot-name { font-family: "Fraunces", serif; font-weight: 300; font-size: 1.3rem; margin: 0 0 0.2rem; }
.foot-line { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 0.3rem; }
.foot-line a { color: var(--ink-soft); }
.foot-line a:hover { color: var(--accent); }

.foot-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
.muted { font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); margin: 0; }
.muted a { color: var(--ink-soft); }

/* ---------- testimonials ---------- */

.testimonials { background: var(--bg); }

.quote-grid {
  margin-top: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}

.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.quote blockquote { margin: 0 0 1.2rem; }
.quote blockquote p {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}

.quote figcaption { display: flex; flex-direction: column; gap: 0.15rem; }
.quote-name {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--secondary);
}
.quote-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
