/* ==========================================================================
   Monica [Lastname] — Food safety training
   Direction: "Danger Zone". Brand owns the page; cutting-board colors appear
   only as a 4px category edge on class cards, never in chrome.
   ========================================================================== */

:root {
  --cold-hold:   #0A2E4D;
  --probe-blue:  #2E7FB8;
  --steel-paper: #F2F4F6;
  --steel:       #C7CDD4;
  --hot-line:    #D93A0B;
  /* Same hue, darkened for small text on light ground. #D93A0B is 4.18:1 against
     Steel Paper — fine as a fill or a rule, short of 4.5:1 as 12–15px type. */
  --hot-line-deep: #B32D06;
  --white:       #FFFFFF;

  /* Functional coding layer. Blue is deliberately absent — it belongs to the
     brand's interactive colour and the two would read as the same signal. */
  --board-red:    #C8102E;
  --board-green:  #00843D;
  --board-yellow: #FFB81C;

  --ink:     var(--cold-hold);
  --ink-mid: #47606F;

  --s1: .25rem; --s2: .5rem;  --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem;   --s7: 3rem;   --s8: 4rem; --s9: 6rem;

  --display: 'Archivo', system-ui, sans-serif;
  --body:    'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --spine-w: 64px;
  --maxw: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--steel-paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  padding-left: var(--spine-w);
}

h1, h2, h3, .wordmark-name, .foot-name, .btn {
  font-family: var(--display);
  font-variation-settings: 'wdth' 112;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin: 0 0 var(--s4); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 var(--s3); }

p { margin: 0 0 var(--s4); }

a { color: var(--probe-blue); }

/* Focus: one visible treatment everywhere, never removed. */
:focus-visible {
  outline: 3px solid var(--hot-line);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cold-hold); color: #fff; padding: var(--s3) var(--s4);
  text-decoration: none;
}
.skip:focus { left: var(--s4); top: var(--s4); }

/* --- Signature: thermometer spine ---------------------------------------- */

.spine {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--spine-w);
  background: var(--white);
  border-right: 1px solid var(--steel);
  z-index: 20;
}
.spine-track {
  position: absolute; left: 50%; top: 5%; bottom: 5%; width: 6px;
  transform: translateX(-50%);
  background: var(--steel-paper);
  border: 1px solid var(--steel);
  border-radius: 3px;
}
.spine-fill {
  position: absolute; left: 50%; top: 5%; width: 6px;
  transform: translateX(-50%);
  background: var(--cold-hold);
  border-radius: 3px;
  height: 0;
}
.spine-dot {
  position: absolute; left: 50%; width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  margin-top: 5%;
  background: var(--hot-line);
  border: 2px solid var(--white);
  border-radius: 50%;
  top: 0;
}
.spine-tick {
  position: absolute; left: 0; right: 0; top: calc(5% + var(--at));
  text-align: center;
}
.spine-tick b {
  font-family: var(--mono); font-size: .625rem; font-weight: 500;
  color: var(--ink-mid); background: var(--white); padding: 2px 0; display: block;
}

/* --- Header --------------------------------------------------------------- */

.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5);
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--s5) var(--s5);
  flex-wrap: wrap;
}
.wordmark { text-decoration: none; color: var(--ink); display: block; }
.wordmark-name { font-size: 1.05rem; letter-spacing: .04em; display: block; }
.wordmark-rule { display: block; height: 3px; width: 34px; background: var(--hot-line); margin: 6px 0 5px; }
.wordmark-sub {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-mid);
}
.site-head nav { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
/* :not(.btn) matters — without it this rule outranks .btn-primary on specificity
   and silently repaints the header CTA's label Cold Hold on Hot Line (3.0:1). */
.site-head nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-head nav a:not(.btn):hover { color: var(--probe-blue); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--s3) var(--s5);
  font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 2px;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--hot-line); color: var(--white); }
.btn-primary:hover { background: #B92E06; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--steel); }
.btn-quiet:hover { border-color: var(--cold-hold); }
.btn-sm { min-height: 44px; padding: var(--s2) var(--s4); font-size: .9375rem; }
.btn-block { display: flex; width: 100%; }

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

.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--s7) var(--s5) var(--s9);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s8); align-items: center;
}
.eyebrow {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hot-line-deep); margin-bottom: var(--s3);
}
.lede { font-size: 1.0625rem; color: var(--ink-mid); max-width: 46ch; }

