/* Bike Club · Golden Original. Colors and type from the Brand Guide v1 (Dec 2026). */
@font-face { font-family: "Pirata One"; src: url("../fonts/PirataOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/Oswald-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/Oswald-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/Oswald-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --golden: #D4A537;
  --ink: #0F0E0D;
  --bone: #EDE6D6;
  --iron: #4A4540;
  --rust: #9A3A1E;
  --paper: #F6F2E9;
  --rule: #CDC3AF;
  --ink-2: #1B1917;
  --ink-3: #2A2724;
  --max: 1120px;
  --display: "Pirata One", "Times New Roman", serif;
  --sans: "Oswald", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--golden); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* Labels: Oswald SemiBold, uppercase, tracked +220 */
.label, .nav a, .btn, .kicker, .tag, th {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .22em;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(48px, 8vw, 92px); color: var(--golden); }
h2 { font-size: clamp(36px, 5vw, 56px); }
h3 { font-size: 30px; }
p { margin: 0 0 1em; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(15,14,13,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--ink-3); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand span { font-family: var(--display); font-size: 26px; color: var(--golden); line-height: 1; }
.nav { display: flex; gap: 26px; }
.nav a { white-space: nowrap; font-size: 13px; text-decoration: none; color: var(--bone); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--golden); border-color: var(--golden); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; text-decoration: none; cursor: pointer;
  padding: 13px 20px; border-radius: 2px; border: 1.5px solid var(--golden); background: var(--golden); color: var(--ink);
  transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--golden); }
.btn.ghost { background: transparent; color: var(--golden); }
.btn.ghost:hover { background: var(--golden); color: var(--ink); }
.btn.small { padding: 8px 12px; font-size: 11.5px; letter-spacing: .18em; }
.on-bone .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.on-bone .btn.ghost:hover { background: var(--ink); color: var(--bone); }
.on-bone .btn { background: var(--ink); border-color: var(--ink); color: var(--golden); }
.on-bone .btn:hover { background: transparent; color: var(--ink); }

/* Hero */
.hero { padding: 64px 0 80px; text-align: center; }
.hero .patch { width: min(360px, 78vw); margin: 0 auto 28px; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); max-width: 620px; margin: 22px auto 30px; color: var(--bone); }
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.kicker { font-size: 13px; color: var(--golden); display: block; margin-bottom: 14px; }

/* Sections */
section { padding: 80px 0; }
.on-bone { background: var(--bone); color: var(--ink); }
.on-bone h2 { color: var(--ink); }
.on-bone .kicker { color: var(--rust); }
.on-ink-2 { background: var(--ink-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }

/* Next up */
.next {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; align-items: center;
  border: 1.5px solid var(--golden); padding: 26px 28px; background: var(--ink-2);
}
.datebox { text-align: center; border-right: 1px solid var(--ink-3); padding-right: 24px; }
.datebox .m { font-weight: 600; letter-spacing: .22em; color: var(--golden); font-size: 14px; }
.datebox .d { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--golden); }
.datebox .w { font-weight: 600; letter-spacing: .22em; font-size: 12px; color: var(--bone); }
.countdown { font-family: var(--sans); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: 13px; color: var(--golden); }

