/* Simple Star, Blackburn
   Palette sampled from the shop's own fascia board and its two real food photographs.
   See ../../_brief.md for the derivation of every token below. */

:root {
  --blue: #0b5fc7;        /* the fascia board */
  --blue-deep: #02356b;   /* the parasol in shade */
  --blue-line: #cfe0f6;   /* hairlines and card edges on light */
  --ink: #151a21;         /* the shop door */
  --ink-soft: #4b5563;
  --paper: #ffffff;
  --wash: #eef3fa;
  --gold: #d9bc55;        /* melted cheddar in their own panini photograph */

  /* gold is 1.9:1 on white, so it is never type on a light surface - only on --blue-deep */

  --measure: 62ch;
  --shell: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --font-script: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
/* on the deep blue panels the gold ring is the readable one; on white, blue reads better */
.panel :focus-visible, .board :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue-deep); color: #fff; padding: 0.75rem 1.1rem;
  font-weight: 600; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

.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;
}

/* ---------- the star sparkle: the mark on their own sign ---------- */

.sparkle { display: inline-block; vertical-align: middle; fill: currentColor; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blue-line);
}

.site-header .shell {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px;
}

.wordmark {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  line-height: 1;
  color: var(--blue);
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  white-space: nowrap;
}
.wordmark:hover { color: var(--blue-deep); }

.site-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem);
}
/* :not(.btn) matters: a bare `.site-nav a` rule outranks `.btn-primary` on specificity and
   would repaint the call button's white label in body ink. */
.site-nav a:not(.btn) {
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
  text-decoration: none; padding: 0.6rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--blue); border-bottom-color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.7rem 1.35rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease),
              border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-gold { background: var(--gold); color: #241d05; }
.btn-gold:hover { background: #e8ce70; color: #241d05; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

.header-call { display: none; }

/* ---------- hero: the fascia board over the shopfront ---------- */

.hero { position: relative; background: var(--blue-deep); overflow: hidden; }

/* Framed on the lower half of the photograph: the windows, the door and the pavement tables.
   The real fascia board is deliberately cropped out of shot, because the blue panel below
   stands in its place - two "Simple Star" signs in one view would read as a mistake. */
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
}
/* The scrim exists to hold AA over a photograph, not for decoration. Two layers: a vertical
   one for the whole panel, and a horizontal one weighted to the left, where all the text
   sits - measured at the lightest pixel behind the copy, a window reflection, which the
   vertical layer alone left at 4.1:1. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(2, 34, 71, 0.32) 0%, rgba(2, 34, 71, 0.22) 42%, rgba(2, 34, 71, 0) 68%),
    linear-gradient(180deg, rgba(2, 34, 71, 0.74) 0%, rgba(2, 34, 71, 0.68) 38%, rgba(2, 34, 71, 0.9) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.25rem, 5vw, 3.5rem);
}

.fascia {
  background: var(--blue);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.75);
  padding: clamp(1.75rem, 4.5vw, 3rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  max-width: 780px;
  position: relative;
}
/* The sign scatters sparkles around the script, so these sit in the wordmark band only -
   never over the strapline, where at 390px they read as a rendering fault rather than a mark. */
.fascia .sparkle { position: absolute; color: rgba(255, 255, 255, 0.9); }
.fascia .s1 { top: 10%; left: 6%; width: 18px; height: 18px; }
.fascia .s2 { top: 30%; right: 7%; width: 26px; height: 26px; }
.fascia .s3 { top: 13%; right: 22%; width: 12px; height: 12px; opacity: 0.75; }

.fascia h1 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 1.6rem + 7vw, 5.75rem);
  line-height: 1;
  color: #fff;
  letter-spacing: 0;
  margin: 0 0 0.55rem;
}
.fascia p {
  margin: 0;
  font-weight: 600;
  font-size: clamp(0.82rem, 0.7rem + 0.6vw, 1.15rem);
  letter-spacing: clamp(0.14em, 0.4vw, 0.24em);
  text-transform: uppercase;
  color: #fff;
}

