/* ============================================================
   Habesha Kitchen — stylesheet
   Palette derives from the room, not from a template:
   jebena black, injera cream, berbere red, aged flag gold/green.
   ============================================================ */

:root {
  --ink:        #14100D;   /* jebena clay, fired black */
  --ink-2:      #1D1712;
  --ink-3:      #29211A;
  --line:       #3A2E24;

  --injera:     #EDE2CB;   /* pale injera — used as TEXT, not background */
  --injera-dim: #B7A88E;
  --injera-faint: #7A6E5C;

  --berbere:    #C2402A;   /* spicy */
  --gold:       #E0A93B;   /* signature accent */
  --gold-deep:  #B7842A;
  --green:      #3D8460;   /* vegetarian */

  --max: 1180px;
  --gap: clamp(1rem, 4vw, 2.5rem);

  --f-display: "Instrument Serif", Georgia, serif;
  --f-body: "Karla", system-ui, -apple-system, sans-serif;
  --f-am: "Noto Serif Ethiopic", "Noto Sans Ethiopic", serif;
  --f-num: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--injera);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.eyebrow {
  font-family: var(--f-num);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9rem;
}

.am { font-family: var(--f-am); font-weight: 400; }

.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;
}

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

/* ---------- signature: tibeb band ---------------------------
   The woven coloured border on a habesha kemis, redrawn as a
   repeating SVG strip. It marks every seam in the page.
   ---------------------------------------------------------- */
.tibeb {
  height: 10px;
  background-repeat: repeat-x;
  background-size: auto 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Crect width='48' height='10' fill='%2314100D'/%3E%3Cpath d='M0 5 L6 0 L12 5 L6 10 Z' fill='%23E0A93B'/%3E%3Cpath d='M12 5 L18 0 L24 5 L18 10 Z' fill='%233D8460'/%3E%3Cpath d='M24 5 L30 0 L36 5 L30 10 Z' fill='%23C2402A'/%3E%3Cpath d='M36 5 L42 0 L48 5 L42 10 Z' fill='%233D8460'/%3E%3Crect y='0' width='48' height='1' fill='%23B7842A'/%3E%3Crect y='9' width='48' height='1' fill='%23B7842A'/%3E%3C/svg%3E");
}

/* ---------- header ---------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 16, 13, .92);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .9rem 0;
}
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand b {
  font-family: var(--f-display);
  font-size: 1.6rem; font-weight: 400; letter-spacing: .01em;
}
.brand span { font-family: var(--f-am); font-size: .8rem; color: var(--gold); margin-top: .25rem; }

.nav { margin-left: auto; display: flex; gap: 1.6rem; align-items: center; }
.nav a {
  text-decoration: none; font-size: .9rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--injera-dim);
  padding: .3rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--injera); border-bottom-color: var(--gold); }
.nav a.btn { color: var(--ink); border-bottom: 1px solid var(--gold); }
.nav a.btn:hover { color: var(--gold); border-bottom-color: var(--gold); }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--f-num); font-weight: 500; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; padding: .78rem 1.4rem; border-radius: 2px;
  border: 1px solid var(--gold); background: var(--gold); color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn.ghost { background: transparent; color: var(--injera); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--injera); color: var(--injera); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--injera); border-radius: 2px; padding: .5rem .7rem; cursor: pointer;
  font-family: var(--f-num); font-size: .75rem; letter-spacing: .1em;
}

/* ---------- hero ------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3rem, 8vw, 6rem);
}
/* the eyes of the injera — the honeycomb surface, barely lit */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(237,226,203,.055) 1.6px, transparent 2px),
    radial-gradient(circle at 50% 50%, rgba(237,226,203,.035) 1.2px, transparent 1.8px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.9rem, 8.5vw, 5.6rem);
  line-height: .98; letter-spacing: -.015em; margin: 0 0 1.3rem;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--injera-dim); max-width: 46ch; margin: 0 0 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.delivery-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.delivery-links:empty { display: none; }
.delivery-links a {
  font-family: var(--f-num); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--injera-dim); border: 1px solid var(--line); border-radius: 2px;
  padding: .5rem .9rem; text-decoration: none; transition: border-color .15s, color .15s;
}
.delivery-links a:hover { color: var(--gold); border-color: var(--gold); }
.hero-am {
  position: absolute; right: -2%; bottom: -6%;
  font-family: var(--f-am); font-size: clamp(7rem, 22vw, 17rem);
  color: rgba(224,169,59,.055); line-height: 1; pointer-events: none;
  user-select: none;
}

/* ---------- generic section ------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 620px; margin-bottom: 2.6rem; }
.section-head h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; margin: 0 0 .6rem;
}
.section-head p { color: var(--injera-dim); margin: 0; }

/* ---------- menu ------------------------------------------ */
.menu-section { background: var(--ink-2); border-block: 1px solid var(--line); }
#about + .tibeb, #visit { border-top: 1px solid var(--line); }

