/* OnAir Garage — 1950s service station. Mobile-first; tested at 390 px and 1280 px. */

/* ---------- Fonts (self-hosted, latin subset, SIL OFL) ---------- */
@font-face { font-family: "Libre Franklin"; src: url("/assets/fonts/libre-franklin-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Bungee"; src: url("/assets/fonts/bungee-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Yellowtail"; src: url("/assets/fonts/yellowtail-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("/assets/fonts/special-elite-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Monoton"; src: url("/assets/fonts/monoton-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --cherry: #C8232C;
  --cherry-dark: #9C1820;
  --seafoam: #7CC8B4;
  --seafoam-dark: #3E8E7A;
  --asphalt: #1E1C1A;
  --enamel: #F3E6CC;
  --mustard: #E8A92A;
  --cream: #FBF4E4;
  --card: #FFFDF8;
  --ink: #231F1B;
  --ink-soft: #4A433C;
  --muted: #6B6258;
  --border: #D8CBAE;
  --chip: #E9DCBF;
  --on-dark: #FBF4E4;
  --on-dark-soft: #D9CFBD;
  --on-dark-muted: #BDB2A2;

  --f-body: "Libre Franklin", system-ui, sans-serif;
  --f-sign: "Bungee", "Arial Black", sans-serif;
  --f-script: "Yellowtail", cursive;
  --f-label: "Special Elite", "Courier New", monospace;
  --f-neon: "Monoton", var(--f-sign);
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: 16px;
  --radius: 14px;
  --shadow-press: 0 5px 0 var(--asphalt);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--enamel); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--cherry-dark); text-underline-offset: 3px; }
a:hover { color: var(--cherry); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--mustard); color: var(--asphalt); font-weight: 700; border-radius: 8px; }
.skip-link:focus { top: 8px; }

