/*
Theme Name: Sprocket
Theme URI: https://bikematch.network/
Author: Margaret Atwood
Description: Standalone theme for bikematch.network — an Alberta/Canada online-slots mechanics desk. Structural idea: "The Cassette Strip" — a horizontal row of size-graduated circles (largest to smallest, echoing a bicycle cassette) as the category filter, above a flush single-column entry list with no left-rail glyph, no card border and no table, rows divided by a zig-zag "gear-notch" rule instead of a plain hairline.
Version: 760a3298
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sprocket
*/

/* ============ tokens ============ */
:root{
  --spr-forest-950:#0f351d;
  --spr-forest-800:#163f26;
  --spr-paper:#f7f8f4;
  --spr-surface:#eef2ea;
  --spr-surface-soft:#f4f7f1;
  --spr-border:#d8ded4;
  --spr-border-soft:#e4e9df;
  --spr-ink-900:#101010;
  --spr-text-600:#4a544c;
  --spr-text-inverse:#f4f7f1;
  --spr-lime-300:#c7ec9a;
  --spr-lime-500:#8ad933;
  --spr-lime-700:#3f7a15;
  --spr-focus:#1a4fa0;

  --spr-space-1:4px;
  --spr-space-2:8px;
  --spr-space-3:12px;
  --spr-space-4:16px;
  --spr-space-5:24px;
  --spr-space-6:32px;
  --spr-space-7:48px;
  --spr-space-8:64px;
  --spr-space-9:96px;

  --spr-radius-sm:4px;
  --spr-radius-md:10px;
  --spr-shell:1180px;
  --spr-measure:72ch;

  --spr-font-head: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --spr-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --spr-font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--spr-paper);
  color:var(--spr-ink-900);
  font-family:var(--spr-font-body);
  font-size:17px;
  line-height:1.6;
  min-width:0;
}
img,svg{max-width:100%;height:auto;display:block}
a{color:var(--spr-lime-700);text-decoration-thickness:1.5px;text-underline-offset:2px}
a:hover{color:var(--spr-forest-800)}
a:focus-visible,button:focus-visible,input:focus-visible{
  outline:3px solid var(--spr-focus);outline-offset:2px;
}
h1,h2,h3{font-family:var(--spr-font-head);font-weight:800;letter-spacing:-.01em;line-height:1.34;margin:0 0 var(--spr-space-3);color:var(--spr-ink-900)}
h1{font-size:clamp(2rem,1.6rem + 1.6vw,2.9rem);line-height:1.34}
h2{font-size:1.5rem}
h3{font-size:1.15rem}
p{margin:0 0 var(--spr-space-4)}
ul,ol{margin:0 0 var(--spr-space-4);padding-left:1.3em}
.spr-shell{max-width:var(--spr-shell);margin:0 auto;padding:0 var(--spr-space-5)}
.spr-num{font-family:var(--spr-font-mono);font-variant-numeric:tabular-nums}

.spr-skip{
  position:absolute;left:-999px;top:0;background:var(--spr-forest-950);color:var(--spr-text-inverse);
  padding:var(--spr-space-2) var(--spr-space-4);z-index:100;border-radius:0 0 var(--spr-radius-sm) 0;
}
.spr-skip:focus{left:0}

/* ============ header ============ */
.spr-header{background:var(--spr-forest-950);border-bottom:3px solid var(--spr-lime-500)}
.spr-header__inside{
  display:flex;align-items:center;justify-content:space-between;gap:var(--spr-space-4);
  padding:var(--spr-space-4) 0;
}
.spr-brand{display:flex;align-items:center;gap:var(--spr-space-3);min-width:0}
.spr-brand__link{display:inline-flex;align-items:center}
.spr-brand__logo{height:44px;width:auto}
.spr-brand__name{font-family:var(--spr-font-head);font-weight:800;font-size:1.3rem;color:var(--spr-text-inverse)}
.spr-brand__tag{font-family:var(--spr-font-mono);font-size:.84rem;letter-spacing:.05em;text-transform:uppercase;color:var(--spr-lime-500);margin:0;font-weight:400}

.spr-nav-wrap{display:flex;align-items:center;gap:var(--spr-space-4)}

