/* =========================================================================
   Spitfire Pizza — inherited brand world (see DESIGN.md)
   ========================================================================= */

:root{
  --navy:#1F2A44;
  --bone:#F2E6D5;
  --pink:#E91E63;
  --ink:#111111;

  /* Brand pink is a fill colour, not a text colour: at #E91E63 it reaches
     only 3.5:1 on bone and 3.3:1 on navy, so it is legible as display type
     but fails small text. These two shifts of the same hue carry pink into
     body sizes without leaving the palette. */
  --pink-deep:#B31347;   /* small text on bone  — 5.5:1 */
  --pink-lift:#FF6A96;   /* small text on navy  — 5.3:1 */
  --pink-fill:#C2154E;   /* filled chip needing white text — 6.0:1 */

  /* tinted secondaries — never gray, always drawn from the ground's hue */
  --on-navy-dim:#B9C2D4;
  --on-bone-dim:#5B5346;

  --display:"Bebas Neue", "Haettenschweiler", "Arial Narrow", sans-serif;
  --body:"Space Grotesk", ui-sans-serif, system-ui, sans-serif;

  --gut:clamp(1.25rem, 4vw, 3.5rem);
  --ease:cubic-bezier(.16,1,.3,1);
}

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

html{ -webkit-text-size-adjust:100% }

body{
  margin:0;
  background:var(--bone);
  color:var(--navy);
  font-family:var(--body);
  font-size:clamp(.95rem,.9rem + .25vw,1.0625rem);
  line-height:1.6;
  overflow-x:hidden;
}

/* paper grain over the bone ground */
body::before{
  content:"";position:fixed;inset:0;z-index:9999;pointer-events:none;
  opacity:.035;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1,h2,h3{
  font-family:var(--display);
  font-weight:400;
  letter-spacing:.005em;
  line-height:.86;
  text-wrap:balance;
  margin:0;
}

p{margin:0}

.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
    clip:rect(0 0 0 0);white-space:nowrap;border:0}

.skip{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--navy);color:var(--bone);padding:.75rem 1.25rem;
  font-family:var(--display);letter-spacing:.08em;
}
.skip:focus{left:0}

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

/* ------------------------------ buttons ------------------------------ */

