/* Remem by Acific Labs — one stylesheet for every page (the paper reader adds paper.css).
   The design is Vacuum's (vacuum.acific.com), at the owner's word on 2026-11-13: light only, a grouped grey page,
   white cards with large corners, the system's own type, one blue, pills for buttons, a glass header.
   The token names in the first block of :root are kept from the earlier design because paper.css reads them. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

:root {
  color-scheme: light;
  /* names paper.css depends on */
  --bg: #F2F2F7; --surface: #FFFFFF; --paper: #FFFFFF; --wash: rgba(118, 118, 128, .12);
  --ink: #1D1D1F; --ink-2: #6E6E73; --ink-3: #8E8E93; --line: rgba(60, 60, 67, .14); --accent: #007AFF;
  --max: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Vacuum's */
  --card: #FFFFFF; --fill: rgba(118, 118, 128, .12); --text2: #6E6E73; --text3: #8E8E93;
  --blue: #007AFF; --green: #34C759; --red: #FF3B30; --orange: #FF9500; --violet: #5E5CE6;
  --radius: 24px; --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.47 var(--sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
strong, b { font-weight: 600; }
code, .mono { font-family: var(--mono); font-size: .88em; letter-spacing: 0; }
code { background: var(--fill); padding: 1px 5px; border-radius: 5px; }
pre { font: 400 13px/1.5 var(--mono); letter-spacing: 0; background: var(--bg); border-radius: 16px; padding: 16px 18px; overflow-x: auto; color: #3A3A3C; }
pre code { background: none; padding: 0; font-size: inherit; }
pre b { color: var(--ink); } pre i { color: var(--text3); font-style: normal; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 10px; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(242, 242, 247, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: 52px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 22px; }
.brand small { font-weight: 400; font-size: 13px; color: var(--text3); letter-spacing: 0; }
.nav-links { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--text2); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- shared type ---------- */
.label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); }
.label.blue { color: var(--blue); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.h2 { font-size: clamp(34px, 5.4vw, 56px); margin-top: 10px; text-wrap: balance; }
.lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.4; color: var(--text2); margin-top: 18px; max-width: 34em; letter-spacing: -0.015em; }
.lead b { color: var(--ink); font-weight: 600; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.left { text-align: left; }
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 140px) var(--gut) 0; }

/* ---------- buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 17px/1 var(--sans); letter-spacing: -0.01em; }
.pill:hover { text-decoration: none; }
.pill.primary { background: var(--blue); color: #fff; }
.pill.secondary { background: var(--fill); color: var(--blue); }
.pill.dark { background: var(--ink); color: #fff; }

/* ---------- the mark, breathing, as Vacuum's swirl does ---------- */
.orb { position: relative; width: 280px; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.orb .halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 122, 255, .24) 0%, rgba(0, 122, 255, .10) 45%, rgba(0, 122, 255, 0) 70%); }
.orb .ring { position: absolute; inset: 22%; border-radius: 50%; border: 1.5px solid rgba(0, 122, 255, .35); animation: ring 3.3s cubic-bezier(.2, .6, .3, 1) infinite; }
.orb .ring:nth-child(3) { animation-delay: -1.1s; }
.orb .ring:nth-child(4) { animation-delay: -2.2s; }
.orb .mark { position: relative; width: 40%; }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.75); opacity: 0; } }

