@font-face {
    font-family: 'DSEG7Classic';
    src: url('/vendor/dseg/DSEG7Classic-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    color-scheme: dark;

    --bg: #111814;
    --text: #c2cebb;
    --heading: #86b86a;
    --link: #86b86a;
    --link-hover: #a8d888;
    --rule: rgba(134, 184, 106, 0.22);
    --overlay-a: rgba(134, 184, 106, 0.04);
    --overlay-b: rgba(134, 184, 106, 0.03);
    --social-border: rgba(134, 184, 106, 0.28);
    --social-hover-bg: rgba(134, 184, 106, 0.10);
    --social-hover-border: rgba(134, 184, 106, 0.55);
    --social-hover-text: #a8d888;
    --toggle-bg: rgba(134, 184, 106, 0.08);
    --toggle-border: rgba(134, 184, 106, 0.25);
    --toggle-color: #86b86a;
    --calendar-bg: #1a2119;
    --sticky-bg: rgba(17, 24, 20, 0.82);
    --rim: rgba(134, 184, 106, 0.42);
    --tick-major: rgba(134, 184, 106, 0.55);
    --tick-minor: rgba(134, 184, 106, 0.22);
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
        --bg: #eff3eb;
        --text: #1c2a18;
        --heading: #4e7c38;
        --link: #4e7c38;
        --link-hover: #345824;
        --rule: rgba(78, 124, 56, 0.22);
        --overlay-a: rgba(78, 124, 56, 0.03);
        --overlay-b: rgba(78, 124, 56, 0.02);
        --social-border: rgba(78, 124, 56, 0.28);
        --social-hover-bg: rgba(78, 124, 56, 0.08);
        --social-hover-border: rgba(78, 124, 56, 0.50);
        --social-hover-text: #345824;
        --toggle-bg: rgba(78, 124, 56, 0.08);
        --toggle-border: rgba(78, 124, 56, 0.25);
        --toggle-color: #4e7c38;
        --calendar-bg: #dce5d4;
        --sticky-bg: rgba(239, 243, 235, 0.88);
        --rim: rgba(78, 124, 56, 0.38);
        --tick-major: rgba(78, 124, 56, 0.48);
        --tick-minor: rgba(78, 124, 56, 0.18);
    }
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111814;
    --text: #c2cebb;
    --heading: #86b86a;
    --link: #86b86a;
    --link-hover: #a8d888;
    --rule: rgba(134, 184, 106, 0.22);
    --overlay-a: rgba(134, 184, 106, 0.04);
    --overlay-b: rgba(134, 184, 106, 0.03);
    --social-border: rgba(134, 184, 106, 0.28);
    --social-hover-bg: rgba(134, 184, 106, 0.10);
    --social-hover-border: rgba(134, 184, 106, 0.55);
    --social-hover-text: #a8d888;
    --toggle-bg: rgba(134, 184, 106, 0.08);
    --toggle-border: rgba(134, 184, 106, 0.25);
    --toggle-color: #86b86a;
    --calendar-bg: #1a2119;
    --sticky-bg: rgba(17, 24, 20, 0.82);
    --rim: rgba(134, 184, 106, 0.42);
    --tick-major: rgba(134, 184, 106, 0.55);
    --tick-minor: rgba(134, 184, 106, 0.22);
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #eff3eb;
    --text: #1c2a18;
    --heading: #4e7c38;
    --link: #4e7c38;
    --link-hover: #345824;
    --rule: rgba(78, 124, 56, 0.22);
    --overlay-a: rgba(78, 124, 56, 0.03);
    --overlay-b: rgba(78, 124, 56, 0.02);
    --social-border: rgba(78, 124, 56, 0.28);
    --social-hover-bg: rgba(78, 124, 56, 0.08);
    --social-hover-border: rgba(78, 124, 56, 0.50);
    --social-hover-text: #345824;
    --toggle-bg: rgba(78, 124, 56, 0.08);
    --toggle-border: rgba(78, 124, 56, 0.25);
    --toggle-color: #4e7c38;
    --calendar-bg: #dce5d4;
    --sticky-bg: rgba(239, 243, 235, 0.88);
    --rim: rgba(78, 124, 56, 0.38);
    --tick-major: rgba(78, 124, 56, 0.48);
    --tick-minor: rgba(78, 124, 56, 0.18);
}

