/* ============================================================
   Agnieszka Lessmann – Website
   Layout: calm product-site frame (BKLit.ui / shadcn idiom):
   white ground, hairline borders, 12px radii, Geist for the UI,
   Newsreader for everything literary. Container 1180px, gutter
   clamp(16px, 4vw, 40px). One accent: a slate blue.
   ============================================================ */
/* ---------- Schriften: selbst gehostet (dist/assets/fonts), Subsets latin + latin-ext,
   variable Fonts von Google Fonts (Geist v5, Newsreader v26), siehe src/fonts/README.md ---------- */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/geist-v5-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: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/geist-v5-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: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/newsreader-v26-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: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/newsreader-v26-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: "Newsreader"; font-style: italic; font-weight: 300 600; font-display: swap; src: url("fonts/newsreader-v26-italic-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: "Newsreader"; font-style: italic; font-weight: 300 600; font-display: swap; src: url("fonts/newsreader-v26-italic-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; }

:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --bg-3: #f4f4f5;
  --fg: #18181b;
  --fg-2: #52525b;
  --fg-3: #8a8a93;
  --border: #e4e4e7;
  --border-2: #d4d4d8;
  --accent: #1a66bf;
  --accent-fg: #ffffff;
  --accent-soft: #e9f1fb;
  --glow-1: #1d9bf0;
  --glow-2: #b9dcfb;
  --btn-bg: #18181b;
  --btn-fg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, .06), 0 1px 1px rgba(24, 24, 27, .04);
  --shadow: 0 1px 2px rgba(24, 24, 27, .06), 0 8px 24px -12px rgba(24, 24, 27, .18);
  --shadow-lg: 0 2px 4px rgba(24, 24, 27, .06), 0 24px 60px -24px rgba(24, 24, 27, .35);
  --cover-shadow: 0 30px 60px -30px rgba(24, 24, 27, .45), 0 12px 24px -16px rgba(24, 24, 27, .3);
  --font-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --header-h: 64px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --dur: .5s;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b; --bg-2: #111113; --bg-3: #18181b;
    --fg: #fafafa; --fg-2: #a1a1aa; --fg-3: #71717a;
    --border: #27272a; --border-2: #3f3f46;
    --accent: #6fb6f7; --accent-fg: #09090b; --accent-soft: #0f2037;
    --glow-1: #1d9bf0; --glow-2: #123a66;
    --btn-bg: #fafafa; --btn-fg: #09090b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 24px 60px -24px rgba(0,0,0,.8);
    --cover-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 12px 24px -16px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090b; --bg-2: #111113; --bg-3: #18181b;
  --fg: #fafafa; --fg-2: #a1a1aa; --fg-3: #71717a;
  --border: #27272a; --border-2: #3f3f46;
  --accent: #6fb6f7; --accent-fg: #09090b; --accent-soft: #0f2037;
  --glow-1: #1d9bf0; --glow-2: #123a66;
  --btn-bg: #fafafa; --btn-fg: #09090b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 24px 60px -24px rgba(0,0,0,.8);
  --cover-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 12px 24px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
