/* ============================================================
   [Your Kitchen Name] — Nigerian catering, Lagos
   Warm paper + hand-drawn ink · editorial serif · receipt layout
   ============================================================ */

:root {
  --bg:        #fbf1dd;
  --bg-2:      #f5e5c6;
  --ink:       #1a1208;
  --ink-soft:  #52422c;
  --ink-faint: #7f6a4c;
  --rule:      #d9c39a;
  --accent:    #b23a12;
  --accent-2:  #8a4a12;
  --card:      #fff8e8;
  --shadow:    0 1px 0 rgba(60,35,10,.10), 0 8px 24px -18px rgba(60,35,10,.40);
  --grain:     .06;
  --maxw:      68rem;
  --colw:      46rem;
}

html[data-theme="dark"] {
  --bg:        #1a130b;
  --bg-2:      #241a10;
  --ink:       #f7ecd6;
  --ink-soft:  #d6c3a2;
  --ink-faint: #a08a68;
  --rule:      #4a3a26;
  --accent:    #f0a066;
  --accent-2:  #e0b070;
  --card:      #221a11;
  --shadow:    0 1px 0 rgba(0,0,0,.5), 0 8px 24px -18px rgba(0,0,0,.9);
  --grain:     .08;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

/* --- grain overlay ------------------------------------------------ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain);
  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='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

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

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

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

/* --- layout shell ------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.rule {
  border: 0;
  border-top: 1px dotted var(--rule);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* --- header ------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px dotted var(--rule);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 62px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  padding: .5rem 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.4rem);
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem;
  padding: .65rem .1rem;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav-cta {
  color: var(--ink) !important;
  border: 1px solid var(--ink) !important;
  border-radius: 2px;
  padding: .5rem .85rem !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; }

.theme-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .18s ease, background .18s ease;
}
.theme-toggle:hover { border-color: var(--ink); background: var(--bg-2); }
.theme-icon {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
}

/* --- typography --------------------------------------------------- */
h1, h2, h3 {
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6.2vw, 3.9rem); font-variation-settings: 'SOFT' 40, 'WONK' 1; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); }

p { margin: 0 0 1.1em; max-width: 68ch; }

.kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

/* --- hero --------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero h1 { max-width: 22ch; }
.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 58ch;
  margin-top: 1.4rem;
}
.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin: 2rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .18s ease, color .18s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }

/* --- receipt block (hero details) --------------------------------- */
.receipt {
  margin: 3rem 0 0;
  padding: 0;
  max-width: 34rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .82rem;
  border-top: 1px dotted var(--rule);
}
.receipt > div {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px dotted var(--rule);
}
.receipt dt {
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .68rem;
  flex: 0 0 auto;
}
.receipt dd {
  margin: 0 0 0 auto;
  text-align: right;
  color: var(--ink);
}
.receipt dd a { color: var(--ink); text-decoration-color: var(--rule); }
.receipt dd a:hover { color: var(--accent); }

/* --- sections ----------------------------------------------------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section .wrap { max-width: var(--maxw); }
.intro { color: var(--ink-soft); max-width: 62ch; margin-bottom: 2.2rem; }

/* --- event listing ------------------------------------------------ */
.listing { list-style: none; margin: 0; padding: 0; }
.listing > li {
  padding: 1.5rem 0;
  border-bottom: 1px dotted var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem 1rem;
  align-items: baseline;
}
.listing > li:first-child { border-top: 1px dotted var(--rule); }
.listing .item {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 500;
}
.listing .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  white-space: nowrap;
}
.listing p {
  grid-column: 1 / -1;
  margin: .5rem 0 0;
  color: var(--ink-soft);
  font-size: .98rem;
  max-width: 62ch;
}