/* Colour transitions — enabled after first paint to prevent flash */
html.theme-ready body,
html.theme-ready .rule,
html.theme-ready .social a,
html.theme-ready .theme-toggle,
html.theme-ready .copyright,
html.theme-ready .sticky-header {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html {
    font-size: 18px;
}

a {
    color: var(--link);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Lora', Georgia, serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem 0;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, var(--overlay-a) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, var(--overlay-b) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 660px;
    flex: 1;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.sticky-spacer {
    height: 0;
}

/* pointer-events:none prevents the header background from swallowing trackpad gestures */
.sticky-header:not(.is-scrolled) {
    pointer-events: none;
}

.sticky-header:not(.is-scrolled) a,
.sticky-header:not(.is-scrolled) button,
.sticky-header:not(.is-scrolled) nav {
    pointer-events: auto;
}

.sticky-header-content {
    padding: 1.75rem 1.5rem 0;
    text-align: center;
    position: relative;
    max-width: calc(660px + 3rem);
    margin: 0 auto;
}

.sticky-header.is-scrolled {
    background: var(--sticky-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 1px 0 var(--rule), 0 8px 32px rgba(0, 0, 0, 0.18);
}

.sticky-header.is-scrolled .sticky-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.5rem;
    text-align: left;
}

.sticky-header.is-scrolled header {
    margin-bottom: 0;
    flex-shrink: 0;
}

.sticky-header.is-scrolled .rule {
    display: none;
}

.sticky-header.is-scrolled .site-name {
    font-size: 1.25rem;
    letter-spacing: 0.03em;
}

.sticky-header.is-scrolled .nav-scroll-wrap {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.sticky-header.is-scrolled .dial-track {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.sticky-header.is-scrolled .dial-track::before {
    display: none;
}

.sticky-header.is-scrolled .dial-track::after {
    display: none;
}

.sticky-header.is-scrolled .site-nav {
    justify-content: flex-end;
    margin-bottom: 0;
    overflow: hidden;
    gap: 1rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


.sticky-header.is-scrolled .nav-arrow {
    display: none;
}

.sticky-header.is-scrolled .avatar-wrap {
    margin-bottom: 0;
    padding-top: 0;
    flex-shrink: 0;
}

.sticky-header.is-scrolled .avatar-frame {
    width: 34px;
    height: 34px;
    box-shadow:
        0 0 0 2px var(--heading),
        0 4px 14px rgba(0, 0, 0, 0.4);
    animation: none;
}

.sticky-header.is-scrolled .theme-toggle {
    position: static;
    flex-shrink: 0;
    top: auto;
    right: auto;
    transform: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid var(--rim);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.45),
        inset 0 -1px 2px rgba(255, 255, 255, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-toggle:hover {
    border-color: var(--social-hover-border);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.45),
        0 0 10px var(--rim);
}

.nav-toggle.is-open {
    border-color: var(--social-hover-border);
    box-shadow:
        inset 0 1px 4px rgba(0, 0, 0, 0.4),
        0 0 14px var(--social-hover-border),
        0 0 28px var(--rim);
}

.burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--heading);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover .burger-line,
.nav-toggle.is-open .burger-line {
    box-shadow: 0 0 4px var(--social-hover-text);
}

.nav-toggle.is-open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .burger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
    .sticky-header.is-scrolled .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .sticky-header.is-scrolled .nav-scroll-wrap {
        display: none;
    }

    .sticky-header.is-scrolled .nav-scroll-wrap.nav-popup-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--sticky-bg);
        backdrop-filter: blur(20px) saturate(160%);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        border-bottom: 1px solid var(--rule);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    }

    .sticky-header.is-scrolled .nav-scroll-wrap.nav-popup-open .site-nav {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 1rem;
        margin-bottom: 0;
        justify-content: flex-start;
        overflow: visible;
    }

    .sticky-header.is-scrolled .nav-scroll-wrap.nav-popup-open .site-nav a {
        padding: 0.65rem 1.5rem;
        opacity: 1;
        font-size: 1rem;
        letter-spacing: 0.12em;
    }
}

/* Dynamic overflow detection — same burger behaviour at any viewport width */
.sticky-header.is-scrolled.nav-overflows header {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 0.5rem;
    flex-shrink: 1;
}

.sticky-header.is-scrolled.nav-overflows .site-name {
    flex-shrink: 0;
}

.sticky-header.is-scrolled.nav-overflows .now-playing-bar {
    --bar-height: calc(0.5rem * 1.4 + 2 * 0.22rem);
    display: block;
    flex: 1;
    min-width: 0;
    padding: 0.22rem 0.4rem;
    margin: 0;
    font-size: 0.5rem;
    border-radius: 5px;
}

.sticky-header.is-scrolled.nav-overflows .now-playing-bar .marquee-inner {
    animation-duration: 15s;
}

.sticky-header.is-scrolled.nav-overflows .nav-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: 0;
}

.sticky-header.is-scrolled.nav-overflows .nav-scroll-wrap {
    display: none;
}

.sticky-header.is-scrolled.nav-overflows .nav-scroll-wrap.nav-popup-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sticky-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.sticky-header.is-scrolled.nav-overflows .nav-scroll-wrap.nav-popup-open .site-nav {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    margin-bottom: 0;
    justify-content: flex-start;
    overflow: visible;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sticky-header.is-scrolled.nav-overflows .nav-scroll-wrap.nav-popup-open .site-nav a {
    padding: 0.65rem 1.5rem;
    opacity: 1;
    font-size: 1rem;
    letter-spacing: 0.12em;
}

.avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    padding-top: 0.25rem;
}

