/* =====================================================================
   Bike2Work Day — house style
   Palette: asphalt / concrete / hi-vis. Motif: road markings (dashed lane).
   Mobile-first, no JS, no external images.
   ===================================================================== */

:root {
  --asphalt-950: #0e1013;
  --asphalt-900: #121417;
  --asphalt-800: #17191d;
  --asphalt-700: #1f2227;
  --asphalt-600: #2a2e35;
  --paper: #faf9f5;
  --concrete: #f1f0ea;
  --ink: #16181c;
  --graphite: #565c66;
  --mist: #9aa1ab;
  --hiviz: #d5f436;
  --hiviz-deep: #b7d400;
  --line: #e2e1d7;
  --danger: #e4572e;
  --radius: 14px;
  --wrap: 1120px;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

a { color: #2e5c1e; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--hiviz-deep); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--hiviz); color: var(--asphalt-900);
  padding: 10px 16px; font-weight: 600; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--hiviz-deep); outline-offset: 2px; }

/* ------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 16, 19, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--asphalt-600);
}
.head-in {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 28px; padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--paper); text-decoration: none;
}
.brand:hover { color: #fff; }
.logo-mark { width: 44px; height: 26px; color: var(--paper); flex: none; }
.brand-txt {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem; letter-spacing: 0.02em;
}
.brand-txt em { font-style: normal; color: var(--hiviz); }

.site-nav { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-left: auto; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--mist); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 0 5px; letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--hiviz); }
.site-nav a.on { color: var(--paper); border-bottom-color: var(--hiviz); }

/* ------------------------------------------------- hero (CSS gradient only) */
.hero {
  position: relative;
  color: var(--paper);
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(213, 244, 54, 0.20), transparent 62%),
    radial-gradient(820px 560px at -8% 112%, rgba(96, 143, 199, 0.14), transparent 58%),
    linear-gradient(158deg, #1b1e24 0%, #14161a 52%, #0d0f12 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.022) 0 2px,
    transparent 2px 84px
  );
}
.hero-in { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 96px; max-width: 860px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 18px 0 20px;
  text-wrap: balance;
}
.hero .hiviz { color: var(--hiviz); }
.hero-lead {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: #c9cdd4; max-width: 620px; margin: 0 0 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.875rem;
  color: var(--asphalt-900);
  background: var(--hiviz);
  padding: 4px 12px 3px;
  margin: 0 0 8px;
  border-radius: 3px;
}
.hero .kicker { background: transparent; color: var(--hiviz); padding-left: 0; }

.btn {
  display: inline-block;
  font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-hiviz { background: var(--hiviz); color: var(--asphalt-900); }
.btn-hiviz:hover { background: #e6ff5c; color: var(--asphalt-900); }
.btn-ghost { border-color: var(--asphalt-600); color: var(--paper); }
.btn-ghost:hover { border-color: var(--hiviz); color: var(--hiviz); }

/* ------------------------------------------------- stats band */
.stats {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-top: 46px; padding-bottom: 46px;
}
.stat { border-top: 3px dashed var(--hiviz-deep); padding-top: 16px; }
.stat strong {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.6rem; line-height: 1; color: var(--asphalt-900);
  margin-bottom: 8px;
}
.stat span { color: var(--graphite); font-size: 0.95rem; display: block; }

/* ------------------------------------------------- sections & cards */
.sec { padding-top: 56px; padding-bottom: 56px; }
.sec-head { max-width: 720px; margin-bottom: 30px; }
.sec-head h2, .art-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.005em;
}
.sec-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  margin: 0 0 10px; line-height: 1.08;
}
.sec-sub { color: var(--graphite); font-size: 1.05rem; margin: 0; }

.grid4, .grid3 {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--hiviz-deep);
  box-shadow: 0 14px 34px -18px rgba(14, 16, 19, 0.35);
  color: var(--ink);
}
.card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.42rem; line-height: 1.15;
  margin: 10px 0 8px;
}
.card p { margin: 0; color: var(--graphite); font-size: 0.95rem; line-height: 1.6; }
.card .kicker { margin: 0; }

/* dark band section */
.band {
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(213, 244, 54, 0.10), transparent 60%),
    linear-gradient(170deg, var(--asphalt-800), var(--asphalt-950));
  color: var(--paper);
}
.band .sec-head h2 { color: var(--paper); }
.band .sec-head.inv .sec-sub { color: var(--mist); }
.card.dark {
  background: var(--asphalt-700);
  border-color: var(--asphalt-600);
  color: var(--paper);
}
.card.dark:hover { border-color: var(--hiviz); color: var(--paper); }
.card.dark h3 { color: var(--paper); }
.card.dark p { color: var(--mist); }
.band .kicker { background: transparent; color: var(--hiviz); padding-left: 0; }

/* ------------------------------------------------- article layout */
.article { padding-bottom: 20px; }
.art-head {
  padding-top: 58px; padding-bottom: 26px;
  border-bottom: 3px dashed var(--line);
  margin-bottom: 34px; max-width: 840px;
}
.art-head h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.05; margin: 12px 0 16px;
  text-wrap: balance;
}
.lead { font-size: 1.18rem; color: var(--graphite); margin: 0; max-width: 700px; }

