/* ==========================================================================
   Full Send Burritos — design tokens + primitives
   Implements "Kevin_Foxcroft_Burrito_Blog_Design_System.docx" (Neon Field Journal)
   ========================================================================== */

:root {
  /* Color tokens */
  --salsa-red:       #F04A35;
  --roadtrip-blue:   #176BCE;
  --marigold:        #FFC928;
  --taillight:       #FF7A1A;
  --market-teal:     #00A6A6;
  --prickly-pink:    #F45B9A;
  --salsa-verde:     #197A55;
  --clay-brown:      #6B3E26;
  --tortilla-cream:  #FFF4D8;
  --warm-paper:      #FFFCF4;
  --charcoal-ink:    #24211F;
  --reading-rule:    #E3D4B8;
  --paper-blue:      #E8F1FB;
  --paper-teal:      #E6F6F6;
  --disabled-bg:     #EFE7D3;
  --disabled-fg:     #6E675D;

  /* Type */
  --display: 'Bowlby One SC', Impact, 'Arial Black', sans-serif;
  --body: 'Atkinson Hyperlegible', Inter, Arial, sans-serif;
  --note: Caveat, 'Comic Sans MS', cursive;
  --mono: 'IBM Plex Mono', Consolas, monospace;

  /* Shape */
  --r-card: 16px;
  --r-photo: 20px;
  --r-pill: 99px;
  --shadow: 6px 6px 0 rgba(36, 33, 31, .18);
  --shadow-hard: 6px 6px 0 rgba(36, 33, 31, .3);
  --shadow-btn: 4px 4px 0 rgba(36, 33, 31, .25);

  /* Layout */
  --max: 1280px;
  --read: 720px;
  --pad: 32px;
}

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

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

body {
  margin: 0;
  background: var(--warm-paper);
  color: var(--charcoal-ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  position: relative;
}

/* Route-map dot texture, 6% — must never compete with copy */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: radial-gradient(var(--clay-brown) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

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

a { color: var(--roadtrip-blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--salsa-red); }

:focus-visible {
  outline: 3px solid var(--roadtrip-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 52px); line-height: .98; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 4vw, 32px); line-height: 1.05; margin: 0 0 12px; }
h3 { font-size: clamp(20px, 3vw, 24px); line-height: 1.1; margin: 0 0 10px; }
p  { text-wrap: pretty; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 60;
  background: var(--charcoal-ink); color: var(--tortilla-cream);
  padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 16px; color: var(--tortilla-cream); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.read { max-width: var(--read); }

.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; margin: 0 0 14px;
}
.lede { font-size: clamp(17px, 2.2vw, 19px); line-height: 1.6; }
.body-copy { font-size: 18px; line-height: 1.6; }
.note {
  font-family: var(--note); font-size: 28px; line-height: 1.15;
  color: var(--salsa-red); margin: 16px 0 0;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 2px solid var(--charcoal-ink); background: var(--warm-paper); }
.site-header .wrap {
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--charcoal-ink); flex: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.brand-type { display: flex; flex-direction: column; align-items: stretch; }
.brand-type b {
  font-family: var(--display); font-size: 21px; font-weight: 400; letter-spacing: .01em;
  /* Bowlby One SC needs room for its cap height — .9 clipped the glyph tops */
  line-height: 1.05; padding-top: 1px;
}
.brand-type span {
  font-family: var(--mono); font-size: 11px; line-height: 1.3; color: var(--clay-brown);
  text-align: justify; text-align-last: justify;
}
.site-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  border: 2px solid transparent; border-radius: var(--r-pill);
  padding: 8px 14px; font-weight: 700; font-size: 15px;
  text-decoration: none; color: var(--charcoal-ink);
}
.site-nav a:hover { background: var(--marigold); border-color: var(--charcoal-ink); color: var(--charcoal-ink); }
.site-nav a[aria-current="page"] { background: var(--charcoal-ink); border-color: var(--charcoal-ink); color: var(--tortilla-cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--charcoal-ink); border-radius: var(--r-pill);
  font-family: var(--body); font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, background-color 120ms ease-out;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 rgba(36, 33, 31, .25); }
