/* ============================================================
   Singlespeeed — editorial / light / gritty-urban design system
   ============================================================ */
:root {
  --ink: #1b1a1e;
  --ink-soft: #55535c;
  --paper: #faf8f3;
  --paper-2: #f1eee6;
  --line: #e4e0d5;
  --indigo: #3b3a7a;
  --amber: #e8830c;
  --amber-2: #f5a623;
  --green: #2e7d32;
  --red: #c0392b;
  --shadow: 0 1px 0 rgba(0,0,0,0.06), 0 14px 34px -18px rgba(0,0,0,0.35);
  --radius: 14px;
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--indigo); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
.kicker {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.16em; font-weight: 800; font-size: 0.8rem;
  color: var(--amber); margin: 0 0 12px;
}
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-display);
  font-weight: 800; letter-spacing: 0.02em;
  padding: 0.8em 1.4em; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { box-shadow: 0 10px 22px -10px rgba(59,58,122,0.7); }
.btn-accent { background: var(--amber); color: #1a1206; }
.btn-accent:hover { box-shadow: 0 10px 22px -10px rgba(232,131,12,0.7); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--paper-2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,248,243,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink-soft); font-weight: 600; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); text-decoration: none; }
.nav-links a[aria-current] { color: var(--indigo); background: rgba(59,58,122,0.1); }

/* Hero */
.hero { position: relative; overflow: hidden; display: grid; align-items: end; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(12,12,16,0.72) 0%, rgba(12,12,16,0.18) 55%, rgba(12,12,16,0.1) 100%);
}
.hero-content { position: relative; padding-block: 26vh 6vh; color: #fff; }
.hero .kicker { color: var(--amber-2); }
.hero h1 { color: #fff; margin: 0 0 14px; text-shadow: 0 2px 18px rgba(0,0,0,0.3); }
.hero .lede { color: rgba(255,255,255,0.88); }
.hero .btn { margin-top: 22px; }

/* Sections / blocks */
section { padding-block: 56px; }
.section-head { max-width: 60ch; margin-bottom: 28px; }
.block-grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
}
.card h3 { margin: 0; }
.card .meta { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); font-weight: 700; }
.card p { margin: 0; }
.card .card-link { margin-top: auto; font-weight: 700; }

/* Rides table */
.rides-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rides-table th, .rides-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rides-table th { background: var(--paper-2); font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.rides-table tr:last-child td { border-bottom: none; }

/* Tags / status */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: #fff; }
.badge-on { background: var(--green); }
.badge-soon { background: var(--amber); color: #241302; }
.badge-wait { background: var(--indigo); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 6px 0 0; max-width: 46ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 24px; margin-top: 40px; background: var(--paper-2); }
.footer-inner { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-brand { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; margin: 0 0 4px; }
.copyright { text-align: center; margin-top: 28px; }

/* Wheel building bits */
.checklist { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 18px; }
.opt { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.opt .opt-amt { font-weight: 900; font-size: 1.5rem; font-family: var(--font-display); color: var(--indigo); margin-top: 6px; }
.opt .opt-name { font-weight: 700; }

/* Sponsor logo tiles */
.sponsor-logo {
  width: 100%;
  max-width: 220px;
  height: auto;
  align-self: flex-start;
  background: #16151a; /* dark chip so white logo art stays legible */
  border-radius: 10px;
  padding: 12px 16px;
  margin: 8px 0 14px;
}

@media (max-width: 640px) {
  .nav-links { width: 100%; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hero-content { padding-block: 20vh 5vh; }
  section { padding-block: 40px; }
}
