:root, [data-theme="ink"] {
  --bg: #191713; --ink: #ece7db; --mut: #98917f; --line: #2e2a23;
  --soft: rgba(255,255,255,0.045); --accent: #a45338;
  --dot-f: #6fbf8a; --dot-fm: #cfa84a; --dot-p: #c9706a; --dot-api: #7a9cc4;
  --dot-os: #c08b56; --dot-ent: #9a86c9; --dot-vst: #6fb0b0; --dot-hw: #9a9a9a; --dot-acq: #7a7a7a;
}
[data-theme="paper"] {
  --bg: #faf9f5; --ink: #201d18; --mut: #6f6a60; --line: #e7e2d7;
  --soft: #f3f0e8; --accent: #a45338;
  --dot-f: #3e7d5a; --dot-fm: #a8842c; --dot-p: #b0504a; --dot-api: #4a6f96;
  --dot-os: #a9713d; --dot-ent: #6f5aa0; --dot-vst: #3f8585; --dot-hw: #7d7d7d; --dot-acq: #9a9a9a;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Schibsted Grotesk', sans-serif;
  transition: background 0.3s, color 0.3s;
}
a { color: var(--mut); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
input::placeholder { color: var(--mut); opacity: 0.7; }
button { font-family: 'Schibsted Grotesk', sans-serif; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

.top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.wordmark { font-family: 'Newsreader', serif; font-style: italic; font-size: 19px; letter-spacing: 0.2px; }
.topnav { display: flex; gap: 22px; font-size: 13px; align-items: baseline; flex-wrap: wrap; }
.pill {
  cursor: pointer; background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: 12px; color: var(--mut);
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.quiet-btn { cursor: pointer; background: none; border: none; padding: 0; font-size: 13px; color: var(--mut); }
.quiet-btn:hover { color: var(--accent); }

.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(36px, 5vw, 56px); }
.hero h1 {
  font-family: 'Newsreader', serif; font-weight: 400;
  font-size: clamp(42px, 6.5vw, 76px); line-height: 1.06; margin: 0 0 26px;
  letter-spacing: -0.5px; max-width: 16ch; text-wrap: pretty;
}
.hero h1 em { color: var(--accent); }
.hero p { font-size: 15px; line-height: 1.75; color: var(--mut); margin: 0; max-width: 52ch; text-wrap: pretty; }

.console { padding-bottom: clamp(32px, 4vw, 48px); display: flex; flex-direction: column; gap: 26px; }
.searchbar {
  display: flex; align-items: baseline; gap: 14px; max-width: 560px;
  border-bottom: 1px solid var(--ink); padding-bottom: 10px;
}
.searchbar input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: 'Newsreader', serif; font-size: 21px; color: var(--ink); padding: 0;
}
.shown { font-size: 12px; color: var(--mut); white-space: nowrap; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  cursor: pointer; font-size: 12px; padding: 6px 13px; border-radius: 999px;
  transition: all 0.15s; border: 1px solid var(--line); background: transparent; color: var(--mut);
}
.chip:hover { border-color: var(--ink); }
.chip.active { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip .n { opacity: 0.5; }
.link-btn {
  cursor: pointer; background: none; border: none; font-size: 12px; color: var(--accent);
  padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px;
}

.paths { display: flex; flex-wrap: wrap; column-gap: 26px; row-gap: 10px; align-items: baseline; }
.paths-label { font-size: 12px; color: var(--mut); }
#paths { display: contents; }
.path-btn {
  cursor: pointer; background: none; border: none; padding: 0;
  font-family: 'Newsreader', serif; font-style: italic; font-size: 16px; color: var(--ink);
}
.path-btn:hover { color: var(--accent); }

.contents {
  padding: 26px 0 10px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 12px; align-items: baseline;
}
.contents-label { font-size: 11px; letter-spacing: 1.5px; color: var(--mut); text-transform: uppercase; }
#contents { display: contents; }
.toc-btn {
  cursor: pointer; background: none; border: none; padding: 0; font-size: 13px;
  color: var(--mut); display: inline-flex; gap: 7px; align-items: baseline;
}
.toc-btn:hover { color: var(--accent); }
.toc-btn .num { font-size: 10px; opacity: 0.6; }

.empty { padding: 90px 0; text-align: center; }
.empty-msg { font-family: 'Newsreader', serif; font-style: italic; font-size: 30px; color: var(--mut); }
.empty .link-btn { margin-top: 14px; font-size: 13px; }

.cat { padding: clamp(40px, 6vw, 64px) 0 8px; scroll-margin-top: 24px; }
.cat-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.cat-num { font-family: 'Newsreader', serif; font-size: 15px; color: var(--accent); }
.cat-head h2 {
  font-family: 'Newsreader', serif; font-weight: 500;
  font-size: clamp(26px, 3.4vw, 34px); margin: 0; letter-spacing: -0.3px;
}
.cat-count { font-size: 12px; color: var(--mut); }
.rows { border-top: 1px solid var(--line); }

.row {
  display: flex; align-items: baseline; gap: 18px; padding: 15px 2px;
  border-bottom: 1px solid var(--line); color: inherit; flex-wrap: wrap;
}
.row:hover { background: var(--soft); color: inherit; }
.row-name { flex: 0 0 190px; font-size: 15px; font-weight: 600; letter-spacing: -0.1px; }
.row-badges { display: inline-flex; gap: 10px; flex: 0 0 auto; min-width: 120px; flex-wrap: wrap; align-items: baseline; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--mut); white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.row-desc { flex: 1; min-width: 280px; font-size: 13px; line-height: 1.65; color: var(--mut); text-wrap: pretty; }
.row-desc .note { font-style: italic; }
.row-arrow { font-size: 13px; color: var(--accent); margin-left: auto; }
.row.flash { animation: fadeflash 2.2s ease-out; }
@keyframes fadeflash { 0% { background: rgba(164,83,56,0.16); } 100% { background: transparent; } }

.foot { padding: clamp(56px, 8vw, 90px) 0 60px; }
.foot-cta {
  font-family: 'Newsreader', serif; font-weight: 400;
  font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.3px;
  max-width: 22ch; line-height: 1.25; text-wrap: pretty;
}
.foot-links { display: flex; gap: 24px; margin-top: 22px; font-size: 13px; flex-wrap: wrap; }
.accent-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.foot-meta {
  margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 11px; color: var(--mut);
}

@media (max-width: 640px) {
  .row-name { flex-basis: 100%; }
  .row-desc { min-width: 100%; }
}
