/* The app's own palette, both grounds. Nothing here is decoration for its own sake: the
   page should look like the thing it is describing. */
:root {
  --ground: #F5F1EF;
  --surface: #FFFCFB;
  --border: #D8CFCC;
  --text: #211A1D;
  --muted: #8E7F82;
  --brand: #731F36;
  --on-brand: #FFF8F6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1C1720;
    --surface: #2A2230;
    --border: #3C3345;
    --text: #FFF8F6;
    --muted: #9E8F92;
    --brand: #C96F84;
  }
}

@font-face {
  font-family: Gontserrat;
  src: url("fonts/Gontserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Gontserrat;
  src: url("fonts/Gontserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Gontserrat;
  src: url("fonts/Gontserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

* { box-sizing: border-box; }

/* Everything that sets a size is a clamp, and every clamp bottoms out at the phone value.
   The page was designed at phone width and simply left there, which on a 1800px screen put a
   672px ribbon in the middle of nothing — measured, not guessed. So it grows with the window
   and stops growing when it stops helping; below about 700px nothing here does anything. */
body {
  margin: 0;
  padding: 0 20px;
  background: var(--ground);
  color: var(--text);
  font: 400 clamp(17px, 0.55vw + 13px, 21px)/1.6 Gontserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 50rem; margin: 0 auto; padding: 72px 0 120px; }

header.mark { display: flex; align-items: center; gap: 10px; margin-bottom: 64px; }
header.mark img { width: 36px; height: 36px; }
header.mark span { font-weight: 600; font-size: 24px; color: var(--brand); }

/* `balance` rather than a chosen size: the headline is three lines here and two on a laptop,
   and left to itself it strands "spreadsheet." alone on the last one. */
h1 { font-weight: 800; font-size: clamp(40px, 4.1vw, 66px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-weight: 600; font-size: clamp(22px, 1.5vw, 28px); margin: 64px 0 12px; }
h3 { font-weight: 600; font-size: 1em; margin: 32px 0 6px; }

.lead { font-size: clamp(20px, 1.35vw, 28px); line-height: 1.5; color: var(--muted); margin: 0 0 40px; }

.icon { width: clamp(112px, 8vw, 152px); height: auto; aspect-ratio: 1; border-radius: 23%; margin-bottom: 36px; display: block; }

a { color: var(--brand); text-underline-offset: 3px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 32px;
  margin: 28px 0;
}

/* The card's own padding is the whole of its inset. A heading's top margin used to add to
   it — 61 points above "In testing" where 28 were meant. */
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

ul { padding-left: 1.15em; }
li { margin: 14px 0; }

footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.muted { color: var(--muted); }