.avatar-frame {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        0 0 0 3px var(--bg),
        0 0 0 5px var(--heading),
        0 0 0 9px rgba(134, 184, 106, 0.18),
        0 14px 44px rgba(0, 0, 0, 0.55),
        0 4px 12px rgba(0, 0, 0, 0.3);
    animation: avatar-float 5s ease-in-out infinite;
    transition: width 0.35s ease, height 0.35s ease,
        box-shadow 0.35s ease, animation 0.35s;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes avatar-float {

    0%,
    100% {
        transform: translateY(0);
        box-shadow:
            0 0 0 3px var(--bg),
            0 0 0 5px var(--heading),
            0 0 0 9px rgba(134, 184, 106, 0.18),
            0 14px 44px rgba(0, 0, 0, 0.55),
            0 4px 12px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: translateY(-9px);
        box-shadow:
            0 0 0 3px var(--bg),
            0 0 0 5px var(--heading),
            0 0 0 9px rgba(134, 184, 106, 0.18),
            0 28px 56px rgba(0, 0, 0, 0.4),
            0 8px 18px rgba(0, 0, 0, 0.22);
    }
}

header {
    margin-bottom: 2rem;
}

.site-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(3rem, 10vw, 5.5rem);
    color: var(--heading);
    letter-spacing: 0.04em;
    line-height: 1;
    transition: font-size 0.35s ease;
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rule {
    margin-top: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, var(--heading), transparent);
    opacity: 0.35;
    animation: fadeUp 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bio-teaser {
    margin-bottom: 0.5rem;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    animation: fadeUp 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bio-teaser p,
.bio-modal-content p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.bio-teaser p:last-of-type,
.bio-modal-content p:last-of-type {
    margin-bottom: 0;
}


.read-more-btn {
    margin-top: 1rem;
    animation: fadeUp 0.9s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.social {
    width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    border-top: 0 solid var(--rule);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    animation: fadeUp 0.9s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 52px;
    padding: 0 1.5rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--heading);
    text-decoration: none;
    border: 1px solid var(--rim);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.1);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.35),
        inset 0 -1px 3px rgba(255, 255, 255, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.social a i {
    font-size: 1.05rem;
    width: 1.4em;
    text-align: center;
    flex-shrink: 0;
    transition: text-shadow 0.2s ease;
}

.social a svg {
    width: 1.05rem;
    height: 0.945rem;
    flex-shrink: 0;
    display: block;
    transition: filter 0.2s ease;
}

.social a:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--social-hover-border);
    color: var(--social-hover-text);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.25),
        0 0 14px var(--rim),
        0 0 30px rgba(134, 184, 106, 0.1);
}

.social a:hover i {
    text-shadow:
        0 0 6px var(--social-hover-text),
        0 0 14px var(--rim);
}

.social a:hover svg {
    filter: drop-shadow(0 0 4px var(--social-hover-text));
}

.bio-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bio-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.bio-modal-inner {
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 2.5rem 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.bio-modal.open .bio-modal-inner {
    transform: translateY(0);
}

.bio-modal-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.75rem;
    margin-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(134, 184, 106, 0.45) transparent;
}

.bio-modal-content::-webkit-scrollbar {
    width: 5px;
}

.bio-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.bio-modal-content::-webkit-scrollbar-thumb {
    background: rgba(134, 184, 106, 0.45);
    border-radius: 3px;
}

.bio-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(134, 184, 106, 0.7);
}

@media (prefers-color-scheme: light) {
    .bio-modal-content {
        scrollbar-color: rgba(78, 124, 56, 0.55) rgba(78, 124, 56, 0.08);
    }

    .bio-modal-content::-webkit-scrollbar-track {
        background: rgba(78, 124, 56, 0.08);
        border-radius: 3px;
    }

    .bio-modal-content::-webkit-scrollbar-thumb {
        background: rgba(78, 124, 56, 0.55);
    }

    .bio-modal-content::-webkit-scrollbar-thumb:hover {
        background: rgba(78, 124, 56, 0.8);
    }
}

[data-theme="light"] .bio-modal-content {
    scrollbar-color: rgba(78, 124, 56, 0.55) rgba(78, 124, 56, 0.08);
}

[data-theme="light"] .bio-modal-content::-webkit-scrollbar-track {
    background: rgba(78, 124, 56, 0.08);
    border-radius: 3px;
}

[data-theme="light"] .bio-modal-content::-webkit-scrollbar-thumb {
    background: rgba(78, 124, 56, 0.55);
}

[data-theme="light"] .bio-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 124, 56, 0.8);
}

[data-theme="dark"] .bio-modal-content {
    scrollbar-color: rgba(134, 184, 106, 0.45) transparent;
}

[data-theme="dark"] .bio-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

[data-theme="dark"] .bio-modal-content::-webkit-scrollbar-thumb {
    background: rgba(134, 184, 106, 0.45);
}

[data-theme="dark"] .bio-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(134, 184, 106, 0.7);
}

.bio-modal-content ul {
    margin: 0.5rem 0 1.5rem 1.25rem;
    padding: 0;
    list-style: disc;
}

.bio-modal-content li {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.read-more-btn,
.bio-modal-close {
    display: block;
    background: none;
    border: none;
    padding: 0;
    color: var(--heading);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.read-more-btn:hover,
.bio-modal-close:hover {
    opacity: 1;
}

.bio-modal-close {
    flex-shrink: 0;
    margin: 1.5rem auto 0;
}

.copyright {
    width: 100%;
    max-width: 660px;
    padding: 0 0 2.5rem;
    text-align: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--heading);
    opacity: 0.75;
    line-height: 1.5;
}

.copyright .rule {
    margin-top: 0;
    margin-bottom: 1.5rem;
    animation: none;
}

.copyright-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer-logo {
    height: 2.25rem;
    width: auto;
    flex-shrink: 0;
    opacity: 0.75;
}

.theme-toggle {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border: 1px solid var(--rim);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    color: var(--toggle-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.45),
        inset 0 -1px 2px rgba(255, 255, 255, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.04);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, top 0.35s, right 0.35s;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.12);
    border-color: var(--social-hover-border);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.45),
        0 0 10px var(--rim);
}

