/* Ember Lane. Charred, warm, a bit scruffy — a pizza place, not a tech demo.
   Deliberately a different world from The Ravensmoor and from the agent panel. */

:root {
  --paper:   #FBF7F0;
  --paper-2: #F2EADE;
  --card:    #FFFFFF;
  --ink:     #191512;
  --body:    #4A423B;
  --faint:   #7C726A;
  --line:    #E3D9CB;
  --ember:   #E4572E;
  --ember-d: #A8330F;
  --char:    #161310;
  --basil:   #3F6B43;
  --basil-d: #2C5230;
  --warn:    #8A5A00;
  --warn-bg: #FFF3D6;

  --disp: "Roboto Condensed", "Helvetica Neue", Impact, sans-serif;
  --site-sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font-family: var(--site-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ember-d); }
button, input, select { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 26px; }
.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;
}
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember);
}
:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--ember); outline-offset: 2px;
}
[hidden] { display: none !important; }

/* --- demo banner --- */
.demo-banner {
  margin: 0; padding: 9px 20px; text-align: center;
  background: var(--char); color: #EFE7DC; font-size: 12.5px;
}
.demo-banner strong { color: #FFB59B; }
.demo-banner a { color: #EFE7DC; text-underline-offset: 3px; }

/* --- header --- */
.head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 26px; max-width: 1060px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--char); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--disp); font-weight: 700; font-size: 23px;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.brand__text em {
  font-style: normal; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint);
}
.nav { display: flex; gap: 22px; }
.nav a { color: var(--body); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ember-d); }

/* --- hero --- */
.hero { max-width: 1060px; margin: 20px auto 54px; padding: 0 26px; }
.hero h1 {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 76px); line-height: 0.94; letter-spacing: -0.01em;
  color: var(--char); margin: 12px 0 16px;
}
.lede { font-size: 17px; max-width: 44ch; text-wrap: pretty; }

/* --- filters --- */
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 22px; margin-bottom: 26px;
}
.filters__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filters__row--wrap { align-items: flex-start; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.filters__label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
  flex: none; padding-top: 6px;
}
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  border: 1px solid var(--line); background: var(--paper); border-radius: 20px;
  padding: 7px 15px; font-size: 14px; cursor: pointer; color: var(--body);
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--char); border-color: var(--char); color: #F7F1E8; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chk { display: inline-flex; cursor: pointer; }
.chk input { position: absolute; opacity: 0; pointer-events: none; }
.chk span {
  display: inline-block; padding: 5px 11px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 12.5px; color: var(--body);
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.chk input:checked + span { background: var(--ember-d); border-color: var(--ember-d); color: #FFF3EE; }
.chk input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }

.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; color: var(--ember-d);
  text-decoration: underline; text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--char); }

.kitchen-warning {
  margin-top: 16px; padding: 11px 13px; border-radius: 8px;
  background: var(--warn-bg); border: 1px solid #E8D49A;
  font-size: 13px; line-height: 1.55; color: #5C4200;
}

/* --- menu --- */
.menu-summary {
  margin: 0 0 22px; font-size: 14.5px; color: var(--body);
  padding-left: 12px; border-left: 3px solid var(--line);
}
.menu-summary[data-tone="good"] { border-left-color: var(--basil); }
.menu-summary[data-tone="bad"]  { border-left-color: var(--ember-d); color: var(--ember-d); }