/* ---------- hero, with the breathing edge glow ---------- */
.hero-wrap { padding: 10px 10px 0; }
.hero { position: relative; border-radius: 40px; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 80px) var(--gut) clamp(48px, 7vw, 84px);
  background: radial-gradient(120% 80% at 50% 0%, #FFFFFF 0%, #F7F8FC 55%, var(--bg) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(0, 122, 255, .38), inset 0 0 34px 4px rgba(0, 122, 255, .22); animation: breathe 4.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.hero h1 { font-size: clamp(56px, 10vw, 104px); letter-spacing: -0.045em; margin-top: 4px; }
.hero .by { font-size: 15px; color: var(--text3); margin-top: 6px; font-weight: 500; letter-spacing: 0; }
.hero .tag { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.025em; margin-top: 18px; line-height: 1.2; }
.hero .tag span { color: var(--text3); }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; position: relative; z-index: 1; }
.hero .clean { margin: 26px auto 0; max-width: 34em; font-size: 13px; color: var(--text3); text-wrap: balance; }
.hero .clean i, .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 7px; vertical-align: 1px; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 28px; display: block; color: inherit; }
a.card:hover { text-decoration: none; }
a.card:hover h3 { color: var(--blue); }
.card h3 { font-size: 24px; letter-spacing: -0.025em; margin-top: 8px; }
.card p { color: var(--text2); margin-top: 8px; font-size: 16px; line-height: 1.45; }
.card .label b { color: var(--blue); font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.card.wide { margin-top: 16px; padding: clamp(28px, 4vw, 40px); }
.card.wide p { max-width: 46em; }
.card .art { height: 168px; margin: -4px -4px 18px; border-radius: 16px; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.card .art svg { width: 78%; height: auto; }
.ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ln-faint { stroke: var(--text3); stroke-width: 1.5; }
.pip { fill: var(--blue); }
.eqcard { margin-top: 48px; padding: clamp(18px, 4vw, 40px); text-align: left; }
.eqcard pre { background: none; padding: 0; border-radius: 0; font-size: 13.5px; line-height: 1.7; }
.eq-line { margin-top: 22px; padding-top: 22px; border-top: 0.5px solid var(--line); color: var(--text2); font-size: 17px; }

/* the closing statement */
.promise { background: var(--card); border-radius: 36px; padding: clamp(36px, 6vw, 72px); text-align: center; }
.glyph { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 22px; display: grid; place-items: center; background: linear-gradient(#3395FF, var(--blue)); }
.glyph img { width: 30px; height: 30px; }
.promise ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; text-align: left; max-width: 820px; margin: 36px auto 0; }
.promise li { padding-left: 28px; position: relative; color: var(--text2); font-size: 16px; }
.promise li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--green) url("/assets/check.svg") center / 12px no-repeat; }
.promise li b { color: var(--ink); display: block; }
.promise .links { margin-top: 32px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 15px; }

/* ---------- page heads and long text: live, docs, 404 ---------- */
.doc-hero { max-width: 820px; margin: 0 auto; padding: clamp(56px, 9vw, 104px) var(--gut) 34px; text-align: center; }
.doc-hero h1 { font-size: clamp(44px, 7vw, 68px); margin-top: 10px; }
.doc-hero p.lead { margin: 16px auto 0; font-size: 18px; }
.doc-hero .meta { margin-top: 14px; font-size: 13px; color: var(--text3); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* nothing in a grid or a card may push the page wider than the screen: long code scrolls inside its own box */
.wrap > *, .two > *, .stats > *, .grid3 > *, .grid2 > *, .hit > *, .srow > *, .pane, .sec-top { min-width: 0; }
pre { max-width: 100%; }
.lead .mono, .meta .mono, .lesson, .hit, .tbl td { overflow-wrap: anywhere; }

/* live: the numbers */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--card); border-radius: 20px; padding: 18px; }
.stat .big { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--text2); }
.stat.signal .big { color: var(--blue); }

