/* ==========================================================================
   The Food Rant
   Palette and mark come from the approved brand kit: charcoal, warm white,
   burnt orange. The site commits to one dark look on purpose, so every color
   is painted explicitly rather than following the visitor's system theme.
   ========================================================================== */

:root {
  --ground:  #0E0C0A;
  --deep:    #080706;
  --panel:   #17140F;
  --panel-2: #1F1A13;
  --ink:     #F8F7F5;
  --ink-2:   #CBBBA5;
  --mute:    #96876F;
  --orange:  #E78F32;
  --hot:     #F7B061;
  --bulb:    #FFD84D;
  --rule:    #2A241C;
  --rule-2:  #3A3227;
  --nav-h:   5.3rem;
}

* { box-sizing: border-box; }

/* An explicit display on a class beats the user agent's [hidden] rule, so
   scripted hiding needs this to actually take effect. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--bulb);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--bulb); color: #16100A;
  padding: 0.7rem 1.1rem; font-weight: 700; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { max-width: 74rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.narrow { max-width: 62ch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

section { padding-block: clamp(2.8rem, 6vw, 4.6rem); }

/* --- Type ---------------------------------------------------------------- */

.eyebrow {
  font-family: "Bungee", "Archivo Black", sans-serif;
  font-size: 0.781rem;
  letter-spacing: 0.05em;
  color: var(--orange);
  margin: 0 0 1rem;
}

h1, h2, h3, h4 { color: var(--ink); }

.h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 0 1.4rem;
}

.h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 0 1.2rem;
}

.h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.h1 em, .h2 em, .h3 em { font-style: normal; color: var(--orange); }
.h1 .bulb, .h2 .bulb { color: var(--bulb); }

