/* === fonts: decorative (matt's originals, kept as options) === */
@font-face {
    font-family: "OpenDyslexic";
    src: url("/static/fonts/OpenDyslexic-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    size-adjust: 80.0%;
    ascent-override: 111.4%;
    descent-override: 27.0%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "OpenDyslexic";
    src: url("/static/fonts/OpenDyslexic-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    size-adjust: 80.0%;
    ascent-override: 111.4%;
    descent-override: 27.0%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Papernotes";
    src: url("/static/fonts/Papernotes.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    size-adjust: 95.7%;
    ascent-override: 93.1%;
    descent-override: 22.6%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Papernotes";
    src: url("/static/fonts/Papernotes-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    size-adjust: 95.7%;
    ascent-override: 93.1%;
    descent-override: 22.6%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Nature Sunset";
    src: url("/static/fonts/NatureSunset.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    size-adjust: 84.4%;
    ascent-override: 105.6%;
    descent-override: 25.6%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Adabelle";
    src: url("/static/fonts/AdabelleHandwriting.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    size-adjust: 91.1%;
    ascent-override: 97.9%;
    descent-override: 23.7%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Jojoba";
    src: url("/static/fonts/Jojoba.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    size-adjust: 91.2%;
    ascent-override: 97.7%;
    descent-override: 23.7%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Shaabyla";
    src: url("/static/fonts/Shaabyla.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    size-adjust: 87.8%;
    ascent-override: 101.4%;
    descent-override: 24.6%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Majestic Island";
    src: url("/static/fonts/MajesticIsland.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    size-adjust: 92.2%;
    ascent-override: 96.7%;
    descent-override: 23.4%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Vividly";
    src: url("/static/fonts/Vividly.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    size-adjust: 95.3%;
    ascent-override: 93.5%;
    descent-override: 22.7%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Cweyons";
    src: url("/static/fonts/Cweyons.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    size-adjust: 81.9%;
    ascent-override: 108.8%;
    descent-override: 26.4%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Handwriting 16";
    src: url("/static/fonts/Handwriting16.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    size-adjust: 95.1%;
    ascent-override: 93.7%;
    descent-override: 22.7%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Brothers";
    src: url("/static/fonts/Brothers.woff2?v=10") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: block; /* hold (preloaded, ~instant) instead of flashing Times */
}
@font-face {
    font-family: "Departure Mono";
    src: url("/static/fonts/DepartureMono.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
/* === reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

/* === surface: paper (default, magazine ivory) === */
:root {
    --paper: #f4f0e6;
    --ink: #1c1813;
    --accent: #2e4a8f;

    --meta: #6b5f50;
    --data: #2f5e6b;
    --kin: #4f6b45;
    --warn: #9a6b1a;
    --alt: #e9e3d4;
    --gold: #cccc99;
    --led-bg: #14110d;
    --led-fg: #cccc99;
    /* chevron/cube pattern (from the tile sign) — fixed in both themes */
    --c-top: #ece4cf;
    --c-gold: #ecd24e;
    --c-navy: #3450bf;

    --rule: rgba(28, 24, 19, 0.18);
    --hilite: #f9f0a6; /* soft marker yellow (link hover + selection) */

    --maxw: 1080px;
    --gutter: 2rem;

    --font-body: "Brothers", "Times New Roman", Times, Georgia, serif;
    --font-num: "Departure Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-mono: "Berkeley Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --font-pixel: "VT323", "IBM Plex Mono", monospace;
    --font-fraktur: "Times New Roman", Times, "Palatino", serif;
    --font-serif: "Times New Roman", Times, Georgia, serif;
}

/* === surface: void (dark editorial, no purple) === */
#theme-dark:checked ~ .site-wrap {
    --paper: #14110d;
    --ink: #ece6d8;
    --accent: #9ab3e6;

    --meta: #9a8f7e;
    --data: #8fb6c0;
    --kin: #a6c096;
    --warn: #d6b06a;
    --alt: #24201a;
    --gold: #8f8550;

    --rule: rgba(236, 230, 216, 0.2);
    --hilite: #4a431f;
}

.theme-toggle { display: none; }

/* === base === */
html { font-size: 18px; }

body {
    font-family: var(--font-body);
    line-height: 1.62;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-wrap {
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
    cursor: url("/static/cursors/dolphin.png") 5 33, auto;
}

/* carrot pointer on interactive elements */
.site-wrap a,
.site-wrap label,
.site-wrap select,
.site-wrap button,
.site-wrap summary,
.play-inline,
.star-btn,
.playlist-track,
.theme-btn {
    cursor: url("/static/cursors/carrot.png") 5 30, pointer;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 120ms linear, text-decoration-color 120ms linear;
}
a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
    background: var(--hilite);
    box-shadow: 0 0 0 3px var(--hilite); /* marker bleeds past the glyph box */
}
a:visited { color: var(--accent); }

::selection {
    background: var(--hilite);
    color: var(--ink);
}

/* === font-class accents (per-link / per-element) === */
.font-mono { font-family: var(--font-body); }
.font-pixel {
    font-family: var(--font-pixel);
    font-size: 1.15em;
    letter-spacing: 0.02em;
}
.font-fraktur {
    font-family: var(--font-fraktur);
    font-size: 1.15em;
    letter-spacing: 0.04em;
}
.font-serif {
    font-family: var(--font-serif);
    font-size: 1.05em;
}
.font-serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05em;
}

/* === chevron band (tumbling-blocks, from the tile sign) === */
.chevron-band {
    --s: 36px;
    height: 36px;
    border-top: 1px solid var(--ink);
    background:
        repeating-conic-gradient(from 30deg, #0000 0 120deg, var(--c-navy) 0 180deg)
            calc(.5*var(--s)) calc(.5*var(--s)*.577),
        repeating-conic-gradient(from 30deg, var(--c-top) 0 60deg, var(--c-gold) 0 120deg, var(--c-navy) 0 180deg);
    background-size: var(--s) calc(var(--s)*.577);
}

/* === masthead === */
.site-header {
    padding: 2.5rem 0 0.75rem;
    width: min(var(--maxw), 100% - 2 * var(--gutter));
    margin-inline: auto;
    text-align: center;
}

.site-title {
    font-family: var(--font-body);
    font-size: 3.1em;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
}
.site-title a,
.site-title a:visited {
    color: var(--ink);
    text-decoration: none;
}
.site-title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.theme-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.85em;
    opacity: 0.75;
}
.theme-switcher::before {
    content: "surface:";
    opacity: 0.55;
    margin-right: 0.15rem;
}
.theme-sep { opacity: 0.4; }

.theme-btn {
    cursor: pointer;
    color: var(--accent);
    padding: 0;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.theme-btn:hover {
    color: var(--ink);
    text-decoration: none;
}

#theme-light:checked ~ .site-wrap .theme-btn[for="theme-light"],
#theme-dark:checked ~ .site-wrap .theme-btn[for="theme-dark"] {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-body {
    width: min(var(--maxw), 100% - 2 * var(--gutter));
    margin-inline: auto;
    padding: 1.75rem 0 3rem;
}

/* floating corner stickers — pinned top right */
.corner-float {
    position: fixed;
    top: 1.2rem;
    right: 2.5rem;
    z-index: 40;
    pointer-events: none;
}
.corner-float .star-btn { pointer-events: auto; }
.corner-float .widget-stars { position: relative; }
.corner-float .star-btn { width: 140px; height: 140px; }
.corner-float .star-shop { width: 120px; height: 120px; }
.corner-float .star-hours {
    position: absolute;
    width: 112px;
    height: 112px;
    top: 102%;
    right: 4px;
    transform: rotate(7deg);
}
.corner-float .star-hours:hover { transform: rotate(2deg) scale(1.06); }
.corner-float .star-label { font-size: 1.2em; }
/* optical centering — the label targets the star's inner pentagon, not the viewBox center */
.star-blog .star-label { transform: translate(0, -7%); }
.corner-float .star-blog { width: 154px; height: 154px; }

/* === blog rail (classic sidebar: search + date archive) === */
.site-body-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3.5rem;
    align-items: start;
}
.blog-rail {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 66px;   /* clears the fixed star cluster (viewport-pinned above) */
    margin-right: calc(-4rem - 20px); /* out of the content column, toward the stars */
}
/* wide screens: pin the rail to the page edge, stacked under the star cluster */
@media (min-width: 1700px) {
    .site-body-rail { display: block; }
    .blog-rail {
        position: fixed;
        top: 325px;
        right: calc(2.6rem - 20px);
        width: 280px;
        margin: 0;
        z-index: 30;
    }
}
/* borderless rail sections: mono label, open layout */
.rail-panel + .rail-panel { margin-top: 1.5rem; }
.rail-panel::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.45rem;
    font-family: var(--font-num);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--meta);
}
.rail-search-row input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1em;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
}
.rail-search-row input:focus {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}
.rail-results {
    list-style: none;
    margin-top: 0.6rem;
    font-size: 0.95em;
    line-height: 1.45;
}
.rail-results li {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--rule);
}
.rail-results li:last-child { border-bottom: none; }
.rail-noresult { opacity: 0.6; }
.archive-tree {
    list-style: none;
    font-family: var(--font-body);
    line-height: 1.9;
}
.archive-tree summary {
    list-style: none;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}
.archive-tree summary::-webkit-details-marker { display: none; }
.archive-tree summary::before {
    content: "\25B8";
    font-size: 0.8em;
    color: var(--accent);
}
.archive-tree details[open] > summary::before { content: "\25BE"; }
.archive-tree details > ul {
    list-style: none;
    padding-left: 1.35rem;
}
.archive-count {
    opacity: 0.5;
    font-size: 0.82em;
    font-family: var(--font-num);
}
@media (max-width: 1460px) and (min-width: 721px) {
    .corner-float .star-btn { width: 108px; height: 108px; }
    .corner-float .star-shop { width: 92px; height: 92px; }
    .corner-float .star-hours { width: 86px; height: 86px; }
    .corner-float .star-label { font-size: 0.95em; }
    .blog-rail { margin-right: -1.5rem; margin-top: 10px; }
}


/* === widgets (old-web window panels) === */
.widget {
    border: 2px solid var(--ink);
    padding: 0.7rem;
    background: var(--paper);
}
.widget-title {
    font-family: var(--font-body);
    font-size: 0.9em;
    font-weight: 400;
    color: var(--c-top);
    background: var(--c-navy);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: -0.7rem -0.7rem 0.7rem;
    padding: 0.3rem 0.7rem;
    border-bottom: 2px solid var(--ink);
}

/* --- hours --- */
.hours-list {
    list-style: none;
    font-family: var(--font-body);
}
.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.3rem 0.1rem;
    font-size: 1em;
    border-bottom: 1px solid var(--ink);
}
.hours-row:last-child { border-bottom: none; }
.hours-row.is-today {
    color: var(--accent);
    font-weight: 700;
}
.hours-day {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.1em;
}
.hours-wx {
    margin-left: 0.5rem;
    font-family: "Times New Roman", Times, serif; /* symbol glyphs, not in Brothers */
    font-size: 0.95em;
    opacity: 0.8;
}
.hours-row.is-today .hours-day { color: var(--accent); }
.hours-time { font-size: 1.1em; font-family: var(--font-body); }

/* --- comic stars (blog + shop) --- */
.widget-stars {
    border: 0;
    padding: 0.5rem 0.25rem 0.25rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}
.star-btn {
    position: relative;
    display: block;
    width: 168px;
    height: 168px;
    text-decoration: none !important;
    filter: drop-shadow(2px 3px 0 var(--ink));
    transition: transform 180ms cubic-bezier(.2,.8,.2,1.2), filter 180ms linear;
}
.star-btn:hover {
    background: transparent !important;
    box-shadow: none;
    filter: drop-shadow(3px 5px 0 var(--ink));
}
.star-blog { transform: rotate(-8deg); }
.star-blog:hover { transform: rotate(-2deg) scale(1.06); }
.star-shop {
    transform: rotate(10deg);
    width: 142px;
    height: 142px;
    margin-left: 0.5rem;
    z-index: 2;
}
.star-shop:hover { transform: rotate(3deg) scale(1.06); }
.star-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.star-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-body);
    font-size: 1.5em;
    color: var(--ink);
    text-transform: lowercase;
    letter-spacing: 0.02em;
    pointer-events: none;
    text-align: center;
    line-height: 1;
}

/* === site nav (horizontal, under header) === */
.site-nav {
    width: min(var(--maxw), 100% - 2 * var(--gutter));
    margin-inline: auto;
    padding: 0.6rem 0 0.9rem;
    display: flex;
    justify-content: center;
    gap: 2.25rem;
    font-family: var(--font-body);
    font-size: 1.15em;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

/* === content toolbar (theme + font picker at top of main col) === */
.content-toolbar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.6;
    padding-bottom: 0.85rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
}
.content-toolbar::before {
    content: "surface:";
    opacity: 0.55;
    margin-right: 0.15rem;
}
.site-nav a,
.site-nav a:visited {
    color: var(--ink);
    text-decoration: none;
    padding: 0.1rem 0;
    border-bottom: 1px dotted transparent;
    opacity: 0.7;
}
.site-nav a:hover {
    color: var(--accent);
    opacity: 1;
}
.site-nav a.is-active {
    color: var(--ink);
    border-bottom-color: var(--accent);
    opacity: 1;
}

/* === section-header (used by shop/menu/contact) === */
.section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
}
.section-header h2 {
    font-size: 1em;
    font-weight: 100;
    text-transform: lowercase;
    letter-spacing: 0.06em;
}

/* === menu placeholder === */
.menu-placeholder {
    padding: 2rem 0;
    font-family: var(--font-body);
    font-size: 1.2em;
    font-style: normal;
    line-height: 1.5;
}
.menu-placeholder em, .menu-placeholder i { font-style: normal; }
.menu-placeholder-dim {
    opacity: 0.55;
    margin-top: 0.5rem;
    font-size: 0.9em;
}

/* === contact === */
.contact-block {
    padding: 0.5rem 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 24rem) 1fr;
    gap: 1.5rem 3rem;
    align-items: start;
}
.contact-hours {
    max-width: 24rem;
}
.contact-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem 1.4rem;
    align-items: baseline;
    justify-self: center;
}
.contact-list dt {
    font-family: var(--font-body);
    font-size: 1em;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    opacity: 0.55;
}
.contact-list dd {
    font-family: var(--font-body);
    font-size: 1.35em;
    line-height: 1.6;
}

/* === sidebar (legacy, kept for blog archive lists if reinstated) === */
.sidebar {
    font-family: var(--font-body);
    font-size: 0.85em;
    padding-top: 0.25rem;
    color: var(--ink);
    line-height: 1.6;
}

.sidebar-section { margin-bottom: 1.25rem; }
.sidebar-section h3 {
    font-family: var(--font-body);
    font-size: 0.85em;
    font-weight: 100;
    text-transform: lowercase;
    opacity: 0.55;
    margin-bottom: 0.25rem;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.1rem;
}

.archive-list { list-style: none; }
.archive-list ul { list-style: none; padding-left: 0.9rem; margin-top: 0.1rem; }
.archive-list li { margin-bottom: 0.1rem; }
.archive-list a,
.archive-list a:visited {
    color: var(--accent);
    text-decoration: none;
}
.archive-list a:hover {
    background: var(--ink);
    color: var(--paper);
}
.archive-year > a,
.archive-year > a:visited { color: var(--ink); }
.archive-count {
    opacity: 0.5;
    font-size: 0.85em;
}

.sidebar ul { list-style: none; }
.sidebar ul a,
.sidebar ul a:visited {
    color: var(--accent);
    text-decoration: none;
}
.sidebar ul a:hover {
    background: var(--ink);
    color: var(--paper);
}

/* === sidebar (right / elsewhere) === */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
}
.sidebar-right::before {
    content: "elsewhere";
    display: block;
    font-family: var(--font-body);
    font-size: 0.85em;
    opacity: 0.55;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.1rem;
    margin-bottom: 0.2rem;
}
.sidebar-right a {
    display: block;
    line-height: 0;
    filter: grayscale(1);
    opacity: 0.35;
    transition: opacity 120ms linear;
}
.sidebar-right a:hover {
    background: transparent;
    opacity: 0.85;
    filter: grayscale(0.2);
}
.sidebar-right img {
    width: 100%;
    max-width: 100px;
    height: auto;
}

