/* ----------  merged + <li> polish + font stacks  ---------- */
@font-face {
    font-family: "Nimbus Sans";
    src: url(font/nimbus-sans-l/NimbusSanL-Regu.ttf);
}
@font-face {
    font-family: "Code Office Pro";
    src: url(font/office-code-pro/OfficeCodePro-Medium.woff);
}

:root {
    --bg-light: #FFF5F2;
    --text-light: #064232;
    --accent-light: #ff4081;
    --link-light: #C8443E;

    --bg-dark: #001524;
    --text-dark: #ffecd1;
    --accent-dark: #ff7d00;
    --link-dark: #ff7d00;

    --bg: var(--bg-light);
    --text: var(--text-light);
    --accent: var(--accent-light);
    --link: var(--link-light);

    --radius: 8px;
    --ease: cubic-bezier(.4,0,.2,1);
    font-family: "Nimbus Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    line-height: 1.33;
    transition: background .3s var(--ease), color .3s var(--ease);
}

/* auto dark */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: var(--bg-dark);
        --text: var(--text-dark);
        --accent: var(--accent-dark);
        --link: var(--link-dark);
    }

}
/* manual override */
[data-theme="dark"] { --bg: var(--bg-dark); --text: var(--text-dark); --accent: var(--accent-dark); --link: var(--link-dark); }
[data-theme="light"] { --bg: var(--bg-light); --text: var(--text-light); --accent: var(--accent-light); --link: var(--link-light); }

* { box-sizing: border-box; }

body {
    margin: 0 auto;
    max-width: 650px;
    padding: 1rem;
    padding-bottom:60px; /* padding height */
    background: var(--bg);
    color: var(--text);
}

h1, h2, h3 { font-weight: 600; margin-top: 1.5rem; margin-bottom: .5rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }

a {
    color: var(--link);
    fill: var(--link);
    stroke: var(--link);
    font-weight: bold;
    text-decoration: none;
    position: relative;
}
a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s var(--ease);
}
a:hover::after { transform: scaleX(1); transform-origin: top; }

/* nav */
nav > svg {
    fill: var(--link);
    stroke: var(--link);
}

/* nav links */
#links li { display: inline; }
#links a {
    color: var(--text);
    text-transform: uppercase;
    font-weight: 900;
}

/* images & figures */
img { max-width: 100%; }
figure { margin: 0; }

/* utilities */
.centercontent { text-align: center; }
.rightfloat { float: right; }
.leftfloat { float: left; }
.sticky { position: sticky; top: 0; }
.inline { display: inline; }

/* horizontal rule */
hr { border: 1px solid; color: var(--accent); opacity: .3; }

/* inline code */
code {
    background: rgba(128 128 128 /.12);
    color: var(--accent);
    padding: .15em .35em .2em;
    border-radius: 4px;
    font-size: .9em;
    font-variant-ligatures: none;
    box-decoration-break: clone;
    transition: background .2s var(--ease);
}
@media (prefers-color-scheme: dark) { code { background: rgba(255 255 255 /.08); } }
code:hover { background: rgba(128 128 128 /.18); }

/* full-width code blocks */
pre {
    margin: 1.2em -1rem;
    padding: 1rem 1rem 1.1rem;
    background: rgba(128 128 128 /.06);
    border-radius: 0;
    overflow-x: auto;
    line-height: 1.5;
    font-family: "Code Office Pro", "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
}
pre code {
    display: block;
    padding: 0;
    background: transparent;
    color: var(--accent);
    font-size: .85rem;
}
@media (min-width: 650px) { pre { margin: 1.2em 0; border-radius: var(--radius); } }

/* footnotes */
.footnotes { font-size: 90%; }

/* fancy <li> */
ul { list-style: none; padding-left: 0; }
li {
    margin-bottom: .75rem;
    padding: .5rem .75rem;
    background: rgba(128 128 128 /.05);
    border-radius: var(--radius);
    transform: scale(.98);
    transition: transform .2s var(--ease), background .2s var(--ease);
}
li:hover {
    transform: scale(1);
    background: rgba(128 128 128 /.1);
}

ol li::marker {
    font-weight: bold;
    font-size: 1.2em;
}


/* cool dance on centrecontent */
/* infinite up-and-down float; each image starts its cycle later */
.wave img {
    display: inline-block;
    animation: float 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * .6s);   /* stagger start */
}

.wave {
    padding-top: 1em;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); } /* adjust height as desired */
}


/* ---- sticky bottom audio bar ---- */
.audioplayer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    max-height: 32px;
    max-width: fit-content;
    padding: 0rem .5rem;
    padding-bottom: .5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: .0rem;
    border-radius: 8px;
    background-color: none;
    transition: .2s var(--ease);

}

.audioplayer:hover {
    padding-bottom:1rem;
}

.audioplayer a {
    max-height: inherit;
    border-radius: 4px 0px 0px 4px;
    margin: 2px 0px;
    content: none !important;
}

.audioplayer img {
    width:auto;
    height: auto;
    display: inline-block;
    max-height:inherit;
}

.audioplayer audio {
    flex: 1;
    max-width: 64px;
    border-radius: 0px 4px 4px 0px;
    margin:2px 0px;
}

/* keep page content above the bar */
body {
    padding-bottom: 60px; /* ≈ player height */
}

/* style the native controls */
audio {
    width: 100%;
    height: 32px;
     /* quick dark-mode friendly tweak */
}

video {
    width: 100%;
}