@media (max-width: 640px) { body { font-size: 1rem; } }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; }
h1, h2, h3, h4 { font-family: var(--font-ui); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.container--read { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }
.serif { font-family: var(--font-serif); }
.muted { color: var(--fg-2); }
.small { font-size: .9rem; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }
@supports (animation-timeline: scroll()) { .progress { animation: progress-grow linear both; animation-timeline: scroll(root block); } }
@keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span small { display: block; font-weight: 400; color: var(--fg-3); font-size: .72rem; letter-spacing: .01em; line-height: 1; margin-top: 2px; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--fg-2); padding: 7px 11px; border-radius: 8px; font-size: .95rem; transition: color .2s, background-color .2s; }
.nav a[aria-current="page"] { color: var(--fg); background: var(--bg-3); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid transparent; background: transparent; border-radius: 9px; cursor: pointer; color: var(--fg-2); transition: transform 160ms var(--ease-out), background-color .2s ease, color .2s ease, border-color .2s ease; }
.icon-btn svg { width: 19px; height: 19px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 12px; border: 1px solid var(--border); background: var(--bg-2); border-radius: 9px; color: var(--fg-3); cursor: pointer; font-size: .9rem; transition: transform 160ms var(--ease-out), border-color .2s ease, color .2s ease; }
.search-btn svg { width: 16px; height: 16px; }
kbd { font-family: var(--font-ui); font-size: .72rem; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--bg); color: var(--fg-3); }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 38px; padding: 0; justify-content: center; background: transparent; border-color: transparent; }
}
/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; transition: visibility 0s linear 220ms; }
.drawer[data-open="true"] { visibility: visible; transition-delay: 0s; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity 200ms var(--ease-out); }
.drawer[data-open="true"] .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--bg); border-left: 1px solid var(--border); padding: 20px; padding-top: calc(20px + env(safe-area-inset-top, 0px)); padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 6px; overflow: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform 220ms var(--ease-out); }
.drawer[data-open="true"] .drawer-panel { transform: translateX(0); transition: transform 420ms var(--ease-drawer); }
.drawer-panel a { text-decoration: none; padding: 12px 14px; border-radius: 10px; font-size: 1.1rem; color: var(--fg); opacity: 0; transform: translateX(10px); transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), background-color .2s ease; }
.drawer[data-open="true"] .drawer-panel a { opacity: 1; transform: none; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), background-color .2s ease; transition-delay: calc(60ms + var(--i, 0) * 35ms); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-sub { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--fg-3); }
.drawer-sub a { font-size: .95rem; padding: 8px 14px; color: var(--fg-2); }

/* ---------- Buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 500; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn:active, .chip:active, .icon-btn:active, .search-btn:active { transform: scale(.97); }
.audio-play:active { transform: scale(.94); }
.btn, .chip, .icon-btn, .search-btn, .audio-play, .nav a, .drawer-panel a, .tag, .rotator-dots button, .toc a { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-sm); }
.btn-secondary { background: var(--bg); color: var(--fg); border-color: var(--border-2); }
.btn-ghost { background: transparent; color: var(--fg-2); padding-inline: 10px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: .875rem; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; }
/* Lange Beschriftungen dürfen auf schmalen Handys umbrechen, statt die Seite zu verbreitern */
@media (max-width: 480px) {
  .btn { white-space: normal; height: auto; min-height: 42px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
  .btn-sm { min-height: 34px; padding-top: 7px; padding-bottom: 7px; }
  .btn svg { flex-shrink: 0; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--fg-2); font-size: .85rem; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), background-color .2s ease, border-color .2s ease, color .2s ease; }