/* === content === */
.content {
    min-width: 0;
}

/* === post card === */
.post-card {
    padding: 2.25rem 0 0;
    position: relative;
    contain: layout style;
}
.post-card:first-child { padding-top: 0.5rem; }
/* gold beveled bar divider between posts */
.post-card:not(:last-child)::after {
    content: "";
    display: block;
    height: 8px;
    margin-top: 2.25rem;
    border: 2px outset var(--gold);
    background: var(--gold);
}

.post-card--music .post-title a:hover,
.post-card--video .post-title a:hover,
.post-card--image .post-title a:hover { color: var(--accent); }
.post-card--text .post-title {
    font-style: italic;
}
.post-card--text.has-body .post-title {
    font-size: 2.1em;
}

.post-meta {
    display: flex;
    gap: 0.7rem;
    align-items: baseline;
    font-family: var(--font-body);
    font-size: 0.95em;
    opacity: 0.6;
    margin-bottom: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: lowercase;
}
.post-date { font-family: var(--font-num); }
.post-type { opacity: 0.9; }
.post-card--music .post-type { color: var(--data); opacity: 1; }
.post-card--video .post-type { color: var(--warn); opacity: 1; }
.post-card--image .post-type { color: var(--meta); opacity: 1; }
.post-card--text .post-type { color: var(--kin); opacity: 1; }