.theme-toggle svg {
    width: auto;
    height: 15px;
    display: block;
    flex-shrink: 0;
}

.icon-auto-path {
    display: none;
}

.icon-sun-path {
    display: none;
}

.icon-moon-path {
    display: none;
}

[data-icon="sun"] .icon-sun-path {
    display: block;
}

[data-icon="moon"] .icon-moon-path {
    display: block;
}

.icon-badge {
    display: none;
}

[data-auto] .icon-badge {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    header,
    .bio-teaser,
    .read-more-btn,
    .social {
        animation: none;
    }

    html.theme-ready body,
    html.theme-ready .rule,
    html.theme-ready .social a,
    html.theme-ready .theme-toggle,
    html.theme-ready .copyright {
        transition: none !important;
    }

    .bio-modal,
    .bio-modal-inner {
        transition: none !important;
    }
}

.nav-scroll-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-bottom: 1.8rem;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    background: none;
    border: 1px solid var(--rule);
    border-radius: 50%;
    color: var(--heading);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s;
}

.nav-arrow:hover {
    opacity: 1;
    border-color: var(--heading);
}

.nav-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── Dial track: side-view of a spinning frequency drum ── */
.dial-track {
    display: flex;
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 0.55rem 0;
    background-color: rgba(0, 0, 0, 0.07);
    background-image:
        repeating-linear-gradient(90deg, var(--tick-major) 0px, var(--tick-major) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, var(--tick-minor) 0px, var(--tick-minor) 1px, transparent 1px, transparent 8px),
        repeating-linear-gradient(90deg, var(--tick-major) 0px, var(--tick-major) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, var(--tick-minor) 0px, var(--tick-minor) 1px, transparent 1px, transparent 8px);
    background-size:  40px 7px, 8px 3px, 40px 7px, 8px 3px;
    background-position: 0 0, 0 0, 0 100%, 0 100%;
    background-repeat: repeat-x, repeat-x, repeat-x, repeat-x;
    border-top: 1px solid var(--rim);
    border-bottom: 1px solid var(--rim);
    border-radius: 2px;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.22),
        inset 0 -2px 6px rgba(0, 0, 0, 0.12),
        inset 10px 0 28px rgba(0, 0, 0, 0.16),
        inset -10px 0 28px rgba(0, 0, 0, 0.16);
}

.dial-track::after {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 8;
    background:
        linear-gradient(to right, var(--bg) 0%, transparent 22%),
        linear-gradient(to left,  var(--bg) 0%, transparent 22%);
}

/* Red tuner needle — tracks the selected item via --needle-x */
.dial-track::before {
    content: '';
    position: absolute;
    left: var(--needle-x, 50%);
    top: 0;
    bottom: 0;
    width: 1.5px;
    transform: translateX(-50%);
    background: #d42b1e;
    box-shadow:
        0 0 4px rgba(212, 43, 30, 0.95),
        0 0 12px rgba(212, 43, 30, 0.55),
        0 0 24px rgba(212, 43, 30, 0.25);
    pointer-events: none;
    z-index: 10;
}

.site-nav {
    display: flex;
    flex: 1;
    gap: 1.5rem;
    justify-content: flex-start;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    animation: fadeUp 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
}

.site-nav::-webkit-scrollbar {
    display: none;
}


.site-nav a {
    color: var(--heading);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s, color 0.2s, text-shadow 0.2s;
    white-space: nowrap;
    scroll-snap-align: center;
}

.site-nav a:hover {
    opacity: 1;
}

/* Selected item glows under the needle */
.site-nav a[aria-current="page"] {
    opacity: 1;
    color: var(--social-hover-text);
    text-shadow:
        0 0 6px var(--social-hover-text),
        0 0 16px var(--rim);
}

.page-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    color: var(--heading);
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.page-intro {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text);
    opacity: 0.75;
    margin-bottom: 2rem;
}

/* ─── Spinning CD (tracks page) ─────────────────────────────── */
.cd-scene {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    margin: 1.5rem auto 2.5rem;
}

@keyframes cd-spin {
    to { transform: rotate(360deg); }
}

.cd-disc {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    /* Faint polycarbonate base — visible only in hub + outer rim clear zones */
    background: rgba(200, 218, 232, 0.1);
    /* Cut out the center hole — transparent all the way through */
    -webkit-mask: radial-gradient(circle farthest-side at center,
        transparent 0%, transparent 7%, black 8.5%, black 100%);
    mask: radial-gradient(circle farthest-side at center,
        transparent 0%, transparent 7%, black 8.5%, black 100%);
    /* Shadow on the disc itself so it respects the hole cutout */
    filter:
        drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5))
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.22));
    animation: cd-spin 4.5s linear infinite;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .cd-disc { animation: none; }
}

