/* ================================================================
   Code For Breakfast — menu-board stylesheet
   Palette from the logo ink: navy on white, egg-yolk centre.
   ================================================================ */

:root {
  --navy: #082E53;
  --yolk: #FBC108;
  --gold: #E08A00;
  --white: #FEFEFE;

  --gold-ink: #8A5800; /* AA-safe gold for text on white; --gold stays for artwork */
  --bacon: #C74632;
  --bean: #D96A1F;
  --toast: #B5804A;
  --sausage: #7A4A28;
  --tomato: #D64533;

  --font-display: "Besley", "Georgia", serif;
  --font-body: "Karla", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-1: clamp(1.35rem, 1.2rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.4vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.7rem + 2.4vw, 3.4rem);
  --step-4: clamp(2.8rem, 1.8rem + 3.8vw, 4.6rem);

  --space-course: clamp(5rem, 12vw, 9rem);
  --measure: 68ch;

  --z-masthead: 10;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
p + p { margin-top: 1em; }

a { color: var(--gold-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-color: var(--yolk); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: var(--z-masthead);
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  transition: top 150ms ease-out;
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------
   Masthead: mark + wordmark lockup, set live in the site face
   --------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: var(--z-masthead);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: var(--white);
  border-bottom: 3px solid var(--navy);
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark { width: 58px; height: auto; flex: none; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
  flex-wrap: wrap;
}

.masthead__nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  padding-bottom: 2px;
  border-bottom: 3px solid transparent;
}
.masthead__nav a:hover { border-bottom-color: var(--yolk); }

.masthead__cta {
  background: var(--yolk);
  border: 3px solid var(--navy);
  border-radius: 999px;
  padding: 0.35rem 1rem 0.4rem !important;
}
.masthead__cta:hover { background: var(--white); border-bottom-color: var(--navy) !important; }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 74rem;
  margin-inline: auto;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem) var(--space-course);
}

.hero__special {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--white);
  background: var(--navy);
  padding: 0.35rem 1.1rem 0.45rem;
  border-radius: 999px;
  margin: 0 0 1.4rem;
  transform: rotate(-2deg);
}

.hero h1 {
  font-size: var(--step-4);
  letter-spacing: -0.015em;
}

.hero__sub {
  max-width: var(--measure);
  margin-top: 1.4rem;
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero__prompt {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--navy);
}
.prompt-path { color: var(--gold-ink); font-weight: 700; }

.egg-cursor {
  width: 2.1em;
  height: auto;
  vertical-align: -0.55em;
  margin-left: 0.45em;
}
.egg-white { fill: var(--white); stroke: var(--navy); stroke-width: 2.5; }
.egg-yolk { fill: var(--yolk); }
.egg-glint { fill: var(--white); }

.motion-ok .egg-yolk,
.motion-ok .egg-glint {
  animation: yolk-blink 1.15s steps(1) infinite;
}
@keyframes yolk-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0.15; }
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  background: var(--yolk);
  border: 3px solid var(--navy);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--navy);
  padding: 0.7rem 1.6rem 0.8rem;
  text-decoration: none;
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover {
  color: var(--navy);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--navy);
}
.btn--big { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

.btn-quiet {
  font-weight: 700;
  color: var(--navy);
  text-decoration-color: var(--yolk);
  text-decoration-thickness: 3px;
}

.hero__art { justify-self: center; width: min(100%, 25rem); }
.hero__art svg { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------
   Courses (sections)
   --------------------------------------------------------------- */

.course {
  max-width: 74rem;
  margin-inline: auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) var(--space-course);
}

.course__head {
  text-align: center;
  margin-bottom: clamp(2.2rem, 6vw, 3.5rem);
}

.course__head h2 {
  font-size: var(--step-3);
  letter-spacing: -0.01em;
}

.course__head h2::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--yolk);
  margin: 0.9rem auto 0;
}

.course__note {
  margin-top: 0.9rem;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
}

/* ---------------------------------------------------------------
   Menu lists with dotted leaders
   --------------------------------------------------------------- */

.menu-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 56rem;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

.menu-item__row {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}

.menu-item h3 {
  font-size: var(--step-2);
  flex: none;
  max-width: 100%;
}
.menu-item h3 a { color: var(--navy); text-decoration-color: var(--yolk); }

.menu-item__leader {
  flex: 1;
  min-width: 2.5rem;
  border-bottom: 4px dotted var(--navy);
  opacity: 0.5;
  transform: translateY(-0.35rem);
}