.spr-menu-button{
  display:none;align-items:center;gap:var(--spr-space-2);background:transparent;color:var(--spr-text-inverse);
  border:1.5px solid var(--spr-lime-500);border-radius:var(--spr-radius-sm);padding:var(--spr-space-2) var(--spr-space-3);
  font-family:var(--spr-font-body);font-size:.95rem;min-height:48px;min-width:48px;cursor:pointer;
}
.spr-menu-button__icon{width:20px;height:14px;position:relative;display:inline-block}
.spr-menu-button__icon span{position:absolute;left:0;right:0;height:2px;background:var(--spr-lime-500);display:block}
.spr-menu-button__icon span:nth-child(1){top:0}
.spr-menu-button__icon span:nth-child(2){top:6px}
.spr-menu-button__icon span:nth-child(3){bottom:0}
.spr-menu-button__label{font-weight:400}

.spr-navigation{display:flex;gap:var(--spr-space-5)}
.spr-navigation__link{
  color:var(--spr-text-inverse);text-decoration:none;font-size:.98rem;padding:var(--spr-space-2) 0;
  border-bottom:2px solid transparent;display:inline-block;
}
.spr-navigation__link:hover,.spr-navigation__link:focus-visible{border-bottom-color:var(--spr-lime-500);color:var(--spr-lime-500)}

@media (max-width:560px){
  .spr-brand__tag{display:none}
}

@media (max-width:820px){
  .spr-menu-button{display:inline-flex}
  .spr-navigation{
    position:absolute;left:0;right:0;top:100%;background:var(--spr-forest-950);flex-direction:column;gap:0;
    border-bottom:3px solid var(--spr-lime-500);max-height:0;overflow:hidden;transition:max-height .25s ease;
    padding:0 var(--spr-space-5);
  }
  .spr-navigation--open{max-height:420px;padding:var(--spr-space-3) var(--spr-space-5) var(--spr-space-5)}
  .spr-header{position:relative}
  .spr-navigation__link{display:block;padding:var(--spr-space-3) 0;min-height:48px}
}

/* ============ hero ============ */
.spr-hero{padding:var(--spr-space-8) 0 var(--spr-space-6)}
.spr-hero__kicker{
  font-family:var(--spr-font-mono);font-size:.82rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--spr-lime-700);margin:0 0 var(--spr-space-3);
}
.spr-hero__title{max-width:22ch}
.spr-hero__text{max-width:var(--spr-measure);font-size:1.1rem;color:var(--spr-text-600)}

/* ============ the Cassette Strip (category filter row — graduated circles) ============ */
.spr-cassette{list-style:none;padding:0 0 var(--spr-space-7);margin:0;display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--spr-space-6)}
.spr-cassette__item a{display:flex;flex-direction:column;align-items:center;gap:var(--spr-space-2);text-decoration:none;color:var(--spr-ink-900);width:104px}
.spr-cassette__ring{
  display:block;border-radius:50%;border:3px solid var(--spr-forest-950);background:#fff;
  transition:border-color .15s ease,background .15s ease;
}
.spr-cassette__item--1 .spr-cassette__ring{width:56px;height:56px}
.spr-cassette__item--2 .spr-cassette__ring{width:46px;height:46px}
.spr-cassette__item--3 .spr-cassette__ring{width:38px;height:38px}
.spr-cassette__item--4 .spr-cassette__ring{width:30px;height:30px}
.spr-cassette__item a:hover .spr-cassette__ring,.spr-cassette__item a:focus-visible .spr-cassette__ring{
  border-color:var(--spr-lime-700);background:var(--spr-surface);
}
.spr-cassette__label{display:flex;flex-direction:column;align-items:center;gap:2px}
.spr-cassette__name{font-weight:600;font-size:.92rem;text-align:center;line-height:1.34;font-style:normal}
.spr-cassette__count{font-size:.82rem;font-weight:400;color:var(--spr-text-600);font-style:normal}

