/* rally-bikes.com. Values follow the Rally Bikes design manual: black, white, one yellow for the call to action. */

/* Inter Black Italic, the headline font where the device has no SF Pro. Two files from Google Fonts: Latin, and extended Latin. */
@font-face { font-family: Inter; font-style: italic; font-weight: 900; font-display: swap; src: url("https://fonts.gstatic.com/s/inter/v20/UcCM3FwrK3iLTcvneQg7Ca725JhhKnNqk4j1ebLhAm8SrXTccNxRipWFsevceSGM.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: italic; font-weight: 900; font-display: swap; src: url("https://fonts.gstatic.com/s/inter/v20/UcCM3FwrK3iLTcvneQg7Ca725JhhKnNqk4j1ebLhAm8SrXTccNxRhJWFsevceSGMIYY.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inconsolata; src: url("fonts/inconsolata-v31-latin-ext-latin-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inconsolata; src: url("fonts/inconsolata-v31-latin-ext-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inconsolata; src: url("fonts/inconsolata-v31-latin-ext-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #111111; --ground-hover: #1a1a1a; --ground-raised: #202020; --panel: #2a2a2a; --card: #4c4c4c; --line: #1f1f1f;
  --ink: #ffffff; --ink-soft: #f0f0f0; --ink-dim: #e1e1e1;
  --yellow: #ffd918; --on-yellow: #000000; --yellow-deep: #9a8300;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Inconsolata", ui-monospace, Menlo, Consolas, monospace;
  --gap-menu: 8px; --pad-card: 14.4px; --pad-button: 16px; --gutter: 20px; --pad-callout: 20.8px; --gap-cards: 25px;
  --page: clamp(24px, 6.6vw, 96px);
  --radius-tag: 3px; --radius-image: 5px; --radius-menu: 6px; --radius-callout: 8px; --radius-card: 10px; --radius-pill: 50px;
  --content-max: 1248px; --read-max: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-mono); font-size: 16px; line-height: 24px; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.rb-skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--ink); color: var(--ground); z-index: 20; }
.rb-skip:focus { left: 8px; }
.rb-wrap { max-width: calc(var(--content-max) + 2 * var(--page)); margin: 0 auto; padding-left: var(--page); padding-right: var(--page); }
.rb-section { padding-top: clamp(48px, 6vw, 88px); }
.rb-stack { display: flex; flex-direction: column; gap: 20px; }
.rb-lede { max-width: 62ch; }
.rb-muted { color: var(--ink-soft); }
.rb-small { font-size: 14px; line-height: 21px; }
.rb-caption { font-size: 12px; line-height: 19.2px; color: var(--ink-soft); }

/* Display type: heavy italic capitals. */
.rb-display { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.rb-display--hero { font-size: clamp(44px, 8.4vw, 120px); line-height: 0.95; letter-spacing: -0.01em; }
.rb-display--title { font-size: clamp(36px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.01em; }
.rb-display--1 { font-size: 36px; line-height: 46.8px; }
.rb-display--2 { font-size: 28.8px; line-height: 37.44px; }
.rb-display--3 { font-size: 24px; line-height: 31.2px; }
.rb-hl { color: var(--yellow); }
.rb-link { font-style: italic; text-underline-offset: 0.15em; }
.rb-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }

/* The call to action. */
.rb-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: var(--yellow); color: var(--on-yellow);
  font-family: var(--font-mono); font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.rb-btn:hover { filter: brightness(0.93); }

/* Top bar. */
.rb-top { border-bottom: 1px solid var(--line); }
.rb-top__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 8px; padding-bottom: 8px; }
.rb-top__logo { display: flex; align-items: center; min-height: 44px; }
.rb-top__logo img { display: block; width: 180px; height: 21px; }
.rb-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 320px; }
.rb-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--radius-menu); color: var(--ink-soft); text-decoration: none; }
.rb-nav a:hover, .rb-nav a[aria-current] { background: var(--ground-hover); }
@media (max-width: 720px) {
  .rb-top__in { justify-content: space-between; }
  .rb-top__logo img { width: 150px; height: auto; }
  .rb-nav { order: 3; flex-basis: 100%; gap: 0; margin: 0 -8px; }
  .rb-nav a { padding: 0 8px; }
}

