
@font-face {
  font-family: "CME Display";
  src: url("/fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CME Reading";
  src: url("/fonts/Newsreader.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root { color-scheme: light dark; }

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

html {
  background: var(--cme-surface-page);
  color: var(--cme-text-body);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: var(--cme-space-4);
  padding: var(--cme-space-4) var(--cme-space-3);
  font-family: "CME Display", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--cme-text-300);
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

header, main, footer {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--cme-space-4);
}

p { margin: 0; }

.wordmark {
  font-size: var(--cme-text-500);
  font-weight: 700;
  color: var(--cme-action-primary);
}

h1 {
  margin: 0;
  font-size: var(--cme-text-700);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.subline {
  max-width: var(--cme-measure-prose);
  font-family: "CME Reading", Georgia, "Times New Roman", serif;
  font-size: var(--cme-text-400);
  line-height: 1.6;
  color: var(--cme-text-muted);
}

.small, footer { color: var(--cme-text-muted); }

a {
  color: var(--cme-action-primary);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--cme-focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (min-width: 48rem) {
  body { padding-inline: var(--cme-space-4); gap: var(--cme-space-5); }
  main { gap: var(--cme-space-5); }
  h1 { font-size: var(--cme-text-800); }
}
@media (min-width: 80rem) {
  body { gap: var(--cme-space-6); }
  main { gap: var(--cme-space-6); }
  h1 { font-size: var(--cme-text-900); }
}