.post-title {
    font-family: var(--font-body);
    font-size: 1.65em;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.22;
}
.post-title a,
.post-title a:visited {
    color: var(--ink);
    text-decoration: none;
}
.post-title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.post-note {
    font-size: 1.08em;
    color: var(--ink);
    margin: 0.6rem 0;
    line-height: 1.6;
    opacity: 0.92;
}

.post-image { margin: 0.75rem 0; }
.post-image img {
    max-width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}
.post-og-image img {
    max-width: 280px;
    opacity: 0.85;
    filter: grayscale(0.3);
}

.post-id {
    font-size: 0.7em;
    opacity: 0.35;
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}
.post-id::before {
    content: "# ";
    opacity: 0.65;
}

/* === embeds === */
.embed-wrap {
    margin: 0.6rem 0;
    overflow: hidden;
    border-left: 1px solid var(--ink);
    padding-left: 0.75rem;
}
.embed-wrap iframe {
    display: block;
    background: var(--alt);
}
.embed-spotify { border-left-color: var(--data); }
/* video embeds run frameless — the side rule stays for audio strips only */
.embed-wrap:has(.embed-video) { border-left: 0; padding-left: 0; }
.embed-video {
    position: relative;
    padding-bottom: 35%;
    height: 0;
}
.embed-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.bandcamp-link {
    display: block;
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-size: 0.9em;
}