/* --- menu --------------------------------------------------------- */
.menu-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.6rem 0 .4rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--ink);
}
.menu-head:first-of-type { margin-top: 1rem; }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list > li {
  padding: .95rem 0;
  border-bottom: 1px dotted var(--rule);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0 .5rem;
}
.menu-list .dish {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 500;
}
.menu-list .dots {
  border-bottom: 1px dotted var(--rule);
  transform: translateY(-.28em);
  min-width: 1.5rem;
}
.menu-list .price {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.menu-list p {
  grid-column: 1 / -1;
  margin: .35rem 0 0;
  font-size: .93rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.note {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  font-size: .92rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* --- steps -------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li {
  position: relative;
  padding: 1.4rem 0 1.4rem 3.6rem;
  border-bottom: 1px dotted var(--rule);
}
.steps > li:first-child { border-top: 1px dotted var(--rule); }
.steps .step-n {
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .06em;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; max-width: 60ch; }

/* --- two-column reasons ------------------------------------------- */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2rem 2.5rem;
}
.cols h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.cols p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* --- testimonials ------------------------------------------------- */
.quotes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.6rem;
}
.quotes > li {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
}
.quotes blockquote {
  margin: 0 0 1.2rem;
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-size: 1.08rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}
.quotes blockquote::before { content: '\201C'; }
.quotes blockquote::after  { content: '\201D'; }
.quote-by {
  margin: auto 0 0;
  padding-top: .9rem;
  border-top: 1px dotted var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  max-width: none;
}
.quote-by .who { color: var(--ink); }

/* --- FAQ ---------------------------------------------------------- */
.faq { margin: 0; }
.faq dt {
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  font-weight: 500;
  padding-top: 1.3rem;
  border-top: 1px dotted var(--rule);
}
.faq dt:first-child { border-top: 0; padding-top: 0; }
.faq dd {
  margin: .45rem 0 1.3rem;
  color: var(--ink-soft);
  font-size: .97rem;
  max-width: 62ch;
}

/* --- form --------------------------------------------------------- */
.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem 1.5rem;
  max-width: 46rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input,
.field select,
.field textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .75rem .85rem;
  min-height: 48px;
  width: 100%;
  transition: border-color .18s ease;
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); opacity: .8; }

.form-status {
  margin: .9rem 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: var(--accent-2);
  max-width: none;
}
.form-status.is-error { color: var(--accent); }

/* --- footer ------------------------------------------------------- */
.site-foot {
  border-top: 1px dotted var(--rule);
  padding: 3rem 0 4.5rem;
  background: var(--bg-2);
}
.foot-name {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  margin: 0 0 .3rem;
}
.foot-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: var(--ink-soft);
  margin: 0 0 .4rem;
  max-width: none;
}
.foot-line a { color: var(--ink-soft); text-decoration-color: var(--rule); }
.foot-line a:hover { color: var(--accent); }

.attribution {
  margin: 2rem 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  max-width: none;
}
.attribution a { color: var(--ink-faint); text-decoration-color: var(--rule); }
.attribution a:hover { color: var(--ink); }

/* --- motion: staggered line reveal (pure CSS) --------------------- */
@keyframes riseIn {
  from { opacity: 0; translate: 0 20px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero h1,
    .hero .lede,
    .hero-actions,
    .receipt,
    .section h2,
    .section .intro,
    .listing > li,
    .menu-list > li,
    .steps > li,
    .cols > div,
    .quotes > li,
    .faq dt,
    .faq dd,
    .form .field {
      animation: riseIn linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 38%;
    }
    .hero h1,
    .hero .lede,
    .hero-actions,
    .receipt { animation-timeline: none; animation: riseIn .7s cubic-bezier(.2,.7,.3,1) both; }
    .hero .lede { animation-delay: .1s; }
    .hero-actions { animation-delay: .18s; }
    .receipt { animation-delay: .26s; }
  }
}

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

/* --- small screens ------------------------------------------------ */
@media (max-width: 640px) {
  .site-head .wrap { min-height: 56px; gap: .5rem; }
  .wordmark { font-size: 1.02rem; }
  .nav { gap: .1rem .9rem; order: 3; width: 100%; padding-bottom: .35rem; }
  .nav a { font-size: .86rem; padding: .55rem 0; }
  .nav-cta { padding: .45rem .7rem !important; min-height: 40px; }
  .theme-toggle { width: 40px; height: 40px; }
  .listing > li { grid-template-columns: 1fr; }
  .listing .meta { text-align: left; }
  .menu-list > li { grid-template-columns: 1fr auto; }
  .menu-list .dots { display: none; }
  .menu-list .dish { grid-column: 1; }
  .menu-list .price { grid-column: 2; }
  .steps > li { padding-left: 2.6rem; }
  .quotes { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
