/* ============================================================
   DXK — LITTLE WORKSHOP
   V2 stylesheet
   Anime cutecore × cottagecore × cozy developer scrapbook
   ============================================================ */


/* ============================================================
   01. VARIABLES
   ============================================================ */

:root {

    --paper: #fffaf5;
    --paper-soft: #fff4ed;
    --paper-pink: #fff0f2;

    --ink: #493d4d;
    --ink-soft: #756878;
    --ink-faint: #9c909e;

    --rose: #df8fa6;
    --rose-dark: #c97491;
    --rose-soft: #f5cbd6;

    --lavender: #a995c7;
    --lavender-soft: #ded4ec;

    --mint: #a9cbbb;
    --mint-soft: #dcefe4;

    --cream: #f8e7bd;
    --cream-dark: #e6ce98;

    --line: #eaded9;
    --line-dark: #ddc9c5;

    --white: #ffffff;

    --shadow-soft:
        0 10px 30px rgba(110, 79, 94, 0.08);

    --shadow-card:
        0 8px 22px rgba(110, 79, 94, 0.10);

    --shadow-hover:
        0 16px 36px rgba(110, 79, 94, 0.16);

    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 28px;

    --content-width: 1120px;

    --font-display: "Baloo 2", cursive;
    --font-body: "Nunito", sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --transition:
        180ms ease;

}


/* ============================================================
   DARK / DUSK THEME
   ============================================================ */

html[data-theme="dark"] {

    --paper: #211c2b;
    --paper-soft: #292231;
    --paper-pink: #30232e;

    --ink: #f5eaf0;
    --ink-soft: #cdbdca;
    --ink-faint: #958696;

    --rose: #e49aae;
    --rose-dark: #d67f98;
    --rose-soft: #5a3646;

    --lavender: #bba7d7;
    --lavender-soft: #403653;

    --mint: #a7d0bc;
    --mint-soft: #30473d;

    --cream: #d9bd83;
    --cream-dark: #b79b65;

    --line: #403541;
    --line-dark: #52434f;

    --white: #302938;

    --shadow-soft:
        0 12px 32px rgba(0, 0, 0, 0.22);

    --shadow-card:
        0 10px 28px rgba(0, 0, 0, 0.25);

    --shadow-hover:
        0 18px 40px rgba(0, 0, 0, 0.34);

}


/* ============================================================
   02. RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    min-height: 100vh;

    color: var(--ink);
    background: var(--paper);

    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;

    overflow-x: hidden;

    transition:
        background-color 300ms ease,
        color 300ms ease;
}


img {
    display: block;
    max-width: 100%;
}


button,
input {
    font: inherit;
}


button {
    color: inherit;
}


a {
    color: inherit;
}


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


/* ============================================================
   03. PAPER / ATMOSPHERE
   ============================================================ */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: -10;

    opacity: 0.42;

    background-image:
        radial-gradient(
            circle at 20% 20%,
            rgba(223, 143, 166, 0.07) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(169, 149, 199, 0.06) 0 1px,
            transparent 1.5px
        );

    background-size:
        34px 34px,
        46px 46px;
}


body::after {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: -9;

    opacity: 0.22;

    background:
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255,255,255,0.18) 50%,
            transparent 100%
        );
}


html[data-theme="dark"] body::before {
    opacity: 0.15;
}


html[data-theme="dark"] body::after {
    opacity: 0.05;
}


/* ============================================================
   04. DECORATIVE BLOBS
   ============================================================ */

.blob {
    position: fixed;

    width: 360px;
    height: 360px;

    border-radius: 50%;

    filter: blur(80px);

    pointer-events: none;
    z-index: -5;

    opacity: 0.26;
}


.blob-a {
    top: -140px;
    left: -120px;

    background: var(--rose-soft);
}


.blob-b {
    top: 35%;
    right: -160px;

    background: var(--lavender-soft);
}


.blob-c {
    bottom: -180px;
    left: 32%;

    background: var(--mint-soft);
}


html[data-theme="dark"] .blob {
    opacity: 0.13;
}


/* ============================================================
   05. FLOATING SPARKLES
   ============================================================ */

.confetti-container {
    position: fixed;
    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 5;
}


.sparkle-particle {
    position: absolute;

    bottom: -30px;

    color: var(--rose);

    opacity: 0;

    animation:
        sparkle-float linear infinite;
}


@keyframes sparkle-float {

    0% {
        transform:
            translateY(0)
            rotate(0deg)
            scale(0.8);

        opacity: 0;
    }

    12% {
        opacity: 0.55;
    }

    70% {
        opacity: 0.3;
    }

    100% {
        transform:
            translateY(-110vh)
            rotate(180deg)
            scale(1.15);

        opacity: 0;
    }

}


/* ============================================================
   06. HEADER
   ============================================================ */

.site-header {

    width: min(
        calc(100% - 36px),
        var(--content-width)
    );

    margin: 0 auto;

    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid var(--line);

}


.mark {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    text-decoration: none;

    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;

    letter-spacing: 0.04em;
}


.mark-dot {
    color: var(--rose);

    font-size: 0.95em;

    transform:
        rotate(-12deg);
}


.header-right {
    display: flex;
    align-items: center;

    gap: 16px;
}


.header-status {
    display: flex;
    align-items: center;

    gap: 7px;

    color: var(--ink-soft);

    font-family: var(--font-mono);
    font-size: 0.72rem;
}


.dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--mint);

    box-shadow:
        0 0 0 4px var(--mint-soft);

    animation:
        status-pulse 2.5s ease-in-out infinite;
}


@keyframes status-pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

}


/* ============================================================
   07. THEME BUTTON
   ============================================================ */

.theme-toggle {

    display: inline-flex;
    align-items: center;
    gap: 7px;

    border: 1px solid var(--line);

    border-radius: 999px;

    padding: 7px 12px;

    background: var(--paper-soft);

    cursor: pointer;

    font-size: 0.78rem;
    font-weight: 800;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}


.theme-toggle:hover {
    transform: translateY(-2px);

    border-color: var(--rose-soft);
}


.theme-toggle:active {
    transform: translateY(0);
}


.theme-toggle-icon {
    color: var(--rose);

    font-size: 0.95rem;
}


