/*
  Dirt Slingin Tech site system (light). Shared by the home page and the
  public marketing pages. Rules, in short:

  - Paper, not white boxes. The page is warm off-white; content is separated
    by hairline rules and space, never by shadowed rounded cards.
  - One family: Archivo. Display = heavy italic, condensed (the logo's
    energy). Text = Archivo regular. Data = IBM Plex Mono.
  - Four type sizes: display, title, body, small. Nothing else.
  - Colour is information. App blue is the one action colour. Green, blue and
    red mean on the gas, coasting and slowing, and appear only on lap data.
  - 12 columns desktop, 4 on phones. Spacing comes from the scale below.
  - Real photos and real app screens only. Screens get a 1px ink border and a
    small radius, nothing more.
*/

.ds {
  --paper: #f6f4ef;
  --paper-2: #edeae2;
  --ink: #121417;
  --ink-2: #4b5058;
  --rule: #d8d3c8;
  --rule-strong: #121417;
  --blue: #1a6cb7;
  --blue-ink: #13528c;
  --navy: #2d388a;
  --accel: #4fa83a;
  --coast: #3b8ee6;
  --brake: #e5554b;
  --cc-surface: #e4ecf4;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 72px; --s9: 112px;

  --gutter: 24px;
  --margin: clamp(16px, 4.2vw, 64px);
  --max: 1360px;

  --f-text: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* the four sizes */
  --t-display: clamp(2.75rem, 1.1rem + 6.6vw, 7.25rem);
  --t-title: clamp(1.75rem, 1.05rem + 2.6vw, 3.25rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.ds *, .ds *::before, .ds *::after { box-sizing: border-box; }
.ds img { max-width: 100%; height: auto; display: block; }
.ds p { margin: 0 0 var(--s4); max-width: 38em; }
.ds a { color: var(--blue-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.ds a:hover { color: var(--ink); }
.ds :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* type */
.ds h1, .ds h2, .ds h3 { margin: 0; color: var(--ink); font-family: var(--f-text); text-transform: none; }
.ds-display {
  font-size: var(--t-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 70%;
  line-height: 0.88;
  letter-spacing: -0.008em;
  word-spacing: 0.04em;
  text-wrap: balance;
}
.ds-title {
  font-size: var(--t-title);
  font-style: italic;
  font-weight: 800;
  font-stretch: 76%;
  line-height: 0.96;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
/* The secondary heading: upright, a touch wide, tight. The italic display face is kept for the
   hero, the two signature sections and the close, so it keeps its punch. */
.ds-h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.ds-h2--big { font-size: clamp(1.875rem, 1.25rem + 2.2vw, 3rem); line-height: 1.02; letter-spacing: -0.028em; }
/* A plain disclosure for the method behind a figure. */
.ds-more { margin-top: var(--s3); font-size: var(--t-small); color: var(--ink-2); }
.ds-more summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
.ds-more summary:hover { text-decoration-color: var(--blue); }
.ds-more p { margin: var(--s2) 0 0; max-width: 46em; }
.ds-sub {
  font-size: var(--t-body);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 var(--s2);
}
.ds-lede { font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem); line-height: 1.45; color: var(--ink); }
.ds-small, .ds-fig { font-size: var(--t-small); line-height: 1.45; color: var(--ink-2); }
.ds-mono { font-family: var(--f-mono); font-feature-settings: "tnum"; }
.ds-fig b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); margin-right: 0.5em; }

/* layout */
.ds-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); }
.ds-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; }
@media (min-width: 900px) {
  .ds-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
}
.ds-sec { padding: 56px 0; }
.ds-sec--white { background: #fff; }
@media (min-width: 900px) { .ds-sec { padding: 96px 0; } }

/* actions */
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--blue); color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: 1rem; border-radius: 4px; border: 0;
}
.ds-btn:hover { background: var(--blue-ink); }
.ds-link {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px;
  font-weight: 700; color: var(--ink) !important; text-decoration: underline;
  text-decoration-color: var(--blue); text-decoration-thickness: 2px;
}
.ds-link::after { content: "\2192"; font-weight: 400; }
.ds-link:hover { text-decoration-color: var(--ink); }
.ds-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ds-stores a { display: inline-block; line-height: 0; border-radius: 8px; }
.ds-stores img { height: 48px; width: auto; }
/* lead with the visitor's own store on phones */
.is-ios .ds-stores .ds-store--android, .is-android .ds-stores .ds-store--ios { order: 2; }

/* app screens */
.ds-screen {
  border: 1px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff;
}

/* ruled lists and tables: the program-sheet look */
.ds-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.ds-rows > li { border-bottom: 1px solid var(--rule); padding: var(--s5) 0; }

/* the lap ribbon: a real lap as on-the-gas / coasting / slowing stripes */
.ds-ribbon { display: block; width: 100%; height: 10px; }
.ds-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: var(--t-small); color: var(--ink-2); }
.ds-key li::before { content: ""; display: inline-block; width: 18px; height: 6px; margin-right: 7px; vertical-align: 2px; border-radius: 1px; background: currentColor; }
.ds-key .k-accel::before { background: var(--accel); }
.ds-key .k-coast::before { background: var(--coast); }
.ds-key .k-brake::before { background: var(--brake); }

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