:root {
  color-scheme: light dark;
  --ink: #0b2a3a;
  --muted: #3e5563;
  --paper: #f3f7f8;
  --card: #ffffff;
  --line: #d5e2e6;
  --accent: #0f766e;
  --focus: #0f766e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7f2f4;
    --muted: #b7c9d0;
    --paper: #07161d;
    --card: #102833;
    --line: #23424d;
    --accent: #5eead4;
    --focus: #5eead4;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

body { min-height: 100vh; }

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.site-header, .wrap, .site-footer {
  width: min(880px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 8px;
  flex-wrap: wrap;
}

.brand {
  color: inherit;
  text-decoration: none;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

nav { display: flex; gap: 16px; flex-wrap: wrap; }

.wrap { padding: 12px 0 48px; }

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

h1 {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 16px;
}

h2 { font-size: 1.25rem; margin: 28px 0 8px; }

.lede { font-size: 1.125rem; max-width: 42rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
}

.card, .note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.prompt {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.note { margin-top: 20px; }

.site-footer {
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

code { font-size: 0.95em; }