/* ============================================================
   08. MAIN CONTAINER
   ============================================================ */

main {
    width: min(
        calc(100% - 36px),
        var(--content-width)
    );

    margin: 0 auto;
}


/* ============================================================
   09. HERO
   ============================================================ */

.hero {

    position: relative;

    min-height: 520px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    align-items: center;

    gap: 60px;

    padding:
        80px 30px
        90px;

}


.hero-content {
    position: relative;
    z-index: 2;
}


.eyebrow,
.section-kicker {

    margin: 0 0 8px;

    color: var(--rose-dark);

    font-family: var(--font-mono);

    font-size: 0.73rem;

    font-weight: 500;

    letter-spacing: 0.08em;

    text-transform: lowercase;
}


.wordmark {

    margin: 0;

    font-family: var(--font-display);

    font-size:
        clamp(5rem, 15vw, 9.5rem);

    font-weight: 700;

    line-height: 0.78;

    letter-spacing: -0.055em;

    color: var(--ink);

    text-shadow:
        4px 4px 0 var(--rose-soft);
}


.alias {

    margin:
        20px 0 18px;

    color: var(--ink-faint);

    font-family: var(--font-mono);

    font-size: 0.8rem;
}


.handle {
    color: var(--lavender);

    font-weight: 500;
}


.lede {

    max-width: 560px;

    margin: 0;

    color: var(--ink-soft);

    font-size:
        clamp(1rem, 2vw, 1.13rem);

    line-height: 1.8;
}


.hero-links {

    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 28px;
}


.hero-link {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 8px 16px;

    border:
        1px solid var(--line);

    border-radius: 999px;

    background: var(--paper-soft);

    text-decoration: none;

    font-size: 0.86rem;
    font-weight: 800;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}


.hero-link:hover {

    transform:
        translateY(-3px)
        rotate(-1deg);

    border-color: var(--rose-soft);

    box-shadow:
        var(--shadow-soft);
}


.hero-link-primary {

    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            var(--rose-soft),
            var(--lavender-soft)
        );

}


/* ============================================================
   10. MASCOT
   ============================================================ */

.hero-mascot {

    position: relative;

    width: 260px;
    height: 310px;

    justify-self: center;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    transform:
        rotate(2deg);
}


.hero-mascot::before {

    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    bottom: 0;

    border-radius:
        44% 56% 55% 45% /
        42% 44% 56% 58%;

    background:
        linear-gradient(
            145deg,
            var(--paper-pink),
            var(--lavender-soft)
        );

    box-shadow:
        var(--shadow-soft);

    transform:
        rotate(-5deg);
}


.hero-mascot img {

    position: relative;

    z-index: 2;

    width: 230px;
    height: 270px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 12px 14px
            rgba(80, 50, 70, 0.14)
        );

    transition:
        transform 300ms ease;
}


.hero-mascot:hover img {

    transform:
        translateY(-8px)
        rotate(-3deg)
        scale(1.025);
}


.mascot-fallback {

    position: relative;
    z-index: 2;

    width: 180px;
    height: 180px;

    align-items: center;
    justify-content: center;

    font-size: 6rem;

    filter:
        drop-shadow(
            0 10px 12px
            rgba(80, 50, 70, 0.12)
        );
}


.mascot-bubble {

    position: absolute;

    top: 0;
    right: -18px;

    z-index: 4;

    max-width: 180px;

    padding: 9px 13px;

    border:
        1px solid var(--line);

    border-radius:
        16px 16px 5px 16px;

    background: var(--paper);

    box-shadow:
        var(--shadow-soft);

    color: var(--ink-soft);

    font-size: 0.76rem;
    font-weight: 800;

    transform:
        rotate(-2deg);
}


.mascot-bubble::after {

    content: "";

    position: absolute;

    right: 15px;
    bottom: -7px;

    width: 13px;
    height: 13px;

    background: var(--paper);

    border-right:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);

    transform:
        rotate(45deg);
}


/* ============================================================
   11. DESK SECTION
   ============================================================ */

.desk {

    margin:
        0 0 80px;
}


.desk-card {

    position: relative;

    display: grid;

    grid-template-columns:
        1fr
        auto;

    gap: 30px;

    align-items: center;

    padding:
        30px 34px;

    border:
        1px solid var(--line);

    border-radius:
        18px 22px 16px 20px;

    background:
        linear-gradient(
            135deg,
            var(--paper-pink),
            var(--paper-soft)
        );

    box-shadow:
        var(--shadow-soft);

    transform:
        rotate(-0.35deg);
}


.desk-card::before {

    content: "";

    position: absolute;

    top: 12px;
    left: 50%;

    width: 74px;
    height: 9px;

    border-radius: 999px;

    background:
        var(--rose-soft);

    opacity: 0.75;

    transform:
        translateX(-50%)
        rotate(-1deg);
}


.desk-decoration {

    position: absolute;

    top: 18px;
    right: 24px;

    color: var(--rose);

    font-size: 1.1rem;

    transform:
        rotate(12deg);
}


.desk-content h2 {

    margin:
        0 0 8px;

    font-family: var(--font-display);

    font-size: 1.65rem;

    line-height: 1.15;
}


.desk-content p:last-child {

    max-width: 670px;

    margin: 0;

    color: var(--ink-soft);

    font-size: 0.92rem;
}


.desk-note {

    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 190px;

    padding:
        12px 15px;

    border:
        1px dashed var(--line-dark);

    border-radius: 12px;

    background: var(--paper);

    color: var(--ink-soft);

    font-size: 0.76rem;

    transform:
        rotate(2deg);
}