.hero-copy {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 46ch;
  color: #eaf1fb;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
}
.hero-copy strong { color: #fff; font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.hero-facts {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 0 clamp(1rem, 3vw, 2.25rem);
  padding-block: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin-top: clamp(2rem, 5vw, 3rem);
  color: #dce8f8; font-size: 0.95rem;
}
.hero-facts { list-style: none; padding-inline-start: 0; }
.hero-facts li { padding: 0.35rem 0; }
.hero-facts b { color: #fff; font-weight: 600; }

/* ---------- generic section furniture ---------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-wash { background: var(--wash); }

.eyebrow {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 0.7rem;
}
.eyebrow .sparkle { width: 14px; height: 14px; color: var(--gold); }

.section h2 {
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 3rem);
  max-width: 20ch;
}
.section .lede {
  margin: 1rem 0 0;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- all-day breakfast ---------- */

.breakfasts {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0; list-style: none;
}
@media (min-width: 640px) { .breakfasts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .breakfasts { grid-template-columns: repeat(4, 1fr); } }

.breakfast {
  background: var(--paper);
  border: 1px solid var(--blue-line);
  border-radius: 14px;
  padding: 1.4rem 1.35rem 1.5rem;
  display: flex; flex-direction: column;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.breakfast:hover { border-color: var(--blue); box-shadow: 0 14px 30px -20px rgba(11, 95, 199, 0.7); }
.breakfast h3 {
  font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.breakfast .price {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2rem; line-height: 1; color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.85rem;
  display: block;
}
.breakfast .price::after {
  content: ""; display: block; width: 42px; height: 4px;
  background: var(--gold); border-radius: 2px; margin-top: 0.7rem;
}
.breakfast p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.breakfast-note {
  margin-top: 1.6rem; font-size: 0.95rem; color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- the price board ---------- */

.board { background: var(--blue-deep); color: #e9f0fa; }
.board h2 { color: #fff; }
.board .eyebrow { color: var(--gold); }
.board .eyebrow .sparkle { color: var(--gold); }
.board .lede { color: #c4d6ee; }

.board-grid {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  display: grid; gap: clamp(1.75rem, 4vw, 2.75rem) clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.course h3 {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.6rem; margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(217, 188, 85, 0.4);
}
.course > p {
  margin: 0.75rem 0 0; font-size: 0.9rem; color: #b7cbe6; font-style: italic;
}
.course ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.course li {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.course li:last-child { border-bottom: 0; }
.course .item { flex: 1 1 auto; }
.course .item span { display: block; font-size: 0.86rem; color: #a9c1e0; margin-top: 0.1rem; }
.course .cost {
  flex: 0 0 auto; font-weight: 700; color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.board-foot {
  margin-top: clamp(2.25rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
}
.board-foot p { margin: 0; font-size: 0.95rem; color: #c4d6ee; max-width: 48ch; }

/* ---------- in the shop ---------- */

.shop-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) { .shop-grid { grid-template-columns: 1.05fr 0.95fr; } }

.shop-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.shop-points h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.shop-points p { margin: 0; color: var(--ink-soft); max-width: 48ch; }
.shop-points li { padding-left: 1.5rem; position: relative; }
.shop-points li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 8px; height: 8px; border-radius: 2px; background: var(--gold);
  transform: rotate(45deg);
}

.shop-photos { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.shop-photos figure { margin: 0; }
.shop-photos img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 12px 12px 4px 4px;
  border: 1px solid var(--blue-line);
}
.shop-photos figcaption {
  margin-top: 0.5rem; font-size: 0.85rem; color: var(--ink-soft);
}

/* ---------- find us ---------- */

.visit-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .visit-grid { grid-template-columns: 1fr 1fr; } }

.visit-card {
  background: var(--paper);
  border: 1px solid var(--blue-line);
  border-left: 4px solid var(--blue);
  border-radius: 4px 10px 10px 4px;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.visit-card h3 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.visit-card address { font-style: normal; color: var(--ink-soft); }
.visit-card .lines { margin: 0 0 1.25rem; }
.visit-card .lines a { font-weight: 600; }

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font-weight: 600; padding-bottom: 0.6rem; }
.hours th, .hours td { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid var(--blue-line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--ink-soft); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.visit-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.35rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--blue-deep); color: #cddef2;
  padding-block: clamp(2.75rem, 6vw, 4rem) 1.75rem;
}
.site-footer .wordmark { color: #fff; font-size: 2.4rem; padding-left: 0; }
.site-footer a { color: #dbe8f8; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid; gap: 2rem clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-grid h2 {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 0.9rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-grid p { margin: 0 0 0.6rem; }

.footer-note {
  margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  font-size: 0.85rem; color: #a9c1e0;
}
.footer-note .sparkle { width: 12px; height: 12px; color: var(--gold); }
/* the only tappable thing in this strip is the phone number on the 404 - give it a real target */
.footer-note a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* the 404 footer carries the note alone, so it does not need the three-column block's air */
.site-footer--slim { padding-block: 0.75rem 1.25rem; }
.site-footer--slim .footer-note { margin-top: 0; border-top: 0; padding-top: 0; }

/* ---------- 404 ---------- */

.oops {
  min-height: 70vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding-block: 4rem;
}
.oops h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); margin-bottom: 0.75rem; }
.oops p { max-width: 44ch; color: var(--ink-soft); margin: 0 0 1.75rem; }
.oops .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- reveal, kept small and switched off for reduced motion ---------- */

/* The hide-then-reveal only exists once JS has confirmed it can turn it back on: the class
   below is set by the inline script in <head>. Without JS, or if the script fails, nothing
   is ever hidden - which is the bug the old site shipped, and this build will not repeat. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- breakpoints ---------- */

@media (min-width: 720px) {
  .header-call { display: inline-flex; }
  .hero-facts li { padding: 0.35rem 0; }
}

@media (max-width: 719px) {
  .site-nav a:not(.header-call) { font-size: 0.9rem; }
}
