/* Fonts are self-hosted (SIL Open Font License, see fonts/) so no visitor data goes to Google. */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/schibsted-grotesk-latin-ext-wght-normal.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: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/schibsted-grotesk-latin-wght-normal.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: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-ext-opsz-normal.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: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-opsz-normal.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: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-ext-opsz-italic.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: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-opsz-italic.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; }

/* Kirkensgaard — site styles
   Two phases (green / violet) borrowed from the gyroid network figures,
   on a cool white matrix. */

:root {
  --paper: #ffffff;
  --wash: #f2f4f8;
  --line: #d9dde7;
  --ink: #1d2140;
  --ink-soft: #545a78;
  --phase-a: #1b9a66;
  --phase-b: #8a3fb8;
  --link: #6c2c9c;
  --link-hover: #1b8a5d;
  --logo-plate: #ffffff;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 68ch;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14162a;
    --wash: #1c1f38;
    --line: #2e3252;
    --ink: #e7e8f3;
    --ink-soft: #a6aac6;
    --phase-a: #3cc98d;
    --phase-b: #b27be0;
    --link: #c9a2f0;
    --link-hover: #5fe0a6;
    --logo-plate: #f4f5f9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14162a;
  --wash: #1c1f38;
  --line: #2e3252;
  --ink: #e7e8f3;
  --ink-soft: #a6aac6;
  --phase-a: #3cc98d;
  --phase-b: #b27be0;
  --link: #c9a2f0;
  --link-hover: #5fe0a6;
  --logo-plate: #f4f5f9;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--phase-a); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 650; margin-top: 1.8em; }
h3 { font-size: 1.2rem; font-weight: 650; margin-top: 1.5em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 64px;
}
.brand {
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand:hover { color: var(--ink); }
.nav { font-family: var(--sans); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 0.97rem; font-weight: 500;
}
.nav a:hover { background: var(--wash); color: var(--ink); }
.nav a[aria-current="page"], .nav a.in-section { color: var(--link); background: var(--wash); }

.menu-toggle { display: none; }
@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 56px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    font: 500 0.95rem var(--sans); color: var(--ink);
    background: var(--wash); border: 1px solid var(--line); border-radius: 8px;
    padding: 7px 12px; cursor: pointer;
  }
  .nav { display: none; width: 100%; padding-bottom: 12px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 10px 12px; }
}

/* ---------- section sub-navigation ---------- */
.page-head { padding-top: clamp(32px, 6vw, 64px); padding-bottom: 8px; }
.page-head h1 { margin-bottom: 0.35em; }
.page-head .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: var(--measure); }
.subnav { font-family: var(--sans); margin: 18px 0 8px; }
.subnav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a {
  display: block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: 0.92rem;
}
.subnav a:hover { border-color: var(--link); color: var(--link); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

main { padding-bottom: 72px; }
.section { padding-top: 8px; }

/* ---------- home hero ---------- */
.hero { padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(24px, 4vw, 48px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.02; margin-bottom: 0.3em; }
.hero h1 .given { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.5em; letter-spacing: -0.01em; margin-bottom: 0.15em; }
.hero .group-name { font-family: var(--sans); font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 500; margin: 0 0 1.1em; line-height: 1.3; }
/* each half stays together: one line when there is room, otherwise it breaks after 'and' */
.hero .group-name span { white-space: nowrap; }
.hero .intro { max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; font-family: var(--sans); }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 0.97rem; border: 1px solid var(--ink); color: var(--ink);
}
.btn:hover { background: var(--wash); color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--link); border-color: var(--link); color: #fff; }

.specimen { position: relative; margin: 0; }
.specimen canvas {
  width: 100%; aspect-ratio: 1 / 1; display: block; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.specimen .portrait {
  position: absolute; left: -6%; bottom: -4%; width: 38%;
  border-radius: 50%; border: 6px solid var(--paper); aspect-ratio: 1/1; object-fit: cover;
}
.specimen figcaption { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); margin-top: 18px; padding-left: 34%; line-height: 1.4; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .specimen { max-width: 340px; margin: 8px auto 0; }
  .specimen .portrait { left: 0; }
}

/* ---------- news list ---------- */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 120px; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-date { font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); padding-top: 3px; }
.news-item h3 { margin: 0 0 0.35em; font-size: 1.15rem; }
.news-item p { margin: 0; max-width: var(--measure); }
.news-thumb { width: 120px; height: 120px; object-fit: contain; background: var(--logo-plate); border-radius: var(--radius); padding: 6px; border: 1px solid var(--line); }
@media (max-width: 760px) {
  .news-item { grid-template-columns: minmax(0, 1fr) 76px; gap: 6px 16px; }
  .news-date { grid-column: 1 / -1; }
  .news-thumb { width: 76px; height: 76px; grid-column: 2; grid-row: 2; }
}
.more-link { font-family: var(--sans); font-weight: 600; display: inline-block; margin-top: 20px; }