.desk-note strong {

    color: var(--ink);

    font-family: var(--font-mono);

    font-size: 0.66rem;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


.desk-note-icon {

    color: var(--lavender);

    font-size: 1.45rem;
}


/* ============================================================
   12. REGISTRY
   ============================================================ */

.registry {

    padding-bottom: 100px;
}


.registry-head {

    display: flex;

    align-items: end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}


.registry-head h2 {

    margin: 0;

    font-family: var(--font-display);

    font-size:
        clamp(2rem, 5vw, 3rem);

    line-height: 1.05;
}


.registry-count {

    padding:
        7px 11px;

    border:
        1px solid var(--line);

    border-radius: 999px;

    color: var(--ink-soft);

    background: var(--paper-soft);

    font-family: var(--font-mono);

    font-size: 0.68rem;
}


.registry-count span {

    color: var(--rose-dark);

    font-weight: 700;
}


/* ============================================================
   13. WORKSHOP TOOLS
   ============================================================ */

.workshop-tools {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 15px;
}


.search-box {

    position: relative;

    flex: 1;

    display: flex;
    align-items: center;

    min-height: 46px;

    border:
        1px solid var(--line);

    border-radius: 14px;

    background: var(--paper-soft);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}


.search-box:focus-within {

    border-color:
        var(--rose-soft);

    box-shadow:
        0 0 0 4px
        rgba(223, 143, 166, 0.08);
}


.search-icon {

    margin-left: 14px;

    font-size: 0.9rem;

    opacity: 0.7;
}


.search-box input {

    width: 100%;

    min-width: 0;

    padding:
        10px 12px;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--ink);

    font-family: var(--font-body);

    font-size: 0.86rem;
}


.search-box input::placeholder {

    color: var(--ink-faint);

    opacity: 1;
}


.search-hint {

    margin-right: 12px;

    padding:
        2px 6px;

    border:
        1px solid var(--line);

    border-radius: 5px;

    color: var(--ink-faint);

    font-family: var(--font-mono);

    font-size: 0.62rem;
}


.visible-count {

    white-space: nowrap;

    color: var(--ink-faint);

    font-family: var(--font-mono);

    font-size: 0.68rem;
}


.visible-count strong {

    color: var(--ink-soft);
}


/* ============================================================
   14. TABS
   ============================================================ */

.notebook-tabs {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 18px;
}


.tab-btn {

    position: relative;

    padding:
        8px 13px;

    border:
        1px solid var(--line);

    border-radius: 10px;

    background:
        var(--paper-soft);

    color: var(--ink-soft);

    cursor: pointer;

    font-size: 0.76rem;
    font-weight: 800;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}


.tab-btn:hover {

    transform:
        translateY(-2px);

    border-color:
        var(--rose-soft);

    color: var(--ink);
}


.tab-btn.active {

    background:
        var(--paper-pink);

    border-color:
        var(--rose-soft);

    color:
        var(--rose-dark);

    box-shadow:
        0 4px 12px
        rgba(110, 79, 94, 0.07);
}


.tab-divider {

    width: 1px;
    height: 25px;

    margin:
        0 3px;

    background:
        var(--line-dark);
}


/* ============================================================
   15. NOTEBOOK PANEL
   ============================================================ */

.notebook-panel {

    position: relative;

    min-height: 120px;

    padding: 5px 0;
}


/* ============================================================
   16. PROJECT ENTRY
   ============================================================ */

.entry {

    position: relative;

    display: grid;

    grid-template-columns:
        58px
        1fr;

    gap: 0;

    margin-bottom: 18px;

    border:
        1px solid var(--line);

    border-radius:
        16px 19px 17px 15px;

    background:
        var(--paper-soft);

    box-shadow:
        var(--shadow-card);

    overflow: hidden;

    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;

    animation:
        entry-in 350ms ease both;
}


.entry:nth-child(even) {
    transform:
        rotate(0.25deg);
}


.entry:nth-child(odd) {
    transform:
        rotate(-0.2deg);
}


.entry:hover {

    z-index: 2;

    transform:
        translateY(-5px)
        rotate(0deg);

    border-color:
        var(--rose-soft);

    box-shadow:
        var(--shadow-hover);
}


.entry-featured {

    border-color:
        var(--rose-soft);

    background:
        linear-gradient(
            135deg,
            var(--paper-soft),
            var(--paper-pink)
        );
}


.entry-featured::before {

    content: "FEATURED ✦";

    position: absolute;

    top: 13px;
    right: 15px;

    z-index: 4;

    padding:
        4px 7px;

    border-radius: 999px;

    background:
        var(--rose-soft);

    color:
        var(--rose-dark);

    font-family:
        var(--font-mono);

    font-size: 0.57rem;

    letter-spacing: 0.04em;
}


@keyframes entry-in {

    from {
        opacity: 0;

        transform:
            translateY(10px)
            rotate(-0.3deg);
    }

    to {
        opacity: 1;
    }

}


/* ============================================================
   17. ENTRY NUMBER
   ============================================================ */

.entry-index {

    display: flex;

    align-items: flex-start;
    justify-content: center;

    padding-top: 23px;

    border-right:
        1px dashed var(--line);

    color:
        var(--rose-dark);

    font-family:
        var(--font-mono);

    font-size: 0.68rem;

    font-weight: 500;
}


/* ============================================================
   18. ENTRY BODY
   ============================================================ */

.entry-body {

    min-width: 0;

    padding:
        23px 25px 24px;
}


.entry-body.has-media {

    display: grid;

    grid-template-columns:
        180px
        minmax(0, 1fr);

    gap: 24px;

    align-items: start;
}


.entry-content {
    min-width: 0;
}


.entry-top {

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 7px;
}


.entry-name {

    margin: 0;

    font-family:
        var(--font-display);

    font-size:
        clamp(1.25rem, 3vw, 1.55rem);

    line-height: 1.1;
}


.entry-name-muted {
    color: var(--ink-soft);
}


.entry-type {

    margin:
        -2px 0 7px;

    color:
        var(--lavender);

    font-family:
        var(--font-mono);

    font-size:
        0.68rem;

    font-weight: 500;
}


.entry-meta {

    margin:
        0 0 10px;

    color:
        var(--ink-faint);

    font-family:
        var(--font-mono);

    font-size:
        0.65rem;
}


.entry-desc {

    margin:
        0 0 15px;

    max-width: 720px;

    color:
        var(--ink-soft);

    font-size:
        0.9rem;

    line-height:
        1.75;
}


.entry-desc-muted {
    color: var(--ink-faint);
}


/* ============================================================
   19. STATUS TAG
   ============================================================ */

.status-tag {

    flex-shrink: 0;

    padding:
        5px 8px;

    border-radius:
        999px;

    font-family:
        var(--font-mono);

    font-size:
        0.58rem;

    font-weight:
        500;
}


.status-stable {

    background:
        var(--mint-soft);

    color:
        #5c8d70;
}


