/* Self-hosted fonts (was Google Fonts CDN — removed to avoid sending
   visitor IPs to Google; GDPR, LG München I 2022). latin + latin-ext
   subsets only. Regenerate: see scripts note / project history. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-400.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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-400.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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-400.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 Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-400.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 Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-400.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 Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-400.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 Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-400.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;
}

:root{
  --header-height: 4rem;
  /* ── Mint Air palette · light ───────────────────────────── */
  --bg: #f3faf5;
  --card: #ffffff;
  --text: #20302a;
  --muted: #6a8077;
  --accent: #3f9d78;
  --accent-text: #ffffff;
  --border: #def0e6;
  --surface: #eaf6ef;
  --surface-border: #d2e9dc;
  --card-border: #c2e0d0;
  --card-shadow: 0 1px 2px rgba(32,48,42,0.04), 0 6px 18px rgba(32,48,42,0.07);
  --nav-hover: #eaf6ef;
  --overlay: rgba(255,255,255,0.95);
  /* supporting brand colours */
  --spark: #e3a82c;       /* golden sun — warm amber (review stars) */
  --secondary: #4aa6c6;   /* water blue */
  --logo-min: #8a949b;    /* "minimal" wordmark — cool grey */
  --container-width: 1100px;
}

[data-theme="dark"]{
  /* ── Mint Air palette · dark ────────────────────────────── */
  --bg: #0c1814;
  --card: #13211c;
  --text: #daeae1;
  --muted: #86a097;
  --accent: #5cc29c;
  --accent-text: #042118;
  --border: #1d302a;
  --surface: #182a22;
  --surface-border: #25392f;
  --card-border: #324a3e;
  --card-shadow: 0 1px 2px rgba(0,0,0,0.25), 0 6px 18px rgba(0,0,0,0.30);
  --nav-hover: #16271f;
  --overlay: rgba(19,33,28,0.95);
  --spark: #e9b54a;
  --secondary: #5cb6d4;
  --logo-min: #9aa6ac;
}

/* Simple reset */
*{box-sizing:border-box}
html{min-height:100%;scroll-padding-top:var(--header-height)}
body{min-height:100%}
body{
  margin:0;
  font-family:"Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  transition:background 0.3s ease,color 0.3s ease;
}
h1,h2,h3,.logo{
  font-family:"Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing:-0.015em;
  text-wrap:balance;
}

.container{max-width:var(--container-width);margin:0 auto;padding:0 1rem}
.header-inner,.footer-inner{display:flex;align-items:center;justify-content:space-between;padding:0.75rem 1rem;gap:0.75rem}

.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{position:static;left:0;top:0;width:auto;height:auto;padding:0.5rem;background:#111;color:#fff}

/* Header & logo */
.site-header{background:var(--card);border-bottom:1px solid var(--border);transition:background 0.3s ease,border-color 0.3s ease;position:sticky;top:0;z-index:100}
.logo{display:inline-flex;align-items:center;gap:0.6rem;text-decoration:none;font-weight:700;font-size:1.4rem;line-height:1;min-width:0}
.logo-mark{display:block;flex-shrink:0;width:70px;height:46px}
.logo-text{white-space:nowrap}
.logo-min{color:var(--logo-min)}
.logo-cam{color:var(--accent)}

.site-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1rem}
.site-nav a{text-decoration:none;color:var(--text);padding:0.5rem;border-radius:4px}
.site-nav a:hover{background:var(--nav-hover)}

.nav-toggle{display:none;background:none;border:1px solid var(--surface-border);padding:0.4rem 0.6rem;border-radius:4px;color:var(--text)}

.header-controls{display:flex;align-items:center;gap:0.5rem}

/* language switch pill — mirrors the saber-track style */
.lang-switch{
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 14px;
  height:34px;
  border-radius:20px;
  border:1.5px solid var(--border);
  background:var(--surface);
  box-shadow:inset 0 1px 3px rgba(0,0,0,0.07);
  cursor:pointer;
  font-family:inherit;
  transition:border-color 0.15s,box-shadow 0.15s,background 0.3s ease;
}
.lang-switch:hover{
  border-color:var(--accent);
  box-shadow:inset 0 1px 3px rgba(0,0,0,0.07),0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}
