/*
 * vayro.fit landing page. Type and shapes follow the app (app/src/theme/tokens.css).
 * Colours are the DUBIC TECH set: black and white as the base, cool silver for
 * emphasis, blood red for actions and the route, and a warm glow of light rays.
 * Change them in :root below; no rule further down names a colour of its own.
 */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --bg: #ffffff;
  --surface: #eef2f1;
  --line: #dde3e1;
  --line-strong: #cbd5d2;
  --ink: #0a0a0b;
  --ink-2: #5c6664;
  --ink-3: #a3afac;
  --night: #050506;
  --night-2: #151718;
  --night-3: #202324;
  --on-night: #ffffff;
  --on-night-2: #a9b6b3;
  --rule-night: rgba(197, 209, 206, 0.2);
  /* Silver: the brushed metal, light to dark */
  --silver: #c5d1ce;
  --silver-hi: #f4f8f7;
  --silver-lo: #7f918d;
  /* Red: actions, the route line, the number that matters */
  --accent: #dc1626;
  --accent-press: #b8101d;
  --on-accent: #ffffff;
  --danger: #dc1626;
  /* Glow: warm light, used as rays and a soft halo (R G B) */
  --glow: 236 224 184;
  --go: #1fbf5f;
  --font-ui: 'Inter Variable', -apple-system, 'SF Pro Text', system-ui, sans-serif;
  --font-display: 'Archivo Variable', 'SF Pro Display', system-ui, sans-serif;
  --radius-card: 18px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

em {
  font-style: normal;
  color: var(--silver);
}
/* Brushed metal for the big headline words */
.hero h1 em,
.compete h2 em {
  background: linear-gradient(180deg, var(--silver-hi) 0%, var(--silver) 42%, var(--silver-lo) 60%, var(--silver) 78%, var(--silver-hi) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared pieces ---------- */

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: 19px;
  letter-spacing: 0.2em;
}
.wordmark b {
  font-weight: inherit;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 96%;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s var(--ease-out);
}
.btn:hover {
  background: var(--accent-press);
}
.btn:active {
  transform: scale(0.97);
}
.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

.btn-ghost {
  background: var(--night-2);
  color: var(--on-night);
}
.btn-ghost:hover {
  background: var(--night-3);
}

.kicker {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.section-title,
.feature h2,
.compete h2,
.final h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 70%;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.section-title {
  font-size: clamp(44px, 7vw, 92px);
}

.phone {
  width: 100%;
  border-radius: 13% / 6.5%;
  background: #000;
  padding: 3.2%;
  box-shadow: 0 0 0 1px rgba(197, 209, 206, 0.34);
}
.phone img {
  width: 100%;
  border-radius: 10.5% / 5.25%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: var(--on-night);
  overflow: clip;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: max(22px, env(safe-area-inset-top));
  padding-bottom: 22px;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 600;
  font-size: 15px;
  color: var(--on-night-2);
}
.nav-links a:hover {
  color: var(--on-night);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  padding-top: clamp(28px, 5vw, 64px);
}
.hero-copy {
  container-type: inline-size;
  padding-bottom: clamp(48px, 6vw, 88px);
}

/* A plain line of facts, separated by accent slashes */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-night-2);
}
.meta span + span::before {
  content: '/';
  margin-right: 14px;
  color: var(--accent);
}

.hero h1 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  /* Sized from the column so "One workout." always fits on one line. */
  font-size: clamp(48px, 17.4cqi, 184px);
  line-height: 0.84;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.hero h1 em {
  white-space: nowrap;
}

.lede {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--on-night-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.text-link {
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 2px;
}
.text-link:hover {
  color: var(--accent);
}

/* The phone stands straight and runs off the bottom edge, behind the totals. */
.hero-phone {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  margin-bottom: clamp(-200px, -14vw, -110px);
}

/* Light bursting from behind the phone: two sets of uneven rays and a soft halo, faded out at the edges */
.hero-phone::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 40%;
  width: 380%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgb(var(--glow) / 0.42), rgb(var(--glow) / 0.14) 32%, transparent 60%),
    repeating-conic-gradient(from 3deg, transparent 0deg 2.4deg, rgb(var(--glow) / 0.66) 2.9deg 3.5deg, transparent 4deg 7deg),
    repeating-conic-gradient(from 0deg, transparent 0deg 6deg, rgb(var(--glow) / 0.4) 6.6deg 8.2deg, transparent 8.8deg 13deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.3) 56%, transparent 80%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.3) 56%, transparent 80%);
}

/* The totals of one workout, as large as the headline */
.totals-band {
  position: relative;
  z-index: 1;
  background: var(--night);
  border-top: 1px solid var(--rule-night);
}
.totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.totals div {
  display: flex;
  flex-direction: column-reverse;
  padding: clamp(18px, 2.4vw, 30px) 0 clamp(20px, 2.6vw, 34px) clamp(14px, 2.2vw, 30px);
  border-left: 1px solid var(--rule-night);
}
.totals div:first-child {
  padding-left: 0;
  border-left: 0;
}
.totals dd {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-variant-numeric: tabular-nums;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.totals dt {
  margin-top: 10px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-night-2);
}
.totals .hot dd {
  color: var(--accent);
}