.script { font-family: var(--f-script); font-weight: 400; }
.script-seafoam { color: var(--seafoam); }
.script-cherry { color: var(--cherry); }
.label { font-family: var(--f-label); font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.label-on-dark { color: var(--mustard); }
.mono { font-family: var(--f-mono); font-size: 14px; word-break: break-all; }
/* Visible placeholder for data still missing: never invent it. */
.ph { font-family: var(--f-mono); font-size: .9em; background: rgba(232, 169, 42, .25); padding: 0 4px; border-radius: 3px; }

.checker { height: 22px; background: repeating-conic-gradient(var(--asphalt) 0% 25%, var(--cream) 0% 50%) 0 0 / 22px 22px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; text-decoration: none; font-weight: 600; line-height: 1.1; }
.btn-primary { background: var(--cherry); color: var(--on-dark); border: 3px solid var(--cream); font-family: var(--f-sign); font-weight: 400; font-size: 16px; }
.btn-primary:hover { background: var(--cherry-dark); color: var(--on-dark); }
.btn-ghost { color: var(--on-dark); border: 2px solid #6B6258; }
.btn-ghost:hover { color: var(--on-dark); border-color: var(--on-dark-soft); }
.btn-dark { align-self: flex-start; background: var(--asphalt); color: var(--on-dark); min-height: 44px; }
.btn-dark:hover { background: #000; color: var(--on-dark); }
.btn-cart { min-height: 44px; padding: 0 16px; background: var(--mustard); color: var(--asphalt); font-family: var(--f-sign); font-weight: 400; font-size: 14px; }
.btn-cart:hover { background: #F2BD4F; color: var(--asphalt); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; padding: 12px var(--gutter); background: var(--asphalt); }
.brand { display: flex; }
.brand svg { width: 160px; height: auto; }
.site-nav { grid-column: 1 / -1; order: 3; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 2px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--on-dark); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--cherry); }
@media (min-width: 960px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 24px; padding-block: 14px; }
  .brand svg { width: 190px; }
  .site-nav { grid-column: auto; order: 0; justify-content: flex-end; gap: 30px; margin: 0; padding: 0; overflow: visible; }
}

/* ---------- Hero ---------- */
.hero { display: grid; gap: 28px; padding: 40px var(--gutter) 36px; background: var(--asphalt); color: var(--on-dark); }
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.neon { font-family: var(--f-neon); font-size: clamp(32px, 8vw, 44px); line-height: 1; color: #FFE9EA; text-shadow: 0 0 6px #ff4a55, 0 0 18px #ff2231, 0 0 38px var(--cherry); }
.hero h1 { font-family: var(--f-sign); font-size: clamp(30px, 8.4vw, 52px); line-height: 1.08; }
.hero h1 .script { font-size: 1.23em; line-height: .8; }
.lede { font-size: clamp(17px, 2.2vw, 19px); line-height: 1.55; color: #E7DCC6; max-width: 34em; }
.trust { font-size: 15px; color: var(--on-dark-muted); }
.hero-sign { display: flex; justify-content: center; }
.hero-sign svg { width: 100%; max-width: 500px; height: auto; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 64px var(--gutter) 56px; }
  .hero-copy { gap: 22px; }
}

/* ---------- Page ---------- */
.page { display: flex; flex-direction: column; gap: 56px; max-width: 1280px; margin: 0 auto; padding: 48px var(--gutter) 64px; }
@media (min-width: 900px) { .page { gap: 72px; padding-top: 64px; } }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.page h2 { font-family: var(--f-sign); font-size: clamp(24px, 5vw, 30px); line-height: 1.15; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 20px; }
.section-head h2 { font-size: clamp(26px, 6vw, 34px); }
.section-head h2 .script { font-size: 1.24em; }
.section-head a { font-weight: 600; }
.prose { max-width: 42em; font-size: 17px; line-height: 1.6; }
.prose h2 { font-size: 22px; }

/* ---------- Tool cards ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; min-height: 190px; padding: 22px; background: var(--cream); border: 3px solid var(--asphalt); border-radius: var(--radius); box-shadow: var(--shadow-press); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.tool-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 7px 0 var(--asphalt); }
.tool-card:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--asphalt); }
@media (prefers-reduced-motion: reduce) { .tool-card { transition: none; } }
.tool-card-top { display: flex; justify-content: space-between; align-items: center; }
.tool-card-top .label { font-size: 13px; }
.price-tag { font-family: var(--f-sign); font-size: 14px; color: var(--cherry); }
.tool-card-name { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; }
.tool-card-name img { width: 52px; height: 52px; }
.tool-card p { font-size: 15px; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; font-size: 12.5px; font-weight: 600; }
.chips li { padding: 3px 9px; border-radius: 99px; background: var(--chip); }

.tool-card-lift { justify-content: space-between; background: repeating-linear-gradient(180deg, #8B8F95 0 12px, #6E7278 12px 14px); color: var(--on-dark); }
.tool-card-lift:hover { color: var(--on-dark); }
.bay-no { font-family: var(--f-sign); font-size: 16px; }
.tool-card-lift .bay-no, .tool-card-lift-name { text-shadow: 0 1px 0 var(--asphalt); }
.tool-card-lift-name { font-size: 24px; font-weight: 700; line-height: 1.2; }
.tool-card-lift-desc { font-size: 15px; line-height: 1.45; padding: 8px 10px; background: rgba(30, 28, 26, .72); border-radius: 6px; }
.lift-tag { align-self: flex-start; display: inline-block; font-family: var(--f-label); font-size: 14px; background: var(--mustard); color: var(--asphalt); padding: 4px 10px; border-radius: 4px; text-shadow: none; }

.tool-card-request { justify-content: space-between; border-style: dashed; box-shadow: none; }
.tool-card-request:hover { box-shadow: none; }
.tool-card-request-title { font-size: 17px; font-weight: 700; }
.tool-card-request span:last-child { font-size: 15px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pick a bay ---------- */
.bay-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bay-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 14px 4px; border: 2px solid var(--asphalt); border-radius: 12px; background: var(--cream); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
.bay-grid a:hover { background: var(--card); color: var(--ink); box-shadow: 0 3px 0 var(--asphalt); }
.bay-grid svg { width: 44px; height: 44px; }
@media (min-width: 1024px) {
  .bay-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
  .bay-grid a { padding: 16px 6px; font-size: 13.5px; }
  .bay-grid svg { width: 54px; height: 54px; }
}
.tone-cherry { fill: var(--cherry); }
.tone-seafoam { fill: var(--seafoam); }
.tone-mustard { fill: var(--mustard); }
.icon-light { color: var(--cream); }
.icon-dark { color: var(--asphalt); }

/* ---------- How the pump works ---------- */
.panel-dark { padding: 28px 22px; background: var(--asphalt); color: var(--on-dark); border-radius: 18px; }
.steps { display: grid; gap: 22px; }
.steps li { display: flex; flex-direction: column; gap: 6px; }
.step-no { font-family: var(--f-sign); font-size: 40px; line-height: 1; color: var(--mustard); }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { font-size: 15.5px; color: var(--on-dark-soft); }
@media (min-width: 768px) {
  .panel-dark { padding: 36px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- About ---------- */
.about { display: grid; gap: 20px; align-items: center; }
.about .prose { display: flex; flex-direction: column; gap: 14px; }
.page .about-title { font-family: var(--f-script); font-size: clamp(46px, 12vw, 64px); line-height: 1; margin-top: 8px; }
.about a { font-weight: 600; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.3fr; gap: 40px; } }

/* ---------- Pit Crew / Gazette ---------- */
.duo { display: grid; gap: 20px; }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; gap: 24px; } }
.box { padding: 24px; background: var(--cream); border: 3px solid var(--asphalt); border-radius: 16px; }
.box-seafoam { background: var(--seafoam); }
.page .box h2 { font-size: clamp(22px, 5vw, 26px); }
.box p { font-size: 16px; line-height: 1.55; }
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; }
@media (min-width: 768px) { .box { padding: 28px; } }