.chip[aria-pressed="true"], .chip.is-active { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--bg-3); color: var(--fg-2); font-size: .75rem; letter-spacing: .01em; text-decoration: none; }
.tag--accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- Layout blocks ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head p { color: var(--fg-2); max-width: 60ch; margin-top: 8px; }
.section-head .btn { flex-shrink: 0; }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: flex-start; } }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid > * { min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.lead { font-family: var(--font-serif); font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--fg); max-width: 62ch; }
.eyebrow { font-size: .85rem; color: var(--fg-3); }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s ease, transform 200ms var(--ease-out), opacity 200ms var(--ease-out); }
@starting-style { .post-card { opacity: 0; transform: translateY(6px); } }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-media { aspect-ratio: 16 / 10; background: var(--bg-3); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.1rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.card-title a { text-decoration: none; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--fg-3); font-size: .82rem; }
.card-text { color: var(--fg-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--flat { background: var(--bg-2); }

/* Book / work cards */
.work-card { display: grid; grid-template-columns: 116px 1fr; gap: 20px; padding: 18px; align-items: start; }
.work-card .cover { width: 116px; }
.work-card .card-title { font-size: 1.2rem; }
.work-card .card-text { -webkit-line-clamp: 4; }
.work-card .work-kind { color: var(--fg-3); font-size: .82rem; }
@media (max-width: 480px) { .work-card { grid-template-columns: 92px 1fr; gap: 14px; } .work-card .cover { width: 92px; } }
.cover { display: block; border-radius: 4px; box-shadow: var(--cover-shadow); background: var(--bg-3); overflow: hidden; }
.cover img { width: 100%; height: auto; }
.cover--sm { width: 140px; }
.cover-3d { perspective: 1200px; }
.cover-3d .cover { transform-style: preserve-3d; transition: transform 300ms var(--ease-out); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: .9rem; margin-bottom: 22px; }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-copy { container-type: inline-size; min-width: 0; }
.hero-title { font-size: min(4.6rem, 9.4cqi); line-height: 1; letter-spacing: -.035em; font-weight: 500; white-space: nowrap; }
@supports not (font-size: 1cqi) { .hero-title { font-size: clamp(2rem, 5vw, 4.6rem); } }
.hero-title .word { display: inline-block; }
.hero-sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.9rem); color: var(--fg-2); margin-top: 14px; line-height: 1.3; }
.hero-text { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.55; margin-top: 26px; max-width: 58ch; }
.hero-meta { margin-top: 18px; color: var(--fg-3); font-size: .9rem; }
.hero-actions { margin-top: 30px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-glow { position: absolute; will-change: transform; width: min(70vw, 560px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow-1) 32%, transparent), color-mix(in srgb, var(--glow-2) 30%, transparent) 55%, transparent 72%); filter: blur(24px); z-index: 0; pointer-events: none; }
.hero-visual .cover { position: relative; z-index: 1; width: min(60vw, 320px); }
.hero-visual .cover.cover--second { position: absolute; z-index: 0; width: min(36vw, 190px); right: 2%; bottom: -6%; transform: rotate(6deg); opacity: .95; }
@media (max-width: 860px) { .hero-visual { padding-block: 18px; } .hero-visual .cover { width: min(52vw, 260px); } .hero-visual .cover.cover--second { display: none; } }

/* ---------- Voices (quotes) ---------- */
.voice { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.5; color: var(--fg); }
.voice p { margin: 0; }
.voice-src { display: block; margin-top: 12px; font-family: var(--font-ui); font-size: .85rem; color: var(--fg-3); }
.voice-src a { color: var(--fg-2); }
/* Flex statt Grid: Zitate in einer unvollständigen letzten Reihe füllen die Breite, statt eine graue Leerfläche zu lassen */
.voice-grid { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--border); }
.voice-grid > .voice { flex: 1 1 320px; background: var(--bg); padding: 26px 26px 24px; margin: 0; min-width: 0; }
.voice-grid > .voice + .voice { border: 0; }
.voice-grid { gap: 1px; }
.voice--big { font-size: clamp(1.35rem, 2.3vw, 1.8rem); }
.rotator { position: relative; min-height: 190px; }
.rotator .voice { position: absolute; inset: 0; opacity: 0; }
.rotator .voice.is-active { position: relative; opacity: 1; }
.rotator-dots { display: flex; gap: 8px; margin-top: 18px; }
.rotator-dots button { width: 26px; height: 4px; border-radius: 2px; border: 0; background: var(--border-2); cursor: pointer; padding: 0; transition: background-color .3s; }
.rotator-dots button[aria-current="true"] { background: var(--fg); }

/* ---------- Events ---------- */
.event-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.event { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); align-items: start; }
.event-date { font-variant-numeric: tabular-nums; line-height: 1.1; }
.event-date .d { font-size: 2rem; font-weight: 500; letter-spacing: -.03em; }
.event-date .m { display: block; color: var(--fg-3); font-size: .85rem; margin-top: 4px; }
.event-title { font-size: 1.15rem; font-weight: 500; letter-spacing: -.015em; }
.event-sub { color: var(--fg-2); margin-top: 4px; }
.event-place { color: var(--fg-3); font-size: .9rem; margin-top: 8px; }
.event-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .event { grid-template-columns: 76px 1fr; } .event-actions { grid-column: 2; justify-content: flex-start; } .event-date .d { font-size: 1.6rem; } }
.event--range .event-date .d { font-size: 1.25rem; line-height: 1.2; }
.past-list { columns: 2; column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.past-list li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; gap: 14px; font-size: .95rem; }
.past-list time { color: var(--fg-3); font-variant-numeric: tabular-nums; flex-shrink: 0; width: 92px; }
@media (max-width: 640px) { .past-list { columns: 1; } }