.art-body { max-width: 760px; font-size: 1.03rem; }
.art-body h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.75rem; line-height: 1.15;
  margin: 44px 0 12px;
  padding-top: 18px;
  border-top: 3px dashed var(--line);
}
.art-body > h2:first-child { border-top: 0; padding-top: 0; margin-top: 28px; }
.art-body p { margin: 0 0 18px; }
.art-body strong { color: var(--asphalt-900); }
.art-body em { color: var(--graphite); }

/* editor note on home */
.editor-note .art-body { max-width: 820px; }

/* faq block on home */
.faq h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; line-height: 1.2; margin: 26px 0 6px;
}
.faq h3::before {
  content: "Q ";
  color: var(--hiviz-deep);
}
.faq p { margin: 0; }

/* ------------------------------------------------- related */
.related { margin-top: 54px; }
.related h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.6rem; margin: 0 0 18px;
}
.rel-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.rel-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--concrete);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.rel-card:hover { border-color: var(--hiviz-deep); transform: translateY(-3px); }
.rel-card span {
  display: inline-block; text-transform: uppercase;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.875rem; letter-spacing: 0.1em;
  color: var(--asphalt-900); background: var(--hiviz-deep);
  padding: 1px 8px; border-radius: 3px; margin-bottom: 6px;
}
.rel-card strong {
  display: block; font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem; line-height: 1.15; margin-bottom: 6px;
}
.rel-card p { margin: 0; color: var(--graphite); font-size: 0.9rem; }

/* ------------------------------------------------- gallery */
.gal-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 8px 0 40px;
}
.gal {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--asphalt-800);
  border: 1px solid var(--asphalt-600);
}
.gal .tile { display: block; height: 150px; }
.tile-dawn   .tile { background: linear-gradient(160deg, #2c3e58 0%, #8d6d4a 55%, #d5f43633 100%); }
.tile-cargo  .tile { background: linear-gradient(150deg, #3c5a3a, #a3b18a 60%, #f2e8cf); }
.tile-rain   .tile { background: linear-gradient(165deg, #23262b 0%, #45505c 60%, #6f7d8c); }
.tile-winter .tile { background: linear-gradient(160deg, #1c2027 0%, #52616f 55%, #e8ecf1); }
.tile-evening .tile { background: linear-gradient(150deg, #41303f, #8a5a44 55%, #e9c46a); }
.tile-friday .tile { background: linear-gradient(160deg, #17191d, #39411c 60%, #d5f43688); }
.gal figcaption { padding: 18px 20px 20px; color: var(--mist); }
.gal figcaption h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; color: var(--paper); margin: 0 0 8px;
}
.gal figcaption p { margin: 0; font-size: 0.93rem; line-height: 1.65; }
.gal a { color: var(--hiviz); }
.gal a:hover { color: #e6ff5c; }

/* ------------------------------------------------- footer */
.site-foot {
  margin-top: 30px;
  background: linear-gradient(175deg, var(--asphalt-800), var(--asphalt-950));
  color: var(--mist);
  border-top: 3px dashed var(--hiviz-deep);
}
.foot-grid {
  display: grid; gap: 30px;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
  padding-top: 48px; padding-bottom: 30px;
}
.foot-grid p { font-size: 0.9rem; line-height: 1.65; margin: 14px 0 0; }
.foot-grid h3 {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.875rem; color: var(--hiviz); margin: 4px 0 12px;
}
.foot-grid nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--mist); text-decoration: none; font-size: 0.92rem;
  padding: 0;
}
.foot-grid nav a:hover { color: var(--paper); }
.foot-brand:hover { color: var(--paper); }
.foot-base { border-top: 1px solid var(--asphalt-600); padding-top: 18px; padding-bottom: 22px; }
.foot-base p { margin: 0; font-size: 0.875rem; }
.foot-base a { color: var(--mist); }
.foot-base a:hover { color: var(--hiviz); }

/* ------------------------------------------------- responsive */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .head-in { gap: 8px 16px; }
  .site-nav { margin-left: 0; width: 100%; gap: 2px 14px; }
  .hero-in { padding-top: 56px; padding-bottom: 64px; }
  .sec { padding-top: 40px; padding-bottom: 40px; }
  .art-head { padding-top: 40px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .stat strong { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .rel-card { transition: none; }
  .btn:hover, .card:hover, .rel-card:hover { transform: none; }
}

@media print {
  .site-head, .site-foot, .related, .hero-cta { display: none; }
  body { background: #fff; color: #000; }
}

/* ---- Photo pipeline ---- */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .5; }
.hero-in { position: relative; z-index: 1; }
figure.ride { margin: 34px 0; }
figure.ride img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; border: 1px solid rgba(213, 244, 54, .22); }
figure.ride figcaption { font-size: .9rem; font-style: italic; margin-top: 8px; color: var(--mist, #9aa3ad); }
img.tile { width: 100%; height: 150px; object-fit: cover; display: block; }
