/* ============================================================
   kratzer.it - static multi-page site (no build step).
   Design system: design-20260830-124148 ("Ghost ActivityPub",
   activitypub.ghost.org) - warm editorial / retro-print:
   cream paper #FCF3E1, ink #0C0A09, white flat surfaces,
   rose #F43F5E as the single accent on light, teal #5EEAD4
   only on dark surfaces, warm gold-tinted layered shadows,
   hairlines instead of borders. Serif body (Ivar/Georgia),
   Inter Display headings, JetBrains Mono for meta/footer.
   ============================================================ */

/* ---------- Fonts (local woff2, latin subsets) ---------- */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-800-normal.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
    /* Core palette (design-20260830-124148); bg = warmes Hellgrau
       (User-Entscheid 2026-08-30: Cream #FCF3E1 ersetzt durch #F5F3EF) */
    --color-bg: #F5F3EF;            /* warm light gray paper */
    --color-ink: #0C0A09;           /* stone-950: dark sections, primary button */
    --color-surface: #ffffff;       /* flat white cards */
    --color-text: #0C0A09;
    --color-muted: rgba(0, 0, 0, 0.55);
    --color-muted-dark: hsla(0, 0%, 100%, 0.64);
    --color-accent: #F43F5E;        /* rose-500, emphasis on light only */
    --color-accent-dark: #5EEAD4;   /* teal-300, links on dark only */
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-strong: rgba(0, 0, 0, 0.20);
    --shadow-tint: rgba(184, 171, 122, 0.34); /* warm gold #b8ab7a */

    /* Signature warm multi-layer shadow ("shadow-ok") */
    --shadow-sm:
        0 0.2px 0.2px var(--shadow-tint),
        0 0.9px 1px -0.4px var(--shadow-tint);
    --shadow-md:
        0 0.2px 0.2px var(--shadow-tint),
        0 0.9px 1px -0.4px var(--shadow-tint),
        0 4.4px 5px -1.4px var(--shadow-tint),
        0 10.5px 11.8px -2.1px var(--shadow-tint);
    --shadow-lg:
        0 0.2px 0.2px var(--shadow-tint),
        0 0.9px 1px -0.4px var(--shadow-tint),
        0 4.4px 5px -1.4px var(--shadow-tint),
        0 10.5px 11.8px -2.1px var(--shadow-tint),
        -0.8px 15.5px 17.5px -2.5px var(--shadow-tint);

    --radius: 6px;
    --radius-pill: 100px;
    --container: 1120px;
    --transition: 0.3s ease-in-out;

    --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-serif: 'Ivar Text', Georgia, 'Times New Roman', Times, serif;
    --font-mono: 'JetBrains Mono', Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-serif);
    font-weight: 500;
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Links: underlined ink on light; hover only via opacity (no color swap). */
a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity var(--transition);
}
a:hover { opacity: 0.8; }

/* Headings: Inter Display, bold, negative tracking, tight leading. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
    margin: 0 0 0.6em;
    letter-spacing: -0.014em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 1.875rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); line-height: 1.25; }

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 max(4vmin, 20px);
}

/* ---------- Header & navigation ---------- */
/* Minimal top bar on cream: logo left, text links, hairline underneath. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
}
.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition);
}
.site-brand:hover { opacity: 0.8; text-decoration: none; }
.site-brand__logo {
    display: block;
    height: 34px;
    width: auto;
    user-select: none;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
/* Nav links: sans, no underline by default; hover = rose underline slide-in. */
.site-nav .nav-link {
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}
.site-nav .nav-link:hover { text-decoration: none; }
/* Rose accent underline slides in from the left. */
.site-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.site-nav .nav-link:hover::after { transform: scaleX(1); }
/* Active page marker in the nav. */
.site-nav .nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Active anchor in the hero menu (set by script.js via IntersectionObserver). */
.hero__nav a.is-active {
    background: rgba(255, 255, 255, 0.22);
    border-color: hsla(0, 0%, 100%, 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Main layout ---------- */
.site-main { padding: 0 0 64px; }

.section { margin-top: clamp(48px, 10vmin, 96px); }
.section-title {
    padding-bottom: 14px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--color-border-strong);
}
.section-lead {
    font-size: 1.125rem;
    color: var(--color-muted);
    max-width: 62ch;
    margin: -16px 0 32px;
}

/* ---------- Hero (home) ---------- */
/* The one dark contrast section: stone-950 block, white display type,
   radial black overlay like the source design, one accent word in rose. */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--color-ink);
    color: #fff;
    padding: clamp(56px, 12vmin, 128px) 0;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(0,0,0,0.55) 0%, transparent 60%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(24px, 6vmin, 56px);
    flex-wrap: wrap;
}
.hero__avatar {
    flex: 0 0 auto;
    width: 168px;
    height: 168px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    background: #fff;
}
.hero__text { flex: 1 1 320px; min-width: 260px; }
.hero__title { color: #fff; margin-bottom: 12px; }
.hero__tagline {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-muted-dark);
    margin-bottom: 16px;
}
.hero__intro {
    font-size: 1.125rem;
    color: var(--color-muted-dark);
    margin: 0;
    max-width: 58ch;
}
/* The single accent word in the hero (rose). */
.hero .accent { color: var(--color-accent); }