/* ---------- Prose (long-form reading) ---------- */
.prose { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.65; color: var(--fg); overflow-wrap: break-word; } /* lange Adressen im Text umbrechen statt die Seite zu verbreitern */
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-ui); margin-top: 2em; margin-bottom: .6em; }
.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.2rem; }
.prose a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 2px solid var(--border-2); color: var(--fg-2); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r-sm); width: 100%; }
.prose figcaption { font-family: var(--font-ui); font-size: .85rem; color: var(--fg-3); margin-top: 10px; }
.prose .poem { white-space: pre-line; font-style: italic; line-height: 1.5; padding-left: 22px; border-left: 2px solid var(--border-2); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose video { border-radius: var(--r); width: 100%; background: #000; }
.prose .btn, .prose .btn-row a { font-family: var(--font-ui); }
.prose .btn-row { margin-top: 1.6em; }
.prose .cover { max-width: 240px; }
.prose .source { font-family: var(--font-ui); font-size: .9rem; color: var(--fg-2); }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: .95rem; }
.prose td, .prose th { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }

/* ---------- Article header ---------- */
.article-head { padding-top: clamp(32px, 5vw, 64px); }
.article-head .crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--fg-3); margin-bottom: 20px; }
.article-head .crumbs a { color: var(--fg-2); text-decoration: none; }
.article-head h1 { max-width: 20ch; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; color: var(--fg-3); font-size: .9rem; }
.article-hero { margin-block: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-3); max-height: 70vh; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; max-height: 70vh; }
.article-foot { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--border); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.article-nav a { text-decoration: none; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: border-color .2s, background-color .2s; }
.article-nav a span { font-size: .8rem; color: var(--fg-3); }
.article-nav a strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.article-nav a.next { text-align: right; align-items: flex-end; }
@media (max-width: 560px) { .article-nav { grid-template-columns: 1fr; } .article-nav a.next { text-align: left; align-items: flex-start; } }

