/* ============================================================
   LoBall Bikes — shared base styles
   Riso / desert-punk aesthetic on workshop neutrals
   Ported verbatim from new-sites/loball/styles.css (the design drop),
   minus the design-time tweaks panel. Shared by every loball template.
   ============================================================ */

:root {
  /* Workshop neutrals — true white default */
  --paper: #fafafa;
  --paper-2: #ececeb;
  --ink: #0e0e10;
  --ink-soft: #1d1d20;
  --steel: #6a6a6e;
  --steel-soft: #b8b8b6;
  --warm: #e63b1c;          /* sun-bleached red — the one warm */
  --warm-deep: #b22a10;
  --hairline: rgba(14, 14, 16, 0.16);

  /* Type */
  --f-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --f-body: "Geist", "Inter Tight", system-ui, sans-serif;
  --f-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Halftone / paper texture overlay — pure CSS */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image:
    radial-gradient(rgba(26,23,20,0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: .55;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  background:
    radial-gradient(circle at 20% 10%, rgba(210,74,31,0.05), transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(26,23,20,0.07), transparent 55%);
  mix-blend-mode: multiply;
}

/* ============================================================
   Persistent header strip
   ============================================================ */

.values-bar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--ink);
}
.values-bar .marquee {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marq 38s linear infinite;
  width: max-content;
}
.values-bar .marquee span { display: inline-flex; align-items: center; gap: 12px; }
.values-bar .marquee b {
  background: var(--warm); color: var(--paper);
  padding: 2px 8px; font-weight: 900; letter-spacing: 0.2em;
}
@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Top nav
   ============================================================ */

.topnav {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.topnav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand .dot {
  width: 14px; height: 14px; background: var(--warm);
  display: inline-block; border-radius: 50%;
  transform: translateY(2px);
}
.brand small {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em; color: var(--steel);
  text-transform: uppercase; font-weight: 500;
}
.nav-links {
  display: flex; gap: 28px; list-style: none; padding: 0; margin: 0;
  font-family: var(--f-mono);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}
.nav-links a {
  text-decoration: none; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--warm); }
.nav-links a.active { border-bottom-color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--paper);
  text-decoration: none; padding: 10px 18px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 2px solid var(--ink);
  transition: transform .12s ease;
}
.nav-cta:hover { background: var(--warm); border-color: var(--warm); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .topnav__inner { padding: 14px var(--gutter); }
  .brand { font-size: 22px; }
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section--tight { padding: 40px 0; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--warm);
}

.headline-xl {
  font-family: var(--f-display);
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.headline-lg {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.headline-md {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.headline-sm {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  max-width: 60ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Riso "off-register" effect for headlines */
.riso {
  position: relative;
  display: inline-block;
  color: var(--ink);
}
.riso::before {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: var(--warm);
  transform: translate(6px, 4px);
  z-index: -1;
  opacity: .85;
  pointer-events: none;
}

/* Stamps and badges */
.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  transform: rotate(-1.5deg);
  font-weight: 600;
}
.stamp--warm { background: var(--warm); color: var(--paper); border-color: var(--warm); }
.stamp--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stamp--rotate-r { transform: rotate(2deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px;
  font-family: var(--f-mono);
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  font-weight: 600;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { box-shadow: 5px 5px 0 var(--warm); }
.btn--warm { background: var(--warm); color: var(--paper); border-color: var(--warm); }
.btn--warm:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn--ghost { background: transparent; }
.btn .arr { font-family: var(--f-display); transform: translateY(-1px); }

/* Hairlines */
.rule { border: 0; border-top: 2px solid var(--ink); margin: 0; }
.rule--thin { border-top-width: 1px; }
.rule--dashed { border-top: 2px dashed var(--ink); }

/* ============================================================
   Image placeholders (no real photography)
   ============================================================ */

.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(45deg,
      var(--paper-2) 0 8px, transparent 8px 16px),
    var(--paper);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  padding: 12px;
  overflow: hidden;
}
.placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(26,23,20,0.1) 1px, transparent 1.4px);
  background-size: 6px 6px;
  pointer-events: none;
  opacity: .35;
}
.placeholder span { background: var(--paper); padding: 4px 8px; border: 1px dashed var(--ink); position: relative; z-index: 1; }
.placeholder--warm { background: var(--warm); border-color: var(--warm); color: var(--paper); }
.placeholder--warm::after { background-image: radial-gradient(rgba(241,235,220,0.18) 1px, transparent 1.4px); }
.placeholder--warm span { background: var(--warm); border-color: var(--paper); color: var(--paper); }
.placeholder--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.placeholder--ink span { background: var(--ink); border-color: var(--paper); color: var(--paper); }

/* ============================================================
   Bike card (shared by home "Featured" grid, Shop results, related bikes)
   ============================================================ */

.bike {
  display: block; text-decoration: none; color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--paper);
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bike:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
.bike .placeholder { aspect-ratio: 4/3; border: 0; border-bottom: 2px solid var(--ink); }
.bike__body { padding: 18px 18px 20px; }
.bike__row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 8px;
}
.bike__title { font-family: var(--f-display); font-size: 22px; line-height: 1.05; margin: 0 0 6px; }
.bike__sub { font-size: 13px; color: var(--steel); margin-bottom: 14px; }
.bike__foot {
  display: flex; justify-content: space-between; align-items: end;
  border-top: 2px dashed var(--ink); padding-top: 12px;
}
.bike__price { font-family: var(--f-display); font-size: 26px; line-height: 1; }
.bike__price small { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--steel); display: block; }
.bike__cta { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.bike__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--paper); color: var(--ink);
  padding: 4px 8px; font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1.5px solid var(--ink); font-weight: 600;
}
.bike__badge--warm { background: var(--warm); color: var(--paper); border-color: var(--warm); }
.bike__badge--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */

.site-foot {
  background: var(--ink); color: var(--paper);
  margin-top: 80px;
  padding: 56px 0 24px;
}
.site-foot__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) {
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
}
.site-foot h4 {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel-soft); margin: 0 0 16px;
}
.site-foot a { color: var(--paper); text-decoration: none; }
.site-foot a:hover { color: var(--warm); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot__brand {
  font-family: var(--f-display);
  font-size: 56px;
  line-height: 0.86;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.site-foot__brand .dot { color: var(--warm); }
.site-foot__bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 20px;
  border-top: 1px solid rgba(241,235,220,0.2);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel-soft);
}
