/*
  DIRECTION
  Concept: loud, warm and properly British, like a lunch counter that has been open since breakfast and nobody has left yet. Big confident type, thick fillings, cheeky lines, no fuss.

  PALETTE (contrast checked against WCAG AA)
  --paper  #F6F0E1  page background
  --card   #FFFDF7  raised panels and captions (ink on card 14:1)
  --ink    #1D2A22  body text and headings (13:1 on paper)
  --green  #1F4D35  bands and footer (paper on green 8.5:1)
  --brick  #A8362A  buttons and prices (white on brick 6.5:1, brick on paper 5.7:1)
  --mustard #E9B03A highlights on green and ink only (mustard on green 4.9:1, large text)
  Supporting: --ink-soft #4A5A50 for secondary text (6.4:1 on paper), --crust #C98F1F for illustration only.

  TYPE
  Display: Fraunces 600 for headings (a warm serif with some character).
  Text: Work Sans 400 and 600 for everything else.
  Scale uses clamp() so it grows smoothly from a 360px phone to a laptop.

  MOTIF
  A dashed stitch line, like the seam on a bread bag or a sandwich wrapper. It divides sections and frames the photo spots. Numbers in the display face (01, 02, 03) carry the menu logic.
*/

:root {
  /* Colour */
  --paper: #F6F0E1;
  --card: #FFFDF7;
  --ink: #1D2A22;
  --ink-soft: #4A5A50;
  --green: #1F4D35;
  --brick: #A8362A;
  --brick-dark: #8C2B21;
  --mustard: #E9B03A;
  --crust: #C98F1F;
  --sand: #E8DDC6;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-h1: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);

  /* Space (8px based) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s6: 48px;
  --s8: 64px;
  --s12: 96px;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --measure: 65ch;
  --stitch: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 18px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 var(--s2);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--s3);
}

h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--s4);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  margin: 0 0 var(--s2);
  max-width: var(--measure);
}

a {
  color: var(--green);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--brick);
}

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

.band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--mustard);
}

.skip-link {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s1) var(--s2);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--s2);
}

.stitch {
  height: 3px;
  margin: 0;
  border: 0;
  background: var(--stitch);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brick);
  color: #fff;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 24px;
  border: 2px solid var(--brick);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .1s ease;
}

.btn:hover {
  background: var(--brick-dark);
  border-color: var(--brick-dark);
  color: #fff;
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
  margin-top: var(--s4);
}

/* Header */
.site-header {
  padding: var(--s3) 0;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--brick);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

/* Photo spots (customer can drop a photo in) */
.photo {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sand);
}

.photo--wide {
  aspect-ratio: 3 / 2;
}

.photo__art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12%;
}

.photo__art svg {
  width: 100%;
  max-width: 360px;
}

.photo figcaption {
  position: absolute;
  left: var(--s2);
  right: var(--s2);
  bottom: var(--s2);
  margin: 0;
  padding: var(--s1) 12px;
  background: var(--card);
  color: var(--ink);
  font-size: .95rem;
  border-radius: 4px;
}

[data-photo-slot] > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo:has(> img) figcaption {
  display: none;
}

/* Hero */
.hero {
  padding: var(--s6) 0 var(--s12);
}

.hero__grid {
  display: grid;
  gap: var(--s6);
  align-items: center;
}

.lede {
  font-size: clamp(1.125rem, 1rem + .5vw, 1.3rem);
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.05fr .95fr;
  }
}

/* Sections */
.section {
  padding: var(--s12) 0;
}

.split {
  display: grid;
  gap: var(--s6);
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: .8fr 1.2fr;
    align-items: start;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s4);
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s3);
  align-items: start;
  padding-top: var(--s3);
  border-top: 2px solid var(--ink);
}

.num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  color: var(--brick);
}

.steps h3 {
  margin-bottom: var(--s1);
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* Full-width band */
.band {
  background: var(--green);
  color: var(--paper);
  padding: var(--s12) 0;
}

.band .stitch {
  background: repeating-linear-gradient(90deg, var(--mustard) 0 10px, transparent 10px 18px);
  margin-bottom: var(--s8);
}

.pull {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.2;
  color: var(--paper);
  max-width: 24ch;
  margin: 0;
}

/* Menu list (rows, not cards) */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-top: 2px solid var(--ink);
}

.menu-list li:last-child {
  border-bottom: 2px solid var(--ink);
}

.menu-list h3 {
  margin-bottom: var(--s1);
}

.menu-list p {
  margin: 0;
  color: var(--ink-soft);
}

.price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--brick);
  white-space: nowrap;
}

/* Visit */
.visit__grid {
  display: grid;
  gap: var(--s6);
}

@media (min-width: 860px) {
  .visit__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.facts {
  margin: 0;
  display: grid;
  gap: var(--s1) 0;
}

.facts dt {
  font-weight: 600;
  margin-top: var(--s2);
}

.facts dt:first-child {
  margin-top: 0;
}

.facts dd {
  margin: 0;
}

/* Inner page intro */
.page-intro {
  padding: var(--s8) 0 var(--s4);
}

.page-intro p {
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.2rem);
}

/* Menu page */
.sandwich-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s6) var(--s4);
}

@media (min-width: 720px) {
  .sandwich-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sandwich {
  border-top: 2px solid var(--ink);
  padding-top: var(--s3);
}

.sandwich p {
  color: var(--ink-soft);
}

.sandwich__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s2);
  margin-top: var(--s2);
}

.veg {
  font-weight: 600;
  font-size: .95rem;
  color: var(--green);
}

.note {
  border-left: 4px solid var(--mustard);
  padding-left: var(--s2);
  color: var(--ink-soft);
}

/* About */
.about-grid {
  display: grid;
  gap: var(--s6);
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s8) 0 var(--s4);
  margin-top: var(--s12);
}

.site-footer a {
  color: var(--paper);
}

.site-footer a:hover {
  color: var(--mustard);
}

.foot-grid {
  display: grid;
  gap: var(--s6);
}

@media (min-width: 720px) {
  .foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.site-footer p {
  margin: 0 0 var(--s1);
  max-width: none;
}

.site-footer .foot-h {
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  color: var(--mustard);
  margin-bottom: var(--s1);
}

.foot-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
}

.foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-nav li {
  margin-bottom: var(--s1);
}

.legal {
  margin-top: var(--s6);
  padding-top: var(--s3);
  border-top: 3px solid transparent;
  background: var(--stitch) top / 100% 3px no-repeat;
  padding-top: var(--s3);
  font-size: .9rem;
  color: #D9D2BF;
}

/* Buttons and links fill width on small phones */
@media (max-width: 380px) {
  .btn {
    width: 100%;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
