/* Fonts are served from this site, not Google, so visiting it tells no one else. SIL OFL 1.1, see /fonts. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  --paper: #fbfbf9;
  --ink: #1c1d1b;
  --graphite: #5b605d;
  --rule: #dfe2de;
  --spruce: #11594f;
  --spruce-wash: #e3eeea;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  --measure: 40rem;
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151716;
    --ink: #e9ebe8;
    --graphite: #a3a9a5;
    --rule: #2e3230;
    --spruce: #7cc5b7;
    --spruce-wash: #1e3330;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: calc(var(--measure) + 2.5rem);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--spruce);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--spruce);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.masthead nav {
  display: flex;
  gap: 1.25rem;
  font-size: 1rem;
}

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

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-3);
  margin: 4.5rem 0 1rem;
}

h2 {
  font-size: var(--step-2);
  margin: 4rem 0 1rem;
}

h3 {
  font-size: var(--step-1);
  font-weight: 500;
  margin: 2.5rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1.1rem;
}

ul,
ol {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--graphite);
  max-width: 34rem;
}

.quiet {
  color: var(--graphite);
}

code {
  font-family: var(--serif);
  font-style: italic;
  background: var(--spruce-wash);
  color: var(--spruce);
  padding: 0.05em 0.3em;
  border-radius: 3px;
}

/* The template outline: the page's one memorable element. */
.outline {
  margin: 3rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
}

.outline-epic {
  font-size: var(--step-1);
  margin: 0 0 0.9rem;
}

.outline ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.4rem;
  border-left: 1px solid var(--rule);
}

.outline li {
  font-size: var(--step-0);
  margin: 0 0 0.55rem;
}

.slot {
  display: inline-grid;
  vertical-align: baseline;
}

.slot > span {
  grid-area: 1 / 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.slot .token {
  font-style: italic;
  color: var(--spruce);
  background: var(--spruce-wash);
  padding: 0 0.25em;
  border-radius: 3px;
}

.slot .value {
  opacity: 0;
  transform: translateY(0.25em);
}

.is-filled .slot .token {
  opacity: 0;
  transform: translateY(-0.25em);
}

.is-filled .slot .value {
  opacity: 1;
  transform: none;
}

.outline figcaption {
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--graphite);
}

@media (prefers-reduced-motion: reduce) {
  .slot > span {
    transition: none;
  }
}

.platform {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--graphite);
  margin: 2rem 0 0;
}

.app {
  margin: 0.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.app h4 {
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.facts strong {
  font-weight: 600;
}

.doc h1 {
  margin-top: 3.5rem;
}

.doc h2 {
  font-size: var(--step-1);
  font-weight: 500;
  margin: 2.75rem 0 0.6rem;
}

.doc .meta {
  color: var(--graphite);
  font-size: 1rem;
}

footer {
  margin: 6rem 0 0;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--graphite);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

footer a {
  color: var(--graphite);
}