/* ---------- Hero anchor menu ---------- */
/* Pill navigation inside the hero: smooth-scrolls to page sections. */
.hero__nav {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero__nav a {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid hsla(0, 0%, 100%, 0.15);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity var(--transition), background var(--transition);
}
.hero__nav a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.16);
}

/* ---------- Marquee scroller (skills ticker) ---------- */
/* Endless horizontal ticker below the hero, like the source design's
   platform bar. Duplicated track + CSS translate for a seamless loop;
   pauses on hover; disabled via prefers-reduced-motion. */
.scroller {
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-ink);
    padding: 18px 0;
}
.scroller__track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: scroller-scroll 40s linear infinite;
    will-change: transform;
}
.scroller:hover .scroller__track { animation-play-state: paused; }
.scroller__item {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-muted-dark);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 48px;
}
/* Rose separator dot between items */
.scroller__item::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    flex: 0 0 auto;
}
@keyframes scroller-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .scroller__track { animation: none; }
}

/* ---------- Scroll reveal ---------- */
/* Sections start slightly shifted/faded, ease in when they enter the
   viewport (IntersectionObserver in script.js). No-JS and
   prefers-reduced-motion fall back to fully visible. */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Cards (career / articles / generic) ---------- */
.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.card-grid .card { margin: 0; }

.career-card { margin-bottom: 16px; }
.career-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.career-card__head h3 { margin: 0; }
.career-card__head h3 a { text-decoration-thickness: 1px; }
.career-card__period {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-muted);
    white-space: nowrap;
}
.career-card p { margin: 10px 0 0; }

.article-card { display: block; text-decoration: none; }
.article-card h3 { margin-bottom: 6px; }
.article-card__meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-bottom: 8px;
}
.article-card p { margin: 0; color: var(--color-muted); }

/* ---------- Chip list (skills) ---------- */
.chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.chip-list li {
    background: var(--color-surface);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: opacity var(--transition), box-shadow var(--transition);
}
.chip-list li:hover { opacity: 0.85; box-shadow: var(--shadow-md); }

/* ---------- Check list (certifications) ---------- */
.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.check-list li {
    position: relative;
    padding: 14px 16px 14px 48px;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
/* Rose dot marker. */
.check-list li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
}

/* ---------- Game / project cards (games overview) ---------- */
.game-card { display: flex; flex-direction: column; text-decoration: none; }
.game-card h3 { margin-bottom: 6px; }
.game-card__meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-bottom: 10px;
}
.game-card p { margin: 0; color: var(--color-muted); font-size: 1rem; }