/* Album artwork — fills most of the disc face */
.cd-label {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    /* Leave hub ring and outer rim as clear plastic */
    -webkit-mask: radial-gradient(circle farthest-side at center,
        transparent 0%, transparent 19%, black 21.5%, black 94%, transparent 96.5%);
    mask: radial-gradient(circle farthest-side at center,
        transparent 0%, transparent 19%, black 21.5%, black 94%, transparent 96.5%);
    z-index: 1;
}

/* Clear plastic hub ring — subtle polycarbonate sheen */
.cd-disc::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle farthest-side at center,
        transparent 8.5%,
        rgba(210, 228, 245, 0.22) 10%,
        rgba(220, 235, 250, 0.14) 16%,
        rgba(200, 220, 240, 0.08) 21%,
        transparent 22%
    );
    z-index: 2;
    pointer-events: none;
}

/* Clear outer rim — thin polycarbonate edge */
.cd-disc::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle farthest-side at center,
        transparent 93.5%,
        rgba(205, 222, 238, 0.18) 95%,
        rgba(230, 242, 252, 0.40) 97.5%,
        rgba(248, 252, 255, 0.25) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Static glare — sits outside the spinning disc so it stays fixed */
.cd-glare {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        ellipse 52% 42% at 37% 26%,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.18) 28%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 10;
}

.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: var(--text);
    opacity: 0.55;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.dots {
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

#tracks-list {
    display: none;
}

#tracks-list.loaded {
    display: block;
    margin: 2.5rem auto;
}

.track-entry {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--social-border);
    border-radius: 10px;
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.track-entry:hover {
    background: var(--social-hover-bg);
    border-color: var(--social-hover-border);
}

.track-entry > a {
    display: flex;
    align-self: center;
    flex-shrink: 0;
    line-height: 0;
}

.track-artwork {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

.track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.track-title-genre {
    display: block;
    margin-bottom: 0.2rem;
}

.track-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--heading);
    text-decoration: none;
    vertical-align: middle;
}

.track-title:hover {
    color: var(--link-hover);
}

.track-explicit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 0.4rem;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 0.1rem 0.2rem;
    border-radius: 0.15rem;
    color: var(--bg);
    background: var(--heading);
    line-height: 1;
}

.track-genre {
    display: inline-block;
    font-size: 0.65rem;
    vertical-align: middle;
    color: var(--text);
    border: 1px solid var(--rule);
    border-radius: 0.25rem;
    padding: 0 0.25rem;
    margin-left: 0.4rem;
    opacity: 0.7;
}

.track-artist {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    margin: 0.15rem 0 0.25rem;
}

.track-artist:hover {
    color: var(--link-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.track-album-year {
    display: block;
    font-size: 0.75rem;
    color: var(--text);
    opacity: 0.55;
}

.apple-music-embed {
    margin: 2.5rem auto;
}

#checkins-list {
    display: none;
}

#checkins-list.loaded {
    display: block;
    margin: 2.5rem auto;
}

.checkin-entry {
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--social-border);
    border-radius: 10px;
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.checkin-entry:hover {
    background: var(--social-hover-bg);
    border-color: var(--social-hover-border);
}

.checkin-placename {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--heading);
    margin-bottom: 0.25rem;
}

.checkin-placename a {
    color: var(--heading);
    text-decoration: none;
}

.checkin-placename a:hover {
    color: var(--link-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkin-address {
    font-size: 0.82rem;
    color: var(--text);
    opacity: 0.75;
    margin-bottom: 0.2rem;
}

.checkin-timestamp {
    font-size: 0.75rem;
    color: var(--text);
    opacity: 0.5;
}

.live-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    margin: 0 auto 2rem;
}

.announcement-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.announcement-icon {
    font-size: 3.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.announcement-content {
    flex: 1;
    min-width: 0;
}

.announcement-content p {
    opacity: 0.75;
    line-height: 1.7;
}

.announcement-footer {
    font-size: 0.75rem;
    color: var(--text);
    opacity: 0.45;
    margin-top: 0.75rem;
}

.live-card {
    border: 1px solid var(--social-border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    background: transparent;
}

.live-card-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--heading);
    opacity: 0.75;
    text-transform: lowercase;
    margin-bottom: 0.75rem;
}

.live-card-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
}

.live-icons-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}

.live-flag img {
    border-radius: 0.35rem;
    vertical-align: middle;
    min-width: 80px !important;
    max-width: 80px !important;
    width: 80px !important;
}

.live-weather-icon img {
    width: 80px;
    height: 80px;
    vertical-align: middle;
}

.live-temp-large {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--heading);
    white-space: nowrap;
}

.live-location-prose {
    line-height: 1.7;
    opacity: 0.75;
}


.live-time-body {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.live-clock-widgets {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.live-date {
    margin-bottom: 0.2rem;
}

.live-time-text {
    opacity: 0.75;
}

.live-time {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    white-space: nowrap;
}

.live-time #period {
    font-family: 'Lora', Georgia, serif;
    font-weight: normal;
}

.live-rings-body {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.live-rings-visuals {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.rings-status {
    opacity: 0.75;
}

.rings-stats {
    list-style: none;
    font-size: 0.82rem;
    line-height: 1.9;
    opacity: 0.75;
    padding-left: 1.5rem;
}

.ring-move-dot {
    color: #ff1e3a;
}

.ring-exercise-dot {
    color: #48d800;
}

.ring-stand-dot {
    color: #1fe9ff;
}

.ring-neutral-dot {
    color: var(--text);
}

.live-battery-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.live-battery-text {
    line-height: 1.7;
    opacity: 0.75;
}

#svg-clock.is-day .day-icon {
    display: block;
}

#svg-clock.is-night .night-icon {
    display: block;
}

.dot-days-wrap {
    width: 100%;
    margin: 0 auto 2rem;
    opacity: 0.85;
}

#go-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.25rem;
    z-index: 100;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#go-to-top:hover {
    opacity: 1;
}

