/* ─── Boca Tire & Auto — Shared system ─────────────────────────────── */

:root {
  --red: #d92121;
  --red-deep: #a8161a;
  --red-dark: #6e0e10;
  --ink: #141414;
  --ink-2: #1f1f1f;
  --ink-3: #2a2a2a;
  --bone: #ffffff;
  --bone-2: #f2f2f2;
  --bone-3: #e3e3e3;
  --rust: #8a3a1a;
  --steel: #555555;
  --line: rgba(20,20,20,.14);

  --font-display: "Oswald", "Impact", "Arial Black", sans-serif;
  --font-serif: "Stardos Stencil", "Oswald", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* dark mode override */
[data-theme="dark"] {
  --bone: #141414;
  --bone-2: #1f1f1f;
  --bone-3: #2a2a2a;
  --ink: #ffffff;
  --ink-2: #ededed;
  --ink-3: #d4d4d4;
  --steel: #b0b0b0;
  --line: rgba(255,255,255,.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Grit / texture utilities ── */
.grit {
  position: relative;
}
.grit::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.04) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 62%, rgba(0,0,0,.06) 0 1px, transparent 2px),
    radial-gradient(circle at 41% 88%, rgba(0,0,0,.05) 0 1px, transparent 2px);
  background-size: 7px 7px, 11px 11px, 13px 13px;
  mix-blend-mode: multiply;
  opacity: .6;
}

.diag-stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 14px,
    #f5c518 14px 28px
  );
}

.checker {
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(-45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--ink) 75%),
    linear-gradient(-45deg, transparent 75%, var(--ink) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

/* ── Type scale ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.eyebrow.muted { color: var(--steel); }

.h-mega {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 128px);
  line-height: .88;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
}

.h-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  line-height: .92;
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin: 0;
}

.h-mid {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .005em;
  margin: 0;
}

.lede {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 56ch;
}

.body { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.tiny { font-size: 12px; line-height: 1.4; color: var(--steel); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-ink {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.btn-ink:hover { background: var(--red); border-color: var(--red); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bone); }

/* ── Tag / chip ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--bone-2);
  color: var(--ink-2);
}
.tag-red { background: var(--red); color: #fff; border-color: var(--red); }
.tag-ink { background: var(--ink); color: var(--bone); border-color: var(--ink); }

/* ── Image placeholder ── */
.imgph {
  position: relative;
  background: var(--ink-2);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 6px, transparent 6px 12px);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 18px;
  overflow: hidden;
}
.imgph::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  pointer-events: none;
}
.imgph .imgph-inner {
  position: relative;
  z-index: 1;
  max-width: 80%;
  text-wrap: balance;
}
.imgph.bone {
  background: var(--bone-2);
  color: var(--steel);
  background-image:
    repeating-linear-gradient(135deg, rgba(0,0,0,.03) 0 6px, transparent 6px 12px);
}
.imgph.bone::before { border-color: rgba(0,0,0,.18); }

/* ── Density ── */
[data-density="compact"] { --gap: 14px; --pad-y: 36px; --pad-x: 28px; }
[data-density="regular"] { --gap: 22px; --pad-y: 64px; --pad-x: 44px; }
[data-density="comfy"]   { --gap: 32px; --pad-y: 96px; --pad-x: 64px; }

/* ── Logo ring (used inline) ── */
.logo-ring {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-ring img {
  height: 44px;
  width: 44px;
  object-fit: contain;
}
.logo-ring .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: inherit;
  line-height: 1;
}
.logo-ring .name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--steel);
  margin-top: 3px;
}

/* nav link */
.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .12s, color .12s;
}
.nav-link:hover { border-color: var(--red); color: var(--red); }

/* divider with label */
.div-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel);
}
.div-label::before, .div-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.gap-s { gap: 8px; } .gap-m { gap: 16px; } .gap-l { gap: 28px; }
.between { justify-content: space-between; }
.aic { align-items: center; }
