/* Sober Riders MC — site styles
   Colors and fonts are set once here in :root. */
:root {
  --bg: #0f0e0c;
  --surface: #181613;
  --surface-2: #211e1a;
  --line: #2f2b25;
  --text: #f3efe6;
  --muted: #b3ac9e;
  --faint: #7d776c;
  --gold: #f2c230;
  --gold-deep: #c99a12;
  --red: #c8281e;

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --text-hero: clamp(2.5rem, 1.6rem + 4.5vw, 5.25rem);

  --gutter: clamp(1.125rem, 0.8rem + 1.6vw, 2.5rem);
  --max: 1180px;
  --radius: 10px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd65a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 .75rem; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(15, 14, 12, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: .02em; white-space: nowrap; }
.brand span b { color: var(--gold); font-weight: 700; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: var(--text-sm); font-weight: 500;
  padding: .55rem .8rem; border-radius: 6px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav .nav-cta { color: #111; background: var(--gold); font-weight: 600; margin-left: .35rem; }
.nav .nav-cta:hover { background: #ffd65a; color: #111; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 1.0625rem; padding: .95rem .25rem; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a:hover { background: transparent; }
  .nav .nav-cta { margin: 1rem 0 0; text-align: center; border-radius: 8px; border: 0; padding: .95rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  padding: .8rem 1.35rem; border-radius: 8px; font-weight: 600; font-size: var(--text-sm); text-decoration: none;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; cursor: pointer;
}
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: #ffd65a; color: #111; }
.btn-ghost { border-color: rgba(243,239,230,.35); color: var(--text); background: rgba(0,0,0,.25); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86dvh, 760px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,14,12,.35) 0%, rgba(15,14,12,.15) 35%, rgba(15,14,12,.85) 75%, var(--bg) 100%);
}
.hero .wrap { padding-top: 5rem; padding-bottom: clamp(2.5rem, 6vw, 5rem); display: grid; gap: 1.5rem; }
.hero-patch { width: clamp(108px, 18vw, 168px); height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); }
.hero h1 { font-size: var(--text-hero); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lede { font-size: var(--text-lg); color: #e4ded2; max-width: 42ch; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Facts strip ---------- */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 1.5rem 1rem 1.5rem 0; }
.fact + .fact { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--gold); line-height: 1.1; }
.fact span { font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 720px) {
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact { padding: 1.15rem .75rem 1.15rem 0; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { font-size: var(--text-2xl); max-width: 18ch; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split h2 { font-size: var(--text-2xl); margin-bottom: 1.25rem; }
.split p { color: var(--muted); font-size: var(--text-base); max-width: 58ch; }
.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.photo img { width: 100%; height: auto; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.quote {
  font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.25; color: var(--text);
  border-left: 3px solid var(--gold); padding-left: 1.25rem; margin: 2rem 0 0; max-width: 30ch;
}

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(2.75rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 120% at 85% 0%, rgba(242,194,48,.10), transparent 60%); }
.page-head h1 { font-size: var(--text-2xl); }
.page-head p { color: var(--muted); max-width: 60ch; margin: 1rem 0 0; font-size: var(--text-lg); }
.crumbs { font-size: var(--text-sm); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Chapters ---------- */
.chapter-tools { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 2rem; }
.search {
  flex: 1 1 260px; min-height: 48px; padding: .75rem 1rem .75rem 2.75rem; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23b3ac9e' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1rem center;
  border: 1px solid var(--line); border-radius: 8px;
}
.search::placeholder { color: var(--faint); }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  min-height: 40px; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font: inherit; font-size: var(--text-sm); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 600; }
.region { margin-bottom: 2.5rem; }
.region h2 { font-size: var(--text-xl); display: flex; align-items: center; gap: .65rem; padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.region h2 img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.region h2 small { font-family: var(--font-body); font-size: var(--text-sm); color: var(--faint); font-weight: 500; margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .85rem; }
.card {
  position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 1.15rem 1.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s, transform .15s;
}
.card:hover { border-color: var(--gold-deep); background: var(--surface-2); color: var(--text); }
.card h3 { font-size: 1.3rem; }
.card .area { color: var(--muted); font-size: var(--text-sm); }
.card .meta { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: var(--text-xs); color: var(--faint); }
.card .meta b { color: var(--muted); font-weight: 600; }
.card .tag { position: absolute; top: 1rem; right: 1rem; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.empty { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Chapter detail */
.detail { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 1.25rem); }
.info img { width: 160px; margin: 0 auto 1.25rem; }
.info dl { margin: 0; display: grid; gap: 1rem; }
.info dt { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.info dd { margin: .15rem 0 0; font-size: var(--text-lg); font-weight: 600; word-break: break-word; }
.info .btn { width: 100%; margin-top: 1.5rem; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .info { position: static; } }

/* ---------- Video ---------- */
.videos { display: grid; gap: 1.75rem; }
.video figure { margin: 0; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .play {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: #000;
  display: grid; place-items: center;
}
.player .play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s; }
.player .play:hover img { opacity: 1; }
.player .play span {
  position: relative; width: 72px; height: 72px; border-radius: 50%; background: var(--gold); display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.player .play svg { width: 28px; height: 28px; margin-left: 4px; fill: #111; }
.video figcaption { padding-top: .75rem; display: flex; flex-direction: column; gap: .15rem; }
.video figcaption strong { font-size: var(--text-base); }
.video figcaption span { font-size: var(--text-sm); color: var(--muted); }

/* ---------- Calendar ---------- */

/* ---------- Support store ---------- */
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 1.5rem; }

/* ---------- Contact band ---------- */
.contact-band { background: var(--gold); color: #111; }
.contact-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.contact-band h2 { font-size: var(--text-xl); }
.contact-band p { margin: .35rem 0 0; color: #3a3220; }
.contact-band .btn { background: #111; color: var(--gold); }
.contact-band .btn:hover { background: #000; color: #ffd65a; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0b0a09; font-size: var(--text-sm); color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.site-footer h3 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-brand { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.foot-brand img { width: 120px; }
.foot-base { border-top: 1px solid var(--line); }
.foot-base .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1.25rem; grid-template-columns: none; color: var(--faint); font-size: var(--text-xs); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .foot-col-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Added: announcements, events, photos, swag store ---------- */
.notice-bar { background: var(--gold); color: #17140f; font-size: var(--text-sm); font-weight: 600; text-align: center; padding: .55rem var(--gutter); }
.notice-bar a { color: inherit; text-decoration: underline; }
.nav .ext { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; vertical-align: -1px; margin-left: 2px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faint { color: var(--faint); }
.stretch { color: inherit; text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretch:hover { color: var(--gold); }
.card a:not(.stretch) { position: relative; z-index: 1; }
.card .pres { margin: .7rem 0 .15rem; display: flex; gap: .5rem; align-items: baseline; font-size: var(--text-sm); }
.card .pres dt { color: var(--faint); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; }
.card .pres dd { margin: 0; color: var(--text); font-weight: 600; }
.card-mail { font-size: var(--text-sm); color: var(--gold); word-break: break-all; }
.count { margin: 0 0 1.25rem; font-size: var(--text-sm); }
.sub-h { font-size: var(--text-lg); margin: 0 0 1rem; }
.detail-main { display: grid; gap: 2rem; min-width: 0; }
.about p { color: var(--muted); max-width: 65ch; }
.btn-sm { padding: .5rem .9rem; font-size: var(--text-sm); min-height: 40px; }

.events { display: grid; gap: .9rem; }
.event { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: start; padding: 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 1rem); }
.band .event { background: var(--bg); }
.event.flash { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,194,48,.18); }
.event.compact { transition: border-color .15s; }
.event.compact:hover { border-color: var(--gold-deep); }
.ev-date { width: 64px; text-align: center; border-radius: 8px; background: var(--gold); color: #17140f; padding: .45rem 0 .5rem; line-height: 1; }
.ev-date span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ev-date b { display: block; font-family: var(--font-display); font-size: 1.85rem; margin-top: .2rem; }
.ev-body { min-width: 0; }
.ev-body h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.ev-body p { margin: .15rem 0; font-size: var(--text-sm); }
.ev-when { color: var(--text); font-weight: 600; }
.ev-where { color: var(--muted); display: flex; gap: .35rem; align-items: flex-start; }
.ev-where svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: var(--gold); stroke-width: 2; }
.ev-host { color: var(--faint); }
.ev-details { color: var(--muted); margin-top: .6rem !important; max-width: 62ch; }
.ev-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.ev-flyer img { width: 120px; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.events-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 640px) {
  .event { grid-template-columns: auto 1fr; gap: .9rem; padding: 1rem; }
  .ev-date { width: 54px; }
  .ev-flyer { grid-column: 1 / -1; }
  .ev-flyer img { width: 100%; height: auto; max-height: 360px; }
}
.month + .month { margin-top: 2.5rem; }
.month h2 { font-size: var(--text-lg); margin-bottom: 1rem; color: var(--gold); }
.cal-tools { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.cal-tools .count { margin: 0; }
.select { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: .65rem 2.25rem .65rem .9rem; font: inherit; min-height: 44px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.cal-note { margin-top: 2rem; font-size: var(--text-sm); }

.skeleton { min-height: 96px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

.swag-card { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: 14px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(242,194,48,.16), transparent 55%), var(--surface); border: 1px solid var(--line); }
.swag-card h2 { font-size: var(--text-xl); margin-bottom: .5rem; }
.swag-card p { color: var(--muted); max-width: 56ch; margin: 0; }
@media (max-width: 720px) { .swag-card { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: var(--text-sm); color: var(--muted); margin-top: .45rem; }
.gallery .skeleton { aspect-ratio: 4 / 3; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8,7,6,.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: var(--text); margin-top: .75rem; font-size: var(--text-sm); }
.lb-close, .lb-nav { position: fixed; background: rgba(24,22,19,.85); color: var(--text); border: 1px solid var(--line); border-radius: 999px; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close { top: 1rem; right: 1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-close:hover, .lb-nav:hover { border-color: var(--gold); color: var(--gold); }
.foot-note { color: var(--faint); font-size: var(--text-xs); max-width: 40ch; margin-top: 1rem; }
.swag-card img { width: 256px; max-width: 100%; height: auto; border-radius: 10px; }