/* live: sections are cards */
.wrap > .sec { max-width: none; padding: 0; margin-top: 16px; background: var(--card); border-radius: 28px; padding: clamp(22px, 4vw, 40px); }
.sec-top h2 { font-size: clamp(26px, 3.6vw, 36px); }
.sec-top .hint { margin-top: 10px; color: var(--text2); font-size: 16px; max-width: 46em; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.two p { margin-top: 12px; font-size: 15px; color: var(--text2); line-height: 1.5; }
.two .label { margin-bottom: 8px; }
.sub-h { font-size: 20px; letter-spacing: -0.02em; margin: 30px 0 12px; }
.lesson { background: var(--bg); border-radius: 16px; padding: 14px 16px; margin-top: 8px; font-size: 15.5px; line-height: 1.45; }
.lesson .m { margin-top: 6px; font-size: 12.5px; color: var(--text3); }
.note { margin-top: 16px; font-size: 14.5px; line-height: 1.5; color: var(--text2); }
.note b { color: var(--ink); }

.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 2px; border-radius: 14px; background: var(--fill); margin-top: 24px; }
.tab { border: 0; background: none; font: inherit; color: var(--ink); text-align: left; padding: 10px 12px; border-radius: 12px; cursor: pointer; min-width: 0; }
.tab[aria-selected="true"] { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.tab .k { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); }
.tab[aria-selected="true"] .k { color: var(--blue); }
.tab .w { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.tab .c { font: 400 11px/1.3 var(--mono); letter-spacing: 0; color: var(--text3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pane { margin-top: 22px; }
.pane h3 { font-size: 22px; letter-spacing: -0.025em; }
.pane p { margin-top: 10px; color: var(--text2); font-size: 16px; line-height: 1.5; max-width: 50em; }
.pane pre, .sec > pre { margin-top: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.filter { border: 0; font: 500 14px/1 var(--sans); color: var(--ink); background: var(--fill); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tbl { margin-top: 16px; overflow-x: auto; border-radius: 16px; background: var(--bg); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); padding: 12px 14px 8px; }
.tbl td { padding: 10px 14px; border-top: 0.5px solid var(--line); vertical-align: top; }
.tbl td.n { font: 400 12px/1.6 var(--mono); letter-spacing: 0; color: var(--text3); white-space: nowrap; }
.tbl .g { margin-top: 4px; font-size: 13.5px; color: var(--text2); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--text2); white-space: nowrap; }
.chip.error { background: rgba(255, 59, 48, .12); color: #D70015; }
.chip.correction { background: rgba(0, 122, 255, .12); color: #0062CC; }
.chip.surprise { background: rgba(255, 149, 0, .14); color: #B25000; }
.chip.environment { background: rgba(94, 92, 230, .12); color: #3634A3; }
.chip.lesson, .chip.note { background: rgba(52, 199, 89, .14); color: #1D7A36; }
.hits { margin-top: 14px; display: grid; gap: 8px; }
.hit { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: start; background: var(--bg); border-radius: 16px; padding: 12px 14px; font-size: 15px; }
.hit .d { font: 400 12px/1.9 var(--mono); letter-spacing: 0; color: var(--text3); white-space: nowrap; }
.hit small { display: block; margin-top: 4px; font-size: 13px; color: var(--text2); }
.srows { margin-top: 20px; border-radius: 16px; background: var(--bg); padding: 4px 16px; }
.srow { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 0.5px solid var(--line); font-size: 15px; color: var(--text2); }
.srow:first-child { border-top: 0; }
.srow > code { background: none; padding: 0; color: var(--ink); font-size: 13.5px; }
.srow-head { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); }

/* the band that leads to the next page */
.band { display: block; max-width: calc(var(--max) - 2 * var(--gut)); margin: 16px auto 0; padding: 22px 28px; border-radius: 28px; background: var(--ink); color: #fff; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.band:hover { text-decoration: none; }
.band span { color: #9FC9FF; font-weight: 500; }
@media (max-width: 1128px) { .band { margin-left: var(--gut); margin-right: var(--gut); } }

/* docs: a side menu and one card of text */
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding-top: 32px; align-items: start; }
.doc-nav { position: sticky; top: 76px; display: grid; gap: 2px; font-size: 14.5px; }
.doc-nav-h { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); padding: 0 10px 8px; }
.doc-nav a { color: var(--text2); padding: 7px 10px; border-radius: 10px; }
.doc-nav a:hover { color: var(--ink); text-decoration: none; background: var(--fill); }
.doc-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--card); }
.doc { background: var(--card); border-radius: 28px; padding: clamp(22px, 4vw, 44px); min-width: 0; font-size: 16px; line-height: 1.6; color: #3A3A3C; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); color: var(--ink); margin-bottom: 14px; }
.doc h2 { font-size: 26px; color: var(--ink); margin: 40px 0 12px; padding-top: 28px; border-top: 0.5px solid var(--line); }
.doc h3 { font-size: 20px; color: var(--ink); letter-spacing: -0.02em; margin: 28px 0 8px; }
.doc h4 { font-size: 16px; color: var(--ink); margin: 22px 0 6px; }
.doc p, .doc ul, .doc ol, .doc pre, .doc blockquote, .doc .table-wrap { margin-bottom: 14px; }
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin-bottom: 5px; }
.doc strong { color: var(--ink); }
.doc blockquote { padding: 10px 16px; border-radius: 12px; background: var(--bg); color: var(--text2); font-size: 14.5px; }
.doc blockquote p { margin: 0; }
.doc hr { border: 0; border-top: 0.5px solid var(--line); margin: 28px 0; }
.table-wrap { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.45; }
.doc th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); padding: 8px 10px; white-space: nowrap; }
.doc td { padding: 9px 10px; border-top: 0.5px solid var(--line); vertical-align: top; }

.lost { text-align: center; padding: clamp(80px, 14vw, 160px) 0 0; }
.lost h1 { font-size: clamp(56px, 10vw, 96px); margin-top: 10px; }
.lost .lead { margin: 18px auto 0; }

/* ---------- footer ---------- */
.foot { max-width: var(--max); margin: clamp(80px, 12vw, 140px) auto 0; padding: 26px var(--gut) 40px; border-top: 0.5px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; font-size: 13px; color: var(--text3); }
.foot .who { display: flex; align-items: center; gap: 8px; color: var(--text2); font-weight: 600; }
.foot .who img { width: 18px; height: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--text2); }
.foot .r { margin-left: auto; }
.foot .r a { color: inherit; }

/* ---------- reveal on scroll (only once scripts run: without them everything is simply there) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .grid3, .grid2, .two, .promise ul { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat.signal { grid-column: 1 / -1; }
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .doc-nav-h { display: none; }
  .foot .r { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  :root { --gut: 18px; }
  .brand small { display: none; }
  .nav-links { gap: 14px; font-size: 13.5px; }
  .nav-links .opt { display: none; }
  .hero-wrap { padding: 6px 6px 0; }
  .hero { border-radius: 32px; }
  .orb { width: 220px; }
  .card { padding: 22px; }
  .srow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hit { grid-template-columns: auto minmax(0, 1fr); }
  .hit .d { display: none; }
  .eqcard pre { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .orb .ring:nth-child(3) { transform: scale(1.3); opacity: .5; }
  .orb .ring:nth-child(4) { transform: scale(1.6); opacity: .25; }
}