.status-planned {

    background:
        var(--lavender-soft);

    color:
        #806b9c;
}


html[data-theme="dark"] .status-stable {
    color: #a7d8bb;
}


html[data-theme="dark"] .status-planned {
    color: #cdbce5;
}


/* ============================================================
   20. ENTRY MEDIA
   ============================================================ */

.entry-media {

    position: relative;

    margin: 0;

    padding: 8px;

    background:
        var(--white);

    border:
        1px solid var(--line);

    box-shadow:
        0 6px 14px
        rgba(80, 50, 70, 0.08);

    transform:
        rotate(-1.5deg);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}


.entry:hover .entry-media {

    transform:
        rotate(1deg)
        translateY(-3px);

    box-shadow:
        0 10px 20px
        rgba(80, 50, 70, 0.12);
}


.entry-media img {

    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-radius:
        3px;
}


.entry-media-placeholder {

    width: 100%;
    aspect-ratio: 4 / 3;

    display: none;
    align-items: center;
    justify-content: center;

    border-radius:
        3px;

    background:
        linear-gradient(
            135deg,
            var(--rose-soft),
            var(--lavender-soft)
        );

    color:
        var(--rose-dark);

    font-size:
        2.8rem;
}


.entry-media.media-error .entry-media-placeholder {
    display: flex;
}


.entry-media-count {
    position: absolute;

    left: 12px;
    top: 12px;

    padding:
        4px 7px;

    border-radius:
        999px;

    background:
        rgba(52, 38, 55, 0.72);

    color:
        #ffffff;

    font-family:
        var(--font-mono);

    font-size:
        0.54rem;

    line-height:
        1;

    box-shadow:
        0 3px 9px
        rgba(52, 38, 55, 0.15);

    backdrop-filter:
        blur(5px);
}


.media-caption {

    padding:
        7px 3px 2px;

    color:
        var(--ink-faint);

    font-family:
        var(--font-mono);

    font-size:
        0.55rem;

    text-align:
        center;
}


.stamp-badge {

    position: absolute;

    right: -12px;
    bottom: -10px;

    padding:
        5px 8px;

    border:
        1px solid var(--line-dark);

    border-radius:
        4px;

    background:
        var(--paper);

    color:
        var(--rose-dark);

    font-family:
        var(--font-mono);

    font-size:
        0.54rem;

    transform:
        rotate(5deg);
}


/* ============================================================
   21. TAGS
   ============================================================ */

.entry-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin:
        0 0 15px;
}


.project-tag {

    padding:
        4px 8px;

    border:
        1px solid var(--line);

    border-radius:
        999px;

    background:
        var(--paper);

    color:
        var(--ink-faint);

    font-family:
        var(--font-mono);

    font-size:
        0.57rem;
}


/* ============================================================
   22. DETAILS / STACK
   ============================================================ */

.entry-detail {

    margin:
        12px 0 16px;

    border-top:
        1px dashed var(--line-dark);

    border-bottom:
        1px dashed var(--line-dark);
}


.entry-detail summary {

    padding:
        10px 2px;

    cursor:
        pointer;

    color:
        var(--lavender);

    font-family:
        var(--font-mono);

    font-size:
        0.66rem;

    font-weight:
        500;

    list-style:
        none;
}


.entry-detail summary::-webkit-details-marker {
    display: none;
}


.entry-detail summary::before {

    content:
        "＋ ";

    color:
        var(--rose);
}


.entry-detail[open] summary::before {

    content:
        "− ";
}


.code-block {

    margin:
        0 0 14px;

    padding:
        14px;

    overflow-x:
        auto;

    border-radius:
        9px;

    background:
        #2e2633;

    color:
        #f3eaf0;

    font-family:
        var(--font-mono);

    font-size:
        0.65rem;

    line-height:
        1.7;
}


.stack-list {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        6px;

    margin:
        0 0 15px;

    padding:
        0;

    list-style:
        none;
}


.stack-list li {

    padding:
        4px 7px;

    border-radius:
        5px;

    background:
        var(--mint-soft);

    color:
        var(--ink-soft);

    font-family:
        var(--font-mono);

    font-size:
        0.56rem;
}


/* ============================================================
   23. ACTIONS
   ============================================================ */

.entry-actions {

    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;
}


.btn-primary,
.btn-secondary {

    display:
        inline-flex;

    align-items:
        center;
    justify-content:
        center;

    min-height:
        36px;

    padding:
        7px 12px;

    border-radius:
        9px;

    text-decoration:
        none;

    font-size:
        0.73rem;

    font-weight:
        800;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.btn-primary {

    border:
        1px solid var(--rose-soft);

    background:
        var(--rose-soft);

    color:
        var(--rose-dark);
}


.btn-secondary {

    border:
        1px solid var(--line);

    background:
        var(--paper);

    color:
        var(--ink-soft);
}


.btn-primary:hover,
.btn-secondary:hover {

    transform:
        translateY(-2px);

    box-shadow:
        var(--shadow-soft);
}


.entry-hint {

    margin-left:
        3px;

    color:
        var(--ink-faint);

    font-family:
        var(--font-mono);

    font-size:
        0.58rem;
}


/* ============================================================
   24. LOADING
   ============================================================ */

.registry-loading {

    display:
        flex;

    align-items:
        center;
    justify-content:
        center;

    gap:
        9px;

    min-height:
        130px;

    color:
        var(--ink-faint);

    font-family:
        var(--font-mono);

    font-size:
        0.68rem;
}


.loading-sparkle {

    color:
        var(--rose);

    animation:
        loading-spin 1.8s linear infinite;
}


@keyframes loading-spin {

    to {
        transform:
            rotate(360deg);
    }

}


/* ============================================================
   25. EMPTY / NO RESULTS
   ============================================================ */

.no-results {

    padding:
        50px 20px;

    text-align:
        center;

    border:
        1px dashed var(--line-dark);

    border-radius:
        18px;

    background:
        var(--paper-soft);
}


.no-results-icon {

    margin-bottom:
        8px;

    font-size:
        2rem;
}


.no-results h3 {

    margin:
        0 0 5px;

    font-family:
        var(--font-display);

    font-size:
        1.4rem;
}


.no-results p {

    margin:
        0;

    color:
        var(--ink-faint);

    font-size:
        0.82rem;
}


/* ============================================================
   26. FOOTER
   ============================================================ */

.site-footer {

    width:
        min(
            calc(100% - 36px),
            var(--content-width)
        );

    margin:
        0 auto;

    padding:
        24px 0 34px;

    border-top:
        1px solid var(--line);

    display:
        flex;

    align-items:
        center;
    justify-content:
        space-between;

    gap:
        20px;

    color:
        var(--ink-faint);

    font-family:
        var(--font-mono);

    font-size:
        0.62rem;
}


.footer-left {

    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        9px;
}


.footer-flower {
    color:
        var(--rose);
}


.site-footer a {

    color:
        var(--ink-soft);

    text-decoration:
        none;

    transition:
        color var(--transition);
}


.site-footer a:hover {
    color:
        var(--rose-dark);
}


/* ============================================================
   27. FOCUS STATES
   ============================================================ */

:focus-visible {

    outline:
        3px solid
        var(--rose-soft);

    outline-offset:
        3px;
}


/* ============================================================
   28. REVEAL ANIMATION
   ============================================================ */

.reveal {

    animation:
        reveal-up 650ms cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ) both;
}