.lang-switch:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:20px}
.lang-flag{display:block;border-radius:2px;transition:opacity 0.15s;filter:drop-shadow(0 1px 2px rgba(0,0,0,0.18))}
.lang-flag--current{opacity:1}
.lang-flag--other{opacity:0.38}

/* search button — same pill family as the toggle / language switch */
.search-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:20px;
  border:1.5px solid var(--border);background:var(--surface);color:var(--text);
  cursor:pointer;box-shadow:inset 0 1px 3px rgba(0,0,0,0.07);
  transition:border-color 0.15s,box-shadow 0.15s,background 0.3s ease;
}
.search-toggle:hover{
  border-color:var(--accent);
  box-shadow:inset 0 1px 3px rgba(0,0,0,0.07),0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}
.search-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* search modal */
.search-modal{position:fixed;inset:0;z-index:200;display:none}
.search-modal.open{display:block}
.search-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.5);backdrop-filter:blur(2px)}
.search-modal__panel{
  position:relative;max-width:640px;margin:8vh auto 0;max-height:80vh;overflow:auto;
  background:var(--card);border:1px solid var(--border);border-radius:16px;
  padding:1.25rem 1.25rem 1rem;box-shadow:0 20px 60px rgba(0,0,0,0.35);
  /* Pagefind UI theming → Mint Air tokens (auto-tracks light/dark) */
  --pagefind-ui-primary:var(--accent);
  --pagefind-ui-text:var(--text);
  --pagefind-ui-background:var(--card);
  --pagefind-ui-border:var(--border);
  --pagefind-ui-tag:var(--surface);
  --pagefind-ui-border-width:1px;
  --pagefind-ui-border-radius:8px;
  --pagefind-ui-font:"Source Sans 3",system-ui,sans-serif;
}
@media (max-width:560px){.search-modal__panel{margin:0;max-width:none;min-height:100vh;max-height:100vh;border-radius:0}}
.search-modal__close{
  position:absolute;top:0.7rem;right:0.7rem;z-index:1;
  display:inline-flex;align-items:center;justify-content:center;width:1.9rem;height:1.9rem;
  border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);cursor:pointer;
}
.search-modal__close:hover{border-color:var(--accent);color:var(--accent)}
.search-modal__close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Pagefind's input is display:flex with no line-height of its own, so it
   inherits our global 1.55 and renders a spurious vertical scrollbar — pin it. */
.search-modal__panel .pagefind-ui__search-input{line-height:normal}

/* Hero — two-column (text left, image right; stacks on small screens) */
.hero{padding:4rem 0 3.5rem;background:linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent)}
[data-theme="dark"] .hero{background:linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent)}
.hero-grid{display:grid;gap:2.25rem;align-items:center}
@media (min-width:820px){
  .hero-grid{grid-template-columns:1.05fr 1fr;gap:3rem}
}
.hero-text{min-width:0}
.hero-eyebrow{font-size:0.78rem;font-weight:600;letter-spacing:0.16em;text-transform:uppercase;color:var(--accent);margin:0 0 0.6rem}
.hero h1{margin:0 0 0.6rem;font-size:clamp(2.1rem, 4.5vw, 3.1rem);font-weight:700;line-height:1.05}
.hero-body{font-size:1.05rem;max-width:54ch;margin:0;color:var(--text)}
.hero-actions{margin-top:1.6rem;display:flex;gap:0.75rem;flex-wrap:wrap}
.hero-figure{margin:0}
.hero-figure img{width:100%;height:auto;display:block;border-radius:14px;box-shadow:0 16px 44px rgba(0,0,0,0.16);aspect-ratio:3/2;object-fit:cover;background:var(--surface)}
[data-theme="dark"] .hero-figure img{box-shadow:0 16px 44px rgba(0,0,0,0.55)}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:0.45rem;background:var(--accent);color:var(--accent-text);padding:0.6rem 1.1rem;border-radius:8px;text-decoration:none;font-weight:600;font-family:"Source Sans 3",system-ui,sans-serif}
.btn:hover{filter:brightness(1.05)}
.btn svg{flex-shrink:0}
.hero-actions .btn{white-space:nowrap}