.next-class {
  border-left: 3px solid var(--cold-hold);
  padding: var(--s3) 0 var(--s3) var(--s4);
  margin: var(--s6) 0;
}
.next-class p { margin: 0; }
.next-class-label {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mid);
}
.next-class-when { font-family: var(--mono); font-size: 1.0625rem; font-weight: 500; }
.next-class-where { font-size: .9375rem; color: var(--ink-mid); }
.seats { font-family: var(--mono); color: var(--hot-line-deep); font-weight: 500; }

.hero-actions { display: flex; gap: var(--s3); flex-wrap: wrap; }

.gauge-wrap { margin: 0; }
.gauge { width: 100%; height: auto; max-width: 340px; display: block; }
.gauge-wrap figcaption {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-mid);
  margin-top: var(--s3); max-width: 340px; text-align: center;
}
.g-temp { font-family: var(--mono); font-size: 20px; font-weight: 600; fill: var(--cold-hold); }
.g-hot  { fill: var(--hot-line); }
.g-note { font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; fill: var(--ink-mid); }
.g-zone {
  font-family: var(--display); font-size: 15px; font-weight: 700;
  fill: var(--hot-line); letter-spacing: .08em;
}

/* --- Sections ------------------------------------------------------------- */

.section { max-width: var(--maxw); margin: 0 auto; padding: var(--s9) var(--s5); }
.section-head { margin-bottom: var(--s6); }
.section-head p { color: var(--ink-mid); margin: 0; }

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s5);
}
.card {
  background: var(--white);
  border: 1px solid var(--steel);
  border-left: 4px solid var(--steel);
  padding: var(--s5);
  display: flex; flex-direction: column;
}
.card[data-board="red"]    { border-left-color: var(--board-red); }
.card[data-board="green"]  { border-left-color: var(--board-green); }
.card[data-board="yellow"] { border-left-color: var(--board-yellow); }
.card p { margin: 0 0 var(--s2); }
.card-type {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mid);
}
.card-date { font-family: var(--display); font-variation-settings: 'wdth' 112; font-weight: 700; font-size: 1.375rem; }
.card-meta { font-size: .875rem; color: var(--ink-mid); }
.card-price { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; margin-top: var(--s3); }
.card-seats {
  font-family: var(--mono); font-size: .8125rem; color: var(--hot-line);
  margin-bottom: var(--s5);
}
.card-seats-full { color: var(--ink-mid); }
.card .btn { margin-top: auto; }
.card.is-full { background: var(--steel-paper); }

/* --- Photography: duotone in the brand's two tones ------------------------ */

.band, .split-photo { margin: 0; }
.band { max-width: 100%; }
.band img, .split-photo img {
  display: block; width: 100%; height: auto;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: luminosity;
  opacity: .88;
}
.band figure, .band, .split-photo { background: var(--cold-hold); }
.band img { max-height: 340px; object-fit: cover; }
.band figcaption {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em;
  color: var(--white); background: var(--cold-hold);
  padding: var(--s3) var(--s5); margin: 0; text-align: center;
}

.section-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center;
}
.ticks { list-style: none; margin: 0 0 var(--s5); padding: 0; }
.ticks li {
  position: relative; padding-left: var(--s5); margin-bottom: var(--s3);
  color: var(--ink-mid);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 10px; height: 2px; background: var(--hot-line);
}
.fineprint { font-size: .8125rem; color: var(--ink-mid); }

/* Constrain the measure, not the section. Narrowing .section-about itself inherits
   `margin: 0 auto` from .section and centres the whole block, so its heading drifts
   ~96px right of every other h2 on the page. */
.section-about > * { max-width: 62ch; }

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

.site-foot {
  background: var(--cold-hold); color: var(--white);
  padding: var(--s7) var(--s5);
  text-align: center;
}
/* Contact links are thumb targets — someone taps the phone number standing in a
   kitchen. Inline text would give them a 20px strike area. */
.site-foot a {
  color: var(--white);
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 var(--s2);
}
.foot-name { font-size: 1rem; letter-spacing: .04em; margin-bottom: var(--s3); }
.site-foot .fineprint { color: #9FB3C2; max-width: 60ch; margin: var(--s5) auto 0; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .hero, .section-split { grid-template-columns: 1fr; gap: var(--s6); }
  /* Copy stays above the gauge when stacked. The diagram is support, not the pitch —
     leading with it buries the headline and the Register button below the fold. */
  .gauge { max-width: 260px; margin: 0 auto; }
  .gauge-wrap figcaption { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  :root { --spine-w: 22px; }
  .spine-tick { display: none; }
  .site-head { padding: var(--s4); gap: var(--s3); }
  .site-head nav { gap: var(--s4); width: 100%; }
  .hero { padding: var(--s5) var(--s4) var(--s7); }
  .section { padding: var(--s7) var(--s4); }
  .hero-actions .btn { width: 100%; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
