/* ============================================================================
   Christof Buchbender — professional profile
   Design system. Two themes (observatory / paper) selected via the
   data-theme attribute on <html>; everything else reads from CSS variables.
   ========================================================================== */

/* ============ FONTS ============ */
/* Self-hosted (assets/fonts/) instead of fonts.googleapis.com: a German
   university site must not leak visitor IPs to Google (GDPR; LG München I,
   3 O 17493/20). Latin subset only; the weights below are exactly the ones
   the stylesheet uses — re-run the download with more weights before using
   new ones, or the browser will synthesize them. */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/hanken-grotesk-400-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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/hanken-grotesk-500-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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/hanken-grotesk-600-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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/hanken-grotesk-700-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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400-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: "Spectral";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/spectral-500-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: "Spectral";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/spectral-600-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: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/spectral-500-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: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/spectral-600-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;
}

/* ============ THEMES ============ */
:root {
  --font-display: "Spectral", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
html[data-theme="observatory"] {
  --bg: #0c1210;
  --surface: #131a17;
  --surface-2: #18211d;
  --ink: #e9ece6;
  --ink-soft: #9aa69c;
  --ink-faint: #8a958c; /* ≥4.5:1 (WCAG AA small text) on --bg and both surfaces */
  --line: rgba(233, 236, 230, .14);
  --line-soft: rgba(233, 236, 230, .07);
  --brand: #a6c2a8;
  --sage: #7d9281;
  --accent: #6a9bd0;
  --on-accent: #0a1018;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 50px -20px rgba(0, 0, 0, .7);
}
html[data-theme="paper"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f5f2;
  --ink: #15140f;
  --ink-soft: #615f57;
  --ink-faint: #706e67; /* ≥4.5:1 (WCAG AA small text) on --bg and both surfaces */
  --line: rgba(21, 20, 15, .16);
  --line-soft: rgba(21, 20, 15, .08);
  --brand: #15140f;
  --sage: #9a968c;
  --accent: #335f8e;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(21, 20, 15, .05), 0 14px 36px -16px rgba(21, 20, 15, .2);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* one scrollable document: anchor jumps land below the sticky nav (68px),
   smoothly unless the visitor prefers reduced motion */
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .5s var(--ease), color .5s var(--ease);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-accent); }

