@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/assets/fonts/atkinson-hyperlegible-next-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2'); }
:root {
  --f: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --f-model: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --ground: #080b12;
  --raised: #0e121b;
  --head: #f6f0e4;
  --paper: #ece4d6;
  --text: #d2cbbe;
  --mut: #a2a3a7;
  --light: #f3e2c5;
  --mist: #a3c6d4;
  --line: rgba(243,226,197,.13);
  --spine: rgba(243,226,197,.30);
  --moss: #86b872;
  --amber: #d9a877;
  --ocean: #6fa3b8;
  --twilight: #a597c2;

  --s-small: .85rem;
  --s-lead: 1.2rem;

  --wrap: 1120px;
  --gutter: 32px;
  --title-col: 260px;
  --gap: 60px;
  --measure: 700px;
  --bar: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 20px; }
body { background: var(--ground); color: var(--text); font-family: var(--f); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p { text-wrap: pretty; }
a { color: var(--mist); text-decoration: underline; text-decoration-color: rgba(163,198,212,.45); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #e2f1f7; text-decoration-color: currentColor; }
.skip { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 10px 14px; background: var(--light); color: #17130c; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: var(--title-col) minmax(0, 1fr); }
.body { padding-left: var(--gap); max-width: calc(var(--measure) + var(--gap)); }

.bar { position: fixed; inset: 0 0 auto 0; z-index: 40; background: rgba(8,11,18,.97); border-bottom: 1px solid var(--line); transition: background-color .15s linear, border-color .15s linear; }
.bar.clear { background: transparent; border-bottom-color: transparent; }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: var(--bar); gap: 24px; }
.bar .logo { display: flex; align-items: center; gap: 16px; padding: 8px 0; text-decoration: none; }
.bar .logo picture { display: block; }
.bar .logo img { height: 38px; width: auto; display: block; }
.bar .logo img.wm { height: 60px; margin: 0 -9px; }
.bar-in > nav { display: flex; align-items: center; gap: 34px; font-size: var(--s-small); }
.bar-in > nav a { color: var(--paper); text-decoration: none; padding: 10px 0; white-space: nowrap; }
.bar-in > nav a:hover, .bar-in > nav a[aria-current] { text-decoration: underline; }

.menu { display: none; position: relative; font-size: var(--s-small); }
.menu > summary { list-style: none; cursor: pointer; color: var(--paper); padding: 10px 0 10px 14px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 100%; width: min(340px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - var(--bar) - 16px); overflow-y: auto; padding: 10px 0; background: var(--raised); border: 1px solid var(--line); }
.menu-panel ul { list-style: none; }
.menu-panel a { display: block; padding: 10px 20px; color: var(--paper); text-decoration: none; }
.menu-panel a[aria-current] { color: var(--head); font-weight: 600; }
.menu-panel .label { display: block; padding: 14px 20px 4px; color: var(--mut); }
.menu-panel li li a { padding-left: 36px; }

footer { font-size: var(--s-small); color: var(--text); border-top: 1px solid var(--line); padding: 48px 0 56px; }
footer .grid { align-items: start; }
footer img { height: 72px; width: auto; display: block; }
footer .body p + nav { margin-top: .7em; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
footer nav a { color: var(--paper); }

@media (max-width: 1000px) {
  :root { --title-col: 0px; --gap: 28px; }
  .grid { grid-template-columns: 1fr; }
  .bar-in > nav { display: none; }
  .menu { display: block; }
  footer .grid > div:first-child { margin-bottom: 18px; }
  footer .body { padding-left: 0; }
}
@media (max-width: 900px) {
  html { font-size: 18px; }
  :root { --gutter: 20px; --bar: 64px; }
  .bar .logo img { height: 32px; } .bar .logo img.wm { height: 50px; }
}
