/* Shared by every page. No webfonts, no CDN, no third-party request of any kind — the privacy
   policy claims this site loads nothing external, so it must actually load nothing external. */

:root {
  --paper:    #fbfbfd;
  --ink:      #17171f;
  --muted:    #61616f;
  --hairline: #e4e4ee;
  --panel:    #f2f2f7;
  --brand:    #7C6CF4;
  /* Link text needs 4.5:1 against --paper to clear WCAG AA at 17px, and the brand indigo
     manages only 3.79:1 on this near-white ground. --brand stays exactly #7C6CF4 and keeps
     carrying the identity (wordmark, focus ring); --link is a darkened variant used only for
     body-copy links. Dark mode already sets a lighter --brand for the same reason, where it
     reaches 7.1:1 and can serve as --link unchanged. */
  --link:     #5B49E0;
  --measure:  34rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:    #0e0e14;
    --ink:      #e9e9f1;
    --muted:    #9797a8;
    --hairline: #24242f;
    --panel:    #16161e;
    --brand:    #9c90f7;
    --link:     #9c90f7;
  }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

header.masthead {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span { color: var(--brand); }

.masthead nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.012em;
  margin: 3rem 0 0.75rem;
  text-wrap: balance;
}

h3 {
  font-size: 1rem;
  margin: 2rem 0 0.5rem;
}

p, li { color: var(--ink); }
p { margin: 0 0 1rem; }
ul { padding-left: 1.15rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.dateline {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 2.5rem;
}

.lede { font-size: 1.05rem; }

.panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 2rem;
}

.panel > :last-child { margin-bottom: 0; }
.panel h2:first-child { margin-top: 0; }

.scroller { overflow-x: auto; margin: 0 0 1.5rem; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.9rem;
}

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

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.875rem;
}