/* Cards. */
.rb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--gap-cards); }
.rb-card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border-radius: var(--radius-card); color: var(--ink); text-decoration: none; }
.rb-card:hover { background: var(--yellow-deep); }
.rb-card__cover { display: block; width: 100%; height: 220px; object-fit: cover; background: var(--panel); }
.rb-card__body { display: flex; flex-direction: column; gap: 6px; padding: var(--pad-card); }
.rb-card__title { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 15.536px; line-height: 19.2px; text-transform: uppercase; }
.rb-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; line-height: 19.2px; }
.rb-tag { display: inline-block; padding: 0 6px; border-radius: var(--radius-tag); background: var(--ground-raised); color: var(--ink-soft); font-size: 14px; line-height: 18px; white-space: nowrap; }
.rb-card .rb-tag { background: var(--ground); }

/* Tables of facts. */
.rb-table-wrap { overflow-x: auto; }
.rb-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 21px; font-variant-numeric: tabular-nums; }
.rb-table th { padding: 9.6px 12.8px 9.6px 8px; text-align: left; font-weight: 400; color: var(--ink-soft); white-space: nowrap; border-bottom: 1px solid var(--line); }
.rb-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rb-table .is-num { text-align: right; white-space: nowrap; }
.rb-table__score { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 24px; line-height: 31.2px; }
.rb-table__name { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 15.536px; text-transform: uppercase; text-decoration: none; }
.rb-table__name:hover { text-decoration: underline; }
.rb-table--bikes { min-width: 860px; }
.rb-table--events { min-width: 760px; }
.rb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius-menu); background: var(--ground-raised); color: var(--ink-soft); font: inherit; cursor: pointer; }
.rb-chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

/* Rows: a heavy name on the left, facts on the right. */
.rb-rows { display: flex; flex-direction: column; }
.rb-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rb-row__name { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 24px; line-height: 31.2px; }
a.rb-row:hover .rb-row__name { text-decoration: underline; }

