* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 250, 242, 0.98), rgba(218, 210, 194, 0.60) 28%, transparent 54%),
    linear-gradient(180deg, var(--paper), var(--paper-soft) 58%, var(--paper-warm));
  min-height: 100vh;
  line-height: 1.5;
  transition: color 180ms ease, background-color 180ms ease;
}

body[data-surface="workspace"] {
  --max: var(--workspace-max);
  --pad: var(--workspace-pad);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 50% -12%, rgba(145, 145, 140, 0.24), rgba(25, 25, 30, 0.10) 34%, transparent 58%),
    linear-gradient(180deg, #0c0c0f, var(--paper) 54%, #151519);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

main {
  width: min(var(--max), calc(100vw - 2 * var(--pad)));
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 650;
}

h2 {
  font-size: clamp(26px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 620;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 22px);
  max-width: 740px;
}

.lead.compact {
  max-width: 680px;
}

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

.fineprint {
  font-size: 13px;
  margin: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

::selection {
  background: rgba(18, 45, 110, 0.16);
}