/* Season list */
.season { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.season li { display: grid; grid-template-columns: 130px 1fr 220px 150px; gap: 18px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--rule); }
.season .when { font-weight: 600; letter-spacing: .06em; }
.season .what { font-family: var(--display); font-size: 25px; line-height: 1.1; }
.season .where { color: var(--iron); font-size: 15px; }
.season .tba { color: var(--iron); font-weight: 400; }
.tag { display: inline-block; font-size: 10.5px; letter-spacing: .18em; padding: 4px 9px; border-radius: 2px; justify-self: start; }
.tag.committed { background: var(--golden); color: var(--ink); }
.tag.likely { background: var(--iron); color: var(--bone); }
.tag.maybe { border: 1px solid var(--iron); color: var(--iron); }
.site-head .tag.maybe, .on-ink-2 .tag.maybe, .cal .tag.maybe { border-color: #8d857b; color: #c9bfae; }
.tag.deadline { background: var(--rust); color: var(--bone); }

/* Club rides */
.rides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ride { border: 1px solid var(--ink-3); background: var(--ink); padding: 26px; display: flex; flex-direction: column; }
.ride .label { font-size: 11.5px; color: var(--golden); margin-bottom: 10px; }
.ride h3 { color: var(--bone); margin-bottom: 12px; }
.ride p { color: #cfc6b5; font-size: 16px; }
.ride .stat { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink-3); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; color: var(--golden); }

/* Crew */
.crew { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rider { border-top: 3px solid var(--ink); padding-top: 16px; }
.rider h3 { font-size: 34px; }
.rider .label { font-size: 11.5px; color: var(--iron); margin-top: 6px; display: block; }

/* The mark */
.mark { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.mark dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; }
.mark dt { font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: 13px; color: var(--golden); margin-bottom: 6px; }
.mark dd { margin: 0; color: #cfc6b5; font-size: 16px; }

/* Footer */
.site-foot { border-top: 1px solid var(--ink-3); padding: 44px 0 56px; }
.site-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot img { width: 260px; }
.site-foot .label { font-size: 12px; color: #8d857b; }

/* ---------- Calendar page ---------- */
.page-head { padding: 56px 0 36px; }
.page-head p { max-width: 640px; color: #cfc6b5; }
.sync { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; border: 1.5px solid var(--golden); background: var(--ink-2); padding: 26px 28px; margin-top: 30px; }
.sync h3 { color: var(--golden); margin-bottom: 8px; font-size: 28px; }
.sync p { color: #cfc6b5; font-size: 15.5px; margin-bottom: 0; }
.sync .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sync .feed { margin-top: 14px; display: flex; gap: 8px; }
.sync input { flex: 1; min-width: 0; background: var(--ink); border: 1px solid var(--ink-3); color: var(--bone); font: 400 14px var(--sans); padding: 9px 10px; border-radius: 2px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 40px 0 18px; }
.seg { display: inline-flex; border: 1.5px solid var(--golden); border-radius: 2px; overflow: hidden; }
.seg button { background: transparent; color: var(--golden); border: 0; padding: 9px 16px; font: 600 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--golden); color: var(--ink); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .label { font-size: 11.5px; color: #8d857b; margin-right: 4px; }
.chip { background: transparent; border: 1px solid #5a544d; color: var(--bone); padding: 6px 12px; border-radius: 999px; font: 500 13px var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* Month grid */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.month-nav h2 { color: var(--golden); font-size: 44px; }
.month-nav .arrows { display: flex; gap: 8px; }
.month-nav button { width: 40px; height: 40px; background: transparent; border: 1.5px solid var(--golden); color: var(--golden); font-size: 18px; cursor: pointer; border-radius: 2px; }
.month-nav button:disabled { opacity: .3; cursor: default; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--ink-3); border-top: 1px solid var(--ink-3); background: var(--ink-2); }
.grid .dow { background: var(--iron); color: var(--bone); font: 600 11.5px var(--sans); letter-spacing: .22em; text-align: center; padding: 8px 0; border-right: 1px solid var(--ink-3); }
.grid .cell { min-height: 112px; border-right: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); padding: 6px; position: relative; }
.grid .cell.out { background: var(--ink); }
.grid .cell.out .n { color: #4d4843; }
.grid .cell.today { box-shadow: inset 0 0 0 2px var(--rust); }
.grid .n { font-weight: 600; font-size: 14px; color: #a49b8c; margin-bottom: 4px; }
.bar { display: block; width: 100%; text-align: left; font: 500 12.5px/1.25 var(--sans); padding: 4px 7px; margin-bottom: 4px; border-radius: 2px; border: 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar.committed { background: var(--golden); color: var(--ink); }
.bar.likely { background: var(--bone); color: var(--ink); }
.bar.maybe { background: transparent; color: var(--bone); outline: 1px dashed #8d857b; outline-offset: -1px; }
.bar.deadline { background: var(--rust); color: var(--bone); }
.bar.cont { border-top-left-radius: 0; border-bottom-left-radius: 0; opacity: .85; }
.tba-strip { margin-top: 14px; padding: 12px 14px; border: 1px dashed #5a544d; color: #cfc6b5; font-size: 15px; }
.tba-strip strong { color: var(--golden); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; margin-right: 8px; }

/* List view */
.cal-list .mo { font-family: var(--display); color: var(--golden); font-size: 40px; margin: 34px 0 12px; }
.ev { scroll-margin-top: 90px; display: grid; grid-template-columns: 110px 1fr; background: var(--paper); color: var(--ink); margin-bottom: 14px; border-bottom: 3px solid var(--golden); }
.ev.maybe, .ev.likely { border-bottom-color: var(--iron); }
.ev.deadline { border-bottom-color: var(--rust); }
.ev .db { background: var(--ink); color: var(--golden); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 6px; text-align: center; }
.ev .db .m { font-weight: 600; letter-spacing: .22em; font-size: 13px; }
.ev .db .d { font-family: var(--display); font-size: 44px; line-height: 1; }
.ev .db .d.tbd { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: .12em; margin: 4px 0; }
.ev .db .w { font-weight: 600; letter-spacing: .2em; font-size: 11px; color: var(--bone); }
.ev .body { padding: 18px 22px 18px; }
.ev h3 { font-size: 28px; margin-bottom: 4px; }
.ev .meta { font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 11.5px; color: var(--iron); margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ev p { font-size: 15.5px; margin-bottom: 6px; }
.ev .signup { color: var(--iron); }
.ev .signup b { color: var(--ink); font-weight: 600; }
.ev .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; align-items: center; }
.ev .links a { color: var(--rust); font-weight: 500; font-size: 15px; }
.ev .add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ev .add .btn.small { background: var(--ink); color: var(--golden); border-color: var(--ink); }
.ev .add .btn.small:hover { background: transparent; color: var(--ink); }
.ev .add .note { font-size: 13.5px; color: var(--iron); align-self: center; }
.crewdots { font-size: 14px; color: var(--iron); }
.crewdots b { color: var(--ink); font-weight: 600; }

/* Event dialog (month view) */
dialog { border: 0; padding: 0; max-width: 620px; width: calc(100% - 32px); background: transparent; }
dialog::backdrop { background: rgba(15,14,13,.7); }
dialog .ev { margin: 0; }
dialog .close { position: absolute; right: 10px; top: 8px; background: transparent; border: 0; font-size: 26px; cursor: pointer; color: var(--iron); }
dialog .body { position: relative; }

.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Responsive */
@media (max-width: 900px) {
  .rides { grid-template-columns: 1fr; }
  .crew { grid-template-columns: repeat(2, 1fr); }
  .mark { grid-template-columns: 1fr; gap: 30px; }
  .mark img { width: 220px; margin: 0 auto; }
  .season li { grid-template-columns: 110px 1fr; }
  .season .where { grid-column: 2; margin-top: -10px; }
  .season .tag { grid-column: 2; }
  .next { grid-template-columns: 110px 1fr; }
  .next .btn { grid-column: 1 / -1; justify-self: start; }
  .sync { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: 11.5px; letter-spacing: .14em; }
  .nav a[href$="#season"] { display: none; }
  .brand span { display: none; }
  section { padding: 56px 0; }
  .mark dl { grid-template-columns: 1fr; }
  .grid .cell { min-height: 64px; padding: 3px; }
  .grid .dow { font-size: 9.5px; letter-spacing: .1em; }
  .bar { font-size: 0; padding: 0; height: 7px; margin-bottom: 3px; }
  .ev { grid-template-columns: 80px 1fr; }
  .ev .db .d { font-size: 34px; }
  .ev .body { padding: 14px 16px; }
}