/* ---------- Dark panel (info boxes on light pages) ---------- */
.dark-panel {
    background: var(--color-ink);
    color: var(--color-muted-dark);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow-lg);
}
.dark-panel h2, .dark-panel h3 { color: #fff; }
.dark-panel a { color: var(--color-accent-dark); }
.dark-panel .mono { font-family: var(--font-mono); font-size: 0.75rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--color-ink);
    color: #fff;
    border: none;
    padding: 11px 24px;
    cursor: pointer;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.004em;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: opacity var(--transition);
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn:active { opacity: 0.75; }

/* ---------- Footer ---------- */
/* Dark stone footer, mono meta type, hairline top rule. */
.site-footer {
    background: var(--color-ink);
    color: var(--color-muted-dark);
    padding: 28px 0;
    margin-top: clamp(64px, 16vmin, 160px);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}
.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.site-footer__copy { margin: 0; }
.site-footer__nav { display: flex; gap: 20px; }
.site-footer__nav a {
    color: var(--color-muted-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}
.site-footer__nav a:hover { color: #fff; opacity: 1; }

/* ---------- Generic content pages (impressum, datenschutz, article) ---------- */
.page-header { padding-top: clamp(32px, 8vmin, 72px); }
.page-header h1 { margin-bottom: 4px; }
.page-lead { color: var(--color-muted); font-size: 1.125rem; margin-bottom: 24px; }
.page-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-bottom: 24px;
}
.page-body { font-size: 1.0625rem; max-width: 70ch; }
.page-body h2 { margin-top: 32px; }
.page-body ul { padding-left: 22px; }
.page-body li { margin-bottom: 4px; }

/* ============================================================
   Music player
   Layout: circular cover centered on the canvas equalizer,
   playlist and controls below - white card on cream.
   ============================================================ */
#music-player-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
}

#now-playing {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 24px;
}
#now-playing #current-song { color: var(--color-accent); }

#visualizer-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}
#equalizer-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
#equalizer-container canvas { display: block; }
#current-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    z-index: 2;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    background: var(--color-bg);
}
#current-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#song-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}
.song-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.song-item:hover { background: var(--color-bg); }
.song-item.active { background: rgba(244, 63, 94, 0.08); }
.song-cover {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    flex: 0 0 auto;
}
.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}
.song-info { flex-grow: 1; font-size: 1rem; }
.song-info a { font-weight: 500; }

#player-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
#player-controls button {
    background: var(--color-ink);
    color: #fff;
    border: none;
    padding: 11px 24px;
    cursor: pointer;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: opacity var(--transition);
}
#player-controls button:hover { opacity: 0.85; }
#player-controls button:active { opacity: 0.75; }
#audio-player {
    width: 100%;
    margin-bottom: 4px;
}

/* ============================================================
   AI art gallery
   ============================================================ */
#gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.gallery-item {
    position: relative;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    background: var(--color-surface);
}
.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item .overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(12, 10, 9, 0.72);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-align: center;
    padding: 8px 6px;
}

/* Lightbox (fullscreen view of one gallery item) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(12, 10, 9, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox img, .lightbox video {
    max-width: 100%;
    max-height: calc(100vh - 48px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.lightbox .close-button {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 8px;
}
.lightbox .close-button:hover { opacity: 0.8; }

/* ============================================================
   Game embed pages (fullscreen-capable iframe)
   ============================================================ */
/* Full-bleed game page: body pins the sticky header at top, the game
   fills the remaining viewport height, footer drops out of view. */
body.game-view {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.game-view .site-main {
    flex: 1 1 auto;
    padding: 0;
    display: flex;
}
body.game-view .game-frame-wrap {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    background: var(--color-ink);
    overflow: hidden;
}
body.game-view .game-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Fullscreen toggle: dark pill floating over the top-right corner,
   outside the iframe so it never steals input. 44px touch target. */
.game-fullscreen-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    min-height: 44px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--color-ink);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.004em;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: opacity var(--transition);
}
.game-fullscreen-toggle:hover { opacity: 0.95; }
.game-fullscreen-toggle:active { opacity: 0.9; }
.game-fullscreen-toggle:focus-visible {
    outline: 3px solid var(--color-accent-dark);
    outline-offset: 2px;
}

/* API fullscreen: pin to the full viewport, no scrollbars. */
.game-frame-wrap:fullscreen,
.game-frame-wrap:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

/* CSS fallback (iOS Safari, blocked requests): frame takes the whole
   browser window - header/footer hidden, page locked against scrolling. */
body.is-browserview-full { overflow: hidden; height: 100vh; }
body.is-browserview-full .site-header,
body.is-browserview-full .site-footer { display: none; }
body.is-browserview-full .site-main { height: 100vh; height: 100dvh; }
body.is-browserview-full .game-frame-wrap { height: 100vh; height: 100dvh; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .site-nav.is-open { max-height: 80vh; overflow-y: auto; }
    .site-nav ul {
        flex-direction: column;
        padding: 8px 16px 16px;
        gap: 2px;
    }
    .site-nav .nav-link { display: block; }
}

@media (max-width: 560px) {
    .hero__avatar { width: 120px; height: 120px; }
    #music-player-container { padding: 18px; }
    .gallery-item { width: 140px; height: 140px; }
}
