:root {
  color-scheme: light;
  --ink: #192643;
  --secondary: #506079;
  --accent: #274dc1;
  --line: #d8dfec;
  --shell: 72rem;
  font: 100%/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f8faff; color: var(--ink); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #335cd6; outline-offset: 4px; }
.shell { width: min(var(--shell), 100% - 2rem); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font-size: 1.6rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.wordmark span { color: var(--accent); }
nav { display: flex; gap: clamp(.65rem, 3vw, 1.75rem); align-items: center; font-weight: 600; }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.masthead { padding: clamp(3.5rem, 9vw, 7.5rem) 0; background: linear-gradient(120deg, #f0f4ff 25%, #dde7ff); border-bottom: 1px solid var(--line); }
h1, h2, h3, p { margin: 0; }
h1 { max-width: 13ch; font-size: clamp(2.65rem, 8vw, 6rem); line-height: 1.04; letter-spacing: -.06em; }
.masthead p { max-width: 43ch; margin-top: 1.25rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--secondary); }
.button { display: inline-block; margin-top: 1.65rem; padding: .75rem 1.1rem; border-radius: .5rem; background: var(--accent); color: white; font-weight: 650; text-decoration: none; }
.button:hover { background: #1e3c98; }
.library { padding-block: 2.75rem 3.5rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.035em; margin-bottom: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1rem; }
.card { padding: 1.4rem; background: white; border: 1px solid var(--line); border-radius: .75rem; }
.category { color: var(--accent); font-weight: 650; font-size: .9rem; }
h3 { line-height: 1.2; font-size: 1.3rem; margin-block: .45rem .65rem; }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; }
.card p:not(.category) { color: var(--secondary); }
.section-link { display: inline-block; margin-top: 1rem; color: var(--accent); font-weight: 650; }
footer { border-top: 1px solid var(--line); padding-block: 1.15rem; color: var(--secondary); }
