
  @font-face {
    font-family: 'Inter'; font-weight: 400 800; font-style: normal; font-display: swap;
    src: url('/static/fonts/inter-variable-latin.woff2') format('woff2');
  }
  @font-face {
    font-family: 'JetBrains Mono'; font-weight: 400 700; font-style: normal; font-display: swap;
    src: url('/static/fonts/jetbrains-mono-variable-latin.woff2') format('woff2');
  }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: #F5EFE3; color: #1F2A1F; color-scheme: light;
  font-family: 'Inter', system-ui, sans-serif; font-optical-sizing: auto; font-feature-settings: 'cv11', 'ss03';
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #1F2A1F; outline-offset: 3px; border-radius: 4px; }
code, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 5; background: #1F2A1F; color: #FBF7EE; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.skip:focus { top: 12px; }

/* The wordmark, as on wirl.dev */
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: #1F2A1F; }
.wordmark .wm { font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -0.04em; }
.wordmark .tag { font-size: 11.5px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 999px; background: #DCEBDD; color: #2F7D4F; margin-left: 2px; }

/* Shell: a sidebar that stays put, and the page beside it */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 264px; flex: none; background: #FCF8F0; border-right: 1px solid #E6DFCB;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 14px 16px;
  display: flex; flex-direction: column;
}
.side .wordmark { padding: 0 10px 20px; }
.side .group { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #5E5A4C; padding: 14px 10px 6px; }
.side .nav { display: flex; flex-direction: column; gap: 1px; }
.side .nav a { display: block; padding: 7px 10px; border-radius: 10px; color: #5E5A4C; font-size: 14.5px; line-height: 1.35; }
.side .nav a:hover { color: #1F2A1F; }
.side .nav a.on { color: #1F2A1F; background: #E6DFCB; font-weight: 500; }
.side .bottom { margin-top: auto; border-top: 1px solid #E6DFCB; padding: 12px 10px 0; display: flex; gap: 16px; font-size: 13.5px; color: #5E5A4C; }
.side .bottom a:hover { color: #1F2A1F; text-decoration: underline; text-underline-offset: 3px; }

#navtoggle { position: absolute; width: 1px; height: 1px; opacity: 0; clip-path: inset(50%); overflow: hidden; }
.topbar { display: none; }

.page { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sitenotice { background: #F6E8BE; border-bottom: 1px solid #E6DFCB; padding: 11px 40px; font-size: 14.5px; line-height: 1.5; }
.sitenotice a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.main { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 56px; padding: 56px 40px 96px; }
.doc { width: 100%; max-width: 46rem; min-width: 0; }
.toc { width: 200px; flex: none; display: none; }

/* Reading */
h1 { font-weight: 700; font-size: 2.35rem; line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 .5em; text-wrap: balance; }
.doc h2 { font-weight: 650; font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.02em; margin: 2.3em 0 .6em; }
.doc .body > h2:first-child { margin-top: 1.1em; }
.doc h3 { font-weight: 600; font-size: 1.12rem; line-height: 1.35; margin: 1.9em 0 .5em; }
.doc h4 { font-weight: 600; font-size: 1rem; margin: 1.6em 0 .4em; }
.doc p { margin: 0 0 1.1em; }
.doc ul, .doc ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.doc li { margin: .35em 0; }
.doc li > p { margin-bottom: .5em; }
.doc strong { font-weight: 600; }
.doc hr { border: 0; border-top: 1px solid #E6DFCB; margin: 2.5em 0; }
.doc blockquote { margin: 0 0 1.1em; padding: 2px 0 2px 16px; border-left: 3px solid #E6DFCB; color: #5E5A4C; }
.doc .body a { color: #2F7D4F; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(47,125,79,.35); text-underline-offset: 3px; }
.doc .body a:hover { text-decoration-color: #2F7D4F; }
.doc .body a.anchor { color: #5E5A4C; font-weight: 400; text-decoration: none; margin-left: .4em; opacity: 0; }
.doc :is(h2, h3, h4):hover a.anchor, .doc a.anchor:focus-visible { opacity: .6; }
.lede { font-size: 1.12rem; line-height: 1.6; color: #5E5A4C; margin: 0 0 2em; max-width: 40rem; }

:not(pre) > code { font-size: .86em; background: rgba(31,42,31,.07); border-radius: 6px; padding: .14em .4em; overflow-wrap: anywhere; }
.codeblock { position: relative; margin: 0 0 1.3em; }
pre {
  margin: 0 0 1.3em; background: #1F2A1F; color: #DDEBDD; border-radius: 14px; padding: 16px 18px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.65; tab-size: 2;
}
.codeblock pre { margin: 0; }
.copy {
  position: absolute; top: 9px; right: 9px; font: inherit; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(221,235,221,.25); background: #1F2A1F; color: #DDEBDD;
  cursor: pointer; opacity: 0;
}
.codeblock:hover .copy, .copy:focus-visible { opacity: 1; }
.copy:focus-visible { outline-color: #F2C14E; }
@media (hover: none) { .copy { opacity: 1; } }

table { width: 100%; border-collapse: collapse; font-size: .94em; margin: 0 0 1.3em; }
th { text-align: left; font-weight: 600; font-size: .86em; color: #5E5A4C; padding: 8px 12px; border-bottom: 1px solid #D8D0BC; }
td { padding: 9px 12px; border-bottom: 1px solid #E6DFCB; vertical-align: top; }

/* Leading on to the next page */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4em; }
.pager a {
  display: block; padding: 14px 16px; border-radius: 16px; background: #FCF8F0;
  box-shadow: 0 1px 0 rgba(31,42,31,.05), 0 10px 22px -12px rgba(31,42,31,.35);
}
.pager a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.pager .k { display: block; font-size: 12.5px; color: #5E5A4C; line-height: 1.4; }
.pager .t { display: block; font-weight: 600; line-height: 1.35; }
.pager .next { grid-column: 2; text-align: right; }

/* On this page */
.toc .k { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #5E5A4C; margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; position: sticky; top: 56px; border-left: 1px solid #E6DFCB; }
.toc li a { display: block; padding: 4px 0 4px 14px; font-size: 13.5px; line-height: 1.4; color: #5E5A4C; }
.toc li a:hover { color: #1F2A1F; }
.toc .inner { position: sticky; top: 56px; }

/* The front page */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 1em; }
.card {
  display: block; padding: 18px; border-radius: 16px; background: #FCF8F0;
  box-shadow: 0 1px 0 rgba(31,42,31,.05), 0 10px 22px -12px rgba(31,42,31,.35);
}
.card:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.card .t { display: block; font-weight: 600; font-size: 1.02rem; line-height: 1.3; margin-bottom: 6px; }
.card .d { display: block; font-size: 14px; line-height: 1.5; color: #5E5A4C; }
.card.first { background: #1F2A1F; color: #FBF7EE; grid-column: 1 / -1; padding: 22px; }
.card.first .d { color: #C9D6C9; font-size: 15px; max-width: 44rem; }
.card.first .go { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; color: #F2C14E; }
.home h2 { font-size: .95rem; font-weight: 600; letter-spacing: .01em; color: #5E5A4C; margin: 2.4em 0 .8em; }

@media (min-width: 1240px) { .toc { display: block; } }

@media (max-width: 880px) {
  .topbar {
    display: flex; align-items: center; height: 56px; padding: 0 18px; position: sticky; top: 0; z-index: 3;
    background: #FCF8F0; border-bottom: 1px solid #E6DFCB;
  }
  .menu { margin-left: auto; font-size: 14.5px; font-weight: 500; color: #5E5A4C; cursor: pointer; padding: 8px 4px; }
  #navtoggle:focus-visible ~ .topbar .menu { outline: 3px solid #1F2A1F; outline-offset: 3px; border-radius: 4px; }
  .shell { display: block; }
  .side { display: none; position: fixed; inset: 56px 0 0 0; width: auto; height: auto; z-index: 2; border-right: 0; padding-top: 10px; }
  .side .wordmark { display: none; }
  #navtoggle:checked ~ .shell .side { display: flex; }
  .main { padding: 32px 20px 72px; }
  .sitenotice { padding: 10px 20px; }
  h1 { font-size: 1.95rem; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; text-align: left; }
  html { scroll-padding-top: 72px; }
}

@media print {
  .side, .topbar, .toc, .pager, .copy, .skip { display: none !important; }
  .main { padding: 0; }
  pre { white-space: pre-wrap; border: 1px solid #D8D0BC; background: #fff; color: #1F2A1F; }
}