/* ---------- One workout, as a log ---------- */

main {
  background: var(--bg);
}

.workout,
.app,
.privacy {
  padding-block: clamp(64px, 9vw, 128px);
}

/* Heading on the left, supporting text or data on the right */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
}
.split-head .section-title,
.reps .section-title {
  font-size: clamp(40px, 5.6vw, 76px);
}
.split-head > p {
  max-width: 30em;
  font-size: 18px;
  color: var(--ink-2);
}

.log {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 2px solid var(--ink);
}
.log li {
  display: grid;
  grid-template-columns: clamp(96px, 12vw, 150px) 46px minmax(0, 1fr);
  column-gap: clamp(14px, 2.4vw, 32px);
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.log .at {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  white-space: nowrap;
}
.log .at small {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* The route: one line through every row, with a marker per event */
.rail {
  position: relative;
}
.rail::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -29px;
  bottom: -29px;
  width: 12px;
  margin-left: -6px;
  background: var(--accent);
  border-inline: 2px solid var(--ink);
}
.log li:first-child .rail::before {
  top: 16px;
}
.log li:last-child .rail::before {
  bottom: auto;
  height: 45px;
}
.node {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 4px;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  border: 5px solid #fff;
  box-shadow: 0 0 0 2px var(--ink);
}
.node-start,
.node-finish {
  top: 1px;
  width: 32px;
  height: 32px;
  margin-left: -16px;
}
.node-start {
  background: var(--silver);
}
.node-finish {
  background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 11px 11px;
}
.node-bar {
  top: -7px;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  border: 0;
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 6px var(--ink);
}

.log h3,
.promises h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.log .body p {
  margin-top: 8px;
  max-width: 36em;
  color: var(--ink-2);
}
.sets {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 18px;
}
.sets div {
  display: flex;
  flex-direction: column-reverse;
}
.sets dd {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-variant-numeric: tabular-nums;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 0.9;
}
.sets dt {
  margin-top: 6px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- What counts as a rep ---------- */

.reps {
  background: var(--surface);
  padding-block: clamp(64px, 9vw, 128px);
}
.reps-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(28px, 6vw, 96px);
}
.reps-copy p {
  margin-top: 20px;
  max-width: 28em;
  font-size: 18px;
  color: var(--ink-2);
}
.reps-copy .section-title + p {
  margin-top: 28px;
}

/* A trace of chin height over three pulls: two clear the bar, one does not */
.trace {
  margin: 0;
}
.trace-plot {
  position: relative;
  aspect-ratio: 3 / 1.1;
}
.trace-plot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.trace-plot svg * {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}
.trace .hang {
  stroke: var(--line-strong);
  stroke-width: 2px;
}
.trace .bar {
  stroke: var(--ink);
  stroke-width: 6px;
}
.trace .rep {
  stroke: var(--accent);
  stroke-width: 5px;
}
.trace .half {
  stroke: var(--ink-3);
  stroke-width: 5px;
  stroke-dasharray: 1 11;
}
.lvl {
  position: absolute;
  left: 0;
  transform: translateY(calc(-100% - 10px));
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.lvl-bar {
  top: 30%;
}
.lvl-hang {
  top: 85%;
  /* under its line, clear of the curve */
  transform: translateY(9px);
  color: var(--ink-2);
}
.peak {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--surface);
  box-sizing: content-box;
  margin: -13px 0 0 -13px;
}
.peak-half {
  background: var(--surface);
  border-color: var(--ink-3);
  width: 10px;
  height: 10px;
  margin: -9px 0 0 -9px;
}

/* One column under each pull, lined up with the curve above */
.trace-reps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 0 15%;
}
.trace-reps li {
  padding: 2px clamp(10px, 1.6vw, 20px) 2px;
  border-left: 1px solid var(--line-strong);
}
.trace-reps b {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.9;
  color: var(--accent);
}
.trace-reps .no b {
  color: var(--ink-3);
}
.trace-reps h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.trace-reps p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.trace figcaption {
  margin: 22px 0 0 15%;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- The app ---------- */

.specs {
  border-top: 2px solid var(--ink);
}
.specs div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.specs dd {
  font-weight: 500;
}

/* Real screens, shown flat: no device frames */
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 32px);
  margin-top: clamp(40px, 6vw, 72px);
}
.shots figure {
  margin: 0;
}
.shots img {
  width: 100%;
  border-radius: clamp(16px, 2vw, 26px);
  box-shadow: 0 0 0 1px var(--line);
}
.shots figcaption {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.shots figcaption b {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Compete ---------- */

.compete {
  background: var(--night);
  color: var(--on-night);
  padding-block: clamp(72px, 10vw, 136px);
}
.compete-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 6vw, 96px);
}
.compete-copy {
  container-type: inline-size;
}
.compete h2 {
  font-size: clamp(48px, 19cqi, 148px);
  font-stretch: 62%;
  line-height: 0.86;
}
.compete h2 em {
  white-space: nowrap;
}
.compete-copy p {
  margin-top: 22px;
  max-width: 30em;
  font-size: 18px;
  color: var(--on-night-2);
}
.compete-copy h2 + p {
  margin-top: 30px;
}
.compete-copy strong {
  color: var(--on-night);
}

.boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(20px, 3vw, 40px);
}
.board h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--on-night);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.board h3 span {
  color: var(--on-night-2);
}
.board li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 12px;
  border-bottom: 1px solid var(--rule-night);
}
.board b {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
}
.board li:first-child b {
  color: var(--accent);
}
.board li span {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-night-2);
}
.board-note {
  grid-column: 1 / -1;
  margin-top: 18px;
  font-size: 15px;
  color: var(--on-night-2);
}

/* ---------- Privacy ---------- */

.promises {
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 2px solid var(--ink);
}
.promises li {
  display: grid;
  grid-template-columns: clamp(56px, 10vw, 150px) minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px clamp(16px, 3vw, 48px);
  padding-block: clamp(20px, 2.6vw, 30px);
  border-bottom: 1px solid var(--line);
}
.promises .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.85;
  color: var(--ink-3);
}
.promises p {
  color: var(--ink-2);
}
.privacy-link {
  margin-top: 28px;
}

/* ---------- Final call: a band of brushed silver ---------- */

.final {
  background: linear-gradient(180deg, var(--silver-hi) 0%, var(--silver) 46%, #b3c1bd 100%);
  color: var(--ink);
  padding-block: clamp(64px, 9vw, 128px);
}
.final h2 {
  font-size: clamp(48px, 10.4vw, 164px);
  font-stretch: 62%;
  line-height: 0.86;
  text-wrap: balance;
}
.final-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.final p {
  max-width: 30em;
  font-size: 18px;
  font-weight: 500;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--night);
  color: var(--on-night-2);
  padding-block: 34px max(30px, env(safe-area-inset-bottom));
  font-size: 14px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-bottom: 26px;
  /* The red line */
  border-bottom: 2px solid var(--accent);
}
.footer .wordmark {
  color: var(--on-night);
  font-size: 19px;
}
.footer nav {
  display: flex;
  gap: 22px;
  font-weight: 600;
}
.footer nav a:hover {
  color: var(--on-night);
}

.social {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.social [hidden] {
  display: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--silver);
  box-shadow: inset 0 0 0 1.5px var(--rule-night);
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.social a:hover {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}
.social svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 10px;
}
.maker {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* The logo sits on its own black; "screen" drops that black out so only the light, the white and the red show. */
.maker img {
  width: clamp(190px, 22vw, 270px);
  mix-blend-mode: screen;
}
.legal {
  max-width: 44em;
}

/* ---------- Simple text pages (privacy, 404) ---------- */

.doc {
  background: var(--bg);
  min-height: 100vh;
}
.doc-head {
  background: var(--night);
  color: var(--on-night);
}
.doc-head .nav {
  justify-content: space-between;
}
.doc main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 96px;
}
.doc h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 70%;
  text-transform: uppercase;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.92;
}
.doc h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 38px 0 8px;
}
.doc p,
.doc li {
  color: #2a2f2e;
}
.doc .muted {
  color: var(--ink-2);
  font-size: 15px;
  margin-top: 14px;
}
.doc ul {
  list-style: disc;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.doc main a {
  border-bottom: 2px solid var(--accent);
}
.doc .btn {
  margin-top: 28px;
  border: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav .btn-small {
    margin-left: auto;
  }
  .hero-grid,
  .split-head,
  .reps-grid,
  .compete-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding-bottom: 8px;
  }
  .hero-phone {
    width: min(66%, 290px);
    margin-bottom: -150px;
  }

  .totals {
    grid-template-columns: 1fr 1fr;
  }
  .totals dd {
    font-size: clamp(56px, 19vw, 120px);
  }
  .totals div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .totals div:nth-child(n + 3) {
    border-top: 1px solid var(--rule-night);
  }

  /* The distance moves above each entry; the route stays on the left */
  .log li {
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 16px;
  }
  .rail {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .log .at {
    grid-column: 2;
    text-align: left;
  }
  .log .body {
    grid-column: 2;
    margin-top: 6px;
  }

  .trace-plot {
    aspect-ratio: 3 / 1.5;
  }
  .trace-reps,
  .trace figcaption {
    margin-left: 0;
  }
  .trace-reps li:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .trace-reps li {
    padding-inline: 12px 6px;
  }

  /* Screens scroll sideways instead of shrinking */
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    padding-bottom: 8px;
  }
  .shots figure {
    scroll-snap-align: start;
  }

  .promises li {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .promises .num {
    grid-row: span 2;
  }
  .promises p {
    grid-column: 2;
  }
  .social {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .boards {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
}

@media (max-width: 420px) {
  .btn {
    width: 100%;
  }
  .nav .btn-small {
    width: auto;
  }
}

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