/* ---------- funders ---------- */
.funders { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.funders h2 { margin-top: 0; font-size: 1.15rem; }
.funders p { color: var(--ink-soft); font-size: 0.95rem; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.logo-grid a {
  display: flex; align-items: center; justify-content: center; height: 84px;
  background: var(--logo-plate); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.logo-grid a:hover { border-color: var(--phase-a); }
.logo-grid img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- generic content blocks ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 44rem) minmax(220px, 300px); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
figure { margin: 0; }
figure img { border-radius: var(--radius); }
figcaption { font-family: var(--sans); font-size: 0.86rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.45; }
.aside-figs { display: grid; gap: 24px; }
.plate img { background: #fff; padding: 8px; border: 1px solid var(--line); }

.callout {
  border-left: 4px solid var(--phase-a); background: var(--wash);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.6em; max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }

/* projects */
.project {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(20px, 4vw, 40px);
  padding: 32px 0; border-top: 1px solid var(--line);
}
.project:last-of-type { border-bottom: 1px solid var(--line); }
.project h2 { margin: 0 0 0.4em; font-size: 1.4rem; }
.project .media { display: grid; gap: 12px; align-content: start; }
.project .media img { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 6px; }
.project .collab { font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.8em; }
.project .collab strong { color: var(--ink); font-weight: 600; }
.project p { max-width: var(--measure); }
@media (max-width: 700px) { .project { grid-template-columns: 1fr; } .project .media { max-width: 220px; } }

/* timeline-ish rows: courses, schools */
.rows { list-style: none; padding: 0; margin: 0 0 1em; max-width: 880px; }
.rows li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .when { font-family: var(--sans); color: var(--ink-soft); font-size: 0.93rem; padding-top: 2px; }
.rows h3 { margin: 0 0 0.3em; font-size: 1.1rem; }
.rows p { margin: 0; }
@media (max-width: 640px) { .rows li { grid-template-columns: 1fr; gap: 4px; } }

/* people */
.people { list-style: none; padding: 0; margin: 0 0 1.5em; max-width: 880px; }
.people li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 12px; }
.people li:last-child { border-bottom: 1px solid var(--line); }
.people .n { font-family: var(--sans); color: var(--ink-soft); font-size: 0.85rem; padding-top: 3px; }
.people .who { font-family: var(--sans); font-weight: 600; }
.people .role { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); margin-left: 6px; }
.people .with { color: var(--ink-soft); font-size: 0.95rem; }
.stat { font-family: var(--sans); }

/* publications */
.pub-tools {
  position: sticky; top: 64px; z-index: 3; background: var(--paper);
  padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px;
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font-family: var(--sans);
}
@media (max-width: 860px) { .pub-tools { top: 56px; position: static; } }
.pub-tools label { position: absolute; left: -999px; }
.pub-tools input {
  font: inherit; font-size: 1rem; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); width: min(100%, 360px);
}
.pub-tools input:focus { border-color: var(--link); }
.year-jump { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 0.92rem; }
.year-jump a { text-decoration: none; }
.year-jump a:hover { text-decoration: underline; }
.pub-count { font-size: 0.92rem; color: var(--ink-soft); margin-left: auto; }
.profiles { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--sans); margin: 4px 0 24px; }
.profiles a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.92rem; color: var(--ink); }
.profiles a:hover { border-color: var(--link); color: var(--link); }
.covers { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 18px; margin-bottom: 8px; scrollbar-width: thin; }
.covers img { height: 190px; width: auto; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.year-head { font-size: 1.5rem; margin: 1.6em 0 0.2em; scroll-margin-top: 140px; }
.pubs { list-style: none; padding: 0; margin: 0; }
.pub { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; padding: 20px 0; border-top: 1px solid var(--line); }
.pub-thumb { width: 112px; height: 112px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.pub-title { font-family: var(--sans); font-weight: 650; font-size: 1.05rem; line-height: 1.3; margin: 0 0 0.3em; }
.pub-authors { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 0.2em; }
.pub-authors b { color: var(--ink); font-weight: 600; }
.pub-journal { font-style: italic; font-size: 0.95rem; margin: 0 0 0.35em; }
.pub-links { font-family: var(--sans); font-size: 0.88rem; display: flex; gap: 14px; }
.pub-links .num { color: var(--ink-soft); }
.no-results { font-family: var(--sans); padding: 24px 0; display: none; }
@media (max-width: 600px) { .pub { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; } .pub-thumb { width: 72px; height: 72px; } }

/* galleries & media */
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin-bottom: 14px; }
.embeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; margin: 1em 0 2em; }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); background: var(--wash); }
.yt { position: relative; display: block; overflow: hidden; color: #fff; }
.yt img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px;
  background: rgba(20, 22, 42, 0.82); border-radius: 12px;
}
.yt-play::after {
  content: ""; position: absolute; left: 28px; top: 14px;
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.yt:hover .yt-play, .yt:focus-visible .yt-play { background: var(--phase-b); }
.yt-label { position: absolute; left: -9999px; }
.spotify { width: 100%; height: 352px; border: 0; border-radius: 12px; background: var(--wash); }
.band-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin: 1.4em 0; }
.band-links a { display: block; text-decoration: none; color: var(--ink); font-family: var(--sans); font-weight: 600; }
.band-links img { border-radius: var(--radius); margin-bottom: 8px; border: 1px solid var(--line); width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }

