:root {
  color-scheme: light;
  --ink: #141b32;
  --muted: #485574;
  --paper: #fcfcff;
  --line: #dce2f2;
  --accent: #303cc6;
  --hero: #101b48;
  --hero-muted: #c2d2ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid #6470fa; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-180%); background: white; padding: .8rem 1rem; z-index: 2; }
.skip:focus { transform: none; }
.frame { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.banner { background: var(--hero); color: #fff; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; border-bottom: 1px solid #445281; }
.masthead a { color: #fff; }
.wordmark { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.repo-link { padding: .5rem .75rem; border: 1px solid #6376b8; border-radius: .35rem; font-size: .9rem; text-decoration: none; }
.repo-link:hover { background: #25366f; }
.hero { padding-block: clamp(2.6rem, 7vw, 5.2rem); }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.064em; font-weight: 770; line-height: 1.08; }
.hero p { color: var(--hero-muted); font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.5; margin: 1.05rem 0 0; max-width: 54ch; }
.layout { display: grid; grid-template-columns: minmax(11rem, 15rem) minmax(0, 46rem); gap: clamp(2.2rem, 6vw, 5.5rem); align-items: start; padding-block: clamp(2rem, 6vw, 4.4rem); }
.contents { position: sticky; top: 1.6rem; border-left: 2px solid var(--line); padding-left: 1rem; max-height: calc(100vh - 3.2rem); overflow-y: auto; }
.contents p { text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .65rem; font-size: .81rem; font-weight: 720; color: var(--muted); }
.contents ul { list-style: none; margin: 0; padding: 0; }
.contents li + li { margin-top: .47rem; }
.contents a { font-size: .92rem; line-height: 1.35; display: inline-block; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
article { font-size: 1.0625rem; line-height: 1.75; overflow-wrap: anywhere; }
article p { margin: 1rem 0; }
article h2, article h3, article h4 { line-height: 1.22; letter-spacing: -.025em; scroll-margin-top: 1.5rem; }
article h2 { margin: 3.2rem 0 1.1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: clamp(1.65rem, 4vw, 2.3rem); }
article h2:first-child { margin-top: 0; border: 0; padding-top: 0; }
article h3 { margin: 2rem 0 .75rem; font-size: 1.47rem; }
article h4 { margin: 1.5rem 0 .75rem; font-size: 1.13rem; }
article strong { color: #0e1736; }
article ul, article ol { padding-left: 1.5rem; }
article li { margin: .35rem 0; }
article li::marker { color: var(--accent); }
article li ul, article li ol { margin: .4rem 0 .7rem; }
article code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .91em; background: #eef1fd; border-radius: .2em; padding: .08em .22em; }
.note { color: var(--muted); font-size: .95rem; }
.footer { padding-block: 1.4rem 2.8rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .85rem; font-size: .92rem; }
@media (max-width: 49rem) {
  .frame { width: calc(100% - 2rem); }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .contents { position: static; padding: 1rem; max-height: none; background: #f2f5ff; border: 0; border-radius: .4rem; }
  .contents ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: .4rem 1rem; }
  .contents li + li { margin-top: 0; }
}
@media print {
  .skip, .masthead, .contents, .footer { display: none; }
  .banner { color: black; background: white; }
  .hero { padding-block: 1rem; }
  .hero p { color: black; }
  .hero h1 { font-size: 25pt; }
  .layout { display: block; padding: 0; }
  .frame { width: 100%; }
  article { font-size: 10.5pt; }
  article h2, article h3, article h4 { break-after: avoid; }
}