.menu-item__price {
  flex: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-ink);
}
.menu-item__price--mono {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
}

.menu-item p {
  margin-top: 0.8rem;
  max-width: var(--measure);
}

/* ---------------------------------------------------------------
   Divider: sausage progress bar
   --------------------------------------------------------------- */

.divider {
  max-width: 34rem;
  margin: 0 auto var(--space-course);
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.divider svg { width: 100%; height: auto; display: block; }
.divider__label {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--sausage);
}

/* ---------------------------------------------------------------
   The Full English
   --------------------------------------------------------------- */

.engagement {
  max-width: 56rem;
  margin: 0 auto 2.6rem;
}

.engagement--featured {
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.engagement--featured a { color: var(--yolk); }
.engagement--featured a:hover { color: var(--white); }

.engagement--card {
  border: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--yolk);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.engagement h3 {
  font-size: var(--step-2);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.engagement__tag {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--yolk);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.25rem 0.85rem 0.3rem;
}

.engagement p { max-width: var(--measure); }

.engagement-roster {
  max-width: 56rem;
  margin: 0 auto;
  border-top: 4px dotted color-mix(in srgb, var(--navy) 50%, transparent);
  padding-top: 1.6rem;
}
.engagement-roster__recent { font-size: var(--step-1); }
.engagement-roster__back { margin-top: 0.5rem; opacity: 0.85; }
.engagement-roster__cv {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}

/* ---------------------------------------------------------------
   The Kitchen — navy drench
   --------------------------------------------------------------- */

.course--kitchen {
  max-width: none;
  padding: 0;
  margin-bottom: var(--space-course);
  background: var(--navy);
  color: var(--white);
}

.kitchen__inner {
  max-width: 74rem;
  margin-inline: auto;
  padding: var(--space-course) clamp(1rem, 4vw, 2.5rem);
}

.course--kitchen h2 { color: var(--yolk); }
.course--kitchen h2::after { background: var(--yolk); }
.course__note--kitchen { color: var(--white); }

.kitchen__body {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 60rem;
  margin-inline: auto;
}

.kitchen__text p { max-width: var(--measure); }
.kitchen__text strong { color: var(--yolk); font-weight: 700; }

.kitchen__kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--step-1);
  margin-top: 1.6rem;
}

.kitchen__art { justify-self: center; width: min(100%, 15rem); }
.kitchen__art svg { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------
   The Recipe
   --------------------------------------------------------------- */

.recipe-card {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  border: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--yolk);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.recipe-card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.9rem;
}

.recipe-card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}
.recipe-card li::marker { color: var(--gold-ink); }

.recipe-motto {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  margin-top: clamp(2rem, 5vw, 3rem);
  text-wrap: balance;
}
.recipe-motto em { color: var(--gold-ink); }

/* ---------------------------------------------------------------
   Book a table + footer
   --------------------------------------------------------------- */

.course--book { text-align: center; }

.book__body {
  max-width: var(--measure);
  margin-inline: auto;
}

.book__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.footer {
  border-top: 3px solid var(--navy);
  padding: 2.2rem clamp(1rem, 4vw, 2.5rem) 2.8rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.footer p { font-size: 0.95rem; opacity: 0.85; max-width: var(--measure); }
.footer .brand-mark { width: 44px; }

/* ---------------------------------------------------------------
   Motion garnish: hero settle, only when JS confirmed motion is
   allowed. Everything below the hero is unconditionally visible.
   --------------------------------------------------------------- */

.motion-ok .hero__copy > * {
  animation: settle 550ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.motion-ok .hero__copy > *:nth-child(2) { animation-delay: 70ms; }
.motion-ok .hero__copy > *:nth-child(3) { animation-delay: 140ms; }
.motion-ok .hero__copy > *:nth-child(4) { animation-delay: 210ms; }
.motion-ok .hero__copy > *:nth-child(5) { animation-delay: 280ms; }

@keyframes settle {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 56rem) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__art { width: min(100%, 22rem); }

  .kitchen__body { grid-template-columns: 1fr; }
  .kitchen__art { width: min(60%, 13rem); }
}

@media (max-width: 40rem) {
  .menu-item__row {
    flex-wrap: wrap;
    row-gap: 0.2rem;
  }
  .menu-item__leader { min-width: 1.5rem; }
}