.eyebrow {
    animation-delay:
        80ms;
}


.wordmark {
    animation-delay:
        150ms;
}


.alias {
    animation-delay:
        220ms;
}


.lede {
    animation-delay:
        290ms;
}


.hero-links {
    animation-delay:
        360ms;
}


.hero-mascot {
    animation-delay:
        250ms;
}


@keyframes reveal-up {

    from {
        opacity: 0;

        transform:
            translateY(18px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* ============================================================
   29. RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 820px) {

    .hero {

        grid-template-columns:
            1fr;

        min-height:
            auto;

        text-align:
            center;

        padding:
            65px 15px 80px;
    }


    .hero-content {

        display:
            flex;

        flex-direction:
            column;

        align-items:
            center;
    }


    .lede {
        max-width:
            620px;
    }


    .hero-mascot {

        order:
            -1;

        width:
            230px;

        height:
            240px;
    }


    .hero-mascot img {

        width:
            190px;

        height:
            220px;
    }


    .hero-mascot::before {

        width:
            200px;

        height:
            190px;
    }


    .mascot-bubble {

        right:
            -12px;
    }


    .desk-card {

        grid-template-columns:
            1fr;
    }


    .desk-note {

        width:
            fit-content;
    }


    .entry-body.has-media {

        grid-template-columns:
            145px
            minmax(0, 1fr);

        gap:
            18px;
    }

}


/* ============================================================
   30. RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 620px) {

    .site-header {

        width:
            min(
                calc(100% - 24px),
                var(--content-width)
            );

        min-height:
            65px;
    }


    .header-status {
        display:
            none;
    }


    .theme-toggle {

        padding:
            7px 9px;
    }


    .theme-toggle-label {
        display:
            none;
    }


    main {

        width:
            min(
                calc(100% - 24px),
                var(--content-width)
            );
    }


    .hero {

        padding:
            45px 4px 65px;
    }


    .wordmark {

        font-size:
            clamp(
                4.7rem,
                24vw,
                7rem
            );
    }


    .hero-links {

        justify-content:
            center;
    }


    .desk {

        margin-bottom:
            55px;
    }


    .desk-card {

        padding:
            28px 22px;
    }


    .registry-head {

        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .workshop-tools {

        align-items:
            stretch;

        flex-direction:
            column;
    }


    .visible-count {
        padding-left:
            3px;
    }


    .notebook-tabs {

        gap:
            6px;
    }


    .tab-btn {

        padding:
            7px 9px;

        font-size:
            0.7rem;
    }


    .tab-divider {

        display:
            none;
    }


    .entry {

        grid-template-columns:
            42px
            1fr;
    }


    .entry-index {

        padding-top:
            20px;

        font-size:
            0.57rem;
    }


    .entry-body {

        padding:
            20px 16px;
    }


    .entry-body.has-media {

        grid-template-columns:
            1fr;
    }


    .entry-media {

        width:
            min(
                190px,
                75%
            );

        margin:
            0 auto 4px;
    }


    .entry-top {

        flex-direction:
            column;

        gap:
            7px;
    }


    .status-tag {

        align-self:
            flex-start;
    }


    .entry-featured::before {

        display:
            none;
    }


    .site-footer {

        width:
            min(
                calc(100% - 24px),
                var(--content-width)
            );

        align-items:
            flex-start;

        flex-direction:
            column;
    }

}


/* ============================================================
   31. REDUCED MOTION
   ============================================================ */

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

    html {
        scroll-behavior:
            auto;
    }


    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }


    .sparkle-particle {
        display:
            none;
    }

}

/* ============================================================
   DXK — SCRAPBOOK PROJECT VIEWER
   ============================================================ */


/* ------------------------------------------------------------
   OVERLAY
   ------------------------------------------------------------ */

.scrapbook-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 220ms ease;
}


.scrapbook-overlay.is-visible {
    opacity: 1;

    pointer-events: auto;
}


.scrapbook-overlay[hidden] {
    display: none;
}


/* ------------------------------------------------------------
   BACKDROP
   ------------------------------------------------------------ */

.scrapbook-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(52, 38, 55, 0.38);

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);
}


/* ------------------------------------------------------------
   WINDOW
   ------------------------------------------------------------ */

.scrapbook-window {
    position: relative;

    z-index: 1;

    width: min(
        920px,
        100%
    );

    max-height:
        min(
            880px,
            calc(100vh - 48px)
        );

    overflow-y: auto;

    outline: none;

    transform:
        translateY(18px)
        scale(0.97)
        rotate(-0.35deg);

    opacity: 0;

    transition:
        transform 260ms cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        opacity 220ms ease;

    scrollbar-width: thin;
}


.scrapbook-overlay.is-visible
.scrapbook-window {

    transform:
        translateY(0)
        scale(1)
        rotate(0deg);

    opacity: 1;
}


/* ------------------------------------------------------------
   PAPER
   ------------------------------------------------------------ */

