/* Legends Chicken & Waffles, Lanham. Tokens and sources in DESIGN.md. */
:root {
  --board: #0e0f12;      /* the pylon sign's black board */
  --board-2: #17161a;    /* dimmer alternate for every other section */
  --oval: #2a1912;       /* dark brown oval behind LEGENDS */
  --red: #d8262f;        /* marquee letters */
  --red-deep: #8f1d2c;   /* Lanham's maroon roof trim */
  --gold: #f2ac3a;       /* the waffle */
  --gold-soft: #f7c66e;
  --cream: #f8eedc;      /* bulbs and the logo's outline */
  --muted: #c3b6a6;
  --stripe-a: #b9584e;   /* fascia stripes above the Lanham counter */
  --stripe-b: #e4b48c;
  --line: rgba(248, 238, 220, 0.16);
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Work Sans', system-ui, sans-serif;
  --sign: 'Rye', Georgia, serif;   /* storefront lettering only: loader and nav */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
/* Section links glide instead of jumping: the browser's own smooth scroll, no library, off for reduced motion. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--board); color: var(--cream); font: 400 17px/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--head); font-weight: 700; line-height: 1.02; letter-spacing: 0.005em; margin: 0 0 0.5em; text-transform: uppercase; }
h1 { font-size: clamp(2.5rem, 4.6vw, 4.3rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: linear-gradient(var(--board), var(--board-2) 140px, var(--board-2) calc(100% - 140px), var(--board)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111; padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }
.link { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Buttons: squared like the menu boards' price plates, never pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  font: 600 1.02rem/1 var(--head); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  border-radius: 4px; border: 2px solid transparent; transition: transform .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: #1a1208; }
.btn--line { border-color: var(--cream); color: var(--cream); }
.btn--line:hover { border-color: var(--gold); }

/* ---------- Signature: marquee bulbs ---------- */
.bulbs { display: flex; gap: 14px; justify-content: center; overflow: hidden; }
.bulbs i { position: relative; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #5a4a3c; }
.bulbs i::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fffaf0 0 32%, rgba(255, 236, 190, .55) 45%, rgba(255, 220, 150, 0) 72%); }
.bulbs.is-lit i::after { animation: bulb-on .5s ease-out forwards; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes bulb-on { from { opacity: 0; } to { opacity: 1; } }
.bulbs--rule { padding: 26px var(--gutter); background: var(--board); }

/* ---------- Loader: the counter's neon sign switching on ---------- */
/* Without JS it fades out on its own (loader-out). With JS, main.js flies the sign and lettering into the nav. */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px;
  animation: loader-out .4s ease 1.55s forwards; }