/* Boxes. */
.rb-box { display: flex; flex-direction: column; gap: 12px; padding: var(--pad-callout); background: var(--ground-raised); border-radius: var(--radius-callout); }
.rb-box--panel { background: var(--panel); gap: 16px; }
.rb-split { display: flex; flex-wrap: wrap; gap: var(--gap-cards); }
.rb-split > * { flex: 1 1 320px; min-width: 0; }
.rb-split > .is-wide { flex: 2 1 480px; }
.rb-stats { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.rb-stat__n { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.1; }
.rb-stat__n--s { font-size: 36px; line-height: 46.8px; }
.rb-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--ground); }
.rb-code button { min-height: 44px; padding: 0 12px; border: 1px solid var(--ink-dim); border-radius: var(--radius-menu); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.rb-band { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rb-band p { flex: 1 1 320px; min-width: 0; }

/* Hero and page openers. */
.rb-hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: 32px; }
.rb-photo { margin: 0; }
.rb-photo img { display: block; width: 100%; height: clamp(220px, 42vw, 560px); object-fit: cover; border-radius: var(--radius-image); }
.rb-photo figcaption { margin-top: 8px; }
.rb-page { padding-top: clamp(40px, 5vw, 72px); padding-bottom: 24px; }
.rb-crumb { font-size: 14px; line-height: 21px; }
.rb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; line-height: 21px; color: var(--ink-soft); }
.rb-meta img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* A bike's sheet. */
.rb-bike { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.rb-bike__media { flex: 3 1 420px; min-width: 0; }
.rb-bike__facts { flex: 2 1 300px; min-width: 0; }
.rb-score { display: flex; align-items: baseline; gap: 12px; }
.rb-score__n { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 64px; line-height: 1; }
.rb-sheet { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; font-size: 14px; line-height: 21px; }
.rb-sheet dt, .rb-sheet dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rb-sheet dt { padding-right: 24px; color: var(--ink-soft); }
.rb-sheet dd { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Reading text written by the team. */
.rb-prose { max-width: var(--read-max); display: flex; flex-direction: column; gap: 16px; }
.rb-prose--wide { max-width: none; }
.rb-prose > p, .rb-prose > ul, .rb-prose > ol, .rb-prose > h2, .rb-prose > h3, .rb-prose > h4, .rb-prose > .rb-callout, .rb-prose > .rb-file { max-width: var(--read-max); }
.rb-prose h2, .rb-prose h3, .rb-prose h4 { margin: 16px 0 0; font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; text-wrap: balance; }
.rb-prose h2 { font-size: 36px; line-height: 46.8px; }
.rb-prose h3 { font-size: 28.8px; line-height: 37.44px; }
.rb-prose h4 { font-size: 24px; line-height: 31.2px; }
/* a heading moved up a level to keep the outline in order keeps the size it was written with */
.rb-prose .rb-as-3 { font-size: 28.8px; line-height: 37.44px; }
.rb-prose .rb-as-4 { font-size: 24px; line-height: 31.2px; }
.rb-prose h2 strong, .rb-prose h3 strong, .rb-prose h4 strong { font-weight: inherit; }
.rb-prose mark { background: none; color: inherit; font-weight: 700; }
.rb-prose h2 mark, .rb-prose h3 mark, .rb-prose h4 mark { font-weight: inherit; }
.rb-prose a { font-style: italic; text-underline-offset: 0.15em; overflow-wrap: anywhere; }
.rb-prose ul, .rb-prose ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.rb-prose hr { width: 100%; margin: 12px 0; border: 0; border-top: 1px solid var(--line); }
.rb-figure { margin: 0; }
.rb-figure img { display: block; border-radius: var(--radius-image); }
.rb-figure figcaption { margin-top: 8px; font-size: 12px; line-height: 19.2px; color: var(--ink-soft); }
.rb-cols { display: flex; gap: var(--gutter); align-items: flex-start; }
.rb-col { flex: var(--w, 1) 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rb-col h2, .rb-col h3, .rb-col h4 { margin-top: 4px; }
@media (max-width: 640px) {
  .rb-cols { flex-wrap: wrap; }
  .rb-cols .rb-col { flex: 1 1 calc(50% - var(--gutter)); }
  .rb-cols.is-text .rb-col { flex-basis: 100%; }
}
.rb-callout { display: flex; gap: 12px; align-items: flex-start; padding: var(--pad-callout) var(--pad-callout) var(--pad-callout) var(--pad-button); background: var(--ground-raised); border-radius: var(--radius-callout); }
.rb-callout > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rb-callout__icon { flex: none; width: 24px; text-align: center; }
.rb-file a { font-weight: 700; }
.rb-pdf iframe { display: block; width: 100%; height: min(80vh, 800px); border: 0; border-radius: var(--radius-image); background: var(--panel); }
.rb-pdf p { margin-top: 8px; }
.rb-embed { position: relative; aspect-ratio: 16 / 9; }
.rb-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-image); }
.rb-partners .rb-figure img { width: min(100%, 260px); }
.rb-cover { margin: 0; }
.rb-cover img { display: block; width: 100%; height: clamp(200px, 36vw, 480px); object-fit: cover; border-radius: var(--radius-image); }

/* The form on the page for brands. */
.rb-form { display: flex; flex-direction: column; gap: 16px; padding: var(--pad-callout); background: var(--panel); border-radius: var(--radius-card); }
.rb-form__row { display: flex; flex-wrap: wrap; gap: 16px; }
.rb-field { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rb-field input, .rb-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--ink-dim); border-radius: var(--radius-menu); background: var(--ground); color: var(--ink); font: inherit; }
.rb-field textarea { resize: vertical; }
.rb-form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rb-examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--gap-cards); }
.rb-example img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-image); background: var(--panel); }
.rb-example p { margin-top: 8px; }

/* Footer. */
.rb-foot { margin-top: clamp(48px, 6vw, 88px); padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.rb-foot__in { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.rb-foot__about { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rb-foot__about img { display: block; width: 240px; height: 70px; }
.rb-foot__lists { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.rb-foot__lists nav { display: flex; flex-direction: column; }
.rb-foot__lists a, .rb-foot__lists span { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: none; }
.rb-foot__lists a:hover { text-decoration: underline; }