/* ============ the Cassette Strip (entry list) ============ */
.spr-section-heading{margin-bottom:var(--spr-space-5)}
.spr-section-heading p{color:var(--spr-text-600);margin:0}
.spr-strip{padding-bottom:var(--spr-space-8)}
.spr-strip__list{list-style:none;margin:0;padding:0}
.spr-entry{
  position:relative;display:grid;grid-template-columns:1fr 96px;column-gap:var(--spr-space-5);
  align-items:center;padding:var(--spr-space-5) 0;
}
.spr-entry:not(:last-child)::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:7px;
  background-image:
    linear-gradient(135deg, var(--spr-border) 25%, transparent 25%),
    linear-gradient(45deg, var(--spr-border) 25%, transparent 25%);
  background-position:0 0, 7px 0;
  background-size:14px 7px;
  background-repeat:repeat-x;
}
.spr-entry__main{min-width:0}
.spr-entry__title{margin:0 0 var(--spr-space-1);font-size:1.15rem}
.spr-entry__title a{color:var(--spr-ink-900);text-decoration:none}
.spr-entry__title a:hover,.spr-entry__title a:focus-visible{color:var(--spr-lime-700)}
.spr-entry__dek{margin:0 0 var(--spr-space-2);color:var(--spr-text-600);font-size:.96rem;min-width:0}
.spr-entry__meta{display:flex;flex-wrap:wrap;gap:var(--spr-space-3);align-items:center;margin:0 0 var(--spr-space-2);font-size:.82rem;color:var(--spr-text-600)}
.spr-entry__cat{
  display:inline-block;border:1px solid var(--spr-border);border-radius:999px;padding:2px 10px;
  font-size:.82rem;letter-spacing:.02em;color:var(--spr-text-600);
}
.spr-entry__ratio{
  display:inline-block;font-size:.82rem;color:var(--spr-lime-700);font-variant-numeric:tabular-nums;
  background:var(--spr-surface);border-radius:var(--spr-radius-sm);padding:2px 8px;
}
.spr-entry__thumb{
  margin:0;width:96px;height:96px;border-radius:var(--spr-radius-md);overflow:hidden;background:var(--spr-surface);
}
.spr-entry__thumb img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.spr-entry:hover .spr-entry__thumb img{transform:scale(1.06)}
.spr-entry__thumb-fallback{display:block;width:100%;height:100%}
@media (max-width:640px){
  .spr-entry{grid-template-columns:1fr;row-gap:var(--spr-space-3)}
  .spr-entry__thumb{order:-1;width:100%;height:160px}
}
.spr-empty{color:var(--spr-text-600);padding:var(--spr-space-6) 0}

.spr-pagination{padding-bottom:var(--spr-space-8)}
.spr-pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;
  border:1px solid var(--spr-border);border-radius:var(--spr-radius-sm);margin-right:var(--spr-space-2);
  text-decoration:none;color:var(--spr-ink-900);font-family:var(--spr-font-mono);
}
.spr-pagination .page-numbers.current{background:var(--spr-forest-950);color:var(--spr-text-inverse);border-color:var(--spr-forest-950)}
.spr-pagination .page-numbers:hover{border-color:var(--spr-lime-700)}

/* ============ article ============ */
.spr-article__layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:var(--spr-space-7);padding:var(--spr-space-7) 0}
.spr-article__content{min-width:0;max-width:840px}
.spr-article__eyebrow{
  display:inline-block;font-family:var(--spr-font-mono);font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;
  color:var(--spr-lime-700);text-decoration:none;border-bottom:1px solid var(--spr-lime-700);padding-bottom:2px;margin-bottom:var(--spr-space-3);
}
.spr-article__title{max-width:none}
.spr-article__meta{color:var(--spr-text-600);font-size:.92rem;margin-bottom:var(--spr-space-5)}
.spr-article__figure{margin:0 0 var(--spr-space-5);border-radius:var(--spr-radius-md);overflow:hidden}
.spr-article__body{max-width:var(--spr-measure);font-size:1.05rem;line-height:1.7}
.spr-article__body h2{margin-top:var(--spr-space-6)}
.spr-article__body h3{margin-top:var(--spr-space-5)}
.spr-article__body img{border-radius:var(--spr-radius-md);margin:var(--spr-space-4) 0}
.spr-article__body table{width:100%;border-collapse:collapse;display:block;overflow-x:auto;min-width:0}
.spr-article__body table td,.spr-article__body table th{border:1px solid var(--spr-border);padding:var(--spr-space-2) var(--spr-space-3);min-width:120px}

.spr-byline{
  display:flex;align-items:center;gap:var(--spr-space-3);
  margin-top:var(--spr-space-6);padding-top:var(--spr-space-5);border-top:1px solid var(--spr-border-soft);
}
.spr-byline__avatar{width:56px;height:56px;border-radius:50%;object-fit:cover;aspect-ratio:1/1;border:2px solid var(--spr-lime-500);flex:none}
.spr-byline__text{display:flex;flex-direction:column;gap:2px}
.spr-byline__name{margin:0;font-weight:600}
.spr-byline__name a{color:var(--spr-ink-900);text-decoration:none}
.spr-byline__role{margin:0;font-size:.88rem;color:var(--spr-text-600)}

