@font-face {
  font-family: "Public Sans";
  src: url("/fonts/PublicSans-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #faf7f2;
  --ink: #1c1917;
  --rust: #9a3e14;
  --muted: #6b6560;
  --hairline: #d8d2c8;

  --measure: 34rem;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

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

a {
  color: var(--rust);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.06em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 2rem 0;
}

.wordmark {
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
}

.masthead nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
}

.masthead nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(3.5rem, 9vw, 6rem) 0;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2.75rem, 8.5vw, 5rem);
  margin: 0;
  max-width: 15ch;
}

.standfirst {
  max-width: var(--measure);
  margin: 1.75rem 0 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink);
}

.actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.button {
  display: inline-block;
  background: var(--rust);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 3px;
}

.button:hover {
  background: #7f3210;
}

.aside {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- example slide ---------- */

figure.example {
  margin: clamp(3rem, 8vw, 4.5rem) 0 0;
}

.slide {
  background: #14171c;
  color: #f2efe9;
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.75rem;
}

.slide-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #8d938f;
  border-bottom: 1px solid #2a2f36;
  padding-bottom: 0.75rem;
}

.slide h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
  max-width: 22ch;
}

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem;
}

.figure-label {
  font-size: 0.8125rem;
  color: #8d938f;
}

.figure-value {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 0.15rem;
}

.delta {
  font-size: 0.9375rem;
  font-weight: 600;
}

.up {
  color: #57b183;
}

.down {
  color: #e2705c;
}

.slide-note {
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  line-height: 1.5;
  color: #cfcbc4;
  max-width: 54ch;
  margin: 0;
  border-top: 1px solid #2a2f36;
  padding-top: 1.5rem;
}

figcaption {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: var(--measure);
}

/* ---------- body sections ---------- */

section {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  border-top: 1px solid var(--hairline);
}

section:first-of-type {
  border-top: none;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

section p {
  max-width: var(--measure);
  margin: 0 0 1rem;
}

section p:last-child {
  margin-bottom: 0;
}

.sources {
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.sources div {
  border-top: 2px solid var(--ink);
  padding-top: 0.75rem;
}

.sources dt {
  font-weight: 600;
}

.sources dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.never {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: var(--measure);
}

.never li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hairline);
}

.never li:first-child {
  border-top: 1px solid var(--hairline);
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding-block: 2.5rem 4rem;
  font-size: 0.9375rem;
  color: var(--muted);
  display: grid;
  gap: 1.25rem;
}

footer p {
  margin: 0;
  max-width: 46ch;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* ---------- legal documents ---------- */

.legal {
  padding-block: clamp(2.5rem, 6vw, 4rem) 0;
  max-width: 40rem;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  max-width: none;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0.75rem 0 0;
}

.legal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.legal h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.legal p,
.legal li {
  max-width: none;
}

.legal ul {
  padding-left: 1.15rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}

.legal th,
.legal td {
  text-align: left;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.legal th {
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.legal .signoff {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