.go-to-top-icon {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    animation: topicon-wiggle 4s infinite linear;
}

@keyframes topicon-wiggle {

    0%,
    50%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

.avatar-link {
    display: block;
    line-height: 0;
}

.site-name-link {
    color: inherit;
    text-decoration: none;
}

.site-name-link:hover {
    opacity: 0.85;
}

.linkbook-list {
    margin: 2.5rem auto;
}

.link-entry {
    border: 1px solid var(--social-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.link-entry:hover {
    transform: scale(1.02);
    border-color: var(--social-hover-border);
}

.link-hyper-text-category {
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.link-hyper-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--link);
    text-decoration: none;
    text-underline-offset: 3px;
    vertical-align: middle;
}

.link-hyper-text:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.link-category {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--text);
    border: 1px solid var(--social-border);
    border-radius: 0.25rem;
    padding: 0.05rem 0.35rem;
    margin-left: 0.4rem;
    vertical-align: middle;
    opacity: 0.65;
}

.link-sidenote {
    font-size: 0.82rem;
    color: var(--text);
    opacity: 0.8;
    margin: 0.35rem 0;
    line-height: 1.5;
}

.link-timestamp {
    font-size: 0.72rem;
    color: var(--text);
    opacity: 0.45;
    margin-top: 0.3rem;
}

.contact-form-wrap {
    margin-bottom: 3rem;
}

.form-meta {
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.65;
    margin-bottom: 1.25rem;
}

.form-meta a {
    opacity: 1;
}

#contact-form p {
    margin: 0.65rem auto;
}

#contact-form input:not([type="submit"]):not([type="checkbox"]):not([type="hidden"]),
#contact-form textarea {
    display: block;
    width: 100%;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: color-mix(in srgb, var(--heading) 5%, var(--bg));
    color: var(--text);
    font-family: 'Lora', Georgia, serif;
    font-size: 0.88rem;
    padding: 0.6rem 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

#contact-form input:not([type="submit"]):not([type="checkbox"]):not([type="hidden"]):focus,
#contact-form textarea:focus {
    border-color: var(--heading);
}

#contact-form textarea {
    resize: vertical;
    min-height: 8rem;
    margin-bottom: 0.65rem;
}

#contact-form input[type="submit"] {
    display: block;
    background: var(--heading);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    padding: 0.6rem 2.5rem;
    cursor: pointer;
    transition: filter 0.25s;
}

#contact-form input[type="submit"]:hover {
    filter: brightness(1.15);
}

#contact-form input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-status {
    font-size: 0.85rem;
    color: var(--heading);
    min-height: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-status-error {
    color: #e05252 !important;
}

.contact-status-success {
    color: var(--heading) !important;
}

.checkboxes {
    margin-bottom: 1.25rem;
}

.checkboxes label {
    display: block;
    padding-left: 1.75rem;
    text-indent: -1.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.8;
}

.checkboxes input[type="checkbox"] {
    vertical-align: middle;
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    accent-color: var(--heading);
}

.file-upload {
    margin: 0.65rem 0;
}

.drop-zone {
    border: 1px dashed var(--rule);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    background: color-mix(in srgb, var(--heading) 3%, var(--bg));
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 0.65rem;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--heading);
    background: color-mix(in srgb, var(--heading) 8%, var(--bg));
}

.drop-zone-text {
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.7;
    line-height: 1.9;
}

.file-list {
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed var(--rule);
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    flex: 1;
    word-break: break-all;
    opacity: 0.85;
}

.remove-file-btn {
    border: none;
    background: none;
    color: var(--link-hover);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 6px;
    transition: color 0.2s;
}

.remove-file-btn:hover {
    color: var(--heading);
}

.file-count {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    opacity: 0.6;
}

.not-found {
    text-align: center;
    padding: 2rem 0 4rem;
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.not-found-code {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(7rem, 28vw, 11rem);
    font-weight: 300;
    color: var(--heading);
    line-height: 1;
    letter-spacing: 0.04em;
    opacity: 0.18;
    margin-bottom: 1.5rem;
    user-select: none;
}

.not-found-rule {
    max-width: 180px;
    margin: 0 auto 1.75rem;
    animation: none;
}

.not-found-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.4rem, 5vw, 2rem);
    color: var(--heading);
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

.not-found-body {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text);
    opacity: 0.7;
    max-width: 400px;
    margin: 0 auto 2.5rem;
}

.not-found-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.18em;
}