/* === archive page === */
.archive-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}
.archive-header h2 {
    font-size: 1em;
    font-weight: 100;
    text-transform: lowercase;
    letter-spacing: 0.04em;
}
.back-link,
.back-link:visited {
    font-family: var(--font-body);
    font-size: 0.85em;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.back-link:hover {
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
}

/* === pagination === */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9em;
    border-top: 1px solid var(--rule);
    margin-top: 1rem;
}
.page-link,
.page-link:visited {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.page-link:hover {
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
}
.page-info { opacity: 0.5; }

/* === footer rule === */
.rule-dotted {
    border: 0;
    border-top: 1px dotted var(--ink);
    width: min(var(--maxw), 100% - 2 * var(--gutter));
    margin: 3rem auto 0;
}

/* === footer === */
.site-footer {
    text-align: center;
    padding: 1.5rem 0 2.5rem;
    width: min(var(--maxw), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.footer-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.counter-label {
    font-family: var(--font-mono);
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.55;
}
.hit-counter {
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.85em;
    background: var(--led-bg);
    color: var(--led-fg);
    padding: 0.2rem 0.5rem;
    letter-spacing: 0.3em;
    border: 2px inset var(--gold);
}

.colophon {
    font-family: var(--font-body);
    font-size: 0.92em;
    font-style: italic;
    letter-spacing: 0.01em;
    opacity: 0.7;
}
.colophon a { color: var(--ink); text-decoration-color: var(--rule); }
.colophon a:hover { color: var(--accent); }
.fleur {
    color: var(--accent);
    font-style: normal;
    margin: 0 0.5rem;
    opacity: 0.8;
}
.site-footer a,
.site-footer a:visited {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.site-footer a:hover {
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
}

/* === playlist === */
.playlist-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
}
.playlist-header h2 {
    font-size: 1em;
    font-weight: 100;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    display: inline;
    margin-right: 1rem;
}
.playlist-count {
    font-family: var(--font-body);
    font-size: 0.85em;
    opacity: 0.55;
    margin-right: 1rem;
}

.player-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}
.player-btn {
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.9em;
    padding: 0.15rem 0.55rem;
    cursor: pointer;
    line-height: 1.2;
}
.player-btn:hover {
    background: var(--ink);
    color: var(--paper);
}
.player-btn-main {
    font-size: 1em;
    padding: 0.15rem 0.7rem;
}
.player-now {
    font-size: 0.9em;
    opacity: 0.7;
    margin-left: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-body);
    flex: 1;
    min-width: 0;
}

.player-embed {
    margin-bottom: 1rem;
    min-height: 0;
}

.playlist-tracks {
    list-style: none;
    counter-reset: none;
}
.playlist-track {
    padding: 0.35rem 0.3rem;
    border-bottom: 1px solid var(--rule);
    cursor: pointer;
    font-size: 0.95em;
    line-height: 1.4;
}
.playlist-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.playlist-track .track-media { margin: 0.5rem 0 0.35rem; }
.playlist-track:hover {
    background: var(--alt);
}
.playlist-track.active {
    background: var(--alt);
    border-left: 2px solid var(--data);
    padding-left: calc(0.3rem - 2px);
}
.track-num {
    font-family: var(--font-body);
    font-size: 0.85em;
    opacity: 0.55;
    min-width: 2.25ch;
}
.track-title { color: var(--ink); }
.track-note {
    opacity: 0.6;
    font-size: 0.9em;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.track-open,
.track-open:visited {
    color: var(--accent);
    font-size: 0.9em;
    flex-shrink: 0;
    text-decoration: none;
    padding: 0 0.2rem;
}
.track-open:hover {
    background: var(--ink);
    color: var(--paper);
}
.track-platform {
    font-family: var(--font-body);
    font-size: 0.8em;
    opacity: 0.5;
    flex-shrink: 0;
}

/* === image sizes === */
.img-sm { max-width: 240px; }
.img-md { max-width: 440px; }
.img-lg { max-width: 100%; }

/* === photo collections === */
.post-images { margin: 0.75rem 0; }
.post-images figure { margin: 0 0 0.6rem 0; }
.post-images figure img {
    max-width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}
.post-images figcaption {
    font-family: var(--font-body);
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.6;
    margin-top: 0.4rem;
    padding-left: 0.1rem;
}
.post-images.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
}
.post-images.layout-grid figure { margin: 0; }

/* === embed sizes === */
.embed-sm iframe { height: 80px; }
.embed-sm .embed-video { padding-bottom: 25%; }
.embed-lg iframe { height: 352px; }
.embed-lg .embed-video { padding-bottom: 56.25%; }

/* === long-form body === */
.post-body {
    margin: 0.6rem 0;
    line-height: 1.6;
}
.post-body p { margin-bottom: 0.8rem; }
.post-body p:last-child { margin-bottom: 0; }

.post-body h2 {
    font-family: var(--font-body);
    font-size: 1.3em;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 1.4rem 0 0.5rem;
}
.post-body h3 {
    font-family: var(--font-body);
    font-size: 0.78em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.7;
    margin: 1.1rem 0 0.35rem;
}
.post-body ul, .post-body ol { margin: 0.4rem 0 0.8rem 1.5rem; }
.post-body li { margin-bottom: 0.25rem; }
.post-body blockquote {
    border-left: 2px solid var(--accent);
    padding-left: 0.85rem;
    margin: 0.8rem 0;
    opacity: 0.75;
}
.post-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--alt);
    padding: 0.05rem 0.3rem;
    border: 1px solid var(--rule);
}
.post-body pre {
    background: var(--alt);
    border: 1px solid var(--rule);
    padding: 0.75rem;
    overflow-x: auto;
    margin: 0.8rem 0;
    font-size: 0.85em;
    font-family: var(--font-mono);
}
.post-body pre code {
    background: none;
    padding: 0;
    border: none;
}
.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.5rem 0;
    border: 1px solid var(--ink);
}
.post-body hr {
    border: 0;
    border-top: 1px solid var(--ink);
    margin: 1.25rem 0;
    opacity: 0.35;
}