/* ---------- Gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 2em 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); cursor: zoom-in; transition: transform .4s var(--ease-out), filter .3s; }
.gallery figcaption { font-family: var(--font-ui); font-size: .78rem; color: var(--fg-3); margin-top: 6px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; max-height: 100dvh; width: 100vw; height: 100vh; height: 100dvh; opacity: 0; transition: opacity 180ms var(--ease-out), overlay 180ms allow-discrete, display 180ms allow-discrete; }
.lightbox[open] { opacity: 1; }
.lightbox .lightbox-inner { transform: scale(.96); transition: transform 250ms var(--ease-out); }
.lightbox[open] .lightbox-inner { transform: none; }
@starting-style { .lightbox[open] { opacity: 0; } .lightbox[open] .lightbox-inner { transform: scale(.96); } }
.lightbox::backdrop { background: rgba(9, 9, 11, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 180ms var(--ease-out), overlay 180ms allow-discrete, display 180ms allow-discrete; }
.lightbox[open]::backdrop { opacity: 1; }
@starting-style { .lightbox[open]::backdrop { opacity: 0; } }
.lightbox-inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 24px; position: relative; }
.lightbox img { max-width: min(96vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #e4e4e7; font-size: .9rem; padding-inline: 24px; }
.lightbox .icon-btn { position: absolute; top: 14px; right: 14px; color: #fff; background: rgba(255,255,255,.1); }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; background: rgba(255,255,255,.1); }
.lightbox .lb-prev { left: 14px; } .lightbox .lb-next { right: 14px; }

/* ---------- Media: audio, video ---------- */
.audio { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-2); font-family: var(--font-ui); }
.audio-play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; cursor: pointer; transition: transform 160ms var(--ease-out); }
.audio-play svg { width: 20px; height: 20px; }
.audio-play .ic-pause { display: none; }
.audio[data-playing="true"] .audio-play .ic-play { display: none; }
.audio[data-playing="true"] .audio-play .ic-pause { display: block; }
.audio-title { font-weight: 500; font-size: .98rem; letter-spacing: -.01em; }
.audio-sub { color: var(--fg-3); font-size: .82rem; margin-top: 2px; }
.audio-track { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.audio-bar { position: relative; height: 26px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.audio-bar i { flex: 1; height: 100%; background: var(--border-2); border-radius: 2px; transform-origin: 50%; transform: scaleY(.35); transition: background-color .2s; }
.audio-bar i.on { background: var(--fg); }
.audio-time { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--fg-3); }
.video-wrap { border-radius: var(--r); overflow: hidden; background: #000; }
.video-wrap video { width: 100%; height: auto; display: block; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--bg-3); text-decoration: none; color: #fff; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.yt-play span { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.92); color: #09090b; padding: 10px 16px 10px 12px; border-radius: 999px; font-weight: 500; font-size: .9rem; box-shadow: var(--shadow); transition: transform .3s var(--ease-out); font-family: var(--font-ui); }
.yt-play svg { width: 18px; height: 18px; }
.yt-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; font-size: .88rem; text-shadow: 0 1px 2px rgba(0,0,0,.6); font-family: var(--font-ui); }

/* ---------- Lists & misc ---------- */
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.toc a { text-decoration: none; color: var(--fg-3); padding: 7px 12px; border-left: 2px solid var(--border); transition: color .2s, border-color .2s; }
.toc a.is-active { color: var(--fg); border-color: var(--fg); }
.with-toc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .with-toc { grid-template-columns: 1fr; } .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; } .toc a { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; } .toc a.is-active { border-color: var(--fg); } }
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list li { padding: 14px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 64px 1fr; gap: 16px; font-size: .98rem; }
.pub-list li .y { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.pub-list li .t { font-family: var(--font-serif); font-size: 1.1rem; }
.pub-list li .s { color: var(--fg-2); font-size: .9rem; margin-top: 2px; }
.pub-list a { color: var(--accent); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; font-size: .95rem; }
.dl dt { color: var(--fg-3); }
.dl dd { margin: 0; }
.notice { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-2); font-size: .95rem; color: var(--fg-2); }
.notice strong { color: var(--fg); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.facts > div { background: var(--bg); padding: 16px 18px; }
.facts .k { color: var(--fg-3); font-size: .8rem; }
.facts .v { margin-top: 4px; font-weight: 500; letter-spacing: -.01em; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r); text-decoration: none; transition: border-color .2s, background-color .2s; }
.link-list a span { color: var(--fg-3); font-size: .85rem; }
.link-list svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--fg-3); }
.sidecard { border: 1px solid var(--border); border-radius: var(--r); padding: 20px; background: var(--bg-2); }
.sidecard h3 { font-size: 1rem; margin-bottom: 12px; }
.sidecard .link-list a { background: var(--bg); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 9px; background: var(--bg); color: var(--fg); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.field textarea { min-height: 160px; resize: vertical; }
.field small { color: var(--fg-3); font-size: .82rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
/* Kontaktformular: Honigtopf-Feld (für Menschen unsichtbar), Sende-Zustand, Hinweise */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field-note { color: var(--fg-3); font-size: .82rem; line-height: 1.5; }
.field-note a { color: var(--fg-2); }
.btn[aria-busy="true"], .btn:disabled { opacity: .65; cursor: progress; }
.form.is-sent .field, .form.is-sent .form-row, .form.is-sent .btn-row, .form.is-sent .field-note { display: none; }
.notice:target { display: block; }
.notice--ok { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: var(--accent-soft); }
.notice--error { border-color: color-mix(in srgb, #d1434b 45%, var(--border)); }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }
.copy-line { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-2); font-size: .95rem; }
.copy-line button { border: 0; background: var(--bg-3); border-radius: 6px; padding: 4px 9px; font-size: .8rem; cursor: pointer; }

/* ---------- Search dialog ---------- */
.search-dialog { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0; background: var(--bg); color: var(--fg); width: min(92vw, 620px); box-shadow: var(--shadow-lg); margin-top: 10vh; overflow: hidden; }
.search-dialog::backdrop { background: rgba(9,9,11,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.search-head svg { width: 18px; height: 18px; color: var(--fg-3); flex-shrink: 0; }
.search-head input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--fg); outline: 0; min-width: 0; }
.search-results { max-height: 56vh; overflow: auto; padding: 8px; }
.search-results a { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 12px; border-radius: 9px; text-decoration: none; align-items: center; }
.search-results .r-title { font-weight: 500; font-size: .98rem; }
.search-results .r-sub { color: var(--fg-3); font-size: .82rem; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.search-results .r-kind { font-size: .75rem; color: var(--fg-3); background: var(--bg-3); padding: 2px 8px; border-radius: 999px; }
.search-results .r-empty { padding: 28px 12px; text-align: center; color: var(--fg-3); font-size: .95rem; }
.search-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--fg-3); font-size: .78rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: 48px 36px; margin-top: clamp(48px, 8vw, 96px); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .85rem; color: var(--fg-3); font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--fg-2); }
.footer-brand p { color: var(--fg-2); max-width: 36ch; margin-top: 10px; font-family: var(--font-serif); font-size: 1.05rem; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--fg-3); font-size: .82rem; }
.boat { width: 44px; height: 44px; border-radius: 10px; }

