:root{
    --asphalt:#f7f4ee;
    --asphalt-2:#ffffff;
    --red:#d81e2c;
    --amber:#c96f0c;
    --amber-bright:#f2b134;
    --steel:#585c64;
    --paper:#ffffff;
    --ink:#161318;
    --line:rgba(22,19,24,0.13);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{background:var(--asphalt); color:var(--ink); font-family:'Source Serif 4', serif; -webkit-font-smoothing:antialiased;}
  h1,h2,h3,.display{font-family:'Rajdhani',sans-serif; text-transform:uppercase; letter-spacing:0.02em; font-weight:700;}
  .mono{font-family:'JetBrains Mono',monospace;}
  a{color:inherit;}
  img{max-width:100%; display:block;}

  a:focus-visible, button:focus-visible{outline:2px solid var(--amber); outline-offset:3px;}

  header.site{
    position:sticky; top:0; z-index:50; background:rgba(247,244,238,0.88); backdrop-filter:blur(6px);
    border-bottom:1px solid var(--line);
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
    padding:16px clamp(20px,5vw,60px); gap:10px 0;
  }
  header.site .logo{font-size:16px; letter-spacing:0.03em; white-space:nowrap;}
  .logo-wrap{display:flex; align-items:center; gap:9px;}
  .logo-icon{width:24px; height:24px; flex-shrink:0;}
  header.site .logo span{color:var(--red);}
  header.site nav ul{
    list-style:none; display:none; flex-wrap:wrap; gap:8px 16px;
    font-family:'JetBrains Mono',monospace; font-size:11.5px; letter-spacing:0.03em;
  }
  header.site nav li{white-space:nowrap;}
  header.site nav a{text-decoration:none; opacity:0.8;}
  header.site nav a:hover{opacity:1; color:var(--amber);}
  header.site nav a.active{color:var(--red); opacity:1;}
  @media(min-width:760px){ header.site nav ul{display:flex;} }

  .header-right{display:flex; align-items:center; gap:16px; flex-wrap:wrap; justify-content:flex-end;}
  .header-subscribe{display:none; gap:6px;}
  .header-subscribe input{
    width:140px; padding:8px 10px; border:1px solid var(--line); border-radius:2px;
    background:var(--paper); color:var(--ink); font-family:'JetBrains Mono',monospace; font-size:12px;
  }
  .header-subscribe input:focus{outline:2px solid var(--red); outline-offset:1px;}
  .header-subscribe button{
    font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:0.04em; padding:8px 14px;
    border:1px solid var(--red); background:var(--red); color:#fff; border-radius:2px; cursor:pointer;
    white-space:nowrap; transition:opacity .2s;
  }
  .header-subscribe button:hover{opacity:0.85;}
  @media(min-width:1150px){ .header-subscribe{display:flex;} }
  @media(min-width:1024px){ header.site{padding-left:60px; padding-right:60px;} }

  /* ---- hero / dash readout ---- */
  .hero{padding:40px clamp(20px,6vw,60px) 40px; max-width:980px; margin:0 auto; position:relative; overflow:hidden;}
  .hero-bike{position:absolute; top:50%; right:0; transform:translateY(-50%); width:460px; opacity:0.16; pointer-events:none; display:none; z-index:0;}
  .hero-bike text{font-family:'JetBrains Mono',monospace;}
  .hero > *{position:relative; z-index:1;}
  @media(min-width:900px){ .hero-bike{display:block;} }
  @media(min-width:1024px){ .hero-bike{width:560px;} }
  .hero .eyebrow{font-family:'JetBrains Mono',monospace; font-size:12px; letter-spacing:0.18em; color:var(--red); margin-bottom:18px;}
  .hero h1{font-size:clamp(28px,4.2vw,46px); line-height:1.15;}
  .hero h1 a{color:inherit; text-decoration:none; display:inline-block; transition:color .25s;}
  .hero h1 a:hover, .hero h1 a:focus-visible{color:var(--red);}
  .hero p.tag{margin-top:22px; max-width:52ch; color:var(--steel); font-size:17px; line-height:1.7;}

  @media(min-width:1024px){
    .hero{max-width:1120px;}
    .post-grid, .filters{max-width:1120px;}
    .hero h1{font-size:clamp(32px,3vw,48px);}
    .hero p.tag{font-size:19px;}
    .card{padding:32px;}
    .post-wrap{max-width:740px;}
  }

  .dash{display:flex; flex-wrap:wrap; gap:28px 44px; margin-top:44px; padding-top:28px; border-top:1px solid var(--line);}
  .dash .cell b{display:block; font-family:'Rajdhani',sans-serif; font-size:15px; letter-spacing:0.03em;}
  .dash .cell span{font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--steel); letter-spacing:0.08em; text-transform:uppercase;}

  /* ---- post grid ---- */
  .post-grid{max-width:980px; margin:0 auto; padding:20px clamp(20px,6vw,60px) 100px; display:grid; gap:20px; grid-template-columns:1fr;}
  @media(min-width:760px){ .post-grid{grid-template-columns:1.3fr 1fr 1fr;} }
  @media(min-width:1024px){ .post-grid{grid-template-columns:1.4fr 1fr 1fr; gap:26px;} }

  .card{background:var(--paper); border:1px solid var(--line); border-radius:6px; padding:26px; display:flex; flex-direction:column; gap:14px; position:relative; overflow:hidden; box-shadow:0 2px 14px rgba(22,19,24,0.05);}
  .card::before{content:''; position:absolute; top:0; left:0; width:4px; height:100%; background:var(--red);}
  .card.muted::before{background:var(--steel); opacity:0.4;}
  .card .tag{font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--amber); letter-spacing:0.1em; text-transform:uppercase;}
  .card h3{font-size:22px; line-height:1.15;}
  .card p{font-size:14px; color:var(--steel); line-height:1.6; font-family:'Source Serif 4',serif;}
  .card .meta{font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--steel); opacity:0.7; margin-top:auto;}
  .card.featured{grid-row:span 1;}
  .read-link{font-family:'JetBrains Mono',monospace; font-size:13px; color:var(--red); text-decoration:none;}
  .read-link:hover{color:var(--amber);}
  .soon{font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--steel); border:1px dashed var(--line); padding:6px 10px; border-radius:2px; width:fit-content;}

  /* ---- tachometer scroll gauge ---- */
  #tacho{
    position:fixed; right:18px; bottom:18px; width:78px; height:78px; z-index:60;
    display:flex; align-items:center; justify-content:center;
    background:var(--paper); border-radius:50%; box-shadow:0 4px 18px rgba(22,19,24,0.15);
  }
  #tacho svg{width:100%; height:100%;}
  #tacho .rpm-label{position:absolute; font-family:'JetBrains Mono',monospace; font-size:9px; color:var(--steel); bottom:6px; letter-spacing:0.05em;}
  #tacho.hidden{display:none;}

  /* ---- article ---- */
  article.post{background:var(--paper); color:var(--ink);}
  .post-wrap{max-width:700px; margin:0 auto; padding:90px 24px 120px;}
  .post-head .tag{font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--red); letter-spacing:0.15em; text-transform:uppercase;}
  .post-head h1{color:var(--ink); font-size:clamp(32px,6vw,54px); line-height:1.05; margin-top:14px;}
  .post-head .byline{margin-top:20px; font-family:'JetBrains Mono',monospace; font-size:12px; color:#6b6558; display:flex; gap:14px; flex-wrap:wrap;}

  .post-body{margin-top:44px; font-size:18px; line-height:1.8;}
  .post-body p{margin-bottom:22px;}
  .post-body h2{color:var(--ink); font-size:26px; margin:44px 0 16px; letter-spacing:0.01em;}
  .post-body h3{color:var(--ink); font-size:19px; margin:30px 0 12px; font-family:'JetBrains Mono',monospace; text-transform:none; letter-spacing:0;}
  .post-body ul, .post-body ol{margin:0 0 22px 22px;}
  .post-body li{margin-bottom:10px;}
  .post-body strong{color:var(--red);}
  .pull{border-left:3px solid var(--red); padding-left:18px; font-family:'Rajdhani',sans-serif; font-size:22px; font-weight:600; text-transform:none; letter-spacing:0; margin:34px 0; color:#3a352d;}

  .checklist{list-style:none; margin:0 0 22px; border:1px solid #d8d2c2; border-radius:4px; overflow:hidden;}
  .checklist li{display:flex; gap:12px; padding:14px 18px; border-bottom:1px solid #d8d2c2; font-size:16px;}
  .checklist li:last-child{border-bottom:none;}
  .checklist li::before{content:'▢'; color:var(--red); font-family:'JetBrains Mono',monospace; flex-shrink:0;}

  .stripe-divider{height:10px; margin:50px 0; background:repeating-linear-gradient(-45deg, var(--red) 0 14px, transparent 14px 28px); opacity:0.15; border-radius:2px;}

  .disclosure{font-family:'JetBrains Mono',monospace; font-size:12px; color:#8a8478; line-height:1.6; margin-bottom:26px;}
  .gear-grid{display:grid; grid-template-columns:1fr; gap:14px; margin-bottom:10px;}
  @media(min-width:560px){ .gear-grid{grid-template-columns:1fr 1fr;} }
  .gear-card{
    display:flex; flex-direction:column; gap:8px; text-decoration:none; color:var(--ink);
    border:1px solid #d8d2c2; border-radius:4px; padding:20px; transition:border-color .2s, transform .2s;
  }
  .gear-card:hover{border-color:var(--red); transform:translateY(-2px);}
  .gear-tag{font-size:11px; color:var(--red); letter-spacing:0.1em;}
  .gear-card h4{font-family:'Rajdhani',sans-serif; font-size:18px; text-transform:none; letter-spacing:0; font-weight:600;}
  .gear-card p{font-size:13px; color:#6b6558; font-family:'Source Serif 4',serif; margin:0;}
  .gear-cta{font-size:12px; color:var(--red); margin-top:auto;}

  .about-card{display:flex; flex-direction:column; gap:24px; align-items:flex-start;}
  .about-photo{width:100%; max-width:220px; border-radius:6px; object-fit:cover; aspect-ratio:4/5; flex-shrink:0;}
  @media(min-width:640px){
    .about-card{flex-direction:row; align-items:center; gap:32px;}
    .about-photo{width:180px;}
  }

  .map-link{display:inline-block; font-family:'JetBrains Mono',monospace; font-size:14px; color:var(--red); text-decoration:none; border-bottom:1px solid var(--red); padding-bottom:2px;}
  .map-link:hover{color:var(--amber); border-color:var(--amber);}

  /* ---- category filters ---- */
  .filters{display:flex; flex-wrap:wrap; gap:10px; max-width:980px; margin:0 auto; padding:0 clamp(20px,6vw,60px) 30px;}
  .filter-btn{
    font-family:'JetBrains Mono',monospace; font-size:12px; letter-spacing:0.05em; text-transform:uppercase;
    padding:9px 16px; border:1px solid var(--line); border-radius:20px; background:var(--paper); color:var(--steel);
    cursor:pointer; transition:all .2s;
  }
  .filter-btn:hover{border-color:var(--red); color:var(--red);}
  .filter-btn.active{background:var(--red); border-color:var(--red); color:#fff;}
  .card-category{display:none;}

  /* ---- year tabs ---- */
  /* ---- tabbed views ---- */
  .tab-view{display:none;}
  .tab-view.active{display:block;}
  .home-more-note{max-width:980px; margin:0 auto; padding:0 clamp(20px,6vw,60px) 40px; font-size:14px; color:var(--steel);}
  .home-more-note a{color:var(--red); text-decoration:none; font-family:'JetBrains Mono',monospace; font-size:13px;}
  .home-more-note a:hover{text-decoration:underline;}
  header.site nav a.active{color:var(--red);}

  .filter-group-label{
    max-width:980px; margin:0 auto; padding:0 clamp(20px,6vw,60px);
    font-size:11px; letter-spacing:0.15em; color:var(--steel); opacity:0.7; margin-top:26px; margin-bottom:8px;
  }
  .filter-group-label:first-of-type{margin-top:10px;}
  .year-tabs{display:flex; flex-wrap:wrap; gap:8px; max-width:980px; margin:0 auto; padding:0 clamp(20px,6vw,60px);}
  .year-btn{
    font-family:'JetBrains Mono',monospace; font-size:12px; letter-spacing:0.05em;
    padding:9px 16px; border:1px solid var(--line); border-radius:20px; background:var(--paper); color:var(--steel);
    cursor:pointer; transition:all .2s;
  }
  .year-btn:hover{border-color:var(--ink); color:var(--ink);}
  .year-btn.active{background:var(--ink); border-color:var(--ink); color:#fff;}

  /* ---- footer ---- */
  footer.site{background:var(--asphalt); padding:80px 24px 50px; text-align:center;}
  footer.site h2{font-size:clamp(26px,5vw,40px);}
  footer.site p{color:var(--steel); margin-top:16px; max-width:48ch; margin-left:auto; margin-right:auto;}
  footer.site .btn{
    display:inline-block; margin-top:28px; font-family:'JetBrains Mono',monospace; font-size:13px;
    padding:13px 26px; border:1px solid var(--red); color:var(--red); text-decoration:none; border-radius:2px; transition:all .25s;
  }
  footer.site .btn:hover{background:var(--red); color:var(--asphalt);}
  footer.site .fine{margin-top:60px; font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--steel); opacity:0.5;}

  .footer-subscribe{margin-top:56px; padding-top:44px; border-top:1px solid var(--line); max-width:420px; margin-left:auto; margin-right:auto;}
  .subscribe-label{font-size:12px; letter-spacing:0.12em; color:var(--red); margin-bottom:16px; text-align:center;}
  .subscribe-form{display:flex; gap:10px; flex-wrap:wrap; justify-content:center;}
  @media(min-width:1150px){ .footer-subscribe{display:none;} }
  .subscribe-form input{
    flex:1; min-width:200px; padding:12px 14px; border:1px solid var(--line); border-radius:2px;
    background:var(--paper); color:var(--ink); font-family:'Source Serif 4',serif; font-size:15px;
  }
  .subscribe-form input:focus{outline:2px solid var(--red); outline-offset:1px;}
  .subscribe-form button{
    font-family:'JetBrains Mono',monospace; font-size:13px; padding:12px 22px; border:1px solid var(--red);
    background:var(--red); color:#fff; border-radius:2px; cursor:pointer; transition:opacity .2s;
  }
  .subscribe-form button:hover{opacity:0.85;}
  .subscribe-note{font-size:11px; color:var(--steel); margin-top:12px; opacity:0.7;}

  .reveal{opacity:0; transform:translateY(20px); transition:opacity .6s ease, transform .6s ease;}
  .reveal.in{opacity:1; transform:none;}
  @media (prefers-reduced-motion: reduce){ .reveal{opacity:1; transform:none; transition:none;} html{scroll-behavior:auto;} }

  /* ---- desktop-only "On this page" sidebar ---- */
  #toc{
    position:fixed; top:120px; right:32px; width:220px; max-height:65vh; overflow-y:auto;
    display:none; background:var(--paper); border:1px solid var(--line); border-radius:6px;
    padding:20px; box-shadow:0 6px 24px rgba(22,19,24,0.09); z-index:40;
  }
  #toc .toc-label{font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:0.12em; color:var(--red); margin-bottom:14px; text-transform:uppercase;}
  #toc ul{list-style:none;}
  #toc li{margin-bottom:10px;}
  #toc a{font-size:13px; color:var(--steel); text-decoration:none; line-height:1.4; display:block; transition:color .2s;}
  #toc a:hover, #toc a.active{color:var(--red);}
  @media(min-width:1360px){ #toc.has-items{display:block;} }

.breadcrumb-bar{max-width:700px; margin:0 auto; padding:24px clamp(20px,6vw,24px) 0;}
.breadcrumb{font-size:11px; letter-spacing:0.05em; color:var(--steel);}
.breadcrumb a{color:var(--steel); text-decoration:none;}
.breadcrumb a:hover{color:var(--red);}
.breadcrumb span{color:var(--ink);}
