:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --border: #e4e1db;
  --text: #17181a;
  --muted: #5d6066;
  --accent: #12604f;
  --accent-soft: #e8f1ee;
  --radius: 10px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --surface: #1c1f24;
    --border: #2c3138;
    --text: #eceef1;
    --muted: #9aa1ab;
    --accent: #5fd2b4;
    --accent-soft: #1d3630;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }

/* header */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 5;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand .mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
@media (prefers-color-scheme: dark) { .brand .mark { color: #10221d; } }
nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
}
nav.site a:hover { color: var(--text); }

/* hero */
.hero { padding: 68px 0 46px; }
.tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 17ch;
}
.lede { font-size: 18.5px; color: var(--muted); max-width: 62ch; margin: 0 0 26px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}
@media (prefers-color-scheme: dark) { .btn { color: #10221d; } }
.btn.ghost { background: transparent; color: var(--accent); }

/* sections */
section { padding: 46px 0; border-top: 1px solid var(--border); }
h2 { font-size: 25px; letter-spacing: -0.02em; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.sub { color: var(--muted); max-width: 64ch; margin: 0 0 26px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* table */
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td.bike { white-space: normal; font-weight: 600; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* article body */
.prose { max-width: 68ch; padding: 46px 0; }
.prose h1 { font-size: 32px; max-width: none; }
.prose h2 { margin-top: 34px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 7px; }

/* footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0 46px;
  color: var(--muted);
  font-size: 14.5px;
}
footer.site .row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: var(--text); }
.disclosure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
}