.lead { font-size: clamp(1rem, 1.5vw, 1.125rem); color: var(--ink-2); margin: 0 0 1rem; }
.lead:last-child { margin-bottom: 0; }
.lead-lg { font-size: clamp(1.05rem, 1.8vw, 1.31rem); line-height: 1.5; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: "Bungee", sans-serif;
  font-size: 0.813rem;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  background: var(--orange);
  color: #16100A;
  border: 0;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.btn:hover { background: var(--hot); transform: translateY(-1px); }

.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.btn.ghost:hover { background: transparent; color: var(--bulb); box-shadow: inset 0 0 0 1.5px var(--bulb); }

.btn.sm { padding: 0.62rem 1.1rem; font-size: 0.75rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Nav ----------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(14, 12, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.nav .brand { display: block; flex: 0 0 auto; }
.nav img { height: 3.4rem; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(0.85rem, 2.2vw, 1.9rem); }

.nav-links a {
  font-size: 0.813rem; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; color: var(--mute); white-space: nowrap;
  transition: color 120ms ease;
}

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

/* .nav-links a beats .btn on specificity, which was painting the nav button's
   label muted grey on orange. Contrast measured 1.40:1. */
.nav-links a.btn { color: #16100A; }

/* Language switcher */
.lang-switch {
  font-family: "Bungee", sans-serif;
  font-size: 0.688rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--rule-2);
  padding: 0.5rem 0.7rem;
  white-space: nowrap;
}
.lang-switch:hover { color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.nav-links a.btn:hover { color: #16100A; }
.nav-links a.btn.ghost { color: var(--ink); }
.nav-links a.btn.ghost:hover { color: var(--bulb); }

/* Mobile navigation. The toggle only exists when JavaScript is running, so
   with it off the links stay visible rather than becoming unreachable. */
.nav-toggle { display: none; }

@media (max-width: 46rem) {
  .nav img { height: 2.9rem; }
  :root { --nav-h: 4.6rem; }

  .nav .wrap { flex-wrap: wrap; row-gap: 0; }

  .has-js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: transparent;
    border: 0;
    box-shadow: inset 0 0 0 1.5px var(--rule-2);
    color: var(--ink);
    font-family: "Bungee", sans-serif;
    font-size: 0.688rem;
    letter-spacing: 0.05em;
    padding: 0.72rem 0.95rem;
    min-height: 44px;
    cursor: pointer;
  }

  .has-js .nav-toggle .bars { display: block; width: 1rem; height: 2px; background: currentColor; position: relative; }
  .has-js .nav-toggle .bars::before,
  .has-js .nav-toggle .bars::after {
    content: ""; position: absolute; left: 0; width: 1rem; height: 2px; background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }
  .has-js .nav-toggle .bars::before { top: -5px; }
  .has-js .nav-toggle .bars::after  { top: 5px; }
  .has-js .nav.is-open .nav-toggle .bars { background: transparent; }
  .has-js .nav.is-open .nav-toggle .bars::before { transform: translateY(5px) rotate(45deg); }
  .has-js .nav.is-open .nav-toggle .bars::after  { transform: translateY(-5px) rotate(-45deg); }

  .has-js .nav-links {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
  }
  .has-js .nav.is-open .nav-links { max-height: 26rem; }

  .has-js .nav-links a:not(.btn) {
    display: block;
    font-size: 1.06rem;
    padding: 0.95rem 0.2rem;
    min-height: 44px;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
  }
  .has-js .nav-links .btn {
    margin: 1rem 0 1.2rem;
    text-align: center;
    padding: 0.95rem 1.2rem;
    min-height: 44px;
  }

  /* Without JavaScript the links simply wrap under the logo. */
  .nav-links { flex-wrap: wrap; gap: 0.75rem 1.1rem; }
}

/* --- Starburst, taken from the mark and used as the page light source ----- */

.rays {
  position: absolute; top: -46%; left: 50%;
  width: min(180vw, 92rem); aspect-ratio: 1;
  transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg,
    rgba(231, 143, 50, 0) 0deg 5.2deg,
    rgba(231, 143, 50, 0.14) 5.2deg 5.9deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 60%);
  mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 60%);
  pointer-events: none;
}

.glow {
  position: absolute; top: -20rem; left: 50%;
  width: 54rem; height: 54rem; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(231, 143, 50, 0.22), rgba(231, 143, 50, 0) 60%);
  pointer-events: none;
}

/* --- Hero ---------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(2.4rem, 5vw, 3.6rem) clamp(2.4rem, 5vw, 3.6rem); }
.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 54rem) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .btns, .hero .tally { justify-content: center; }
  .hero-art { order: -1; }
  .hero .sub { margin-inline: auto; }
}

.hero-art { display: grid; place-items: center; }
.hero-art img { width: 100%; }
.hero .sub { max-width: 42ch; margin: 0 0 2rem; }

.page-hero { position: relative; overflow: hidden; padding-block: clamp(2.6rem, 6vw, 4.2rem) clamp(1.8rem, 4vw, 2.6rem); border-bottom: 1px solid var(--rule); }
.page-hero .wrap { position: relative; }
.page-hero .sub { max-width: 54ch; margin: 0; }

.tally {
  display: inline-flex; align-items: center; gap: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(231, 143, 50, 0.45);
  padding: 0.42rem 0.85rem;
  font-family: "Bungee", sans-serif;
  font-size: clamp(0.625rem, 1.05vw, 0.75rem); letter-spacing: 0.04em;
  color: var(--hot); margin-bottom: 1.5rem; max-width: 100%;
}

.tally .dot {
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--hot);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(247, 176, 97, 0.6); }
  70%  { box-shadow: 0 0 0 0.65rem rgba(247, 176, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247, 176, 97, 0); }
}

/* --- Marquee ------------------------------------------------------------- */

.marq {
  background: var(--orange); color: #16100A;
  border-block: 2px solid var(--deep);
  overflow: hidden; padding-block: 0.85rem;
}

.marq-track { display: flex; gap: 2.5rem; width: max-content; animation: slide 42s linear infinite; }

.marq-track span {
  font-family: "Bungee", sans-serif; font-size: 0.813rem; white-space: nowrap;
  display: flex; align-items: center; gap: 2.5rem;
}

.marq-track span::after {
  content: ""; width: 0.42rem; height: 0.42rem; border-radius: 50%;
  background: #16100A; display: block;
}

@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Layout helpers ------------------------------------------------------ */

.deep { background: var(--deep); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }

/* --- Cards --------------------------------------------------------------- */

.card { background: var(--panel); padding: 1.7rem 1.5rem 1.6rem; border-top: 3px solid var(--orange); }
.card .n { font-family: "Bungee", sans-serif; font-size: 1.5rem; color: var(--orange); line-height: 1; display: block; margin-bottom: 0.9rem; }
.card p { font-size: 0.938rem; }
.card h3 { font-family: "Archivo Black", sans-serif; font-size: 1.05rem; text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 0.6rem; }

.tag {
  display: inline-block;
  font-family: "Bungee", sans-serif; font-size: 0.625rem; letter-spacing: 0.05em;
  background: var(--bulb); color: #16100A; padding: 0.36rem 0.72rem;
}

.tag.quiet { background: transparent; color: var(--mute); box-shadow: inset 0 0 0 1px var(--rule-2); }
.tag.live { background: var(--orange); color: #16100A; }

/* --- Rant card ----------------------------------------------------------- */

.rant-card {
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--rule);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}

.rant-head { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: center; margin-bottom: 1.4rem; }

.rant-card h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  text-transform: uppercase; letter-spacing: -0.025em; line-height: 1;
  margin: 0 0 1.8rem;
}

.rant-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.6rem; }
.rant-acts .k { display: block; font-family: "Bungee", sans-serif; font-size: 0.625rem; letter-spacing: 0.05em; color: var(--orange); margin-bottom: 0.55rem; }
.rant-acts .k.unresolved { color: var(--bulb); }
.rant-acts p { margin: 0; font-size: 0.938rem; }

/* --- Chips --------------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.chip {
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--rule-2);
  padding: 0.65rem 1.15rem;
  font-size: 0.938rem; font-weight: 600; color: var(--ink);
  transition: box-shadow 130ms ease, color 130ms ease;
}

.chip:hover { box-shadow: inset 0 0 0 1px var(--orange); color: var(--orange); }

/* --- Rules list ---------------------------------------------------------- */