.cat-nav {
  position: sticky; top: 72px; z-index: 30;
  display: flex; gap: .5rem; overflow-x: auto; padding: .8rem 0;
  background: var(--ink-2); border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem; scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav button {
  flex: 0 0 auto; cursor: pointer; white-space: nowrap;
  background: transparent; border: 1px solid var(--line); color: var(--injera-dim);
  font-family: var(--f-num); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .55rem 1rem; border-radius: 2px;
  transition: all .18s ease;
}
.cat-nav button:hover { color: var(--injera); border-color: var(--injera-faint); }
.cat-nav button[aria-current="true"] {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
}

.cat { margin-bottom: 3.4rem; }
.cat-head { display: flex; align-items: baseline; gap: .9rem; margin-bottom: .4rem; flex-wrap: wrap; }
.cat-head h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0; line-height: 1;
}
.cat-head .am { color: var(--gold); font-size: 1rem; }
.cat-blurb { color: var(--injera-faint); font-size: .93rem; margin: 0 0 1.4rem; max-width: 55ch; }
.cat-rule { height: 1px; background: var(--line); margin-bottom: 1.6rem; }

.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2.6rem; }

.item { display: flex; gap: 1rem; align-items: flex-start; padding: .55rem 0; }
.item-thumb {
  flex: 0 0 78px; width: 78px; height: 78px; border-radius: 3px;
  overflow: hidden; display: block; background-color: var(--ink-3);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(237,226,203,.10) 1.4px, transparent 1.9px);
  background-size: 13px 13px;
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-body { flex: 1 1 auto; min-width: 0; }
.item-top { display: flex; align-items: baseline; gap: .6rem; }
.item-name { font-size: 1.05rem; font-weight: 700; letter-spacing: .005em; }
.item-am { font-family: var(--f-am); font-size: .85rem; color: var(--gold-deep); }
.leader { flex: 1 1 auto; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 14px; }
.item-price {
  font-family: var(--f-num); font-size: 1rem; font-variant-numeric: tabular-nums;
  color: var(--injera); white-space: nowrap;
}
.item-desc { color: var(--injera-faint); font-size: .9rem; line-height: 1.5; margin: .2rem 0 0; }

.tags { display: flex; gap: .4rem; margin-top: .45rem; flex-wrap: wrap; }
.tag {
  font-family: var(--f-num); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .18rem .45rem; border-radius: 2px;
  border: 1px solid currentColor;
}
.tag.spicy   { color: var(--berbere); }
.tag.vegan   { color: var(--green); }
.tag.popular { color: var(--gold); }
.tag.gf      { color: var(--injera-faint); }

.menu-note {
  font-size: .85rem; color: var(--injera-faint);
  border-left: 2px solid var(--gold); padding-left: .9rem; margin-top: 1rem;
}

/* ---------- about / background video ----------------------- */
.about-video { position: relative; overflow: hidden; padding: clamp(4.5rem, 14vw, 9rem) 0; }
.about-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; background-color: var(--ink-3);
}
.about-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,16,13,.94) 0%, rgba(20,16,13,.82) 42%, rgba(20,16,13,.45) 100%);
}
.about-content { position: relative; z-index: 2; max-width: 46ch; }
.about-content p { color: var(--injera-dim); }

/* ---------- visit ----------------------------------------- */
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.visit-card h4 {
  font-family: var(--f-num); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 .8rem; font-weight: 400;
}
.visit-card p, .visit-card a { color: var(--injera-dim); text-decoration: none; margin: 0 0 .35rem; }
.visit-card a:hover { color: var(--gold); }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; padding: .25rem 0; }
.hours-row span:last-child { font-family: var(--f-num); font-size: .85rem; color: var(--injera); }

/* ---------- footer ---------------------------------------- */
.site-footer { background: var(--ink-2); padding: 2.6rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer-inner small { color: var(--injera-faint); font-size: .82rem; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--injera-dim); text-decoration: none; font-size: .85rem; }
.footer-links a:hover { color: var(--gold); }

/* ---------- responsive ------------------------------------ */
@media (max-width: 900px) {
  .items { grid-template-columns: 1fr; gap: .5rem; }
  .about-scrim { background: rgba(20,16,13,.85); }
  .about-content { max-width: none; }
  .visit-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-top: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .9rem; text-align: center; }
  .site-header { position: relative; }
  .cat-nav { top: 0; }
  html { scroll-padding-top: 20px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }

  /* stack the Amharic name under the English one so the price
     keeps its place on the first line */
  .item-top { flex-wrap: wrap; }
  .item-name { flex: 1 1 auto; }
  .item-am { order: 4; flex: 1 0 100%; margin-top: .05rem; }
  .item-price { margin-left: auto; }
  .leader { display: none; }
  .item-thumb { flex-basis: 66px; width: 66px; height: 66px; }
}

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