.course { margin-bottom: 42px; }
.course__h {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  font-size: 26px; letter-spacing: 0.02em; color: var(--char);
  padding-bottom: 9px; margin-bottom: 18px; border-bottom: 2px solid var(--char);
}
.course__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.dish {
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 16px 18px 15px; display: flex; flex-direction: column; gap: 8px;
}
.dish__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dish__top h3 {
  font-family: var(--disp); font-weight: 600; font-size: 20px;
  letter-spacing: 0.01em; color: var(--char);
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.dish__price { font-family: var(--mono); font-size: 14.5px; font-weight: 600; color: var(--char); white-space: nowrap; }
.dish__desc { font-size: 14px; }

.badge {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 4px; line-height: 1.5;
}
.badge--v   { background: #E4EFE4; color: var(--basil-d); border: 1px solid #C3DDC5; }
.badge--vg  { background: var(--basil); color: #F2F8F2; }
.badge--gf  { background: #EAE3F5; color: #4A3A6B; border: 1px solid #D2C6E8; }
.badge--gfo { background: var(--paper-2); color: var(--faint); border: 1px solid var(--line); }

/* --- allergens ---
   The whole reason this demo exists. "Contains" and "may contain" are visually
   different, not two lines of the same grey — the second is a weaker claim and
   has to look like one. */
.dish__allergens, .detail__allergens {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: auto; padding-top: 9px; border-top: 1px dashed var(--line);
}
.alrow { font-size: 11.5px; line-height: 1.5; color: var(--faint); }
.alrow b {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--body);
  margin-right: 5px;
}
.alrow--may b { color: var(--warn); }
.al { font-style: normal; }
.al--hit  { color: var(--ember-d); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.al--warn { color: var(--warn); font-weight: 700; }
.al--none { color: var(--basil-d); }

.dish__flag {
  font-size: 12px; line-height: 1.5; padding: 7px 10px; border-radius: 7px;
  background: var(--warn-bg); border: 1px solid #E8D49A; color: #5C4200;
}

.empty {
  padding: 34px 26px; text-align: center; font-size: 15px; color: var(--faint);
  border: 1px dashed var(--line); border-radius: 11px;
}

/* --- dish detail --- */
.detail {
  position: relative; margin: 6px 0 42px;
  background: var(--card); border: 1px solid var(--char); border-radius: 12px;
  padding: 26px 28px;
}
.detail__inner { display: flex; flex-direction: column; gap: 11px; }
.detail__inner h2 {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  font-size: 30px; color: var(--char); display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.detail__price { font-family: var(--mono); font-size: 17px; font-weight: 600; color: var(--char); }
.detail__desc { font-size: 15.5px; }
.detail__sub {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 6px;
}
.detail__adapt { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.detail__adapt b { color: var(--char); }
.kitchen-note {
  margin-top: 6px; padding: 11px 13px; border-radius: 8px;
  background: var(--warn-bg); border: 1px solid #E8D49A;
  font-size: 12.5px; line-height: 1.55; color: #5C4200;
}
.detail__close {
  position: absolute; top: 12px; right: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer; color: var(--faint); line-height: 1;
}
.detail__close:hover { color: var(--char); }

/* --- booking band --- */
.band { background: var(--char); color: #E9E0D5; padding: 54px 0 58px; margin-top: 20px; }
.booker h2, .booking h2 {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  font-size: 30px; color: #FFF; letter-spacing: 0.01em;
}
.booker__sub { margin: 6px 0 22px; font-size: 14.5px; color: #B3A79A; }
.booker__row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }

.field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 190px; }
.field--sm { flex: 0 1 120px; }
.field--wide { flex: 1 1 100%; }
.field > span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #9C9086;
}
.field input, .field select {
  background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px; padding: 11px 13px; font-size: 15px; color: #F4EEE6; width: 100%;
}
.field input::placeholder { color: #8B8077; }

.slots-note { margin: 22px 0 12px; font-size: 14.5px; color: #C6BBAF; }
.slots-note[data-tone="bad"] { color: #FFB59B; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 8px; padding: 10px 15px; font-family: var(--mono); font-size: 14px;
  color: #F4EEE6; cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.slot:hover:not([disabled]) { background: var(--ember); border-color: var(--ember); }
.slot[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: #fff; }
.slot--gone { opacity: 0.34; cursor: not-allowed; text-decoration: line-through; }

/* --- booking form --- */
.booking {
  margin-top: 34px; padding-top: 30px; border-top: 1px solid rgb(255 255 255 / 0.16);
}
.booking__summary { font-size: 15.5px; color: #C6BBAF; margin: 8px 0 20px; line-height: 1.7; }
.booking__summary strong { color: #fff; }
.r-hold { font-family: var(--mono); font-size: 11.5px; color: #9C9086; }
.booking__form { display: flex; flex-wrap: wrap; gap: 14px; }
.booking__actions { display: flex; gap: 10px; flex: 1 1 100%; }
.btn {
  background: var(--ember); border: 1px solid var(--ember); color: #fff;
  border-radius: 8px; padding: 12px 22px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 0.16s var(--ease);
}
.btn:hover { background: var(--ember-d); border-color: var(--ember-d); }
.btn--ghost { background: transparent; border-color: rgb(255 255 255 / 0.24); color: #C6BBAF; font-weight: 400; }
.btn--ghost:hover { background: rgb(255 255 255 / 0.08); }
.booking__note { flex: 1 1 100%; font-size: 12.5px; color: #9C9086; line-height: 1.6; }
.booking__done h3 { font-family: var(--disp); font-weight: 700; text-transform: uppercase; font-size: 24px; color: #fff; margin-bottom: 10px; }
.booking__done p { font-size: 14.5px; color: #C6BBAF; margin-bottom: 12px; }
.demo-note { font-family: var(--mono); font-size: 11.5px; color: #FFB59B; }

/* Says out loud that nobody in the room pressed the button. A site that lets an
   agent commit something should record that it was an agent — the guest needs to
   recognise a booking they did not make themselves. */
.by-agent {
  display: inline-block; margin-bottom: 12px !important;
  padding: 7px 12px; border-radius: 7px;
  background: rgb(228 87 46 / 0.16); border: 1px solid var(--ember);
  font-family: var(--mono); font-size: 11.5px; color: #FFC7B4 !important;
}
.by-note { font-size: 13.5px; color: #B3A79A !important; font-style: italic; }

/* --- info --- */
.info { padding: 62px 26px 10px; }
.info h2 {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  font-size: 28px; color: var(--char); margin-bottom: 22px;
}
.info__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 32px; }
.info__grid dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ember); margin-bottom: 5px;
}
.info__grid dd { font-size: 14.5px; }

/* --- footer --- */
.foot {
  margin-top: 62px; padding: 32px 26px; border-top: 1px solid var(--line);
  max-width: 1060px; margin-inline: auto; font-size: 13.5px;
}
.foot strong { color: var(--char); font-family: var(--disp); text-transform: uppercase; letter-spacing: 0.02em; }
.foot__demo { margin-top: 8px; font-size: 12.5px; color: var(--faint); max-width: 62ch; }

/* --- the agent moved something --- */
.just-changed { animation: nudge 1.5s var(--ease); }
@keyframes nudge {
  0%   { box-shadow: 0 0 0 3px rgb(228 87 46 / 0.8); }
  100% { box-shadow: 0 0 0 3px rgb(228 87 46 / 0); }
}

@media (max-width: 620px) {
  .head { flex-wrap: wrap; }
  .filters__label { padding-top: 0; }
  .course__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .just-changed, .seg button, .chk span, .slot { animation: none; transition: none; }
}