.cards-plain { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 1.5em 0; }
.cards-plain a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.cards-plain a:hover { border-color: var(--link); }
.cards-plain strong { display: block; font-family: var(--sans); font-size: 1.1rem; margin-bottom: 4px; color: var(--link); }
.cards-plain span { font-size: 0.95rem; color: var(--ink-soft); }

.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; max-width: 900px; }
.address-grid h2 { font-size: 1.15rem; margin-top: 0; }
address { font-style: normal; }
.contact-lines { font-family: var(--sans); list-style: none; padding: 0; margin: 0; }
.contact-lines li { padding: 4px 0; }
.contact-lines span { color: var(--ink-soft); display: inline-block; min-width: 4.5rem; }

/* ---------- art page ---------- */
.art-hero { max-width: 904px; margin-bottom: 32px; }
.art-hero img { width: 100%; height: auto; background: #fff; }
.art-intro { margin-bottom: 8px; }
.art-audio { max-width: var(--measure); margin: 8px 0 24px; padding: 20px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.art-audio h2, .art-audio h3 { margin: 0 0 0.3em; font-size: 1.25rem; }
.art-audio audio { width: 100%; margin-top: 8px; }
.art-movie { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: start; max-width: 1000px; margin-bottom: 8px; }
.art-poster img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.art-movie .prose p:first-child { margin-top: 0; }
@media (max-width: 700px) { .art-movie { grid-template-columns: 1fr; } .art-poster { max-width: 260px; } }
.art-music { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: center; max-width: 1100px; }
.art-music .art-audio { margin: 0; }
@media (max-width: 700px) { .art-music { grid-template-columns: 1fr; } .art-music .art-poster { max-width: none; } }
/* artists list */
.art-artists { max-width: var(--measure); color: var(--ink-soft); }
.art-gallery { columns: 4 220px; column-gap: 10px; }
.art-gallery .ph { display: block; margin-bottom: 10px; break-inside: avoid; border-radius: 6px; overflow: hidden; }
.art-gallery img { width: 100%; height: auto; border-radius: 6px; transition: opacity .15s; }
.art-gallery .ph:hover img { opacity: .85; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 9, 20, 0.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 4px; }
.lightbox button { position: fixed; font: 600 0.95rem var(--sans); color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { bottom: 20px; left: 50%; transform: translateX(-110%); }
.lb-next { bottom: 20px; left: 50%; transform: translateX(10%); }
.lb-count { position: fixed; top: 22px; left: 20px; margin: 0; color: #fff; font: 0.9rem var(--sans); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--link); }
.theme-btn { font: inherit; color: var(--ink-soft); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
@media print {
  .site-header, .site-footer, .subnav, .pub-tools, .specimen { display: none !important; }
  body { font-size: 11pt; }
}