.loader::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #0a0a0c; transition: opacity .75s ease .1s; }
.loader.is-flying::before { opacity: 0; }
.sign, .loader__word { transform-origin: 50% 50%; }
.sign { position: relative; width: min(260px, 64vw); }
.sign img { width: 100%; }
.sign__on { position: absolute; inset: 0; opacity: 0; animation: neon-on 1s linear .2s forwards; }
/* A real tube catching: two false starts, a stutter, then steady. Opacity only. */
@keyframes neon-on {
  0% { opacity: 0; } 7% { opacity: .75; } 11% { opacity: 0; } 30% { opacity: 0; } 33% { opacity: .9; } 37% { opacity: .1; }
  43% { opacity: 1; } 52% { opacity: .5; } 56% { opacity: 1; } 100% { opacity: 1; }
}
.loader__word { margin: 0; animation: rise .5s cubic-bezier(.2, .8, .2, 1) .95s both; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* The "CHICKEN & WAFFLES" channel letters on the Lanham building: maroon faces, gold returns. */
.loader__word, .nav__word { font-family: var(--sign); font-weight: 400; text-transform: uppercase; color: #c8243c; line-height: 1;
  letter-spacing: .02em; text-shadow: 0 1px 0 #b0702a, 0 2px 0 #7a4a1a; white-space: nowrap; }
.loader__word { font-size: clamp(1.3rem, 5vw, 1.9rem); }
.loader__word span, .nav__word span { font-size: .8em; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 10px var(--gutter); background: linear-gradient(rgba(14, 15, 18, .92), rgba(14, 15, 18, 0)); }
.nav.is-solid { background: var(--board); box-shadow: 0 1px 0 var(--line); }
.nav__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav__brand img { width: 96px; }
.nav__word { font-size: 1.15rem; padding-top: 4px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font: 500 1.02rem/1 var(--head); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.nav__links a:hover { color: var(--gold); }
.nav__order { min-height: 42px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: center; overflow: hidden; background: #0b0b0c; }
.hero__media, .hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 100% 50%; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 10, 11, .92) 0%, rgba(10, 10, 11, .78) 30%, rgba(10, 10, 11, .2) 58%, rgba(10, 10, 11, 0) 75%),
              linear-gradient(0deg, var(--board) 0%, rgba(14, 15, 18, 0) 18%); }
/* The neon sign from the loader rests on the photo's bottom-right corner, like the one on the counter. */
.hero__sign { position: absolute; z-index: 1; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: 7%; width: clamp(150px, 15vw, 220px); pointer-events: none; }
/* Once it has landed, the tube flickers every 3 s: a quick dip, a stutter, steady again. Opacity only.
   Started by main.js (.is-lit) so it never runs while the loader's copy is flying in. */
.hero__sign.is-lit { animation: neon-buzz 3s linear 2s infinite; }
@keyframes neon-buzz {
  0%, 12%, 100% { opacity: 1; } 2% { opacity: .3; } 4% { opacity: .95; } 7% { opacity: .45; } 9% { opacity: 1; }
}
.hero__text { position: relative; z-index: 1; max-width: calc(var(--wrap) + 2 * var(--gutter)); width: 100%; margin: 0 auto; padding: 120px var(--gutter) 90px; }
.hero__text > * { max-width: 500px; }
.hero__actions { max-width: 640px !important; }
.hero__lede { font-size: 1.14rem; color: #efe4d1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.today { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--cream); margin: 0; }
.today__dot { width: 10px; height: 10px; border-radius: 50%; background: #6b5c4e; flex: none; }
.today.is-open .today__dot { background: #fff4d6; box-shadow: 0 0 0 4px rgba(255, 230, 170, .18), 0 0 14px rgba(255, 230, 170, .8); }
.hero__text h1, .hero__lede, .today, .hero__actions, .nav__brand img { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: 1.7s; }
.hero__lede { animation-delay: 1.78s; } .today { animation-delay: 1.85s; } .hero__actions { animation-delay: 1.91s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Menu ---------- */
.menu__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 34px; }
.menu__head h2 { margin: 0; }
.specials { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.specials li { display: grid; grid-template-columns: auto auto; grid-template-areas: 'name price' 'note note'; justify-content: start; gap: 0 14px; align-items: baseline; border-left: 3px solid var(--gold); padding-left: 12px; }
.specials b { grid-area: name; } .specials span { grid-area: note; } .specials em { grid-area: price; }
.specials b { font-family: var(--head); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.specials span { color: var(--muted); }
.specials em { font-style: normal; color: var(--gold); font-weight: 600; }

.dishes { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dish { background: var(--board-2); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.dish picture { aspect-ratio: 5 / 4; overflow: hidden; background: #111; }
.dish img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.dish:hover img { transform: scale(1.04); }
.dish__body { padding: 16px 18px 20px; display: grid; gap: 4px; }
.dish__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dish h3 { margin: 0; font: 600 1.28rem/1.15 var(--head); text-transform: uppercase; letter-spacing: .01em; }
.price { font: 600 1.2rem/1 var(--head); color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish p { margin: 0; color: var(--muted); font-size: .96rem; }
.soldout { color: var(--muted); font: 500 .95rem/1 var(--body); }

.board__tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.board__tabs button { appearance: none; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 10px 0 12px; position: relative;
  font: 500 1.05rem/1 var(--head); letter-spacing: .04em; text-transform: uppercase; }
.board__tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.board__tabs button[aria-selected='true'] { color: var(--cream); }
.board__tabs button[aria-selected='true']::after { transform: scaleX(1); }
.board__list { columns: 2 380px; column-gap: 56px; min-height: 260px; }
.row { break-inside: avoid; padding: 10px 0; }
.row__top { display: flex; align-items: baseline; gap: 10px; }
.row__name { font-weight: 600; }
/* Dotted leaders like the Lanham menu boards; the dots double as the marquee bulbs. */
.row__dots { flex: 1; min-width: 20px; height: 1em; transform: translateY(-3px);
  background: radial-gradient(circle, rgba(248, 238, 220, .45) 1.3px, transparent 1.6px) 0 100% / 9px 6px repeat-x; }
.row__price { font: 600 1.08rem/1 var(--head); color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row p { margin: 2px 0 0; color: var(--muted); font-size: .93rem; }
.row.is-out .row__name { color: var(--muted); text-decoration: line-through; }
.board__note { margin: 26px 0 0; color: var(--muted); font-size: .9rem; }
.board__list.is-swapping { opacity: 0; transform: translateY(6px); }
.board__list { transition: opacity .2s ease, transform .2s ease; }

/* ---------- Inside ---------- */
.inside__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.inside__copy p { color: #ece1ce; }
.quote { margin: 26px 0 0; padding-left: 18px; border-left: 3px solid var(--red); }
.quote blockquote { margin: 0; font-size: 1.08rem; }
.quote figcaption { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.inside__photos { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: end; }
.inside__photos img { border-radius: 6px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.inside__small { margin-bottom: 48px; }

/* ---------- Fascia band: the striped wall above the Lanham counter ---------- */
.fascia { position: relative; height: 92px; display: grid; place-items: center; overflow: hidden; }
.fascia__stripes { position: absolute; inset: 0 -28px 0 0; background: repeating-linear-gradient(90deg, var(--stripe-a) 0 14px, var(--stripe-b) 14px 28px); }
.fascia::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .25)); }
.fascia__write { position: relative; z-index: 2; display: inline-block; overflow: hidden; }
.fascia__write > span { display: inline-block; padding: 8px 14px 16px; font: 400 clamp(2.2rem, 5vw, 3.2rem)/1 'Yellowtail', cursive; color: #e23b50;
  -webkit-text-stroke: 0; text-shadow: 0 0 0 #fff, 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 1.5px 1.5px #fff, -1.5px -1.5px #fff, 1.5px -1.5px #fff, -1.5px 1.5px #fff, 0 4px 10px rgba(0, 0, 0, .35); }

/* The awning stripes drift very slowly on their own, one stripe pair (28 px) every 6 s, like First Hijrah's woven
   band: transform only, seamless loop. The script writes itself on left to right when the band comes into view
   (a two-layer transform wipe, set by main.js). */
.fascia__stripes { animation: stripes-drift 6s linear infinite; }
@keyframes stripes-drift { to { transform: translateX(-28px); } }
.js .fascia__write { transform: translateX(-101%); transition: transform 1.2s cubic-bezier(.55, 0, .2, 1) .1s; }
.js .fascia__write > span { transform: translateX(101%); transition: inherit; }
.js .fascia.is-in .fascia__write, .js .fascia.is-in .fascia__write > span { transform: none; }

/* ---------- Visit ---------- */
.visit__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
address { font-style: normal; font-size: 1.3rem; line-height: 1.4; margin-bottom: .6em; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin: 18px 0 8px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--gold); font-weight: 600; }
.hours__note { color: var(--gold-soft); font-weight: 600; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.visit__photo img { border-radius: 6px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Catering + order ---------- */
.catering__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.packs { list-style: none; margin: 0; padding: 0; }
.packs li { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.packs li:first-child { border-top: 1px solid var(--line); }
.packs b { font: 600 1.2rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.packs small { display: block; color: var(--muted); font: 400 .92rem/1.4 var(--body); text-transform: none; letter-spacing: 0; }
.order { margin-top: clamp(64px, 8vw, 100px); text-align: center; }
.order__title { margin-bottom: 22px; }
.order__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */
.foot { background: var(--board); padding: 56px 0 28px; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 32px 48px; align-items: start; }
.foot__grid img { width: 120px; }
.foot__title { font: 600 1.05rem/1 var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--gold); margin-bottom: 10px; }
.foot p { color: #ddd0bd; font-size: .95rem; }
.foot__small { margin-top: 28px; color: var(--muted); font-size: .85rem; }

/* ---------- Reveal (IntersectionObserver adds .is-in) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 12px; padding: 8px 16px; background: var(--board); box-shadow: 0 1px 0 var(--line); }
  .nav__brand { gap: 10px; }
  .nav__brand img { width: 64px; }
  .nav__word { font-size: .86rem; }
  .nav__links { display: none; }
  .nav__order { margin-left: auto; }
  /* Title first, then the photo */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-top: 64px; }
  .hero::after { display: none; }
  /* Title, then the food, then the rest, so the photo is in the first screen */
  .hero__text { display: contents; }
  .hero__text > * { padding-left: 16px; padding-right: 16px; }
  .hero h1 { order: 1; padding-top: 26px; margin-bottom: 18px; }
  .hero__media { order: 2; position: relative; inset: auto; height: auto; }
  .hero__lede { order: 3; padding-top: 18px; }
  .today { order: 4; }
  .hero__actions { order: 5; padding-bottom: 26px; }
  .hero__photo { position: relative; display: block; aspect-ratio: 1640 / 1010; height: auto; }
  .hero__photo img { position: absolute; }
  .hero__sign { right: 8px; bottom: 6px; width: 84px; }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__actions .btn--gold { grid-column: 1 / -1; }
  .hero__lede { font-size: 1.05rem; }
  .bulbs--rule { padding: 22px 16px; }
  .dishes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dish__body { padding: 12px 12px 14px; }
  .dish h3 { font-size: 1.05rem; }
  .dish p { display: none; }
  .dish__top { flex-direction: column; gap: 6px; }
  .board__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 22px; margin: 0 -16px 18px; padding: 0 16px; }
  .board__tabs button { white-space: nowrap; }
  .board__list { columns: 1; }
  .inside__grid, .visit__grid, .catering__grid { grid-template-columns: 1fr; }
  .inside__photos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .inside__small { margin-bottom: 0; }
  .visit__photo { order: -1; }
  .fascia { height: 76px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid img { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader { display: none; }
  .bulbs i::after { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}
/* Sections stop right under the fixed nav (81 px desktop, 58 px phone). */
section[id] { scroll-margin-top: 81px; }
@media (max-width: 760px) { section[id] { scroll-margin-top: 58px; } }