/* ---------- Stub pages ---------- */
.stub-hero { padding: 40px var(--gutter) 44px; background: var(--asphalt); color: var(--on-dark); }
.stub-hero .wrap { display: flex; flex-direction: column; gap: 14px; max-width: 1280px; margin: 0 auto; }
.stub-hero h1 { font-family: var(--f-sign); font-size: clamp(30px, 7vw, 48px); line-height: 1.08; }
@media (min-width: 900px) { .stub-hero { padding-block: 56px 60px; } }

.wip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border: 3px dashed var(--asphalt); border-radius: var(--radius); background: var(--card); }
.wip p { flex: 1 1 240px; }
.wip a { font-weight: 600; }

.product-stub { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .product-stub { grid-template-columns: 1.4fr 1fr; } .product-stub .buy-box { order: 2; } }
.buy-box { padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.buy-box .btn-primary { border-color: var(--asphalt); }
.price { font-family: var(--f-sign); font-size: 36px; color: var(--cherry); }
.note { font-size: 14px; color: var(--muted); }
.specs dl { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 10px 16px; margin: 0; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-direction: column; gap: 14px; padding: 26px var(--gutter); background: var(--asphalt); color: var(--on-dark-soft); font-size: 14px; }
.footer-sign { font-family: var(--f-script); font-size: 28px; color: var(--on-dark); line-height: 1.1; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: var(--on-dark-soft); }
.footer-links a:hover { color: var(--on-dark); }
.site-footer .ph { color: var(--on-dark); }
@media (min-width: 900px) { .site-footer { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-cols { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .footer-cols { align-items: flex-end; } }

/* ---------- Under construction (SITE_MODE=soon) ---------- */
.soon-body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--asphalt); }
.soon { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px var(--gutter); color: var(--on-dark); text-align: center; }
.soon-sign svg { width: 100%; max-width: 420px; height: auto; }
.soon h1 { font-family: var(--f-sign); font-size: clamp(26px, 6vw, 44px); line-height: 1.1; }
.soon .lede { margin: 0 auto; }
.soon-links { font-size: 15px; color: var(--on-dark-muted); }
.soon-links a { color: var(--seafoam); }
.soon-links a:hover { color: var(--on-dark); }
.soon-footer { justify-content: center; align-items: center; text-align: center; }
