:root {
  --bg: #fbfbf9;
  --fg: #1c1c1e;
  --muted: #5f6368;
  --rule: #e3e3de;
  --link: #0a5bd3;
  --accent-bg: #f0f0eb;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --fg: #ececec;
    --muted: #a3a3a8;
    --rule: #2c2c30;
    --link: #79aefc;
    --accent-bg: #1c1c20;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--link); text-underline-offset: 0.15em; overflow-wrap: anywhere; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand { color: var(--fg); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; }
nav { display: flex; gap: 1.25rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }
nav a[aria-current="page"] { font-weight: 600; }

main.wrap { padding-top: 2.5rem; padding-bottom: 3.5rem; }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.0625rem; margin: 1.5rem 0 0.25rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }
strong { font-weight: 600; }

.lede { font-size: 1.1875rem; }
.muted { color: var(--muted); }

.links { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.links a { font-weight: 600; }

.callout {
  background: var(--accent-bg); border: 1px solid var(--rule); border-radius: 12px;
  padding: 1rem 1.25rem; margin: 0 0 1.5rem;
}
.callout p:last-child { margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9375rem; }
.site-footer .wrap { padding-top: 1.25rem; padding-bottom: 2rem; }
.site-footer p { margin: 0; }