/* === inline play icon === */
.play-inline {
    cursor: pointer;
    color: var(--data);
    font-size: 0.85em;
    margin-right: 0.3rem;
    vertical-align: middle;
    display: inline-block;
    opacity: 0.7;
}
.play-inline:hover,
.play-inline.is-playing {
    opacity: 1;
}

.music-active .play-inline.is-playing {
    animation: play-pulse 2.5s ease-in-out infinite;
}

@keyframes play-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === now-playing pill (minimal, centered bottom) === */
.np {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: min(92vw, 460px);
    padding: 0.35rem 0.6rem 0.35rem 0.85rem;
    background: var(--paper);
    border: 2px solid var(--ink);
    font-family: var(--font-body);
    font-size: 0.92em;
}
.np-icon { color: var(--accent); }
.np-title {
    background: none; border: 0; cursor: pointer;
    font: inherit; color: var(--ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 30ch;
}
.np-title:hover { color: var(--accent); }
.np-link, .np-link:visited { color: var(--accent); text-decoration: none; flex-shrink: 0; }
.np-link:hover { color: var(--ink); }
.np-close {
    background: none; border: 0; cursor: pointer;
    color: var(--ink); font-size: 1.1em; line-height: 1; padding: 0 0.2rem; opacity: 0.6;
}
.np-close:hover { opacity: 1; }
.np[hidden] { display: none; }

/* === inline embed (music/video opened in place) === */
.inline-embed { margin: 0.75rem 0 0.25rem; }
.inline-embed iframe { display: block; background: var(--alt); }

/* lightbox — click a post image for the full-screen view */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(20, 17, 13, 0.94);
    display: grid;
    place-items: center;
    cursor: zoom-out;
}
.lightbox img {
    max-width: 94vw;
    max-height: 92vh;
    display: block;
}
.ie-video { position: relative; padding-bottom: 56.25%; height: 0; }
.ie-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* === persistent music player (telegram-style, feed-order queue) === */
.bx-player {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000;
    background: var(--paper);
    border-top: 2px solid var(--ink);
}
.bx-player[hidden] { display: none; }
#bx-sc-host, #bx-sc-host[hidden] { display: none; }
.bx-bar {
    display: flex; align-items: center; gap: 0.55rem;
    max-width: var(--maxw); margin: 0 auto; padding: 0.5rem 1rem;
}
.bx-btn, .bx-close {
    background: transparent; border: 0; color: var(--ink);
    cursor: pointer; line-height: 1; padding: 0.2rem;
}
.bx-btn { font-size: 1.15rem; }
.bx-toggle { font-size: 1.35rem; }
.bx-btn:hover { color: var(--accent); }
.bx-pos { font-family: var(--font-num); font-size: 0.8rem; opacity: 0.6; }
.bx-title {
    flex: 1; min-width: 0; text-align: left;
    background: transparent; border: 0; cursor: pointer;
    color: var(--ink); font-family: var(--font-body); font-size: 1rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bx-title:hover { color: var(--accent); }
.bx-kind { font-family: var(--font-num); font-size: 0.68rem; opacity: 0.5; text-transform: uppercase; color: inherit; text-decoration: none; }
.bx-kind:hover { opacity: 1; }
.bx-close { font-size: 1.25rem; opacity: 0.6; }
.bx-close:hover { opacity: 1; }
#bx-audio { display: none; }
html.bx-on body { padding-bottom: 4rem; }

/* play triggers + cued state */
.play-track {
    background: transparent; border: 0; color: var(--accent);
    cursor: pointer; font-size: 0.85em; line-height: 1; padding: 0 0.35rem 0 0;
}
.play-track:hover { color: var(--ink); }
.post-title .play-track.is-cued { color: var(--ink); }
.playlist-track.is-cued { color: var(--accent); background: var(--alt); }

/* inline track media (video plays in the post; bottom bar stays thin) */
.track-media {
    margin: 0.75rem 0 0.25rem;
    aspect-ratio: 16 / 9;
    background: #000;
    max-width: 560px;
}
.track-media video, .track-media iframe, .track-media #bx-yt {
    display: block; width: 100%; height: 100%; border: 0;
}
.track-poster {
    display: grid; place-items: center;
    width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
    background-size: cover; background-position: center;
}
.track-badge {
    width: 3rem; height: 3rem; display: grid; place-items: center;
    background: rgba(20,17,13,0.6); color: #fff; font-size: 1.1rem;
    border: 2px solid #fff; border-radius: 50%;
}
.track-poster:hover .track-badge { background: var(--accent); }
.track-video { background: #000; object-fit: contain; }

/* === merch page === */
.merch-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.merch-empty {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1.2em;
    padding: 2rem 0;
    line-height: 1.5;
}
.merch-empty em, .merch-empty i { font-style: normal; }
.merch-empty-dim { opacity: 0.55; margin-top: 0.5rem; font-size: 0.9em; }

/* gallery cards: dotted frames, caption below, air between */
.merch-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem 2.75rem;
    margin-top: 0.25rem;
}
/* count-aware: 1 item centered, 2 split, 3+ in thirds */
@media (min-width: 721px) {
    .merch-grid:has(> :last-child:nth-child(1)) {
        grid-template-columns: minmax(0, 18rem);
        justify-content: center;
    }
    .merch-grid:has(> :last-child:nth-child(2)) {
        grid-template-columns: repeat(2, minmax(0, 19rem));
        justify-content: center;
    }
    .merch-grid:has(> :nth-child(3)) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.merch-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.merch-card.is-sold-out { opacity: 0.55; }

.merch-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}
/* whole card links to the item page; marker highlight only on the title */
.merch-link,
.merch-link:visited {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
}
.merch-link:hover {
    background: transparent;
    box-shadow: none;
    color: inherit;
}
.merch-link:hover .merch-title {
    background: var(--hilite);
    box-shadow: 0 0 0 3px var(--hilite);
}

