@font-face {
  font-family: Inter;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url(/fonts/inter-greek.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/fonts/mono-latin.woff2) format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/fonts/mono-greek.woff2) format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0370-03FF;
}

:root {
  color-scheme: dark;
  --ink: #04070d;
  --raise: #080d17;
  --panel: #0b1220;
  --panel-2: #0f1828;
  --line: rgb(190 210 240 / 0.09);
  --line-2: rgb(190 210 240 / 0.17);
  --line-3: rgb(190 210 240 / 0.3);
  --text: #e8eef7;
  --soft: #c2cddc;
  --muted: #93a2b8;
  --faint: #76859b;
  /* The two sides of every entry. */
  --debit: #4cc9f0;
  --credit: #f5c04a;
  --accent: #f5c04a;
  /* What happened to a proposal, a check or a claim. */
  --ok: #4ade80;
  --refuse: #fb7185;
  --known: #a78bfa;
  --teal: #2dd4bf;
  --coral: #ff7a59;
  --pink: #f472b6;
  --chapter: #f5c04a;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans Math", sans-serif;
  --mono:
    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Noto Sans Math", monospace;
  --gutter: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --wide: 84rem;
  --inset: clamp(1.1rem, 2.6vw, 2.1rem);
  --radius: 1.25rem;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: rgb(130 150 180 / 0.35) transparent;
}
/* On a very large screen everything grows together, so the page still fills it. */
@media (min-width: 1921px) {
  html {
    font-size: min(0.8334vw, 1.4rem);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--text);
  font: 400 1rem/1.65 var(--sans);
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss03", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* A little film grain keeps the large dark fields from banding. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Not on phones: Safari would take the grain for the top of the page and leave text showing behind the clock. */
@media (max-width: 899px) {
  body::after {
    content: none;
  }
}
h1,
h2,
h3,
h4,
h5,
p,
figure,
ul,
ol,
dl,
dd,
blockquote,
pre {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
::selection {
  background: rgb(76 201 240 / 0.3);
}
:focus-visible {
  outline: 2px solid var(--debit);
  outline-offset: 3px;
  border-radius: 0.5rem;
}
:focus:not(:focus-visible) {
  outline: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.d1,
.d2,
.d3 {
  font-weight: 800;
  text-wrap: balance;
  color: #fff;
}
.d1 {
  font-size: clamp(3rem, 7.3vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.052em;
}
.d2 {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 0.97;
  letter-spacing: -0.047em;
}
.d3 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
em.g {
  font-style: normal;
  color: var(--accent);
}
.d1 em.g {
  background: linear-gradient(96deg, #fde68a 2%, #f5c04a 34%, #7dd3fc 70%, #4cc9f0 96%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.lede {
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  line-height: 1.62;
  color: var(--soft);
  text-wrap: pretty;
}
.micro {
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}
.micro.asis {
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.75rem;
}
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.txt {
  color: #8bdcf7;
  text-decoration: underline;
  text-decoration-color: rgb(139 220 247 / 0.35);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s;
}
.txt:hover {
  text-decoration-color: #8bdcf7;
}
code {
  font-family: var(--mono);
  font-size: 0.9em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.65rem 1.3rem;
  border-radius: 1rem;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.03);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    transform 0.35s var(--ease),
    box-shadow 0.35s;
}
.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}
.btn:hover {
  border-color: var(--line-3);
  background: rgb(255 255 255 / 0.06);
  transform: translateY(-1px);
}
.btn.go {
  background: #f5c04a;
  border-color: #f5c04a;
  color: #140d02;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08) inset,
    0 10px 44px -8px rgb(245 192 74 / 0.42);
}
.btn.go:hover {
  background: #fcd34d;
  border-color: #fcd34d;
}
.btn.sm {
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0.8rem;
  font-size: 0.85rem;
}
.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Header ---------- */
/* Shared by the home page, the library and the error page. */
.kick {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  font: 500 0.72rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}
.skip {
  position: fixed;
  z-index: 120;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  background: var(--accent);
  color: #140d02;
  font-weight: 700;
  transform: translateY(-5rem);
}
.skip:focus {
  transform: none;
}
/* Edge to edge, so that a phone's status bar takes its color and the brand stands on the page's left edge. */
.top {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.scrolled .top,
.solid .top {
  background: rgb(5 9 16 / 0.94);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  min-height: 4.25rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.025em;
  color: #fff;
}
.brand .mark {
  margin-left: -0.4rem;
  width: 2.1rem;
  height: 1.7rem;
  overflow: visible;
}
.mark .t {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.mark .dr,
.mark .cr {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s var(--ease), opacity 0.4s;
  stroke-dasharray: 10;
}
.mark .dr {
  stroke: var(--debit);
}
.mark .cr {
  stroke: var(--credit);
}
.chapters {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
}
.chapters a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.chapters a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.04);
}
.chapters a[aria-current] {
  color: #fff;
  background: rgb(255 255 255 / 0.065);
}
.chapters .num {
  font-size: 0.68rem;
  color: var(--faint);
}
.joint {
  position: relative;
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1.5px solid var(--chapter);
  opacity: 0.55;
  transition:
    opacity 0.3s,
    box-shadow 0.3s;
}
.joint::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--chapter);
}
a:hover > .joint,
[aria-current] > .joint,
.joint.on {
  opacity: 1;
  box-shadow: 0 0 14px color-mix(in srgb, var(--chapter) 70%, transparent);
}
.tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  grid-column: 3;
  justify-self: end;
}
kbd {
  font: 500 0.68rem/1 var(--mono);
  padding: 0.28rem 0.4rem;
  border: 1px solid var(--line-2);
  border-radius: 0.4rem;
  color: var(--muted);
  background: rgb(255 255 255 / 0.03);
}
.progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s;
}
.scrolled .progress {
  opacity: 1;
}
.progress i {
  display: block;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--credit), #7dd3fc 60%, var(--debit));
}
@media (max-width: 1180px) {
  .chapters .num {
    display: none;
  }
  .chapters a {
    padding-inline: 0.55rem;
  }
}
.menu {
  display: none;
}
@media (max-width: 899px) {
  .chapters {
    display: none;
  }
  .scrolled .top,
  .solid .top {
    background: #060b14;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .bar {
    grid-template-columns: 1fr auto;
    min-height: 3.6rem;
  }
  .tools {
    grid-column: 2;
  }
  .menu {
    display: block;
  }
  .menu summary {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.6rem;
    border-radius: 0.85rem;
    color: #fff;
    cursor: pointer;
    list-style: none;
  }
  .menu summary::-webkit-details-marker {
    display: none;
  }
  .menu summary svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  .menu nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    max-height: calc(100svh - 4rem);
    padding: 0.4rem var(--gutter) 1.2rem;
    overflow: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--line-2);
    background: #060b14;
    box-shadow: 0 40px 60px -20px rgb(0 0 0 / 0.8);
  }
  .top:has(.menu[open]) {
    background: #060b14;
  }
  .menu nav a:not(.btn) {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 3.1rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
  }
  .menu nav .btn {
    margin-top: 1.1rem;
  }
}
@media (max-width: 599px) {
  .tools > .btn {
    display: none;
  }
}
/* ---------- Footer ---------- */
footer.end {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--faint);
  font-size: 0.82rem;
}
.end .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.6rem;
}
.end a:hover {
  color: #fff;
}
.end .brand {
  font-size: 0.9rem;
  margin-right: auto;
}