.scrapbook-paper {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.96),
            rgba(255,248,242,0.98)
        );

    border:
        1px solid
        rgba(166, 125, 132, 0.28);

    border-radius:
        14px 18px 13px 17px;

    box-shadow:
        0 28px 70px
        rgba(45, 28, 44, 0.28),

        0 5px 16px
        rgba(45, 28, 44, 0.10);

    padding:
        34px 38px 28px;

    isolation: isolate;
}


/*
    Very subtle paper texture.
*/

.scrapbook-paper::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    pointer-events: none;

    opacity: 0.30;

    background-image:
        radial-gradient(
            rgba(150, 116, 110, 0.14)
            0.7px,
            transparent 0.7px
        );

    background-size:
        7px 7px;
}


/*
    Decorative corner flower.
*/

.scrapbook-paper::after {

    content: "✿";

    position: absolute;

    right: 26px;
    bottom: 18px;

    font-size: 42px;

    opacity: 0.10;

    transform:
        rotate(14deg);

    pointer-events: none;
}


/* ------------------------------------------------------------
   CLOSE BUTTON
   ------------------------------------------------------------ */

.scrapbook-close {

    position: absolute;

    top: 15px;
    right: 17px;

    z-index: 5;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid
        rgba(166, 125, 132, 0.25);

    border-radius: 50%;

    background:
        rgba(255,255,255,0.76);

    color:
        #8f6877;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    transition:
        transform 160ms ease,
        background 160ms ease,
        color 160ms ease;
}


.scrapbook-close:hover {

    transform:
        rotate(8deg)
        scale(1.08);

    background:
        #fff0f4;

    color:
        #b65d7a;
}


.scrapbook-close:active {

    transform:
        scale(0.94);

}


/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

.scrapbook-header {

    padding-right:
        55px;

    margin-bottom:
        26px;

}


.scrapbook-eyebrow {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    margin-bottom:
        9px;

    font-size:
        0.76rem;

    font-weight:
        700;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}


.scrapbook-eyebrow > span {

    display: inline-flex;

    align-items: center;

    min-height: 26px;

    padding:
        4px 10px;

    border-radius:
        999px;

    background:
        #f7e8ee;

    color:
        #986277;

}


.scrapbook-eyebrow > span:last-child {

    background:
        #edf4e9;

    color:
        #71875e;

}


.scrapbook-eyebrow
.scrapbook-status-planned {

    background:
        #f0ebf7 !important;

    color:
        #8975a4 !important;

}


.scrapbook-title {

    margin:
        0 0 7px;

    color:
        #543f4c;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            2rem,
            5vw,
            3.15rem
        );

    line-height:
        1.05;

    letter-spacing:
        -0.025em;
}


.scrapbook-meta {

    margin:
        0;

    color:
        #927d86;

    font-size:
        0.94rem;

    line-height:
        1.55;
}


/* ------------------------------------------------------------
   CONTENT
   ------------------------------------------------------------ */

.scrapbook-content {

    display:
        flex;

    flex-direction:
        column;

    gap:
        24px;

}


/* ------------------------------------------------------------
   PREVIEW
   ------------------------------------------------------------ */

.scrapbook-media {

    display:
        flex;

    justify-content:
        center;
}


.scrapbook-preview {

    position:
        relative;

    width:
        min(
            100%,
            720px
        );

    margin:
        5px auto 8px;

    padding:
        10px 10px 30px;

    background:
        #fff;

    border:
        1px solid
        rgba(120, 92, 92, 0.14);

    box-shadow:
        0 9px 24px
        rgba(68, 46, 55, 0.13);

    transform:
        rotate(-0.65deg);

    transition:
        transform 180ms ease;
}


.scrapbook-preview:hover {

    transform:
        rotate(0deg)
        translateY(-2px);

}


.scrapbook-preview img {

    display:
        block;

    width:
        100%;

    max-height:
        470px;

    object-fit:
        contain;

    border-radius:
        3px;

    background:
        #f3edf0;
}


.scrapbook-preview figcaption {

    position:
        absolute;

    left:
        0;

    right:
        0;

    bottom:
        7px;

    padding:
        0 14px;

    color:
        #8c747e;

    font-size:
        0.77rem;

    text-align:
        center;

    font-style:
        italic;
}


.scrapbook-preview::after {

    content: "";

    position:
        absolute;

    top:
        -8px;

    left:
        50%;

    width:
        92px;

    height:
        24px;

    transform:
        translateX(-50%)
        rotate(-2deg);

    background:
        rgba(238, 211, 178, 0.58);

    box-shadow:
        0 1px 2px
        rgba(80, 55, 45, 0.06);

}


/* ------------------------------------------------------------
   PREVIEW GALLERY
   ------------------------------------------------------------ */

.scrapbook-gallery {
    width:
        min(
            100%,
            760px
        );
}


.scrapbook-gallery-controls {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        12px;

    margin:
        3px 0 10px;
}


.scrapbook-gallery-arrow {
    width:
        36px;

    height:
        32px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(166, 125, 132, 0.25);

    border-radius:
        9px;

    background:
        #f8edf2;

    color:
        #986277;

    cursor:
        pointer;

    transition:
        transform 150ms ease,
        background 150ms ease;
}


.scrapbook-gallery-arrow:hover {
    transform:
        translateY(-2px);

    background:
        #f3dfe8;
}


.scrapbook-gallery-counter {
    min-width:
        48px;

    color:
        #927d86;

    font-family:
        var(--font-mono);

    font-size:
        0.68rem;

    text-align:
        center;
}


.scrapbook-gallery-thumbs {
    display:
        flex;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;

    margin-bottom:
        7px;
}


.scrapbook-gallery-thumb {
    width:
        82px;

    height:
        58px;

    padding:
        4px;

    border:
        1px solid
        rgba(166, 125, 132, 0.24);

    border-radius:
        8px;

    background:
        #ffffff;

    cursor:
        pointer;

    opacity:
        0.68;

    overflow:
        hidden;

    transition:
        opacity 150ms ease,
        transform 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}


.scrapbook-gallery-thumb:hover,
.scrapbook-gallery-thumb.is-active {
    opacity:
        1;

    transform:
        translateY(-2px);

    border-color:
        #d98ba4;

    box-shadow:
        0 5px 13px
        rgba(181, 102, 131, 0.16);
}