/* item detail page */
.merch-detail {
    max-width: 22rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 0.5rem;
}
.merch-back { margin-top: 1.25rem; align-self: flex-start; }

/* price chip with a quiet stock line under it */
.merch-buyinfo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}
.merch-chip {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-num);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.6rem;
}
.merch-stock {
    font-family: var(--font-num);
    font-size: 0.55rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--meta);
    opacity: 0.7;
}
.is-sold-out .merch-stock {
    color: var(--warn);
    opacity: 1;
}


.merch-image {
    aspect-ratio: 3 / 4;
    border: 1px dotted var(--ink);
    background: var(--paper);
    overflow: hidden;
    position: relative;
    padding: 1.1rem;
}
.merch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.merch-image-placeholder {
    width: 100%;
    height: 100%;
    opacity: 0.25;
}

.merch-soldout-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 0.7em;
    text-transform: lowercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.45rem;
}

.merch-title {
    font-family: var(--font-body);
    font-size: 1.45em;
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
}

.merch-desc {
    font-size: 0.85em;
    opacity: 0.75;
    line-height: 1.5;
}
.merch-desc p { margin: 0; }

.merch-buy,
.merch-buy:visited {
    align-self: flex-start;
    margin-top: 0.3rem;
    font-family: var(--font-num);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--ink);
    padding: 0.2rem 0.55rem;
    text-decoration: none;
}
.merch-buy:hover {
    background: var(--ink);
    color: var(--paper);
    box-shadow: none;
    text-decoration: none;
}