.spr-note{
  border-left:3px solid var(--spr-lime-500);background:var(--spr-surface);border-radius:0 var(--spr-radius-md) var(--spr-radius-md) 0;
  padding:var(--spr-space-4) var(--spr-space-5);align-self:start;position:sticky;top:var(--spr-space-5);
}
.spr-note__label{
  font-family:var(--spr-font-mono);font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;color:var(--spr-lime-700);
  margin:0 0 var(--spr-space-2);
}
.spr-note__text{margin:0;font-size:.92rem;color:var(--spr-text-600)}
@media (max-width:900px){
  .spr-article__layout{grid-template-columns:1fr}
  .spr-note{position:static}
}

/* ============ static pages ============ */
.spr-page{padding:var(--spr-space-7) 0}
.spr-page__title{max-width:none}
.spr-page__byline{display:flex;align-items:center;gap:var(--spr-space-3);margin-bottom:var(--spr-space-5)}
.spr-page__avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;aspect-ratio:1/1;border:2px solid var(--spr-lime-500)}
.spr-page__byline-role{margin:0;color:var(--spr-text-600)}
.spr-page__body{max-width:var(--spr-measure);font-size:1.05rem}
.spr-page__body h2{margin-top:var(--spr-space-6)}

/* ============ archive intro ============ */
.spr-archive-intro{max-width:var(--spr-measure);color:var(--spr-text-600);font-size:1.02rem}
.spr-archive-intro p:last-child{margin-bottom:0}

/* ============ search ============ */
.spr-search{margin-top:var(--spr-space-4);display:flex;flex-wrap:wrap;gap:var(--spr-space-2);max-width:480px}
.spr-search__label{flex-basis:100%;display:block;margin-bottom:var(--spr-space-2);font-weight:600}
.spr-search__input{
  flex:1;min-height:48px;padding:0 var(--spr-space-3);border:1px solid var(--spr-border);border-radius:var(--spr-radius-sm);
  font-size:1rem;background:#fff;color:var(--spr-ink-900);
}
.spr-search__button{
  min-height:48px;padding:0 var(--spr-space-5);border:1px solid var(--spr-forest-950);border-radius:var(--spr-radius-sm);
  background:var(--spr-forest-950);color:var(--spr-text-inverse);font-size:1rem;cursor:pointer;
}
.spr-search__button:hover{background:var(--spr-lime-700);border-color:var(--spr-lime-700)}

/* ============ footer ============ */
.spr-footer{background:var(--spr-forest-950);color:var(--spr-text-inverse);margin-top:var(--spr-space-8)}
.spr-footer__grid{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--spr-space-6);padding:var(--spr-space-7) 0 var(--spr-space-6);margin:0}
.spr-footer__grid h3{color:var(--spr-lime-500);font-size:1rem;font-family:var(--spr-font-body);text-transform:uppercase;letter-spacing:.05em;margin-bottom:var(--spr-space-3)}
.spr-footer__links{list-style:none;display:flex;flex-direction:column;gap:var(--spr-space-2);margin:0;padding:0}
.spr-footer__links a{color:var(--spr-text-inverse);text-decoration:none;opacity:.9}
.spr-footer__links a:hover,.spr-footer__links a:focus-visible{opacity:1;color:var(--spr-lime-500)}
.spr-footer__grid p a{color:var(--spr-lime-500);text-decoration:underline;text-underline-offset:2px}
.spr-footer__grid p a:hover,.spr-footer__grid p a:focus-visible{color:var(--spr-lime-500);opacity:.85}
.spr-footer__grid p{color:var(--spr-text-inverse);opacity:.85;font-size:.92rem;margin:0 0 var(--spr-space-2)}
.spr-footer__grid strong{color:var(--spr-lime-500)}
.spr-footer__base{
  border-top:1px solid var(--spr-forest-800);padding:var(--spr-space-4) 0 var(--spr-space-6);font-size:.82rem;
  color:var(--spr-text-inverse);opacity:.75;
}
.spr-footer__base p{margin:0}
.spr-footer__badge{
  display:inline-flex;align-items:center;justify-content:center;min-width:2.2em;padding:2px 6px;margin-right:var(--spr-space-2);
  border:1.5px solid var(--spr-lime-500);border-radius:var(--spr-radius-sm);color:var(--spr-lime-500);font-weight:700;font-size:.82rem;
}
@media (max-width:720px){
  .spr-footer__grid{grid-template-columns:1fr;padding-bottom:var(--spr-space-4)}
}

@media (prefers-reduced-motion:reduce){
  .spr-entry__thumb img,.spr-navigation{transition:none}
}