/* ---------- Motion helpers ---------- */
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
.glow-pulse { animation: glow 9s ease-in-out infinite; }
@keyframes glow { 0%, 100% { transform: scale(1) translate(0, 0); opacity: .9; } 50% { transform: scale(1.08) translate(2%, -3%); opacity: 1; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: 260ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
::view-transition-group(*) { animation-duration: .4s; animation-timing-function: var(--ease-in-out); }
@media (prefers-reduced-motion: reduce) {
  .float, .glow-pulse, .progress { animation: none; }
  .card, .card-media img, .yt img, .gallery img, .cover-3d .cover, .drawer-panel a { transition-property: opacity, color, background-color, border-color; }
  .drawer-panel, .drawer-backdrop { transition-duration: 120ms; }
  .drawer-panel { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 120ms; }
  ::view-transition-group(*) { animation: none; }
}
@media print { .site-header, .site-footer, .progress, .drawer, .search-dialog { display: none !important; } body { font-size: 11pt; } }

/* ---------- Additions: embeds, media-text, misc ---------- */
.yt--portrait { aspect-ratio: 9 / 16; max-width: 380px; }
.prose .yt { margin: 2em 0; }
.prose .gallery + p, .prose .video-wrap + p { margin-top: 1.4em; }
.prose .audio { margin: 1.6em 0; }
.prose .video-wrap { margin: 1.6em 0; max-width: 100%; }
.prose .video-wrap--portrait { max-width: 420px; }
.prose .center { text-align: center; }
.prose .btn-row a.btn { text-decoration: none; }
.table-wrap { overflow-x: auto; }
.post-hero-note { color: var(--fg-3); font-size: .85rem; margin-top: 8px; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.work-hero { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 760px) { .work-hero { grid-template-columns: 1fr; } .work-hero .cover-3d { max-width: 260px; } }
/* Cover nur bei zweispaltigem Layout mitlaufen lassen; einspaltig (Handy) würde es den Text verdecken */
@media (min-width: 761px) { .work-hero .cover-3d { position: sticky; top: calc(var(--header-h) + 24px); } }
.work-hero .kind { color: var(--fg-3); font-size: .95rem; margin-bottom: 10px; }
.work-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.work-hero .sub { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--fg-2); margin-top: 8px; }
.work-hero .meta { margin-top: 18px; color: var(--fg-2); font-size: .95rem; line-height: 1.5; }
.work-hero .btn-row { margin-top: 24px; }
.work-hero .work-body { margin-top: 32px; }
.landscape-hero { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 28px; max-height: 520px; }
.landscape-hero img { width: 100%; height: 100%; object-fit: cover; }
.format-card .card-media { aspect-ratio: 4 / 3; }
.hero-note { font-size: .85rem; color: var(--fg-3); }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 22px; }
.cover-grid a { text-decoration: none; display: grid; gap: 10px; }
.cover-grid .cover { aspect-ratio: 2 / 3; }
.cover-grid .cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-grid .t { font-size: .9rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.cover-grid .k { font-size: .78rem; color: var(--fg-3); }
.two-col { columns: 2; column-gap: 40px; }
@media (max-width: 700px) { .two-col { columns: 1; } }
.social { display: flex; gap: 8px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 9px; color: var(--fg-2); transition: border-color .2s, color .2s, background-color .2s; }
.social svg { width: 18px; height: 18px; }
.quote-img { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid img { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.kv { display: grid; gap: 4px; font-size: .95rem; }
.kv b { font-weight: 500; }
.cta-band { border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 70%, var(--bg)), var(--bg) 60%); }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { font-size: 1.5rem; }
.cta-band p { color: var(--fg-2); margin-top: 8px; max-width: 56ch; }
.post-card .card-media { aspect-ratio: 4 / 3; }
.post-card .card-media img { object-position: center 30%; }
.feature-note { font-family: var(--font-serif); font-style: italic; color: var(--fg-2); }
.press-item { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start; padding: 24px 0; border-top: 1px solid var(--border); }
.press-item img { border-radius: var(--r-sm); border: 1px solid var(--border); }
@media (max-width: 640px) { .press-item { grid-template-columns: 1fr; } .press-item img { max-width: 220px; } }
.pdf-link { display: inline-flex; align-items: center; gap: 10px; }
.sr-count { color: var(--fg-3); font-size: .9rem; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); text-decoration: none; font-size: .9rem; }

/* columns from the editor, portrait images */
.prose .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin: 2em 0; align-items: start; }
.prose .cols figure { margin: 0; }
.prose .cols .col > * + * { margin-top: .8em; }
.prose figure img { max-height: min(78vh, 880px); width: auto; max-width: 100%; margin-inline: auto; }
.prose .cols figure img, .prose .gallery img { max-height: none; width: 100%; }
.prose .article-hero img { max-height: 70vh; }

