/* clay-v3 — a document, not a composition. */

:root {
  --ink: #1a1a1a;
  --paper: #fafafa;
  --link: #0066cc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e3e3e3;
    --paper: #1a1a1a;
    --link: #79b8ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

::selection { background: #f2d31b; color: #1a1a1a; }

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

h1, h2, h3 { line-height: 1.25; font-weight: 700; margin: 0 0 0.5rem; }
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.25rem; margin-top: 4rem; }
h3 { font-size: 1rem; margin-top: 1.5rem; }
h4 { margin: 1.5rem 0 0.5rem; }

p, ul, ol, dl, dd { margin: 0 0 1rem; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.25rem; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.def { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; }
dt { font-weight: 600; }
header dd, footer dd { margin: 0; }

iframe { max-width: 100%; border: 0; aspect-ratio: 16 / 9; width: 100%; margin-bottom: 1rem; }