.not-found-nav a {
    color: var(--heading);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.not-found-nav a:hover {
    opacity: 1;
}

/* ─── Now Playing LED marquee ────────────────────────────────── */
@keyframes oc-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── Dark theme: LED panel recessed into device body ── */
.now-playing-bar {
    --bar-height: calc(0.56rem * 1.4 + 2 * 0.3rem);
    display: block;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-family: 'Silkscreen', 'Courier New', Courier, monospace;
    font-size: 0.56rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: #b8efbc;
    text-shadow:
        0 0 3px rgba(184, 239, 188, 0.9),
        0 0 8px rgba(170, 220, 175, 0.5),
        0 0 20px rgba(140, 210, 145, 0.2);
    background-color: #061006;
    background-image:
        repeating-linear-gradient(
            to bottom,
            transparent 0px, transparent 2px,
            rgba(0, 0, 0, 0.22) 2px, rgba(0, 0, 0, 0.22) 4px
        ),
        radial-gradient(circle at center, rgba(140, 210, 140, 0.1) 1px, transparent 1px);
    background-size: auto, 3px 3px;
    border-radius: 6px;
    border-top: 2px solid rgba(0, 0, 0, 0.78);
    border-left: 2px solid rgba(0, 0, 0, 0.58);
    border-right: 1px solid rgba(90, 150, 90, 0.22);
    border-bottom: 1px solid rgba(90, 150, 90, 0.15);
    box-shadow:
        0 1px 0 rgba(160, 220, 160, 0.07),
        0 4px 12px rgba(0, 0, 0, 0.55),
        inset 0 3px 14px rgba(0, 0, 0, 0.95),
        inset 2px 0 6px rgba(0, 0, 0, 0.45),
        inset -1px 0 3px rgba(0, 0, 0, 0.2);
    padding: 0.3rem 0.6rem;
    margin: 1.2rem 0 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Screen glare: faint top highlight simulating glass over the panel */
.now-playing-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(180, 255, 185, 0.05) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.now-playing-bar:hover,
.now-playing-bar:focus-visible {
    border-top-color: rgba(0, 0, 0, 0.68);
    border-left-color: rgba(0, 0, 0, 0.48);
    border-right-color: rgba(110, 175, 110, 0.35);
    border-bottom-color: rgba(110, 175, 110, 0.28);
    box-shadow:
        0 1px 0 rgba(160, 220, 160, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.55),
        inset 0 3px 14px rgba(0, 0, 0, 0.95),
        inset 2px 0 6px rgba(0, 0, 0, 0.45),
        inset -1px 0 3px rgba(0, 0, 0, 0.2),
        0 0 16px rgba(130, 200, 130, 0.2);
    outline: none;
}

/* ── Light theme: vintage reflective LCD (darker sage screen, plastic body) ── */
@media (prefers-color-scheme: light) {
    .now-playing-bar {
        color: #1a2e14;
        text-shadow: none;
        background-color: #b4c4a8;
        background-image:
            repeating-linear-gradient(
                to bottom,
                transparent 0px, transparent 2px,
                rgba(0, 0, 0, 0.07) 2px, rgba(0, 0, 0, 0.07) 4px
            ),
            radial-gradient(circle at center, rgba(60, 100, 40, 0.09) 1px, transparent 1px);
        background-size: auto, 3px 3px;
        border-top: 2px solid rgba(0, 0, 0, 0.42);
        border-left: 2px solid rgba(0, 0, 0, 0.28);
        border-right: 1px solid rgba(130, 155, 110, 0.45);
        border-bottom: 1px solid rgba(150, 180, 125, 0.5);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.7),
            0 3px 8px rgba(0, 0, 0, 0.22),
            inset 0 2px 9px rgba(0, 0, 0, 0.24),
            inset 1px 0 5px rgba(0, 0, 0, 0.13);
    }

    .now-playing-bar::after {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.14) 0%, transparent 100%);
    }

    .now-playing-bar:hover,
    .now-playing-bar:focus-visible {
        border-top-color: rgba(0, 0, 0, 0.35);
        border-left-color: rgba(0, 0, 0, 0.22);
        border-right-color: rgba(100, 140, 80, 0.55);
        border-bottom-color: rgba(120, 158, 90, 0.6);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.75),
            0 3px 9px rgba(0, 0, 0, 0.22),
            inset 0 2px 9px rgba(0, 0, 0, 0.24),
            inset 1px 0 5px rgba(0, 0, 0, 0.13);
    }
}

[data-theme="light"] .now-playing-bar {
    color: #1a2e14;
    text-shadow: none;
    background-color: #b4c4a8;
    background-image:
        repeating-linear-gradient(
            to bottom,
            transparent 0px, transparent 2px,
            rgba(0, 0, 0, 0.07) 2px, rgba(0, 0, 0, 0.07) 4px
        ),
        radial-gradient(circle at center, rgba(60, 100, 40, 0.09) 1px, transparent 1px);
    background-size: auto, 3px 3px;
    border-top: 2px solid rgba(0, 0, 0, 0.42);
    border-left: 2px solid rgba(0, 0, 0, 0.28);
    border-right: 1px solid rgba(130, 155, 110, 0.45);
    border-bottom: 1px solid rgba(150, 180, 125, 0.5);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 3px 8px rgba(0, 0, 0, 0.22),
        inset 0 2px 9px rgba(0, 0, 0, 0.24),
        inset 1px 0 5px rgba(0, 0, 0, 0.13);
}

[data-theme="light"] .now-playing-bar::after {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.14) 0%, transparent 100%);
}