.rules { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.rules li { position: relative; padding-left: 1.5rem; color: var(--ink); font-size: 0.969rem; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.75rem; height: 2px; background: var(--orange); }

/* --- Receipts (the data layer) -------------------------------------------
   The point leads. The number is evidence underneath it, never the headline,
   because a bare percentage tells an operator nothing on its own.
   ------------------------------------------------------------------------ */

.receipt {
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--rule);
  border-top: 3px solid var(--orange);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
}

.receipt-topic {
  font-family: "Bungee", sans-serif;
  font-size: clamp(0.875rem, 1.5vw, 1.05rem);
  letter-spacing: 0.03em;
  color: var(--orange);
  margin: 0 0 0.55rem;
  display: inline-block;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.3rem;
}

.receipt-point {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.35rem, 3.1vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 1.4rem;
  max-width: 26ch;
}

.receipt-point em { font-style: normal; color: var(--bulb); }

.receipt-body {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: clamp(1.3rem, 3vw, 2.4rem);
  align-items: start;
}

@media (max-width: 50rem) { .receipt-body { grid-template-columns: 1fr; } }

.stat { border-left: 3px solid var(--bulb); padding-left: 1.1rem; }

.stat .figure {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.4rem, 5.6vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--bulb);
  font-variant-numeric: tabular-nums;
  display: block;
}

.stat .caption {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1.1rem 1.2rem;
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}

.stat-row .sf {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.4rem; color: var(--orange); line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  display: block; margin-bottom: 0.35rem;
}

.stat-row .sc { font-size: 0.813rem; color: var(--ink-2); line-height: 1.35; display: block; }

.source {
  margin-top: 1.4rem; padding-top: 0.95rem; border-top: 1px solid var(--rule);
  font-size: 0.781rem; line-height: 1.5; color: var(--mute);
}

.source a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--rule-2); }
.source a:hover { color: var(--orange); text-decoration-color: var(--orange); }

.receipt-stack { display: flex; flex-direction: column; gap: 1.4rem; }

/* --- Callout ------------------------------------------------------------- */

.callout {
  background: var(--panel-2);
  border-left: 3px solid var(--bulb);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.callout h3 { font-family: "Archivo Black", sans-serif; font-size: 1.15rem; text-transform: uppercase; margin: 0 0 0.8rem; letter-spacing: -0.015em; }
.callout p { font-size: 0.938rem; }

/* --- Form ---------------------------------------------------------------- */

.form { max-width: 44rem; }
.field { margin-bottom: 1.6rem; }

.field label {
  display: block;
  font-family: "Bungee", sans-serif;
  font-size: 0.688rem; letter-spacing: 0.05em;
  color: var(--orange); margin-bottom: 0.6rem;
}

.field .hint { display: block; font-size: 0.813rem; color: var(--mute); margin-bottom: 0.6rem; font-weight: 400; }

.field input[type="text"], .field input[type="email"], .field textarea, .field select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--rule-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.85rem 1rem;
  border-radius: 0;
}

.field textarea { min-height: 9rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6E624F; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); outline-offset: 1px; }

.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.radio-row label {
  font-family: "Archivo", sans-serif; font-size: 0.938rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0;
  box-shadow: inset 0 0 0 1px var(--rule-2);
  padding: 0.6rem 1.05rem; cursor: pointer; margin: 0;
  transition: box-shadow 120ms ease, color 120ms ease;
}

.radio-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-row input:checked + span { color: var(--bulb); }
.radio-row label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--bulb); color: var(--bulb); }
.radio-row label:has(input:focus-visible) { outline: 2px solid var(--bulb); outline-offset: 2px; }

/* --- Closing band -------------------------------------------------------- */

.close { position: relative; overflow: hidden; text-align: center; }
.close .rays { top: -70%; opacity: 0.85; }
.close .wrap { position: relative; }
.close h2 { margin-inline: auto; max-width: 17ch; }
.close p { max-width: 46ch; margin-inline: auto; margin-bottom: 2rem; font-size: 1.06rem; }
.close .btns { justify-content: center; }

.bulbs { display: flex; justify-content: center; gap: 0.55rem; margin-bottom: 1.8rem; }
.bulbs i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--bulb); display: block; }

/* --- Footer -------------------------------------------------------------- */

.site-foot { background: var(--deep); border-top: 1px solid var(--rule); padding-block: 2.8rem 3.2rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center; }
.site-foot img { height: 2.9rem; width: auto; flex: 0 0 auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot-links a { font-size: 0.875rem; text-decoration: none; color: var(--mute); }
.foot-links a:hover { color: var(--orange); }

.foot-note {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  font-size: 0.813rem; color: var(--mute);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
}

/* --- Motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tally .dot, .marq-track { animation: none !important; }
  * { transition-duration: 1ms !important; }
}