.mono { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* visually-hidden but available to assistive tech */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* skip-to-content link: hidden until keyboard-focused */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: .9rem;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---- no-JS fallback -------------------------------------------------------
   The inline bootstrap script in <head> adds .js to <html> before first paint.
   Without it (JS disabled/blocked), reveal-on-scroll never runs, so elements
   must not stay hidden. Navigation needs no fallback: anchors are real ids. */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brandmark { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.monogram {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--brand);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--brand);
  position: relative; overflow: hidden; flex: none;
}
.monogram::after {
  content: ""; position: absolute; inset: -50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%);
}
.brandname { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  transition: color .2s, background .2s;
  position: relative;
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-cta {
  margin-left: 8px; padding: 9px 18px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: .9rem;
  cursor: pointer; border: none; transition: transform .15s var(--ease), filter .2s;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* theme switch — a compact set of swatches, the one user-facing remnant of the
   prototype's theme exploration. Kept minimal so it does not read as chrome. */
.theme-switch { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.theme-dot {
  width: 18px; height: 18px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--line); position: relative;
  transition: transform .15s var(--ease);
}
.theme-dot:hover { transform: scale(1.12); }
.theme-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.theme-dot[data-theme-value="observatory"] { background: #0c1210; }
.theme-dot[data-theme-value="paper"] { background: #ffffff; }

/* hero motif toggle — swaps the hero background between the radio-wave rings
   and an experimental starfield. Sits beside the theme swatches. */
.motif-toggle {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 8px;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s, background .2s, border-color .2s, transform .15s var(--ease);
}
.motif-toggle:hover { color: var(--ink); background: var(--surface-2); transform: translateY(-1px); }
.motif-toggle[aria-pressed="true"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.motif-toggle .motif-ico { font-size: .9rem; line-height: 1; }

/* mobile menu toggle — hidden on desktop */
.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s var(--ease), filter .2s, background .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ============ CHIPS ============ */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-soft); background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ============ KICKER ============ */
.kicker {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }

/* ============ PAGE TRANSITION ============ */
.page { animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ HERO ============ */
.hero { position: relative; min-height: calc(100vh - 68px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-motif { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-content { position: relative; z-index: 2; }

/* alternative hero motif — a generated starfield, toggled via data-motif on
   <html>. Default is the radio-wave rings above; the starfield is opt-in, so
   the no-JS page keeps the rings. */
.hero-starfield { display: none; }
html[data-motif="stars"] .hero-motif--rings { display: none; }
html[data-motif="stars"] .hero-starfield { display: block; }
.hero-starfield .twinkle { animation: twinkle linear infinite; will-change: opacity; }
@keyframes twinkle { 0%, 100% { opacity: var(--o, .7); } 50% { opacity: calc(var(--o, .7) * .22); } }

.hero-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 7.6rem); line-height: .95; letter-spacing: -.02em;
  margin: 0; text-wrap: balance;
}
.hero-name .l2 { color: var(--brand); font-style: italic; }
.hero-role { margin-top: 18px; font-size: clamp(1rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 40ch; }
.hero-role b { color: var(--ink); font-weight: 600; }

/* ---- hero photo --------------------------------------------------------------
   An environmental portrait (landscape, framed like the timeline images) in a
   second column. Several photos may be stacked in the frame; app.js crossfades
   through them slowly. Without JS only the first photo shows (see the
   html:not(.js) rule), so the markup keeps it as the lead image. */
.hero-grid--photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(330px, 38vw, 540px);
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
}
.hero-photo { position: relative; margin: 0; width: 100%; }
.hero-photo-frame {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface-2); box-shadow: var(--shadow);
}
.hero-photo-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.8s var(--ease);
}
.hero-photo-frame img.is-active { opacity: 1; }
html:not(.js) .hero-photo-frame img:first-child { opacity: 1; }
/* credit caption below the frame, like the timeline credits; app.js fades it
   while swapping its text in step with the photos */
.hero-photo-credit { display: block; margin-top: 8px; text-align: right; color: var(--ink-faint); transition: opacity .6s var(--ease); }
.hero-photo-credit.swapping { opacity: 0; }
.hero-photo-credit a { color: inherit; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.hero-photo-credit a:hover { color: var(--ink-soft); border-color: var(--line); }
/* pause/resume control for the photo rotation (WCAG 2.2.2) — revealed by
   app.js only when the rotation actually runs */
.photo-pause {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-soft);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color .2s, transform .15s var(--ease);
}
.photo-pause:hover { color: var(--ink); transform: scale(1.08); }
.photo-pause[hidden] { display: none; }
.photo-pause .ico-play { display: none; }
.photo-pause.paused .ico-pause { display: none; }
.photo-pause.paused .ico-play { display: block; }
@media (max-width: 900px) {
  /* photo moves above the copy; hero grows naturally so the taller stacked
     content is not clipped by the hero's overflow:hidden */
  .hero { min-height: auto; padding: 44px 0 60px; }
  .hero-grid--photo { grid-template-columns: 1fr; gap: 18px; }
  .hero-photo { order: -1; max-width: 460px; }
}

/* ============ SECTIONS ============ */
.section { padding: clamp(56px, 9vw, 120px) 0; }
.eyebrow-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
/* text-wrap: balance does the line-breaking that used to be hand-coded in the
   content (title_lines) — titles are single strings now */
.h-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.02; letter-spacing: -.015em; margin: 12px 0 0; max-width: 18ch; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
.lead b { color: var(--ink); font-weight: 600; }

/* section bio intro — rendered from a Markdown body (content/research.md);
   the first paragraph carries full ink, the rest recede */
.section-intro p { font-size: 1.08rem; line-height: 1.66; margin: 14px 0 0; color: var(--ink-soft); }
.section-intro p:first-child { margin-top: 0; color: var(--ink); }

/* ============ TIMELINE ============ */
.tl { position: relative; }
.tl-item { display: grid; grid-template-columns: 160px 1fr; gap: clamp(20px, 4vw, 56px); padding: 30px 0; border-top: 1px solid var(--line); transition: background .25s; align-items: start; }
/* entries with a representative observatory photo get a third image column */
.tl-item--media { grid-template-columns: 160px 1fr minmax(0, 280px); }
.tl-item:hover { background: color-mix(in srgb, var(--surface) 50%, transparent); }
.tl-item:hover .tl-title { color: var(--accent); }
.tl-period { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-faint); padding-top: 5px; }
.tl-tag { display: inline-block; margin-top: 10px; }
.tl-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; transition: color .2s; }
.tl-org { color: var(--ink-soft); font-size: .92rem; margin: 4px 0 12px; }
.tl-body { color: var(--ink-soft); max-width: 64ch; }

/* timeline figure — observatory photo + small attribution caption. A fixed
   aspect ratio keeps the column tidy regardless of each source's proportions;
   the 1px border and surface fallback keep photos legible on both themes. */
.tl-figure { margin: 0; }
.tl-img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2);
  transition: transform .4s var(--ease), box-shadow .3s var(--ease);
}
.tl-item--media:hover .tl-img { transform: translateY(-2px); box-shadow: var(--shadow); }
.tl-credit { display: block; margin-top: 7px; color: var(--ink-faint); }
.tl-credit a { color: inherit; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.tl-credit a:hover { color: var(--ink-soft); border-color: var(--line); }

/* ============ CARDS ============ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-3px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.area-title { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; margin: 14px 0 10px; }
.col-focus { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============ SKILLS (technical toolkit) ============ */
/* Grouped technical stack: a mono category label beside a "·"-separated list,
   echoing the timeline's two-column rhythm. */
.skills { border-top: 1px solid var(--line); }
.skill-row { display: grid; grid-template-columns: 210px 1fr; gap: clamp(16px, 3vw, 40px); padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.skill-group { color: var(--ink-faint); padding-top: 3px; }
.skill-items { color: var(--ink-soft); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 20px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer a.link { color: var(--ink-soft); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.footer a.link:hover { color: var(--accent); border-color: var(--accent); }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }

.addr { font-style: normal; color: var(--ink-soft); line-height: 1.7; }
.note { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-faint); letter-spacing: .03em; }

/* ============ AT A GLANCE ============ */
.glance { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glance-item { padding: 16px 26px 16px 0; margin-right: 26px; border-right: 1px solid var(--line-soft); }
.glance-item:last-child { border-right: none; margin-right: 0; }
.glance-k { color: var(--ink-faint); }
.glance-v { font-family: var(--font-display); font-size: 1.04rem; font-weight: 600; margin-top: 5px; color: var(--ink); }

/* ============ PUBLICATIONS ============ */
.pub-list { display: flex; flex-direction: column; }
.pub { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.pub-num { color: var(--ink-faint); padding-top: 4px; }
.pub-title { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; }
.pub-title a { transition: color .2s; }
.pub-title a:hover { color: var(--accent); }
.pub-meta { color: var(--ink-faint); margin: 6px 0 8px; text-transform: none; letter-spacing: .02em; }
.pub-why { margin: 0; color: var(--ink-soft); }

/* dashed "to add" placeholder card */
.placeholder-card { background: var(--surface-2); border-style: dashed; }
.placeholder-card .to-add { color: var(--accent); margin-bottom: 8px; }

/* ============ CONTACT ============ */
.contact-email { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 600; margin-top: 10px; color: var(--accent); word-break: break-word; }
.contact-card-label { margin-top: 8px; font-weight: 600; }
/* static, locally-hosted OSM strip (see content.yaml); links out to the live map */
.map-strip { display: block; margin-top: 18px; height: 120px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: var(--surface-2); }
.map-strip img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.map-strip:hover img { transform: scale(1.04); }
.map-credit { margin-top: 7px; text-align: right; }
.map-credit a { color: inherit; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.map-credit a:hover { color: var(--ink-soft); border-color: var(--line); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px clamp(20px, 5vw, 56px) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 12px 6px; }
  .nav-link.active::after { left: 6px; right: auto; width: 18px; bottom: 6px; }
  .nav-cta { margin-left: 6px; }
  .theme-switch { margin-left: 0; padding-top: 8px; align-self: flex-start; }
  .motif-toggle { margin-left: 0; margin-top: 8px; align-self: flex-start; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
    background: transparent; border: 1px solid var(--line); color: var(--ink);
  }
}
/* long kickers (e.g. the hero "Radio astronomy · University of Cologne") would
   otherwise overflow on narrow screens, since inline-flex sizes to content. */
@media (max-width: 560px) {
  .kicker { display: flex; flex-wrap: wrap; max-width: 100%; }
}
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
/* observatory photo drops to a capped, full-width band beneath each entry.
   The .tl-item--media (two-class) selector outranks the single-class mobile
   rule below, so its collapse must be spelled out at each breakpoint. */
@media (max-width: 900px) {
  .tl-item--media { grid-template-columns: 140px 1fr; }
  .tl-item--media .tl-figure { grid-column: 1 / -1; max-width: 460px; margin-top: 6px; }
}
@media (max-width: 680px) { .tl-item, .tl-item--media, .skill-row { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 640px) {
  .glance { flex-direction: column; }
  .glance-item { border-right: none; border-bottom: 1px solid var(--line-soft); width: 100%; padding-right: 0; margin-right: 0; }
  .glance-item:last-child { border-bottom: none; }
}
@media (max-width: 560px) { .pub { grid-template-columns: 1fr; gap: 8px; } }

/* ============ MOTION PREFERENCES ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ PRINT ============ */
/* Committees print or save-as-PDF: drop the interactive chrome, force the
   light palette whatever theme is active, and keep every section visible. */
@media print {
  html {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f6f5f2;
    --ink: #15140f;
    --ink-soft: #615f57;
    --ink-faint: #706e67;
    --line: rgba(21, 20, 15, .16);
    --line-soft: rgba(21, 20, 15, .08);
    --brand: #15140f;
    --sage: #9a968c;
    --accent: #335f8e;
    --on-accent: #ffffff;
    --shadow: none;
  }
  .nav, .skip-link, .hero-motif, .photo-pause { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero { min-height: auto; padding: 24px 0; }
  .tl-item, .pub, .card { break-inside: avoid; }
}