/* ---------- Hover states only where a real pointer can hover (touch fires sticky hovers on tap) ---------- */
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-color: currentColor; }
  .nav a:hover { color: var(--fg); background: var(--bg-3); }
  .icon-btn:hover { background: var(--bg-3); color: var(--fg); }
  .search-btn:hover { border-color: var(--border-2); color: var(--fg-2); }
  .drawer-panel a:hover, .drawer-panel a[aria-current="page"] { background: var(--bg-3); }
  .btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 86%, var(--bg)); }
  .btn-secondary:hover { background: var(--bg-3); }
  .btn-ghost:hover { background: var(--bg-3); color: var(--fg); }
  .chip:hover { border-color: var(--border-2); color: var(--fg); }
  .card:hover { border-color: var(--border-2); transform: translateY(-2px); }
  .card:hover .card-media img { transform: scale(1.03); }
  .prose a:hover { text-decoration-color: var(--accent); }
  .article-head .crumbs a:hover { color: var(--fg); }
  .article-nav a:hover { border-color: var(--border-2); background: var(--bg-2); }
  .gallery img:hover { transform: scale(1.02); }
  .yt:hover img { transform: scale(1.03); }
  .yt:hover .yt-play span { transform: scale(1.04); }
  .toc a:hover { color: var(--fg); }
  .link-list a:hover { border-color: var(--border-2); background: var(--bg-2); }
  .search-results a:hover, .search-results a.is-focus { background: var(--bg-3); }
  .site-footer a:hover { color: var(--fg); }
    .card:hover, .card-media img, .yt img, .gallery img, .cover-3d .cover { transform: none !important; }
  .social a:hover { color: var(--fg); border-color: var(--border-2); background: var(--bg-3); }
  .back:hover { color: var(--fg); }
}
