/* 901 Heat: tokens, type and the shared components (from the 901 Heat Brand Identity design system).
   Square corners, asphalt borders, hard shadows. Used by the store (site.css) and the dashboard (owner.css). */

@font-face { font-family: 'Alfa Slab One'; font-weight: 400; font-display: swap; src: url(/fonts/AlfaSlabOne-Regular.woff) format('woff'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(/fonts/BarlowCondensed-SemiBold.woff) format('woff'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(/fonts/BarlowCondensed-Bold.woff) format('woff'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(/fonts/BarlowCondensed-ExtraBold.woff) format('woff'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(/fonts/Barlow-Regular.woff) format('woff'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(/fonts/Barlow-SemiBold.woff) format('woff'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url(/fonts/Barlow-Bold.woff) format('woff'); }
@font-face { font-family: 'Yellowtail'; font-weight: 400; font-display: swap; src: url(/fonts/Yellowtail-Regular.woff) format('woff'); }

/* The brand has one palette. Browsers that repaint pages in dark mode (Chrome's auto dark theme,
   Samsung Internet's dark mode) are asked to leave the site as drawn. */
:root {
  color-scheme: only light;
  --whitewash: #f5ede0; --asphalt: #1c1815; --sign-red: #c8201a; --chrome-yellow: #ffc220; --primer: #eae0ce; --soot: #4a423b;
  --asphalt-groove: #2c2621; --brick: #a3412a; --mortar: #cdbba0; --paper: #fffdf8;
  --heat-mild: #3b9a4b; --heat-medium: var(--chrome-yellow); --heat-hot: #f26a1b; --heat-extra-hot: var(--sign-red); --heat-superhot: #b8157a;
  --gold-flat: #d9a53a; --gold-shadow: #8c5e10; --gold-highlight: #fff0b8;
  --surface: var(--whitewash); --surface-card: var(--primer); --surface-inverse: var(--asphalt);
  --ink: var(--asphalt); --ink-muted: var(--soot); --ink-inverse: var(--whitewash);
  --accent: var(--sign-red); --highlight: var(--chrome-yellow); --line: var(--asphalt);
  --focus-ring: var(--sign-red); --focus-ring-inverse: var(--chrome-yellow);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-section: 64px;
  --tap-min: 44px; --content-max: 1200px;
  --shadow-button: 4px 4px 0 #1c1815; --shadow-button-pressed: 2px 2px 0 #1c1815;
  --border-site: 3px; --border-calm: 2px; --stripe-height: 10px;
  --font-slab: "Alfa Slab One", Rockwell, Georgia, serif;
  --font-gothic: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: Barlow, system-ui, sans-serif;
  --font-script: Yellowtail, "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.5; background: var(--surface); color: var(--ink); }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; 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: 8px; top: -60px; z-index: 10; background: var(--asphalt); color: var(--whitewash); padding: 10px 14px; font-family: var(--font-gothic); font-weight: 800; letter-spacing: .08em; }
.skip:focus { top: 8px; }

/* Focus: one ring for everything, sign-red on light grounds, chrome-yellow on dark. */
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--focus-ring-inverse); }

/* Type */
.slab { font-family: var(--font-slab); font-weight: 400; }
.eyebrow { font-family: var(--font-gothic); font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--ink-muted); }
.small { font-size: 15px; line-height: 1.45; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.red { color: var(--sign-red); }

/* Buttons: square, bordered, capitals. Primary (sign-red) once per view. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: var(--border-site) solid var(--line);
  border-radius: 0; background: var(--surface); color: var(--ink); font-family: var(--font-gothic); font-weight: 800; font-size: 17px; line-height: 1.1;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn--lg { min-height: 52px; padding: 12px 22px; font-size: 19px; }
.btn--sm { min-height: var(--tap-min); padding: 6px 12px; font-size: 15px; }
.btn--full { width: 100%; }
.btn--primary { background: var(--accent); color: var(--whitewash); box-shadow: var(--shadow-button); }
.btn--dark { background: var(--asphalt); color: var(--whitewash); }
.btn--quiet { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; padding-inline: 4px; }
.btn--danger { color: var(--sign-red); border-color: var(--sign-red); }
.btn:active { transform: translate(2px, 2px); }
.btn--primary:active { box-shadow: var(--shadow-button-pressed); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.on-dark .btn:not(.btn--primary) { border-color: var(--whitewash); }

/* Chips, batch tags, badges */
.chip { display: inline-block; border: var(--border-site) solid var(--line); background: var(--surface); padding: 6px 12px; font-family: var(--font-gothic); font-weight: 800; font-size: 18px; line-height: 1.2; letter-spacing: .06em; }
.chip--deal { background: var(--highlight); }
.batch { display: inline-block; background: var(--asphalt); color: var(--whitewash); padding: 2px 8px; font-family: var(--font-gothic); font-weight: 800; font-size: 15px; line-height: 1.3; letter-spacing: .04em; white-space: nowrap; }
.badge { display: inline-block; border: var(--border-calm) solid var(--line); background: transparent; padding: 1px 8px; font-family: var(--font-gothic); font-weight: 800; font-size: 14px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.badge--highlight { background: var(--highlight); }
.badge--plain { background: var(--surface); }
.badge--dark { background: var(--asphalt); color: var(--whitewash); }
.badge--alert { border-color: var(--sign-red); color: var(--sign-red); }

/* Heat stripe and gauge: all five steps, always. Pointer and word give the level; color never does it alone. */
.heat-stripe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: var(--stripe-height); border-top: 3px solid var(--asphalt); border-bottom: 3px solid var(--asphalt); }
.heat-stripe span:nth-child(1), .gauge__bar span:nth-child(1) { background: var(--heat-mild); }
.heat-stripe span:nth-child(2), .gauge__bar span:nth-child(2) { background: var(--heat-medium); }
.heat-stripe span:nth-child(3), .gauge__bar span:nth-child(3) { background: var(--heat-hot); }
.heat-stripe span:nth-child(4), .gauge__bar span:nth-child(4) { background: var(--heat-extra-hot); }
.heat-stripe span:nth-child(5), .gauge__bar span:nth-child(5) { background: var(--heat-superhot); }
.gauge { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.gauge__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.gauge__label { font-family: var(--font-gothic); font-weight: 800; font-size: 13px; letter-spacing: .16em; }
.gauge__word { font-family: var(--font-gothic); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.gauge__none { font-family: var(--font-gothic); font-weight: 600; font-size: 15px; color: var(--ink-muted); }
.gauge__pointer { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 8px; }
.gauge__pointer span { justify-self: center; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--asphalt); }
.gauge__bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 12px; border: 2px solid var(--asphalt); }
.gauge__bar span + span { border-left: 2px solid var(--asphalt); }
.gauge--unrated .gauge__bar { opacity: .35; }
.gauge__line { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--ink-muted); }

/* Stock state, in words with a mark */
.stock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-gothic); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.stock__mark { width: 18px; height: 12px; flex: none; }
.stock--counted .stock__mark { background: var(--asphalt); }
.stock--estimated .stock__mark { border: 2px dashed var(--asphalt); }
.stock--unknown .stock__mark { border: 2px solid var(--soot); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field, .fieldset + .field, .field + .fieldset { margin-top: 16px; }
.label { font-family: var(--font-gothic); font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.hint { font-size: 15px; line-height: 1.4; color: var(--ink-muted); overflow-wrap: anywhere; }   /* a long web address breaks rather than spilling out */
a[href^="mailto:"] { overflow-wrap: anywhere; }   /* so does an email address in a narrow column */
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 10px 12px; border: var(--border-site) solid var(--line); border-radius: 0; background: var(--paper); font-size: 17px; line-height: 1.3; }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--asphalt) 50%), linear-gradient(135deg, var(--asphalt) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline-offset: 2px; }
.input--invalid, [aria-invalid="true"] { border-color: var(--sign-red); }
.error-text { color: var(--sign-red); font-weight: 600; font-size: 15px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--asphalt); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: var(--border-site) solid var(--line); background: var(--paper); cursor: pointer; }
.choice + .choice { margin-top: 10px; }
.choice input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--asphalt); }
.choice__title { display: block; font-weight: 700; }
.choice__text { display: block; font-size: 15px; color: var(--ink-muted); }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--asphalt); }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset > legend { padding: 0; margin-bottom: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Quantity stepper: [−][n][+] */
.stepper { display: inline-flex; align-items: stretch; border: var(--border-site) solid var(--line); background: var(--paper); }
.stepper button { width: 46px; min-height: 46px; border: 0; background: var(--paper); font-family: var(--font-gothic); font-weight: 800; font-size: 22px; line-height: 1; cursor: pointer; }
.stepper button:first-child { border-right: var(--border-site) solid var(--line); }
.stepper button:last-child { border-left: var(--border-site) solid var(--line); }
.stepper input { width: 52px; min-height: 46px; border: 0; border-radius: 0; background: var(--paper); text-align: center; font-family: var(--font-gothic); font-weight: 800; font-size: 20px; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.no-js .stepper button { display: none; }
.no-js .stepper input { width: 72px; }

/* Notices */
.notice { border: var(--border-site) solid var(--line); background: var(--surface-card); padding: 14px 16px; }
.notice--ok { background: var(--paper); border-left-width: 10px; border-left-color: var(--heat-mild); }
.notice--warn { background: #fff3cf; }
.notice--error { background: var(--paper); border-color: var(--sign-red); border-left-width: 10px; }
.notice p + p { margin-top: 6px; }

/* Reduced motion: nothing animates. Buttons still press down 2px on tap; that's a state, not motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