.content{padding:2rem 0}

/* Footer */
.site-footer{padding:2.25rem 0;border-top:1px solid var(--border);background:transparent;margin-top:2.5rem}
.footer-inner{align-items:flex-start;flex-wrap:wrap;gap:1.5rem}
.footer-brand{display:flex;flex-direction:column;gap:0.4rem}
.footer-logo{display:inline-flex;align-items:center;gap:0.5rem;font-family:"Bricolage Grotesque",system-ui,sans-serif;font-weight:700;font-size:1.05rem}
.footer-logo img{display:block}
.footer-logo .logo-min{color:var(--logo-min)}
.footer-logo .logo-cam{color:var(--accent)}
.footer-tagline{margin:0;color:var(--muted);font-size:0.85rem}
.footer-meta{display:flex;flex-direction:column;align-items:flex-end;gap:0.7rem}
.footer-social{display:flex;align-items:center;gap:0.9rem}
.footer-icon{color:var(--muted);display:inline-flex;align-items:center}
.footer-icon:hover{color:var(--accent)}
.footer-icon svg{display:block}
.footer-legal{margin:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:0.5rem;color:var(--muted);font-size:0.8rem}
.footer-legal a{color:var(--muted);text-decoration:none}
.footer-legal a:hover{color:var(--accent)}
.footer-sep{opacity:0.45}
@media (max-width:600px){.footer-meta{align-items:flex-start}.footer-legal{justify-content:flex-start}}

/* Responsive — nav collapses to a hamburger before the 6 items would clip */
@media (max-width:960px){
  .site-nav{display:none}
  .nav-toggle{display:inline-flex}
  .site-nav[aria-hidden="false"]{
    display:block;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--card);
    border-bottom:1px solid var(--border);
    padding:0 1rem;
    z-index:99;
  }
  .site-nav ul{flex-direction:column;gap:0}
  .site-nav a{display:block;padding:0.75rem 0}
}

/* Keep the header on one line at narrow widths: shrink the logo, scale the
   controls down, and drop the wordmark on the smallest screens so the theme +
   language switchers never slide past the right edge. */
@media (max-width:560px){
  .logo{font-size:1.15rem;gap:0.45rem}
  .logo-mark{width:54px;height:35px}
  .header-controls{gap:0.35rem}
  .lang-switch{gap:6px;padding:0 10px;height:30px}
  .lang-flag{width:20px;height:15px}
  .saber-track{padding:0 10px;height:30px}
  .saber-blade{width:30px}
  .search-toggle{width:30px;height:30px}
}
@media (max-width:430px){
  /* Stack the wordmark instead of hiding it, so the brand name stays visible
     even around 320px where a single line would overflow past the controls. */
  .logo-text{display:flex;flex-direction:column;line-height:1.04;font-size:0.92rem}
  .logo-mark{width:46px;height:30px}
}

@media (prefers-reduced-motion: no-preference){
  .btn{transition:transform .12s ease, box-shadow .12s, filter .15s}
  .btn:active{transform:translateY(1px)}
  .hero-actions .btn:hover{transform:translateX(2px)}
}

/* Native cross-document (MPA) view transitions — a subtle cross-fade between
   pages on supporting browsers; a no-op everywhere else. Pure CSS, so no
   ClientRouter and the inline scripts keep running on every full page load. */
@view-transition{navigation:auto}
@media (prefers-reduced-motion: reduce){
  @view-transition{navigation:none}
}

/* small utilities */
.muted{color:var(--muted)}
h3 + .muted{margin-top:0.125rem;margin-bottom:0.5rem}