.btn{
  display:inline-flex;align-items:center;gap:.7em;
  font-family:var(--display);font-size:1.0625rem;letter-spacing:.09em;
  text-decoration:none;text-transform:uppercase;
  transition:transform .4s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn svg{width:1.45em;height:auto;flex:none;overflow:visible}

.btn--solid{
  background:var(--navy);color:var(--bone);
  padding:.95em 1.7em;border:2px solid var(--navy);
}
.btn--solid svg path{stroke:var(--pink)}
.btn--solid:hover{background:var(--pink);border-color:var(--pink);color:#fff}
.btn--solid:hover svg path{stroke:#fff}

.btn--pill{
  background:var(--navy);color:var(--bone);
  padding:.72em 1.35em;font-size:.95rem;
}
.btn--pill svg path{stroke:var(--pink)}
.btn--pill:hover{background:var(--pink);color:#fff}
.btn--pill:hover svg path{stroke:#fff}

.btn--underline{
  color:var(--navy);
  padding-bottom:.28em;
  border-bottom:3px solid var(--pink);
}
.btn--underline:hover{color:var(--pink)}
.btn--light{color:var(--bone)}
.btn--light:hover{color:var(--pink)}

/* ------------------------------- nav -------------------------------- */

/* The nav floats over the hero so the photo panel can bleed to the very
   top edge, as it does in the approved mock. */
.nav{
  position:absolute;inset:0 0 auto;z-index:20;
  display:flex;align-items:center;gap:var(--gut);
  padding:1.1rem var(--gut);
}
.nav__mark img{width:clamp(64px,7vw,104px);height:auto}

.nav__links{
  display:flex;gap:clamp(1.1rem,2.6vw,2.9rem);
  margin-inline:auto;
}
.nav__links a{
  font-family:var(--display);font-size:1.0625rem;letter-spacing:.11em;
  text-transform:uppercase;text-decoration:none;color:var(--navy);
  padding-bottom:.2em;border-bottom:2px solid transparent;
  transition:border-color .25s, color .25s;
}
.nav__links a:hover,.nav__links a[aria-current]{border-bottom-color:var(--pink);color:var(--pink)}

/* ------------------------------- hero ------------------------------- */

.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,.72fr) minmax(0,1fr);
  align-items:stretch;
  min-height:min(94vh,860px);
}

/* copy side is itself a rail + main column, matching the mock's structure:
   brand marginalia lives in the rail and never collides with the headline */
.hero__copy{
  display:grid;
  grid-template-columns:clamp(84px,8vw,124px) minmax(0,1fr);
  column-gap:clamp(1rem,2.4vw,2.25rem);
  align-content:center;
  padding:clamp(7rem,11vw,10rem) clamp(1rem,3vw,3rem) clamp(2.5rem,5vw,4rem) var(--gut);
}

.rail{display:flex;flex-direction:column;gap:clamp(1.5rem,3vw,2.4rem);padding-top:.4rem}

.tagline{
  font-family:var(--body);font-size:.72rem;font-weight:500;
  letter-spacing:.1em;text-transform:uppercase;line-height:1.75;
  text-wrap:nowrap;
  color:var(--on-bone-dim);
  padding-bottom:.7rem;
  border-bottom:3px solid var(--pink);
}

/* script tag reads as a sticker pressed into the margin */
.rail__script{
  width:clamp(70px,6.4vw,100px);height:auto;
  transform:rotate(-7deg);transform-origin:left top;
}

.hero__main{display:flex;flex-direction:column;align-items:flex-start;min-width:0}

.hero__title{
  position:relative;
  margin:0;
  font-size:clamp(3.4rem,8.6vw,7.6rem);
  letter-spacing:-.005em;
}

.brush{
  display:block;width:min(74%,420px);height:.16em;
  margin-top:.1em;fill:var(--pink);
}

.hero__lede{
  margin-top:clamp(1.6rem,3vw,2.4rem);
  max-width:34ch;line-height:1.55;
}

.hero__actions{
  display:flex;flex-wrap:wrap;align-items:center;
  gap:clamp(1rem,3vw,2.2rem);
  margin-top:clamp(1.5rem,3vw,2.2rem);
}

/* ------------------------- live trading status ------------------------- */

.status{
  display:inline-flex;align-items:center;gap:.6rem;
  margin-top:clamp(1.4rem,2.6vw,1.9rem);
  padding:.5rem .95rem .5rem .8rem;
  border:2px solid var(--navy);
  font-size:.82rem;font-weight:500;letter-spacing:.04em;
}
.status__dot{
  width:.62rem;height:.62rem;border-radius:50%;
  background:var(--on-bone-dim);flex:none;
}
.status[data-state="open"]{border-color:var(--pink)}
.status[data-state="open"] .status__dot{
  background:var(--pink);
  box-shadow:0 0 0 0 rgb(233 30 99 / .55);
  animation:ping 2.4s var(--ease) infinite;
}
.status[data-state="closed"] .status__dot{background:var(--navy)}

@keyframes ping{
  0%{box-shadow:0 0 0 0 rgb(233 30 99 / .55)}
  70%,100%{box-shadow:0 0 0 .7rem rgb(233 30 99 / 0)}
}

/* ------------------------------ hero art ------------------------------ */

.hero__art{position:relative;overflow:hidden;background:var(--navy)}

/* crop past the empty sky so the skyline and the graffitied brick — the
   two things the frame is actually about — fill the panel */
.hero__skyline{
  width:100%;height:100%;object-fit:cover;object-position:62% 88%;
  transform:scale(1.18);transform-origin:62% 88%;
}

/* the one authored motion moment: the wordmark sprays on */
/* sits low and right so it reads as painted on the brick, not on the sky */
.hero__graf{
  position:absolute;left:38%;bottom:9%;
  width:60%;height:auto;
  filter:drop-shadow(0 3px 10px rgb(17 17 17 / .35));
  clip-path:inset(0 0 0 0);
}
.hero__graf.is-armed{
  clip-path:inset(0 100% 0 0);
}
.hero__graf.is-spraying{
  clip-path:inset(0 0 0 0);
  transition:clip-path 1.15s var(--ease) .25s;
}

/* solid chip, not a text-shadow — the duotone ground swings from near-black
   to bone and only an opaque backing keeps this readable across the crop */
.hero__place{
  position:absolute;right:1.25rem;bottom:1.25rem;
  display:flex;align-items:center;gap:.5rem;
  padding:.55rem .9rem;
  background:var(--navy);
  font-size:.74rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;
  color:var(--bone);
}
.hero__place svg{width:.8rem;height:auto;fill:var(--pink);flex:none}

/* ------------------------------ slices ------------------------------ */

.slices{
  position:relative;
  background:var(--navy);color:var(--bone);
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,.85fr) minmax(0,1.1fr);
  gap:clamp(1.75rem,4vw,3.5rem);
  align-items:center;
  padding:clamp(3rem,6vw,5rem) var(--gut);
}
.slices::before{ /* fine noise over navy */
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23m)'/%3E%3C/svg%3E");
}
.slices > *{position:relative}

.slices__copy h2{font-size:clamp(2.1rem,4.4vw,3.4rem)}
.slices__copy p{
  margin-top:1.4rem;max-width:38ch;
  color:var(--on-navy-dim);line-height:1.65;
}
.slices__copy .btn{margin-top:1.9rem}

.slices__photo{margin:0;position:relative}
/* close to the source ratio so the slice isn't guillotined by the crop */
.slices__photo img{width:100%;object-fit:cover;aspect-ratio:5/4}

.tag{
  position:absolute;left:-7%;bottom:-6%;
  background:var(--pink-fill);color:#fff;
  padding:.9rem 1.15rem;
  transform:rotate(-5deg);
  box-shadow:0 8px 20px rgb(17 17 17 / .38);
}
.tag__name{
  display:block;font-family:var(--display);
  font-size:1.4rem;letter-spacing:.03em;line-height:.94;text-transform:uppercase;
}
.tag__note{
  display:block;margin-top:.35rem;
  font-size:.68rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
}

.traits{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(1rem,2.4vw,2rem);
  align-items:stretch;
}
/* column layout with the rule pushed to a shared baseline, so uneven copy
   lengths don't leave the pink rules ragged across the row */
.traits li{
  display:flex;flex-direction:column;
  border-bottom:3px solid var(--pink);
}
.traits h3{font-size:1.35rem;margin-top:1rem;letter-spacing:.02em}
.traits p{
  margin-top:.65rem;font-size:.86rem;line-height:1.65;
  color:var(--on-navy-dim);
  padding-bottom:1.1rem;
}

.ico{
  width:2.6rem;height:2.6rem;
  fill:none;stroke:var(--pink);stroke-width:2.4;
  stroke-linejoin:round;stroke-linecap:round;
}
.ico .fill{fill:var(--pink);stroke:none}

/* ------------------------------- story ------------------------------- */

.story{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:clamp(1.5rem,5vw,4rem) clamp(1.5rem,5vw,4rem);
  align-items:start;
  padding:clamp(3.5rem,7vw,6rem) var(--gut) clamp(3rem,6vw,4.5rem);
}
.story h2{font-size:clamp(2.4rem,6vw,4.6rem)}
.story__body p{max-width:62ch;line-height:1.7}
.story__body p + p{margin-top:1.15rem}
/* right-aligned against the left-aligned heading above: the diagonal keeps
   the band from reading as a half-empty page */
.story__quote{
  grid-column:1 / -1;
  text-align:right;
  font-family:var(--display);
  font-size:clamp(1.9rem,5.4vw,4rem);line-height:.92;
  padding-top:clamp(1.75rem,3.5vw,2.75rem);
  margin-top:clamp(.5rem,2vw,1.5rem);
  border-top:3px solid var(--pink);
}

/* ------------------------------- hours ------------------------------- */

.hours{
  background:var(--navy);color:var(--bone);
  padding:clamp(3.5rem,7vw,6rem) var(--gut);
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:clamp(2rem,5vw,4.5rem);
  align-items:start;
}
.hours h2{font-size:clamp(2.2rem,5vw,3.8rem)}
.hours__head p{
  margin-top:1.3rem;max-width:34ch;
  color:var(--on-navy-dim);line-height:1.65;
}
.hours__walkin{
  padding-top:1.3rem;
  border-top:1px solid rgb(242 230 213 / .18);
}
.hours__head .btn{margin-top:1.6rem}

.sched{width:100%;border-collapse:collapse;font-size:.92rem}
.sched th,.sched td{text-align:left;padding:.85rem .6rem;vertical-align:baseline}
.sched thead th{
  font-family:var(--body);font-size:.66rem;font-weight:500;
  letter-spacing:.16em;text-transform:uppercase;
  color:var(--on-navy-dim);
  border-bottom:2px solid var(--pink);
  padding-bottom:.6rem;
}
.sched tbody th{
  font-family:var(--display);font-weight:400;
  font-size:1.5rem;letter-spacing:.06em;text-transform:uppercase;
  width:5.5rem;
}
.sched tbody tr{border-bottom:1px solid rgb(242 230 213 / .16)}
.sched tbody tr:last-child{border-bottom:0}
.sched .shut{color:var(--on-navy-dim)}
.sched .straight em{
  font-style:normal;color:var(--on-navy-dim);
  font-size:.74rem;letter-spacing:.13em;text-transform:uppercase;
  margin-left:.6rem;
}
/* today's row: a bone wash reads clean over navy where a pink wash goes
   muddy purple; the pink stays on the day name where it carries meaning */
.sched tbody tr.is-today{background:rgb(242 230 213 / .07)}
.sched tbody tr.is-today th{color:var(--pink-lift)}
.sched tbody tr.is-today td{color:var(--bone)}

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

.find{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(1.75rem,4vw,3.5rem);
  padding:clamp(3rem,6vw,4.5rem) var(--gut) clamp(2rem,4vw,3rem);
}
.find__col h3{
  font-size:1.05rem;letter-spacing:.13em;color:var(--pink-deep);
  font-family:var(--body);font-weight:700;text-transform:uppercase;
  margin-bottom:1.1rem;
}
.find address{font-style:normal;line-height:1.75}
.find .btn{margin-top:1.2rem}

.mini{display:grid;grid-template-columns:auto 1fr;gap:.45rem 1.6rem;margin:0}
.mini dt{font-weight:500}
.mini dd{margin:0;color:var(--on-bone-dim)}

.ig{
  display:inline-flex;align-items:center;gap:.65rem;
  color:var(--navy);text-decoration:none;font-weight:500;
  transition:color .25s;
}
.ig svg{
  width:1.5rem;height:1.5rem;flex:none;
  fill:none;stroke:var(--navy);stroke-width:1.7;
  transition:stroke .25s;
}
.ig svg .fill{fill:var(--navy);stroke:none;transition:fill .25s}
.ig:hover{color:var(--pink)}
.ig:hover svg{stroke:var(--pink)}
.ig:hover svg .fill{fill:var(--pink)}

.find__seal{
  position:absolute;right:var(--gut);bottom:clamp(1rem,3vw,2rem);
  width:clamp(58px,6vw,86px);height:auto;opacity:.9;
}

/* ------------------------------- foot ------------------------------- */

.foot{
  display:flex;flex-wrap:wrap;gap:.6rem 2rem;
  justify-content:space-between;
  padding:1.5rem var(--gut) 2.25rem;
  border-top:1px solid rgb(31 42 68 / .18);
  font-size:.76rem;letter-spacing:.05em;
  color:var(--on-bone-dim);
}
.foot__note{text-transform:uppercase;letter-spacing:.15em}

/* ============================ responsive ============================ */

@media (max-width:1080px){
  .slices{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .traits{grid-column:1 / -1;}
}

@media (max-width:860px){
  /* stacked layout: nav returns to normal flow above the hero */
  .nav{position:static;flex-wrap:wrap;gap:.9rem 1.5rem;justify-content:space-between}
  .nav__links{order:3;width:100%;margin-inline:0;
              justify-content:space-between;gap:.75rem;
              padding-top:.9rem;border-top:1px solid rgb(31 42 68 / .16)}
  .nav__links a{font-size:.95rem;letter-spacing:.07em}

  .hero{grid-template-columns:1fr;min-height:0}
  .hero__art{min-height:clamp(300px,58vw,430px);order:2}
  .hero__copy{
    order:1;grid-template-columns:1fr;
    padding:clamp(1.25rem,4vw,2rem) var(--gut) clamp(2rem,6vw,3rem);
  }
  /* rail unwinds into a horizontal strip above the headline */
  .rail{
    flex-direction:row;align-items:flex-end;justify-content:space-between;
    gap:1.5rem;padding-top:0;margin-bottom:1.75rem;
  }
  .rail__script{width:clamp(62px,15vw,86px);transform:rotate(-5deg);transform-origin:center}
  .brush{width:min(88%,320px)}

  .slices{grid-template-columns:1fr;gap:2.5rem}
  .tag{left:auto;right:4%;bottom:-1.5rem}
  .traits{grid-template-columns:1fr;gap:0}
  .traits li{border-bottom:1px solid rgb(242 230 213 / .2);padding:1.5rem 0}
  .traits li:last-child{border-bottom:3px solid var(--pink)}
  .traits h3{margin-top:.75rem}
  .traits p{padding-bottom:0}
  .ico{width:2.2rem;height:2.2rem}

  .story,.hours{grid-template-columns:1fr}
  .story{padding-top:clamp(3rem,8vw,4rem)}

  .find{grid-template-columns:1fr;gap:2.25rem;padding-bottom:5.5rem}
  .find__seal{right:var(--gut);bottom:1.5rem}
}

@media (max-width:520px){
  .sched{font-size:.84rem}
  .sched th,.sched td{padding:.7rem .35rem}
  .sched tbody th{width:3.6rem;font-size:1.15rem}
  .sched .straight em{display:block;margin:.2rem 0 0}
  .hero__actions{gap:1rem}
  .btn--solid{padding:.85em 1.35em}
  .foot{flex-direction:column}
}

/* --------------------------- reduced motion --------------------------- */

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;animation-iteration-count:1 !important;
    transition-duration:.001ms !important;scroll-behavior:auto !important;
  }
  .hero__graf.is-armed{clip-path:inset(0 0 0 0)}
}

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