/* === mobile === */
@media (max-width: 720px) {
    html { font-size: 13px; }
    .site-header {
        padding: 1.4rem 0.9rem 0.6rem;
        text-align: center;
    }
    .site-title { font-size: 2.5em; }
    .site-body {
        grid-template-columns: 1fr;
        padding: 0.9rem;
        gap: 1rem;
    }
    .sidebar {
        display: flex;
        gap: 1.25rem;
        flex-wrap: wrap;
    }
    .sidebar-section { margin-bottom: 0.25rem; flex: 1 1 auto; }
    .sidebar-right { display: none; }
    .archive-list { display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; }
    .archive-list li { margin-bottom: 0; }
    .archive-list ul { display: inline; padding-left: 0; }
    .archive-year > a { margin-right: 0.2rem; }
    .embed-video { padding-bottom: 45%; }
    .post-images.layout-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .content { max-width: 100%; }

    .site-nav {
        padding: 0.4rem 1rem 0.5rem;
        gap: 0.9rem;
        flex-wrap: wrap;
        font-size: 0.9em;
    }
    /* stars drop out of the corner and flow above the feed */
    .corner-float {
        position: static;
        margin: 0.9rem auto 0;
    }
    .corner-float .widget-stars { justify-content: center; align-items: center; }
    .corner-float .star-btn { width: 104px; height: 104px; }
    .corner-float .star-shop { width: 90px; height: 90px; }
    .corner-float .star-hours { position: static; width: 86px; height: 86px; }
    .corner-float .star-label { font-size: 0.95em; }
    .site-body-rail { grid-template-columns: 1fr; gap: 2rem; }
    .blog-rail { margin-top: 0; margin-right: 0; }
    .merch-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .contact-block { grid-template-columns: 1fr; }
    .contact-list { grid-template-columns: 7em 1fr; gap: 0.8rem 1.5rem; justify-self: start; }

    /* player: real tap targets, breathing room */
    .bx-bar { gap: 0.7rem; padding: 0.85rem 1rem; }
    .bx-btn { font-size: 1.6rem; padding: 0.45rem 0.5rem; }
    .bx-toggle { font-size: 1.8rem; }
    .bx-title { font-size: 1.1rem; }
    .bx-pos { display: none; }
    .bx-kind { display: none; }
    .bx-stage { max-width: 100%; }
    html.bx-on body { padding-bottom: 5rem; }
}

/* === reduced motion === */
/* snappy nav: drop the default cross-fade morph (kills transition jank) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }

@media (prefers-reduced-motion: reduce) {
    .music-active .play-inline.is-playing { animation: none; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
