:root {
  --navy: #151f53;
  --red: #de3037;
  --ink-red: #b71d29;
  --cream: #fffaf0;
  --white: #fff;
  color-scheme: light;
  color: var(--navy);
  background: var(--cream);
  font-family: Arial, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, figure { margin: 0; }
p + p { margin-top: 0.8rem; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink-red);
  outline-offset: 5px;
}
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 1rem;
  color: var(--navy);
  background: var(--cream);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.masthead {
  position: relative;
  overflow: clip;
  padding: 1.6rem 1rem 2.6rem;
  color: var(--cream);
  background: var(--navy);
  border-bottom: 7px solid var(--red);
}
.masthead::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--cream);
}
.masthead-content { position: relative; max-width: 1200px; margin: auto; text-align: center; }
.bunting { position: absolute; top: -0.2rem; width: min(42%, 350px); }
.bunting-left { left: -3rem; transform: rotate(-13deg); }
.bunting-right { right: -3rem; transform: rotate(13deg); }
.header-tower, .header-stall { display: none; }
.beret { width: 100px; margin: 0 auto 0.15rem; }
.eyebrow { font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; }
h1 {
  margin: 0.4rem 0 1rem;
  font: 900 clamp(2.6rem, 8.3vw, 5.6rem)/0.95 Georgia, serif;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-shadow: 2px 3px 0 var(--red);
}
.market-ribbon {
  display: inline-block;
  max-width: 100%;
  padding: 0.3rem 0.6rem;
  border: 2px solid var(--red);
  border-radius: 5px 16px;
  outline: 3px solid var(--cream);
  color: var(--navy);
  background: var(--cream);
  font: bold clamp(0.85rem, 2.7vw, 1.65rem)/1.25 Georgia, serif;
}
.market-ribbon span { color: var(--ink-red); }
.tagline { margin-top: 1rem; font: italic clamp(1rem, 3vw, 1.7rem)/1.4 Georgia, serif; }
.recipe-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.2rem 0.7rem; margin-top: 1rem; }
.recipe-nav a { padding: 0.55rem 0.25rem; font-size: 0.8rem; }
.recipe-nav a:focus-visible, .footer button:focus-visible { outline-color: var(--cream); }
.recipe {
  width: min(100% - 2rem, 1160px);
  margin: 0 auto;
  padding: 1.4rem 0 2.5rem;
}
.recipe > section { margin-top: 2rem; padding-top: 1.4rem; }
.recipe > section::before {
  content: "";
  display: block;
  height: 18px;
  margin: -1.4rem 0 1.1rem;
  background: url("images/art/tricolour_divider.svg") center / min(100%, 440px) 18px no-repeat;
}
section { scroll-margin-top: 1rem; }
.intro { display: grid; gap: 2rem; }
.hero img { width: 100%; object-fit: cover; border-radius: 50% 50% 8px 8px; }
.hero figcaption { margin-top: 0.65rem; text-align: center; font: italic 1rem/1.4 Georgia, serif; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.section-heading img { width: 76px; max-height: 65px; }
.ribbon {
  display: inline-block;
  position: relative;
  padding: 0.4rem 1.15rem;
  border: 2px solid var(--cream);
  outline: 2px solid var(--red);
  color: var(--white);
  background: var(--ink-red);
  font: bold clamp(1.4rem, 4vw, 2rem)/1.15 Georgia, serif;
  text-transform: uppercase;
  transform: rotate(-1deg);
}
.section-note { font: italic 1.05rem/1.4 Georgia, serif; }
.ingredients {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.ingredients li {
  padding: 0.65rem 0.8rem;
  border: 1px solid #dcd5c8;
  border-radius: 5px;
  background: #fffdf8;
}
.ingredients strong { display: block; font-size: 1.15rem; }
.sandwich-ingredients { margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid #dcd5c8; }
.sandwich-ingredients h3 { margin-bottom: 0.25rem; font: bold 1.15rem Georgia, serif; }
.steps, .cooking-steps {
  counter-reset: step;
  display: grid;
  gap: 1.2rem;
  padding: 0;
  margin: 1.3rem 0 0;
  list-style: none;
}
.steps > li, .cooking-steps > li {
  counter-increment: step;
  border: 1px solid #ded7ca;
  border-radius: 9px;
  overflow: hidden;
  background: #fffdf8;
}
.steps img, .cooking-steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step-copy { position: relative; padding: 1.1rem 1rem 1.1rem; }
.step-copy::before {
  content: counter(step);
  position: absolute;
  top: -1.05rem;
  left: 0.8rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: var(--ink-red);
  color: var(--white);
  font-weight: bold;
  font-size: 1.2rem;
}
.step-copy h3 { margin: 0.45rem 0 0.45rem; font: bold 1.25rem/1.2 Georgia, serif; }
.step-copy p { font-size: 0.95rem; }
.timing { color: var(--ink-red); font-weight: bold; }
.warning { padding: 0.7rem; background: #fff0e5; border-left: 3px solid var(--ink-red); font-weight: bold; }
.warning span, .serving-card span { color: var(--ink-red); }
.serving { display: flex; align-items: center; gap: 1.5rem; }
.serving::before { display: none !important; }
.cafe-art { display: none; }
.serving-card {
  display: grid;
  gap: 1.3rem;
  width: 100%;
  padding: 1.5rem;
  border: 5px double var(--red);
  border-radius: 3px 25px;
}
.serving-card .ribbon { justify-self: start; }
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 1.25rem 1.5rem;
  text-align: center;
  color: var(--cream);
  background: var(--navy);
  border-top: 8px solid var(--red);
  box-shadow: 0 -5px var(--cream), 0 -8px var(--navy);
}
.bon-appetit { font: italic 2.5rem Georgia, serif; }
.footer button {
  min-height: 48px;
  margin: 1rem 0;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--cream);
  border-radius: 5px;
  color: var(--white);
  background: var(--ink-red);
  font: bold 1rem Arial, sans-serif;
  cursor: pointer;
}
.footer button:hover { background: #961624; }
.footer-note { font-size: 0.7rem; }
.footer-tower, .footer-stall { display: none; }

@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead { padding-top: 2rem; }
  .beret { width: 120px; }
}
@media (min-width: 800px) {
  .intro { grid-template-columns: 1fr 1fr; align-items: center; gap: 2.5rem; }
  .recipe { padding-top: 2rem; }
  .hero img { aspect-ratio: 1; }
  .cooking-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cafe-art { display: block; width: 150px; }
  .serving-card { grid-template-columns: auto 1fr; align-items: center; }
  .footer-tower, .footer-stall { display: block; width: 110px; }
  .footer-tower { filter: brightness(0) invert(1); max-height: 145px; }
  .footer-stall { padding: 0.2rem; background: var(--cream); border-radius: 10px; }
}
@media (min-width: 1000px) {
  .header-tower, .header-stall { display: block; position: absolute; bottom: 2rem; width: 110px; }
  .header-tower { left: 2rem; max-height: 150px; filter: brightness(0) invert(1); }
  .header-stall { right: 2rem; padding: 0.2rem; background: var(--cream); border-radius: 10px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps .step-copy { padding: 1.1rem 0.85rem; }
  .steps .step-copy h3 { font-size: 1.1rem; }
  .steps .step-copy p { font-size: 0.85rem; }
}
@media (max-width: 599px) {
  #assembly .section-heading { display: block; }
  #assembly .section-note { margin-top: 1rem; }
}
@media print {
  :root { font-size: 11pt; background: white; color: black; }
  @page { margin: 12mm; }
  .skip-link, .bunting, .beret, .header-tower, .header-stall, .eyebrow, .recipe-nav, .footer, .cafe-art,
  .section-heading img, .hero, .recipe > section::before { display: none !important; }
  .masthead { padding: 0 0 0.6rem; border: 0; color: black; background: none; }
  .masthead::after { display: none; }
  h1 { font-size: 26pt; margin: 0 0 0.4rem; text-shadow: none; }
  .market-ribbon { padding: 0; outline: none; border: 0; font-size: 13pt; background: none; }
  .tagline { font-size: 11pt; margin-top: 0.4rem; }
  .recipe { width: 100%; padding: 0; }
  .intro { display: block; }
  .recipe > section { margin-top: 1rem; padding-top: 0; }
  .ribbon { padding: 0; color: black; background: none; outline: none; border: 0; transform: none; font-size: 16pt; }
  .ingredients { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0; }
  .ingredients li { padding: 0; border: 0; background: none; }
  .ingredients strong { display: inline; font-size: inherit; }
  .sandwich-ingredients { margin-top: 0.5rem; padding-top: 0.5rem; }
  .steps, .cooking-steps { display: block; margin-top: 0.5rem; }
  .steps > li, .cooking-steps > li { position: relative; border: 0; border-radius: 0; background: none; break-inside: avoid; }
  .steps picture, .cooking-steps picture { display: none; }
  .step-copy, .steps .step-copy { padding: 0.25rem 0 0.35rem 1.8rem; }
  .step-copy::before { top: 0.2rem; left: 0; width: 1.4rem; height: 1.4rem; color: black; border: 1px solid black; background: none; font-size: 10pt; }
  .step-copy h3, .steps .step-copy h3 { font-size: 11pt; margin: 0 0 0.15rem; }
  .step-copy p, .steps .step-copy p { font-size: 10pt; }
  .warning { padding: 0; border: 0; background: none; }
  .timing { color: black; }
  .serving-card { padding: 0.6rem; border: 1px solid black; gap: 0.4rem; break-inside: avoid; }
}