.scrapbook-gallery-thumb img {
    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    border-radius:
        4px;
}


[data-theme="dark"]
.scrapbook-gallery-arrow {
    background:
        #453844;

    border-color:
        rgba(226, 193, 208, 0.16);

    color:
        #e1c8d5;
}


[data-theme="dark"]
.scrapbook-gallery-arrow:hover {
    background:
        #51404e;
}


[data-theme="dark"]
.scrapbook-gallery-counter {
    color:
        #bda9b3;
}


[data-theme="dark"]
.scrapbook-gallery-thumb {
    background:
        #3d3340;

    border-color:
        rgba(226, 193, 208, 0.13);
}


[data-theme="dark"]
.scrapbook-gallery-thumb.is-active,
[data-theme="dark"]
.scrapbook-gallery-thumb:hover {
    border-color:
        #d98ba4;
}


/* ------------------------------------------------------------
   SECTION LABELS
   ------------------------------------------------------------ */

.scrapbook-section-label {

    margin-bottom:
        9px;

    color:
        #a06d7d;

    font-size:
        0.74rem;

    font-weight:
        800;

    letter-spacing:
        0.10em;

    text-transform:
        uppercase;
}


.scrapbook-section-label::before {

    content:
        "✦ ";

}


/* ------------------------------------------------------------
   DESCRIPTION
   ------------------------------------------------------------ */

.scrapbook-description {

    max-width:
        760px;

}


.scrapbook-description p {

    margin:
        0;

    color:
        #66545d;

    font-size:
        1rem;

    line-height:
        1.75;
}


/* ------------------------------------------------------------
   TAGS
   ------------------------------------------------------------ */

.scrapbook-tags {

    padding:
        15px 17px;

    border:
        1px dashed
        rgba(166, 125, 132, 0.35);

    border-radius:
        10px;

    background:
        rgba(250, 241, 244, 0.60);
}


.scrapbook-tag-list {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        7px;
}


.scrapbook-tag-list span {

    display:
        inline-flex;

    padding:
        5px 10px;

    border-radius:
        999px;

    background:
        #f3e6ee;

    color:
        #865d70;

    font-size:
        0.78rem;

    font-weight:
        650;
}


/* ------------------------------------------------------------
   CODE
   ------------------------------------------------------------ */

.scrapbook-code {

    overflow-x:
        auto;

    margin:
        0;

    padding:
        17px 18px;

    border:
        1px solid
        rgba(99, 75, 89, 0.16);

    border-radius:
        10px;

    background:
        #332c38;

    color:
        #f7edf4;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size:
        0.82rem;

    line-height:
        1.65;

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,0.04);
}


/* ------------------------------------------------------------
   STACK
   ------------------------------------------------------------ */

.scrapbook-stack {

    padding:
        16px 18px;

    border-radius:
        10px;

    background:
        #f5f0e8;

    border:
        1px solid
        rgba(158, 132, 102, 0.18);
}


.scrapbook-stack ul {

    display:
        grid;

    gap:
        8px;

    margin:
        0;

    padding:
        0;

    list-style:
        none;
}


.scrapbook-stack li {

    position:
        relative;

    padding-left:
        22px;

    color:
        #685b58;

    font-size:
        0.9rem;

    line-height:
        1.5;
}


.scrapbook-stack li::before {

    content:
        "🌱";

    position:
        absolute;

    left:
        0;

    top:
        0;
}


/* ------------------------------------------------------------
   ACTIONS
   ------------------------------------------------------------ */

.scrapbook-actions {

    display:
        flex;

    flex-wrap:
        wrap;

    align-items:
        center;

    gap:
        9px;

    padding-top:
        4px;
}


.scrapbook-action {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        42px;

    padding:
        9px 17px;

    border-radius:
        10px;

    text-decoration:
        none;

    font-size:
        0.86rem;

    font-weight:
        750;

    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease;
}


.scrapbook-action:hover {

    transform:
        translateY(-2px);

}


.scrapbook-action-primary {

    background:
        #d98ba4;

    color:
        white;

    box-shadow:
        0 5px 12px
        rgba(181, 102, 131, 0.20);
}


.scrapbook-action-primary:hover {

    background:
        #cc7894;

    box-shadow:
        0 7px 17px
        rgba(181, 102, 131, 0.27);
}


.scrapbook-action-secondary {

    background:
        #f1e8ee;

    color:
        #77586a;

}


.scrapbook-action-secondary:hover {

    background:
        #e8dce5;

}


/* ------------------------------------------------------------
   HINT
   ------------------------------------------------------------ */

.scrapbook-hint {

    flex-basis:
        100%;

    padding-top:
        3px;

    color:
        #8c7980;

    font-size:
        0.78rem;

}


