/* Shared by the landing and the legal pages; tokens mirror src/ui/theme.ts. */
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-600.woff2') format('woff2');
}

:root {
  --paper: #f7f9fc;
  --shell: #ffffff;
  --line: #dce2eb;
  --line-strong: #b9c3d2;
  --ink: #0f1e3d;
  --ink-soft: #56617a;
  --ball: #ffc629;
  --ball-pressed: #f0b400;
  --sea: #1d4ed8;
  --paid: #14794a;
  --miss: #b4410e;
  --miss-wash: #fbe4d6;
  --night-soft: #b9c3d9;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif-condensed, sans-serif;
  --body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --content: 1120px;
  color-scheme: light;
  scrollbar-color: var(--line-strong) var(--paper);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--sea);
}

::selection {
  background: var(--ball);
  color: var(--ink);
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--sea);
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.soft {
  color: var(--ink-soft);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font: 700 1.75rem/1 var(--display);
  text-decoration: none;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}

/* The dot is the ball, same as the card wordmark and the app icon. */
.wordmark::after {
  content: '';
  width: 0.3em;
  height: 0.3em;
  margin-bottom: 0.08em;
  border-radius: 50%;
  background: var(--ball);
}

.top-link {
  font-weight: 600;
  text-decoration: none;
  padding: 10px 4px;
}

.top-link:hover {
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  background: var(--ball);
  color: var(--ink);
  font: 600 1.125rem/1 var(--body);
  text-decoration: none;
  transition: background-color 120ms ease-out;
}

.button:hover {
  background: var(--ball-pressed);
}

.foot {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  font-size: 0.9375rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.foot .soft {
  margin-left: auto;
}

/* Legal pages: a reading column, nothing else. */
.doc {
  max-width: 68ch;
  padding-top: 24px;
  padding-bottom: 72px;
}

.doc h1 {
  font-size: clamp(2.75rem, 9vw, 4rem);
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 1.75rem;
  margin: 40px 0 10px;
}

.doc p,
.doc ul {
  margin-bottom: 14px;
}

.doc li {
  margin-bottom: 6px;
}