[data-theme="light"] .now-playing-bar:hover,
[data-theme="light"] .now-playing-bar:focus-visible {
    border-top-color: rgba(0, 0, 0, 0.35);
    border-left-color: rgba(0, 0, 0, 0.22);
    border-right-color: rgba(100, 140, 80, 0.55);
    border-bottom-color: rgba(120, 158, 90, 0.6);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75),
        0 3px 9px rgba(0, 0, 0, 0.22),
        inset 0 2px 9px rgba(0, 0, 0, 0.24),
        inset 1px 0 5px rgba(0, 0, 0, 0.13);
}

[data-theme="dark"] .now-playing-bar {
    color: #b8efbc;
    text-shadow:
        0 0 3px rgba(184, 239, 188, 0.9),
        0 0 8px rgba(170, 220, 175, 0.5),
        0 0 20px rgba(140, 210, 145, 0.2);
    background-color: #061006;
    background-image:
        repeating-linear-gradient(
            to bottom,
            transparent 0px, transparent 2px,
            rgba(0, 0, 0, 0.22) 2px, rgba(0, 0, 0, 0.22) 4px
        ),
        radial-gradient(circle at center, rgba(140, 210, 140, 0.1) 1px, transparent 1px);
    background-size: auto, 3px 3px;
    border-top: 2px solid rgba(0, 0, 0, 0.78);
    border-left: 2px solid rgba(0, 0, 0, 0.58);
    border-right: 1px solid rgba(90, 150, 90, 0.22);
    border-bottom: 1px solid rgba(90, 150, 90, 0.15);
    box-shadow:
        0 1px 0 rgba(160, 220, 160, 0.07),
        0 4px 12px rgba(0, 0, 0, 0.55),
        inset 0 3px 14px rgba(0, 0, 0, 0.95),
        inset 2px 0 6px rgba(0, 0, 0, 0.45),
        inset -1px 0 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .now-playing-bar::after {
    background: linear-gradient(to bottom, rgba(180, 255, 185, 0.05) 0%, transparent 100%);
}

[data-theme="dark"] .now-playing-bar:hover,
[data-theme="dark"] .now-playing-bar:focus-visible {
    border-top-color: rgba(0, 0, 0, 0.68);
    border-left-color: rgba(0, 0, 0, 0.48);
    border-right-color: rgba(110, 175, 110, 0.35);
    border-bottom-color: rgba(110, 175, 110, 0.28);
    box-shadow:
        0 1px 0 rgba(160, 220, 160, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.55),
        inset 0 3px 14px rgba(0, 0, 0, 0.95),
        inset 2px 0 6px rgba(0, 0, 0, 0.45),
        inset -1px 0 3px rgba(0, 0, 0, 0.2),
        0 0 16px rgba(130, 200, 130, 0.2);
}

.now-playing-bar .marquee-inner {
    display: inline-block;
    white-space: nowrap;
    animation: oc-marquee 21s linear infinite paused;
}

.now-playing-bar .marquee-unit {
    display: inline-block;
    padding-right: 4rem;
    /* gap between the two copies */
}

.now-playing-bar i[class*="fa-"] {
    font-size: calc(var(--bar-height) * 0.6);
    width: 1em;
    line-height: 0;
    vertical-align: middle;
}

.marquee-explicit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: calc(var(--bar-height) * 0.36);
    line-height: 0;
    font-weight: 800;
    letter-spacing: 0;
    width: calc(var(--bar-height) * 0.45);
    height: calc(var(--bar-height) * 0.45);
    border-radius: 2px;
    background: #b8efbc;
    color: #061006;
    margin-left: 0.3em;
    box-shadow:
        0 0 3px rgba(184, 239, 188, 0.9),
        0 0 8px rgba(170, 220, 175, 0.5),
        0 0 18px rgba(140, 210, 145, 0.2);
}

@media (prefers-color-scheme: light) {
    .marquee-explicit {
        background: #1a2e14;
        color: #b4c4a8;
        box-shadow: none;
    }
}

[data-theme="light"] .marquee-explicit {
    background: #1a2e14;
    color: #b4c4a8;
    box-shadow: none;
}

[data-theme="dark"] .marquee-explicit {
    background: #b8efbc;
    color: #061006;
    box-shadow:
        0 0 3px rgba(184, 239, 188, 0.9),
        0 0 8px rgba(170, 220, 175, 0.5),
        0 0 18px rgba(140, 210, 145, 0.2);
}

.sticky-header.is-scrolled .now-playing-bar {
    display: none;
}

@media (max-width: 600px) {
    .sticky-header.is-scrolled header {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        gap: 0.5rem;
        flex-shrink: 1;
    }

    .sticky-header.is-scrolled .site-name {
        flex-shrink: 0;
    }

    .sticky-header.is-scrolled .now-playing-bar {
        --bar-height: calc(0.5rem * 1.4 + 2 * 0.22rem);
        display: block;
        flex: 1;
        min-width: 0;
        padding: 0.22rem 0.4rem;
        margin: 0;
        font-size: 0.5rem;
        border-radius: 5px;
    }

    .sticky-header.is-scrolled .now-playing-bar .marquee-inner {
        animation-duration: 15s;
    }

    .sticky-header.is-scrolled .nav-toggle {
        margin-left: 0;
    }
}