.scrapbook-hint code {

    padding:
        2px 5px;

    border-radius:
        4px;

    background:
        #eee6eb;

    color:
        #76596a;

    font-family:
        monospace;
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

.scrapbook-footer {

    margin-top:
        30px;

    padding-top:
        17px;

    border-top:
        1px dashed
        rgba(150, 116, 126, 0.27);

    color:
        #aa8f99;

    font-size:
        0.73rem;

    text-align:
        center;

    letter-spacing:
        0.05em;
}


/* ------------------------------------------------------------
   CARD INTERACTION
   ------------------------------------------------------------ */

.entry[role="button"] {

    cursor:
        pointer;

}


.entry[role="button"]:focus-visible {

    outline:
        3px solid
        rgba(208, 131, 157, 0.42);

    outline-offset:
        4px;

    border-radius:
        10px;

}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (
    max-width: 700px
) {

    .scrapbook-overlay {

        padding:
            10px;

        align-items:
            flex-start;

    }


    .scrapbook-window {

        max-height:
            calc(100vh - 20px);

        margin-top:
            10px;

    }


    .scrapbook-paper {

        padding:
            28px 20px 23px;

        border-radius:
            12px;

    }


    .scrapbook-title {

        font-size:
            2rem;

    }


    .scrapbook-preview {

        padding-bottom:
            27px;

    }


    .scrapbook-preview img {

        max-height:
            320px;

    }


    .scrapbook-action {

        flex:
            1 1 auto;

    }

}


@media (
    max-width: 430px
) {

    .scrapbook-header {

        padding-right:
            35px;

    }


    .scrapbook-eyebrow {

        font-size:
            0.67rem;

    }


    .scrapbook-title {

        font-size:
            1.72rem;

    }


    .scrapbook-description p {

        font-size:
            0.91rem;

    }

}


/* ------------------------------------------------------------
   DARK / DUSK THEME
   ------------------------------------------------------------ */

[data-theme="dark"]
.scrapbook-paper {

    background:
        linear-gradient(
            135deg,
            #302936,
            #29232e
        );

    border-color:
        rgba(220, 182, 197, 0.16);

    box-shadow:
        0 30px 75px
        rgba(0, 0, 0, 0.46);

}


[data-theme="dark"]
.scrapbook-paper::before {

    opacity:
        0.16;

}


[data-theme="dark"]
.scrapbook-title {

    color:
        #f1dce5;

}


[data-theme="dark"]
.scrapbook-meta {

    color:
        #bda9b3;

}


[data-theme="dark"]
.scrapbook-eyebrow > span {

    background:
        #493441;

    color:
        #e7bfd0;

}


[data-theme="dark"]
.scrapbook-eyebrow > span:last-child {

    background:
        #374338;

    color:
        #c1d4b5;

}


[data-theme="dark"]
.scrapbook-eyebrow
.scrapbook-status-planned {

    background:
        #3e374b !important;

    color:
        #cdbfe0 !important;

}


[data-theme="dark"]
.scrapbook-close {

    background:
        rgba(65, 53, 64, 0.9);

    border-color:
        rgba(226, 193, 208, 0.16);

    color:
        #dcb9c9;

}


[data-theme="dark"]
.scrapbook-close:hover {

    background:
        #4a3541;

    color:
        #f0bfd2;

}


[data-theme="dark"]
.scrapbook-description p {

    color:
        #d0c0c8;

}


[data-theme="dark"]
.scrapbook-tags {

    background:
        rgba(75, 53, 65, 0.40);

    border-color:
        rgba(221, 174, 194, 0.22);

}


[data-theme="dark"]
.scrapbook-tag-list span {

    background:
        #4a3543;

    color:
        #e1becd;

}


[data-theme="dark"]
.scrapbook-stack {

    background:
        #39352f;

    border-color:
        rgba(219, 197, 157, 0.15);

}


[data-theme="dark"]
.scrapbook-stack li {

    color:
        #d0c7bc;

}


[data-theme="dark"]
.scrapbook-action-secondary {

    background:
        #453844;

    color:
        #e1c8d5;

}


[data-theme="dark"]
.scrapbook-action-secondary:hover {

    background:
        #51404e;

}


[data-theme="dark"]
.scrapbook-hint {

    color:
        #b9a7af;

}


[data-theme="dark"]
.scrapbook-hint code {

    background:
        #40343e;

    color:
        #e0c1cf;

}


[data-theme="dark"]
.scrapbook-footer {

    border-color:
        rgba(219, 179, 195, 0.18);

    color:
        #aa929e;

}


/* ------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------ */

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

    .scrapbook-overlay,
    .scrapbook-window,
    .scrapbook-preview,
    .scrapbook-close,
    .scrapbook-action {

        transition:
            none !important;

    }

}

/* ============================================================
   32. POLISH — MASCOT IDLE + MEDIA FALLBACKS
   ============================================================ */

.hero-mascot img {
    animation:
        mascot-bob 4.8s ease-in-out infinite;
}


@keyframes mascot-bob {

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

    45% {
        transform:
            translateY(-6px)
            rotate(-1.2deg);
    }

    70% {
        transform:
            translateY(-2px)
            rotate(0.6deg);
    }

}


.hero-mascot:hover img {
    animation: none;
}


/* Card media error (already triggered by onerror in JS) */

.entry-media.media-error img {
    display: none;
}


.entry-media.media-error
.entry-media-placeholder {
    display: flex;
}


/* Scrapbook preview fallback */

.scrapbook-preview.preview-error {
    min-height: 180px;
}


.scrapbook-preview-fallback {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 200px;

    border-radius: 3px;

    background:
        linear-gradient(
            135deg,
            var(--rose-soft),
            var(--lavender-soft)
        );

    color: var(--rose-dark);

    font-size: 3.2rem;
}


[data-theme="dark"]
.scrapbook-preview-fallback {
    background:
        linear-gradient(
            135deg,
            #5a3646,
            #403653
        );

    color: #e49aae;
}


/* Tiny hover lift on featured badge */

.entry-featured::before {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}


.entry-featured:hover::before {
    transform:
        rotate(-3deg)
        scale(1.05);
}


/* Soft focus ring for scrapbook cards */

.entry[role="button"]:focus-visible {
    outline:
        3px solid
        rgba(208, 131, 157, 0.42);

    outline-offset: 4px;
}


/* ------------------------------------------------------------
   REDUCED MOTION — EXTRA
   ------------------------------------------------------------ */

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

    .hero-mascot img {
        animation: none !important;
    }

}



/* ============================================================
   33. SCROLLBAR — soft paper look
   ============================================================ */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color:
        var(--rose-soft)
        transparent;
}


/* Chromium / Safari / Edge */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}


*::-webkit-scrollbar-track {
    background: transparent;
}


*::-webkit-scrollbar-thumb {
    background:
        var(--rose-soft);

    border-radius: 999px;

    border: 2px solid transparent;
    background-clip: padding-box;
}


*::-webkit-scrollbar-thumb:hover {
    background:
        var(--rose);

    border: 2px solid transparent;
    background-clip: padding-box;
}


*::-webkit-scrollbar-corner {
    background: transparent;
}


/* Scrapbook modal keeps a slightly softer thumb */
.scrapbook-window::-webkit-scrollbar-thumb {
    background:
        var(--lavender-soft);
}


.scrapbook-window::-webkit-scrollbar-thumb:hover {
    background:
        var(--lavender);
}



/* ============================================================
   34. PROJECT GALLERY — MOBILE POLISH
   ============================================================ */

@media (max-width: 430px) {

    .scrapbook-gallery-thumb {
        width: 66px;
        height: 48px;
    }

}


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

    .scrapbook-gallery-arrow,
    .scrapbook-gallery-thumb {
        transition: none !important;
    }

}
