@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15233f;
  --paper: #ffffff;
  --mist: #eef1f6;
  --slate: #566177;
  --line: #d7dde7;
  --signal: #f3c623;
  --signal-ink: #15233f;
  --link: #1d4ed8;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --measure: 38rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef1f6;
    --paper: #0f1a31;
    --mist: #17243f;
    --slate: #a9b3c6;
    --line: #2a3a5c;
    --link: #8fb0ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--signal); color: var(--signal-ink); padding: 8px 12px;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-head { padding: 28px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  font-family: var(--display); font-weight: 800; font-size: 1.25rem;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.wordmark svg { width: 30px; height: 30px; flex: none; border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
.site-head nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-head nav a:hover { text-decoration: underline; }

/* Hero: the double R is the one loud thing on the page */
.hero { padding: clamp(24px, 6vw, 72px) 0 clamp(56px, 9vw, 120px); }
.hero .wrap {
  display: grid; gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

.rr {
  position: relative; margin: 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(8rem, 60vw, 22rem);
  line-height: 0.78; letter-spacing: -0.06em;
  white-space: nowrap;
  user-select: none;
}
@media (min-width: 860px) {
  .rr { font-size: clamp(12rem, 30vw, 24rem); }
}
.rr span { display: inline-block; }
.rr .r1 { position: relative; z-index: 1; color: var(--ink); }
.rr .r2 {
  color: var(--signal);
  margin-left: -0.2em;
}

.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.04; letter-spacing: -0.025em;
  margin: 0 0 20px; max-width: 16ch; text-wrap: balance;
}
.hero p { margin: 0; max-width: var(--measure); color: var(--slate); font-size: 1.125rem; }

/* Sections */
section { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
section h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.1;
  margin: 0 0 32px;
}

/* Products: rows, not cards */
.apps { list-style: none; margin: 0; padding: 0; }
.app {
  display: grid; gap: 8px 40px; padding: 28px 0;
  grid-template-columns: minmax(0, 1fr);
}
.app + .app { border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .app { grid-template-columns: 15rem minmax(0, 1fr); }
}
.app h3 {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -0.02em; margin: 0; line-height: 1.15;
}
.status { display: block; margin-top: 6px; font-size: 0.95rem; color: var(--slate); }
.status::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 8px; vertical-align: 1px; background: var(--slate);
}
.status.live::before { background: #1f9d55; }
.app p { margin: 0 0 12px; max-width: var(--measure); }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.links a { font-weight: 600; }

/* Company facts */
.facts { display: grid; gap: 0; margin: 0; max-width: 46rem; }
.facts div {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 32px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.facts div:first-child { border-top: 1px solid var(--line); }
@media (min-width: 640px) { .facts div { grid-template-columns: 12rem minmax(0, 1fr); } }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; font-weight: 600; }

/* Footer */
.site-foot { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--slate); font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-foot a { color: var(--slate); }

/* Long-form pages (privacy) */
.prose { padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.prose .wrap > * { max-width: var(--measure); }
.prose h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.25rem);
  letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px;
}
.prose h2 {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  letter-spacing: -0.015em; margin: 40px 0 8px;
}
.prose .updated { color: var(--slate); margin: 0 0 32px; }
.prose ul { padding-left: 1.2em; }
