/* ============================================================
   BikeStand.company — Article, blog & legal pages
   Saffron design system (shared with /css/home.css)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  --saffron-300: #FFE88A;
  --saffron-400: #FFDD63;
  --saffron-500: #FFD23F;
  --saffron-600: #F5C518;
  --saffron-700: #D9A800;

  --ink-900: #1B2235;
  --ink-800: #232B40;
  --ink-700: #3A4358;
  --ink-500: #6B7387;
  --ink-300: #B7BCC9;
  --ink-100: #E4E6EC;

  --cream-50:  #FAF6EC;
  --cream-100: #F3EEDD;

  --mint-200: #DDEDDE;
  --mint-600: #5A9466;

  --charcoal-800: #22303C;

  --bg: var(--cream-50);
  --fg: var(--ink-900);

  --border:        rgba(27, 34, 53, 0.08);
  --border-strong: rgba(27, 34, 53, 0.16);

  --tracking-tight:   -0.02em;
  --tracking-eyebrow:  0.12em;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(27,34,53,0.06), 0 1px 1px rgba(27,34,53,0.04);
  --shadow-md: 0 6px 16px rgba(27,34,53,0.08), 0 2px 4px rgba(27,34,53,0.05);

  --font-display: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-micro: 150ms;
  --dur-base:  220ms;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: var(--fg);
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.2; font-weight: 600; }
p { text-wrap: pretty; margin: 0 0 18px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--ink-700);
  margin: 0 0 10px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 12px; top: 12px;
  z-index: 80;
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   Sticky pill nav (matches /css/home.css visually)
   ============================================================ */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  max-width: 1200px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  padding: 10px 12px 10px 24px;
  box-shadow: var(--shadow-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark { display: none; }
.brand > span,
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.brand-name .dot { color: var(--saffron-600); }

.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.desktop-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease);
}
.desktop-nav a:hover { color: var(--ink-700); }

/* Shop Now pill injected by site.js */
.site-header .shop-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-900);
  color: var(--cream-50);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  transition: background var(--dur-micro) var(--ease);
}
.site-header .shop-now:hover { background: var(--ink-700); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--ink-900);
  padding: 12px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--cream-50);
  margin: 5px 0;
  border-radius: 1px;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(27, 34, 53, 0.96);
  padding: 92px 24px;
}
.mobile-nav nav { display: grid; gap: 18px; }
.mobile-nav a {
  color: var(--cream-50);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  background: var(--saffron-500);
  color: var(--ink-900);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 12px;
}

/* ============================================================
   Article hero — cream with subtle saffron glow at top
   ============================================================ */
.article-hero {
  position: relative;
  padding: 72px 24px 88px;
  overflow: hidden;
  text-align: center;
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 210, 63, 0.22), transparent 70%);
  pointer-events: none;
}
.article-hero > * { position: relative; }
.article-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.article-hero .breadcrumb {
  order: 1;
  font-size: 14px;
  color: var(--ink-500);
  margin-bottom: 24px;
}
.article-hero .breadcrumb a {
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color var(--dur-micro) var(--ease);
}
.article-hero .breadcrumb a:hover { color: var(--saffron-700); }
.article-hero .breadcrumb .sep {
  margin: 0 8px;
  color: var(--ink-300);
}
.article-hero h1 {
  order: 2;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.8vw, 68px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink-900);
  margin: 0 0 18px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.article-hero .article-meta {
  order: 3;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-500);
  margin: 0;
}
/* hide the legacy intro paragraph (still in HTML for SEO) */
.article-hero-inner > p:not(.article-meta) {
  order: 99;
  display: none;
}

/* ============================================================
   Article body
   ============================================================ */
.article-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}
.article-content {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-900);
}
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-top: 44px;
}
.article-content h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; }
.article-content h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin-top: 32px; }
.article-content p { margin: 0 0 18px; color: var(--ink-800); }
.article-content a {
  color: var(--ink-900);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--saffron-500);
  transition: background var(--dur-micro) var(--ease);
  padding-bottom: 1px;
}
.article-content a:hover { background: rgba(255, 210, 63, 0.18); }
.article-content blockquote {
  border-left: 4px solid var(--saffron-500);
  padding: 14px 22px;
  background: var(--cream-100);
  border-radius: var(--radius-md);
  margin: 24px 0;
  font-style: italic;
}
.article-content ul, .article-content ol { margin: 0 0 18px; padding-left: 22px; }
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--ink-900); font-weight: 700; }
.article-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--cream-100);
  padding: 2px 6px;
  border-radius: 6px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.post-nav a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}
.post-nav a:hover { color: var(--saffron-700); border-color: var(--saffron-500); }

/* ============================================================
   Section primitives (used by blog index + legal pages)
   ============================================================ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h1,
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink-900);
  margin: 14px 0 0;
}
.section-subtitle,
.section-head p {
  font-size: 19px;
  color: var(--ink-700);
  margin-top: 18px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--ink-700);
}

/* ============================================================
   Blog index
   ============================================================ */
.blog-search {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 40px;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 22px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
  outline: 0;
}
.blog-search::placeholder { color: var(--ink-500); }
.blog-search:focus { border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.blog-card p { color: var(--ink-700); font-size: 16px; margin: 0 0 18px; }
.blog-card small {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
  margin-top: auto;
}

/* ============================================================
   Legal pages
   ============================================================ */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 88px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 34px);
  margin-top: 40px;
}
.legal-content p { color: var(--ink-800); }
.legal-content a {
  color: var(--ink-900);
  font-weight: 600;
  border-bottom: 2px solid var(--saffron-500);
  text-decoration: none;
}

/* ============================================================
   Footer (matches /css/home.css visually)
   ============================================================ */
.site-footer {
  background: var(--charcoal-800);
  color: var(--cream-50);
  padding: 80px 32px 40px;
  margin-top: 0;
}
.site-footer .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.site-footer h3,
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--saffron-500);
  margin: 0 0 18px;
}
/* First column h3 is the brand wordmark — restore serif look */
.site-footer .footer-grid > div:first-child h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--cream-50);
  margin-bottom: 16px;
}
.site-footer p {
  font-size: 15px;
  color: rgba(250, 246, 236, 0.7);
  line-height: 1.6;
  margin: 0 0 14px;
}
.site-footer a {
  display: block;
  color: rgba(250, 246, 236, 0.85);
  font-size: 15px;
  text-decoration: none;
  margin: 7px 0;
  transition: color var(--dur-micro) var(--ease);
}
.site-footer a:hover { color: var(--saffron-500); }
.site-footer .footer-grid > div:first-child p strong {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cream-50);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.copyright {
  max-width: 1200px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 13px;
  color: rgba(250, 246, 236, 0.55);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header { margin: 12px 16px 0; max-width: none; padding: 8px 10px 8px 18px; }
  .article-hero { padding: 56px 18px 64px; }
  .article-shell { padding: 40px 20px 64px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-nav { display: grid; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