.btn-primary { background: var(--salsa-red); color: #fff; }
.btn-primary:hover { background: var(--taillight); color: #fff; }
.btn-blue { background: var(--roadtrip-blue); color: #fff; }
.btn-blue:hover { background: var(--charcoal-ink); color: #fff; }
.btn-ghost { background: var(--warm-paper); color: var(--charcoal-ink); }
.btn-ghost:hover { background: var(--marigold); color: var(--charcoal-ink); }
.btn-ink { background: var(--charcoal-ink); color: var(--tortilla-cream); }
.btn-ink:hover { background: var(--salsa-red); color: #fff; }

/* ---------- Cards & panels ---------- */
.card {
  border: 2px solid var(--charcoal-ink); border-radius: var(--r-card);
  background: var(--tortilla-cream); box-shadow: var(--shadow);
}
.panel {
  border: 1px solid var(--reading-rule); border-radius: 14px;
  background: var(--tortilla-cream); padding: 18px 20px;
}
.card-link { display: block; text-decoration: none; color: inherit; transition: transform 160ms ease-out, box-shadow 160ms ease-out; }
.card-link:hover { transform: translateY(-4px); box-shadow: 4px 4px 0 rgba(36, 33, 31, .3); color: inherit; }
.card-link:hover h3 { color: var(--salsa-red); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

section { scroll-margin-top: 24px; }
.section { padding: 56px 0 0; }
.section-foot { padding-bottom: 64px; }

/* ---------- Hero bands ---------- */
.band { border-bottom: 2px solid var(--charcoal-ink); padding: 52px 0; }
.band-red   { background: var(--salsa-red);    color: var(--tortilla-cream); }
.band-blue  { background: var(--roadtrip-blue); color: var(--tortilla-cream); }
.band-teal  { background: var(--market-teal);  color: var(--charcoal-ink); }
.band-clay  { background: var(--clay-brown);   color: var(--tortilla-cream); }
.band-ink   { background: var(--charcoal-ink); color: var(--tortilla-cream); }
.band-gold  { background: var(--marigold);     color: var(--charcoal-ink); }
.band-red .eyebrow, .band-clay .eyebrow, .band-ink .eyebrow { color: var(--marigold); }
.band-red a, .band-blue a, .band-clay a, .band-ink a { color: var(--marigold); }
.band-red a:hover, .band-blue a:hover, .band-clay a:hover, .band-ink a:hover { color: #fff; }

/* ---------- Photo slots ----------
   The design system requires original photography of the actual dish.
   Until Kevin's photos are shot, each slot ships as a labelled brief
   carrying the intended alt text, so nothing misrepresents a real kitchen. */
.photo {
  border: 2px solid var(--charcoal-ink); border-radius: var(--r-photo);
  background: repeating-linear-gradient(135deg, #EFE2C4 0 9px, #F9F0DA 9px 18px);
  display: flex; align-items: flex-end; padding: 14px; overflow: hidden;
  box-shadow: var(--shadow-hard);
}
.photo-4x3 { aspect-ratio: 4 / 3; }
.photo-4x5 { aspect-ratio: 4 / 5; }
.photo-16x9 { aspect-ratio: 16 / 9; }
.photo-ticket {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.45; color: var(--clay-brown);
  background: var(--warm-paper); border: 1px solid var(--reading-rule);
  border-radius: 8px; padding: 8px 10px; margin: 0; max-width: 100%;
}
.photo-ticket b { display: block; letter-spacing: .1em; color: var(--charcoal-ink); margin-bottom: 3px; }

/* ---------- Badges, chips, stamps ---------- */
.badge {
  display: inline-flex; gap: 8px; align-items: center;
  border: 2px solid var(--charcoal-ink); border-radius: var(--r-pill);
  padding: 7px 14px; background: var(--warm-paper);
  font-weight: 700; font-size: 14.5px; color: var(--charcoal-ink);
}
.badge .dot { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.badge-verde { border-color: var(--salsa-verde); color: var(--salsa-verde); }
.badge-pending { border-style: dashed; border-color: var(--clay-brown); color: var(--clay-brown); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; flex: none;
  border: 2px solid var(--charcoal-ink); border-radius: 16px;
  background: var(--marigold); transform: rotate(-6deg);
  font-family: var(--mono); font-size: 28px; font-weight: 600;
}
.rank-sm { width: 46px; height: 46px; border-radius: 12px; font-size: 21px; }

.stamp {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 92px; height: 92px; flex: none;
  border: 2px dashed var(--clay-brown); border-radius: 18px;
  background: var(--warm-paper); color: var(--clay-brown);
  transform: rotate(-6deg); text-align: center;
}
.stamp b { font-family: var(--mono); font-size: 24px; font-weight: 600; line-height: 1; }
.stamp span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; margin-top: 4px; }

/* ---------- Data lists ---------- */
.facts { margin: 0; display: grid; gap: 12px; }
.facts > div {
  display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 16px;
  border-bottom: 1px solid var(--reading-rule); padding-bottom: 12px;
}
.facts dt {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--clay-brown); padding-top: 3px;
}
.facts dd { margin: 0; font-size: 17px; line-height: 1.5; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0; }
.statgrid > div { border: 1px solid var(--reading-rule); border-radius: 12px; background: var(--warm-paper); padding: 12px; }
.statgrid dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-brown); margin: 0 0 6px; }
.statgrid dd { margin: 0; font-family: var(--mono); font-size: 18px; font-weight: 600; }
.statgrid dd.pending { font-size: 14px; font-weight: 400; color: var(--clay-brown); }

/* ---------- Tables ---------- */
.tbl-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
caption { text-align: left; font-size: 15px; color: var(--clay-brown); margin-bottom: 12px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--reading-rule); }
thead th {
  border-top: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--clay-brown); padding-bottom: 8px;
}

/* ---------- Breadcrumb ---------- */
.crumb { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }

/* ---------- Quote / callout ---------- */
.pull {
  border: 2px solid var(--charcoal-ink); border-radius: var(--r-card);
  background: var(--paper-teal); padding: 22px 24px; margin: 0 0 20px;
}
.pull p { margin: 0; font-size: 19px; line-height: 1.5; }

.gap-note {
  border: 2px dashed var(--clay-brown); border-radius: var(--r-card);
  background: var(--warm-paper); padding: 22px 24px;
}
.gap-note h3 { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal-ink); color: var(--tortilla-cream);
  border-top: 2px solid var(--charcoal-ink); padding: 44px 0 52px; margin-top: 72px;
}
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer a { color: var(--tortilla-cream); }
.site-footer a:hover { color: var(--marigold); }
.site-footer h2 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--marigold); margin: 0 0 10px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.site-footer p { font-size: 15px; line-height: 1.6; color: var(--reading-rule); margin: 0; }
.footer-brand { display: flex; flex-direction: column; align-items: stretch; width: 132px; margin: 0 0 16px; }
.footer-brand img { width: 84px; height: 84px; object-fit: contain; margin: 0 0 10px; }
.footer-brand b { font-family: var(--display); font-size: 21px; font-weight: 400; line-height: 1.05; }
.footer-brand span { font-family: var(--mono); font-size: 11px; line-height: 1.3; color: var(--marigold); text-align: justify; text-align-last: justify; }

/* ---------- Utility ---------- */
.mono { font-family: var(--mono); }
.muted { color: var(--clay-brown); }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }
.hr { border: 0; border-top: 1px solid var(--reading-rule); margin: 32px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .band { padding: 40px 0; }
  .section { padding-top: 44px; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .site-nav { width: 100%; }
  .site-nav a { font-size: 14.5px; padding: 8px 12px; }
}

@media (max-width: 560px) {
  :root { --pad: 16px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .brand img { width: 44px; height: 44px; }
  .note { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body::before, .site-nav, .btn { display: none; }
}

/* ---------- Stock photo slots ----------
   Wired to img/stock/*.jpg (see ENVATO-PICKS.md). Until a file is dropped in,
   the ticket underneath shows through, so nothing renders as a broken image. */
.shot { position: relative; overflow: hidden; }
.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 1;
}
.shot .photo-ticket { position: relative; z-index: 0; }
.shot .credit {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; margin: 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  background: rgba(36, 33, 31, .82); color: var(--tortilla-cream);
  padding: 5px 8px; border-radius: 6px;
}