/* Sections */
.section-header{position:relative;padding-top:1.1rem;margin-bottom:1.5rem}
.section-header::before{content:"";position:absolute;top:0;left:0;width:38px;height:3px;border-radius:2px;background:var(--accent)}
.section-header h2{margin:0 0 0.3rem;font-size:clamp(1.5rem,3vw,2rem);line-height:1.1}
.section-header .muted{margin:0;font-size:1rem}
.section-grid{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1rem}
@media (min-width:800px){
  .section-grid{grid-template-columns:repeat(2,1fr)}
}

/* Magazine cards (image on top) — the whole card is a link to the article page */
.card{background:var(--card);border-radius:16px;border:1px solid var(--card-border);box-shadow:var(--card-shadow);overflow:hidden;transition:border-color 0.18s,box-shadow 0.18s,transform 0.18s}
.card-link{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit}
.card:hover{border-color:var(--accent);box-shadow:0 12px 34px rgba(0,0,0,0.10);transform:translateY(-3px)}
[data-theme="dark"] .card:hover{box-shadow:0 12px 34px rgba(0,0,0,0.5)}
.card-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:16px}

.card-media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--surface)}
.card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.card:hover .card-media img{transform:scale(1.04)}
.card-tag{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:.4rem;white-space:nowrap;
  background:color-mix(in srgb,var(--card) 86%,transparent);backdrop-filter:blur(6px);color:var(--text);
  font-size:.74rem;font-weight:600;padding:.3rem .65rem;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.card-tag svg{width:13px;height:13px;color:var(--accent);flex-shrink:0}

.card-body{padding:1rem 1.15rem 1.1rem;display:flex;flex-direction:column;flex:1}
.card-body h3{margin:0 0 0.25rem;font-size:1.28rem}
.card-meta{margin:0 0 0.55rem;color:var(--muted);font-size:0.82rem}
.card-excerpt{margin:0;color:var(--muted);font-size:0.93rem;line-height:1.5}
.card-foot{display:flex;align-items:center;margin-top:auto;padding-top:0.95rem}
.card-more{display:inline-flex;align-items:center;gap:0.35rem;color:var(--accent);font-weight:600;font-size:0.9rem;font-family:"Source Sans 3",system-ui,sans-serif}
.card-more svg{transition:transform .18s ease}
.card:hover .card-more svg{transform:translateX(3px)}

.review-rating{margin:0 0 0.55rem;font-size:0.86rem;display:flex;align-items:center;gap:0.55rem;flex-wrap:wrap}
.review-stars{color:var(--spark);letter-spacing:0.05em}
.review-verdict{font-style:italic;color:var(--muted)}
.project-stats{margin:0 0 0.6rem;font-size:0.82rem;display:flex;align-items:center;gap:0.5rem;flex-wrap:wrap}
.project-cost,.project-duration{display:inline-flex;align-items:center;gap:0.32em;font-weight:600;color:var(--text);
  background:var(--surface);border:1px solid var(--surface-border);padding:0.2rem 0.6rem;border-radius:999px}
.project-duration svg{vertical-align:-1px;color:var(--accent)}
.project-verdict{font-style:italic;color:var(--muted)}

/* Gallery — scrim caption, counter, hover arrows, pill dots */
.card-gallery{margin:0.9rem 0}
.gallery-frame{position:relative;border-radius:13px;overflow:hidden;background:var(--surface)}
.gallery-slide{display:none;margin:0}
.gallery-slide.active{display:block}
.gallery-slide img{width:100%;display:block;aspect-ratio:3/2;object-fit:cover}
.gallery-frame::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  background:linear-gradient(to top,rgba(12,24,20,0.7),transparent 45%)}
.gallery-slide figcaption{position:absolute;left:14px;right:66px;bottom:13px;z-index:2;color:#fff;font-size:0.85rem;margin:0}
.gallery-count{position:absolute;right:12px;bottom:12px;z-index:2;white-space:nowrap;
  background:rgba(255,255,255,0.92);color:#1a2c22;font-size:0.72rem;font-weight:600;padding:0.2rem 0.5rem;border-radius:999px}
.gallery-prev,.gallery-next{position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:36px;height:36px;border-radius:50%;border:none;background:rgba(255,255,255,0.9);color:#1a2c22;
  font-size:1.1rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;
  opacity:0;transition:opacity .18s,background .15s,color .15s}
.gallery-frame:hover .gallery-prev,.gallery-frame:hover .gallery-next{opacity:1}
.gallery-prev:hover,.gallery-next:hover{background:#fff;color:var(--accent)}
.gallery-prev:focus-visible,.gallery-next:focus-visible{opacity:1;outline:2px solid var(--accent);outline-offset:2px}
.gallery-prev{left:10px}
.gallery-next{right:10px}
.gallery-dots{display:flex;gap:0.4rem;justify-content:center;margin-top:0.7rem;margin-bottom:0}
.gallery-dot{width:8px;height:8px;border-radius:50%;border:none;background:var(--surface-border);padding:0;cursor:pointer;
  transition:background .15s,width .15s}
.gallery-dot[aria-pressed="true"]{background:var(--accent);width:20px;border-radius:4px}

/* Inline figures — hairline ring + accent-tick caption (used everywhere) */
.inline-figure{margin:1rem 0}
.inline-figure img{width:100%;height:auto;display:block;border-radius:13px;
  box-shadow:0 0 0 1px var(--border),0 10px 28px rgba(0,0,0,0.08)}
[data-theme="dark"] .inline-figure img{box-shadow:0 0 0 1px var(--border),0 12px 30px rgba(0,0,0,0.45)}
.inline-figure figcaption{display:flex;align-items:center;gap:0.55rem;margin-top:0.7rem;color:var(--muted);font-size:0.86rem}
.inline-figure figcaption::before{content:"";width:18px;height:2px;border-radius:2px;background:var(--accent);flex-shrink:0}

/* Constrain inline images and the card gallery on larger viewports for readability */
@media (min-width:700px){
  .article-body .inline-figure img,.about-content .inline-figure img{max-width:85%}
  .article-body .card-gallery{max-width:85%}
}
@media (min-width:1000px){
  .article-body .inline-figure img,.about-content .inline-figure img{max-width:70%}
  .article-body .card-gallery{max-width:70%}
}

/* About section */
.about-content{max-width:70ch}
.about-content p{margin:0 0 1rem}
.about-content .inline-figure{margin:1.5rem 0 0}

/* Article page vertical rhythm — defined explicitly so the header doesn't rely
   on the browser's (large, uneven) default heading/paragraph margins. */
.article{padding:1.25rem 0 1rem}
.article h1{margin:0 0 0.4rem;font-size:clamp(1.9rem, 3.5vw, 2.6rem);font-weight:700;line-height:1.1}
.article > .container > .muted{margin:0 0 1.75rem}

/* Article page back navigation — a quiet breadcrumb up top, a prominent button below */
.back-link{display:inline-flex;align-items:center;gap:0.4rem;color:var(--muted);text-decoration:none;font-weight:600;font-size:0.9rem;margin:0 0 1rem;font-family:"Source Sans 3",system-ui,sans-serif}
.back-link:hover{color:var(--accent)}
.back-link svg{transition:transform .18s ease}
.back-link:hover svg{transform:translateX(-3px)}
.article-back{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--border)}
.btn-back svg{transition:transform .18s ease}
.btn-back:hover svg{transform:translateX(-3px)}

/* Article page body */
.article-body .card-gallery{margin:0.9rem 0}

/* Prose defaults for richer body content */
.prose p{margin:0.5rem 0}
.prose a{color:var(--accent);text-decoration:underline}
.prose a:hover{text-decoration:none}
.prose table{width:auto;max-width:100%;border-collapse:separate;border-spacing:0;margin:1rem 0;font-size:0.95rem;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.prose th,.prose td{padding:0.5rem 0.75rem;border-bottom:1px solid var(--border);text-align:left}
.prose tr:last-child td{border-bottom:none}
.prose thead th{background:var(--accent);color:var(--accent-text);font-weight:600}
.prose tfoot th{background:var(--surface);font-weight:600}
.prose tbody tr:nth-child(even){background:var(--surface)}
.prose td:first-child{font-weight:600}

/* Later addition to an article ("Nachtrag/Update") — written as a Markdown
   blockquote so article bodies stay plain Markdown. */
.prose blockquote{background:var(--surface);border-left:3px solid var(--accent);border-radius:0 8px 8px 0;padding:0.6rem 0.9rem;margin:1.1rem 0;font-size:0.95em}
.prose blockquote p{margin:0.35rem 0}
.prose blockquote p:first-child{margin-top:0}
.prose blockquote p:last-child{margin-bottom:0}

/* Highlighted external link / callout box */
.callout{background:var(--surface);border:1px solid var(--surface-border);padding:0.6rem 0.75rem;border-radius:8px;margin:0.75rem 0;width:fit-content;max-width:100%}
.callout a{display:flex;align-items:center;gap:0.5rem;color:var(--text);text-decoration:none}
.callout a:hover{color:var(--accent)}
.callout .muted{margin:0}

/* ── Lightsaber dark mode toggle ──────────────────────────────────── */
.theme-toggle{
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
  display:flex;
  align-items:center;
}
.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:20px}

/* pill track — makes it read as an interactive toggle */
.saber-track{
  display:flex;
  align-items:center;
  padding:0 14px;
  height:34px;
  border-radius:20px;
  border:1.5px solid var(--border);
  background:var(--surface);
  box-shadow:inset 0 1px 3px rgba(0,0,0,0.07);
  transition:border-color 0.15s,box-shadow 0.15s,background 0.3s ease;
}
.theme-toggle:hover .saber-track{
  border-color:var(--accent);
  box-shadow:inset 0 1px 3px rgba(0,0,0,0.07),0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}

.lightsaber{display:flex;align-items:center}

.saber-hilt{
  width:17px;
  height:9px;
  background:linear-gradient(180deg,#c8d0da 0%,#8892a4 38%,#9aa4b2 62%,#525c6c 100%);
  border-radius:2px 0 0 2px;
  border:1px solid #40495a;
  position:relative;
  flex-shrink:0;
  z-index:1;
}
/* grip lines */
.saber-hilt::before{
  content:'';
  position:absolute;
  top:2px;bottom:2px;left:3px;
  width:1px;
  background:rgba(0,0,0,0.2);
  box-shadow:3px 0 0 rgba(0,0,0,0.2),6px 0 0 rgba(0,0,0,0.2),9px 0 0 rgba(0,0,0,0.2);
}
/* emitter collar */
.saber-hilt::after{
  content:'';
  position:absolute;
  right:-3px;top:-2px;bottom:-2px;
  width:4px;
  background:linear-gradient(180deg,#7a8494,#353d4a);
  border:1px solid #2a3040;
  border-radius:0 1px 1px 0;
  z-index:2;
}

.saber-blade{
  height:4px;
  width:40px;
  border-radius:0 2px 2px 0;
  margin-left:2px;
  background:linear-gradient(90deg,#60a5fa 0%,#93c5fd 40%,#bae6fd 70%,#e0f2fe 100%);
  box-shadow:
    0 0 3px 1px rgba(96,165,250,0.95),
    0 0 7px 2px rgba(59,130,246,0.6),
    0 0 16px 5px rgba(37,99,235,0.2);
  transition:background 0.4s ease,box-shadow 0.4s ease;
}
[data-theme="dark"] .saber-blade{
  background:linear-gradient(90deg,#f87171 0%,#fca5a5 40%,#fecaca 70%,#fff1f2 100%);
  box-shadow:
    0 0 3px 1px rgba(248,113,113,0.95),
    0 0 7px 2px rgba(239,68,68,0.6),
    0 0 16px 5px rgba(185,28,28,0.2);
}

/* flicker on toggle */
@keyframes saber-flicker{
  0%  {opacity:1}
  10% {opacity:0.2}
  20% {opacity:1}
  35% {opacity:0.5}
  47% {opacity:1}
  60% {opacity:0.65}
  75% {opacity:1}
  87% {opacity:0.4}
  100%{opacity:1}
}
.saber-blade.flicker{
  animation:saber-flicker 0.5s ease-in-out;
}
