/* Krispy's Halal — the teaser, delivered.
   Register: light cream (their placeholder card) · brand red · gold accents.
   6 tokens: --bg --surface --ink --accent --cta --dark (+ --gold --deep --muted).
   All text pairs WCAG-computed AA (see tools/build.mjs notes in BRIEF). */

@font-face {
  font-family: 'Outfit';
  src: url('/assets/font/outfit-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F5F0E6;          /* their teaser card cream */
  --surface: #FFFFFF;
  --ink: #1F1A16;
  --accent: #C8101E;      /* text-safe red (5.2:1 on cream) */
  --cta: #E01820;         /* brand red — buttons w/ white text (4.9:1) */
  --dark: #201A14;
  --deep: #8E0E16;        /* deep red band (8.3:1 with cream) */
  --gold: #FFD21E;        /* chips only, ink text (11.9:1) */
  --muted: #6B625A;       /* 5.3:1 on cream */
  --line: rgba(31, 26, 22, 0.14);
  --shadow: 0 10px 30px rgba(32, 26, 20, 0.10), 0 2px 6px rgba(32, 26, 20, 0.06);
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17.5px;
  line-height: 1.55;
  letter-spacing: 0.003em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--dark); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; }
h1 { font-size: clamp(2.7rem, 8.4vw, 4.9rem); color: var(--accent); }
.h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
.eyebrow {
  margin: 0 0 10px; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 3px;
  background: var(--gold); margin-right: 10px; vertical-align: 4px; border-radius: 2px;
}
.sub { margin: 10px 0 0; color: var(--muted); max-width: 46ch; }
.sec-head { margin-bottom: 34px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; letter-spacing: 0.01em;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--cta); color: #fff; box-shadow: 0 8px 20px rgba(224, 24, 32, 0.28); }
.btn-red:hover { background: #C8101E; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: rgba(31, 26, 22, 0.06); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.btn-gold:hover { background: #FFDC4D; color: var(--ink); }
.btn-outline { background: transparent; color: #F5F0E6; border-color: rgba(245, 240, 230, 0.55); }
.btn-outline:hover { background: rgba(245, 240, 230, 0.12); color: #F5F0E6; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 26px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-owl { width: 42px; height: 42px; }
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.01em; }
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 600; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.header-row .tel { display: none; min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 54px 0 74px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 82% 12%, rgba(255, 210, 30, 0.20), transparent 65%),
    radial-gradient(880px 560px at 8% 88%, rgba(224, 24, 32, 0.07), transparent 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { position: relative; display: grid; gap: 40px; }
.hero-copy { max-width: 560px; }
.hero-sub { margin: 20px 0 26px; font-size: 1.12rem; max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-ctas .btn-ghost { display: none; }
.hero-facts {
  margin: 26px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 2px rgba(255, 210, 30, 0.35);
}
.hero-visual { position: relative; max-width: 560px; }
.hero-visual .owl {
  position: absolute; top: -34px; left: -6px; width: 118px; height: 118px;
  filter: drop-shadow(0 12px 22px rgba(32, 26, 20, 0.22));
  z-index: 2;
}
.hero-photo {
  margin: 0; border-radius: var(--radius); overflow: visible;
  position: relative; z-index: 1;
}
.hero-photo img {
  border-radius: var(--radius); border: 6px solid var(--surface);
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.hero-photo figcaption {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  font-size: 0.95rem; color: var(--muted); font-weight: 500;
}

/* ---------- signatures ---------- */
.sigs { background: var(--surface); padding: 74px 0 84px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sig-grid { display: grid; gap: 22px; }
.sig-card {
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(32, 26, 20, 0.05);
}
.sig-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sig-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sig-name { font-size: 1.14rem; line-height: 1.25; }
.sig-blurb { margin: 0; color: var(--muted); font-size: 0.97rem; }
.sig-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- prices ---------- */
.price {
  font-weight: 800; font-size: 1.06rem; color: var(--ink);
  background: var(--gold); padding: 4px 12px; border-radius: 8px; white-space: nowrap;
}
.price-lg { font-size: 1.12rem; }

/* ---------- menu ---------- */
.menu-sec { padding: 74px 0 84px; }
.menu-sec .sec-head { text-align: left; }
.cat-tabs {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 16px;
  scrollbar-width: none; position: sticky; top: 68px; z-index: 40;
  background: rgba(245, 240, 230, 0.94); backdrop-filter: blur(8px);
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 0 0 auto; padding: 9px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
}
.cat-tab:hover { border-color: var(--cta); color: var(--accent); text-decoration: none; }
.menu-body { margin-top: 8px; }
.menu-cat { padding: 34px 0 6px; scroll-margin-top: 130px; }
.cat-head { display: flex; align-items: baseline; gap: 14px; }
.cat-head h3 { font-size: 1.6rem; }
.cat-count { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.cat-note { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; }
.cat-grid { display: grid; gap: 14px; margin-top: 18px; }

.menu-item {
  display: grid; grid-template-columns: 104px 1fr; gap: 16px;
  background: var(--surface); border-radius: 14px; padding: 14px;
  border: 1px solid rgba(31, 26, 22, 0.07);
}
.menu-item.item-photo-empty { grid-template-columns: 1fr; }
.item-photo { position: relative; align-self: start; }
.item-photo img {
  width: 104px; height: 104px; object-fit: cover; border-radius: 10px;
}
.item-photo-empty { border-left: 4px solid var(--gold); border-radius: 4px; min-height: 0; }
.item-body { min-width: 0; }
.item-name { font-size: 1.03rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.item-note { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.item-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; margin-top: 12px; }
.order-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 20px;
  border-radius: 999px; background: var(--cta); color: #fff;
  font-weight: 700; font-size: 0.95rem;
}
.order-btn:hover { background: #C8101E; color: #fff; text-decoration: none; }
.order-btn.is-disabled {
  background: transparent; border: 1.5px dashed rgba(31, 26, 22, 0.3);
  color: var(--muted); cursor: default;
}
.is-soldout .item-name { color: var(--muted); }
.is-soldout .item-photo { position: relative; }
.is-soldout .item-photo img { filter: grayscale(0.7) opacity(0.75); }
.soldout-tag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--dark); color: #F5F0E6; font-size: 0.72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; letter-spacing: 0.04em;
}
.item-photo-empty .soldout-tag { position: static; display: inline-block; margin-bottom: 8px; }

/* ---------- finish band ---------- */
.finish { background: var(--deep); color: #F5F0E6; padding: 78px 0; position: relative; overflow: hidden; }
.finish::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.finish .h2 { color: #F5F0E6; }
.finish-sub { margin: 18px 0 0; max-width: 46ch; color: rgba(245, 240, 230, 0.85); }
.finish-grid { position: relative; display: grid; gap: 30px; }
.finish-ctas { display: flex; flex-direction: column; gap: 14px; align-self: center; }

/* ---------- about ---------- */
.about { background: var(--surface); padding: 78px 0; border-bottom: 1px solid var(--line); }
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-copy p { max-width: 56ch; }
.about-copy .proof {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-weight: 700; font-size: 1.05rem;
}
.about-photo { text-align: center; min-width: 0; }
.about-photo img { width: 100%; max-width: 380px; margin: 0 auto; filter: drop-shadow(0 10px 24px rgba(32, 26, 20, 0.12)); }

/* ---------- visit ---------- */
.visit { padding: 78px 0 96px; }
.visit-grid { display: grid; gap: 18px; }
.visit-card {
  background: var(--surface); border-radius: var(--radius); padding: 26px 26px 28px;
  border: 1px solid rgba(31, 26, 22, 0.07); box-shadow: 0 2px 10px rgba(32, 26, 20, 0.04);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.visit-card h3 { font-size: 1.2rem; }
.visit-card .btn { margin-top: auto; }
.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 700; padding: 4px 18px 4px 0; }
.hours td { padding: 4px 0; }
.fine { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #C9BFB2; padding: 58px 0 120px; }
.footer-grid { display: grid; gap: 30px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-owl { width: 52px; height: 52px; }
.foot-name { margin: 0; color: #F5F0E6; font-weight: 800; font-size: 1.3rem; }
.foot-line { margin: 2px 0 0; color: var(--gold); font-weight: 600; }
.foot-col h4 { color: #F5F0E6; font-size: 0.95rem; margin-bottom: 8px; }
.foot-col p { margin: 0; }
.foot-col a { color: #C9BFB2; }
.foot-col a:hover { color: #F5F0E6; }
.foot-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(245, 240, 230, 0.14); }
.foot-legal p { margin: 0; font-size: 0.85rem; }
.foot-legal a { color: #C9BFB2; text-decoration: underline; }

/* ---------- mobile bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(32, 26, 20, 0.96); backdrop-filter: blur(8px);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center;
  min-height: 50px; border-radius: 999px; font-weight: 700;
}
.mb-call { background: transparent; color: #F5F0E6; border: 2px solid rgba(245, 240, 230, 0.5); }
.mb-order { background: var(--cta); color: #fff; }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .order-btn { transition: none; }
}

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .sig-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-row .tel { display: inline-flex; }
  .hero { padding: 84px 0 104px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
  .hero-ctas .btn-ghost { display: inline-flex; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 58px; }
  .finish-grid { grid-template-columns: 1.2fr 0.8fr; }
  .finish-ctas { align-items: stretch; }
  .about-grid { grid-template-columns: 1.1fr 0.9fr; }
  .sig-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1120px) {
  .menu-item { grid-template-columns: 120px 1fr; }
  .item-photo img { width: 120px; height: 120px; }
}

/* ---------- print: the menu is a takeaway ---------- */
@media print {
  .site-header, .mobile-bar, .cat-tabs, .finish, .site-footer, .hero-visual, .sigs { display: none; }
  body { background: #fff; font-size: 12pt; }
  .menu-item { break-inside: avoid; }
}
