/* fredoka-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Fredoka';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/fredoka-v17-latin-regular.woff2') format('woff2');
}

/* quicksand-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/quicksand-v37-latin-regular.woff2') format('woff2');
}

/* special-elite-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Special Elite';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/special-elite-v20-latin-regular.woff2') format('woff2'); 
}

/* Retro CRT Overlay */
.crt-filter {
    filter: contrast(1.08) brightness(1.02) saturate(1.15);
}

    .crt-filter::before {
        content: " ";
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.04));
        z-index: 9999;
        background-size: 100% 3px, 6px 100%;
        pointer-events: none;
    }

body {
    background-color: #FFF0F3;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #FFE1E6;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #FFA1B0;
    border-radius: 3px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.floating-squirrel {
    animation: float 4s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in-out forwards;
}

/* Rich text saved from the admin editor */
.prose > * + * {
    margin-top: 1em;
}

.prose h1 {
    font-size: 1.875rem;
    font-weight: 700;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.prose ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.prose ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.prose blockquote {
    border-left: 4px solid #FFA1B0;
    padding-left: 1rem;
    font-style: italic;
}

.prose pre {
    background: #1e293b;
    color: #f1f5f9;
    padding: 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
}

.prose a {
    color: var(--color-cozyPink-600);
    text-decoration: underline;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.prose h4 {
    font-weight: 700;
}

.prose hr {
    border-color: var(--color-slate-200);
}

.prose img {
    max-width: 100%;
    border-radius: 0.75rem;
}

.prose :not(pre) > code {
    padding: 0.1em 0.35em;
    border-radius: 0.375rem;
    background: var(--color-slate-100);
    font-size: 0.9em;
}

.prose table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.prose th,
.prose td {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--color-slate-200);
    text-align: left;
}

.prose th {
    background: var(--color-slate-100);
}

/* Social links on the home page profile card */
.social-tile {
    --brand: #FF7088;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid var(--color-cozyPink-200);
    background-color: var(--color-cozyPink-50);
    color: var(--color-cozyPink-500);
    font-size: 1.125rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.social-tile:hover,
.social-tile:focus-visible {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #FFF;
    transform: translateY(-3px) rotate(-4deg);
    box-shadow: 0 6px 14px rgb(0 0 0 / 0.18);
}

/* Corner badge on links flagged 18+ in the admin page */
.social-tile-adult {
    position: absolute;
    top: -0.4rem;
    right: -0.4rem;
    padding: 0.05rem 0.25rem;
    border-radius: 9999px;
    border: 1.5px solid var(--card-bg, #FFF);
    background-color: #E11D48;
    color: #FFF;
    font-family: ui-monospace, monospace;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Secondary share buttons in the gallery share modal */
.share-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-slate-200);
    background-color: var(--color-slate-50);
    color: var(--color-slate-600);
    font-size: 0.6875rem;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.share-option:hover,
.share-option:focus-visible {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #FFF;
}

/* Holiday Horror Countdown */
/* ============================================================
   HOLIDAY HORROR COUNTDOWN
   Dressed for Christmas all year: a snowy night up top, then the
   movies as Christmas cards. It keeps its own colors in every theme.
============================================================ */
.yule-hero {
    position: relative;
    overflow: hidden;
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
    border-bottom: 0;
    color: #F8FAFC;
    background:
        radial-gradient(ellipse at 50% 120%, rgb(220 38 38 / 0.35), transparent 60%),
        linear-gradient(#0B2A1C, #14532D);
}

/* Two layers of snow drifting down at different speeds */
.yule-hero::before,
.yule-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.yule-hero::before {
    background-image:
        radial-gradient(circle, rgb(255 255 255 / 0.9) 0 1.5px, transparent 2px),
        radial-gradient(circle, rgb(255 255 255 / 0.7) 0 1px, transparent 1.5px);
    background-size: 7rem 7rem, 4.5rem 4.5rem;
    background-position: 0 0, 2rem 1rem;
    animation: yule-snow 14s linear infinite;
}

/* A drift of snow along the bottom edge */
.yule-hero::after {
    top: auto;
    height: 1.5rem;
    background:
        radial-gradient(ellipse 2.5rem 1.5rem at 50% 100%, #FFF 98%, transparent 100%) 0 100% / 4rem 1.5rem repeat-x,
        radial-gradient(ellipse 3.5rem 1.1rem at 50% 100%, #FFF 98%, transparent 100%) 1.5rem 100% / 6.5rem 1.5rem repeat-x;
}

@keyframes yule-snow {
    to {
        background-position: 0 7rem, 2rem 5.5rem;
    }
}

.yule-hero > * {
    position: relative;
}

/* A string of lights hung across the top */
.yule-lights {
    position: absolute;
    inset: 0 0 auto;
    height: 2.25rem;
    border-top: 2px solid #052E16;
    background:
        radial-gradient(circle at 50% 0.85rem, #EF4444 0 0.38rem, transparent 0.42rem) 0 0 / 8rem 100% repeat-x,
        radial-gradient(circle at 50% 1.1rem, #FACC15 0 0.38rem, transparent 0.42rem) 2rem 0 / 8rem 100% repeat-x,
        radial-gradient(circle at 50% 0.85rem, #38BDF8 0 0.38rem, transparent 0.42rem) 4rem 0 / 8rem 100% repeat-x,
        radial-gradient(circle at 50% 1.1rem, #4ADE80 0 0.38rem, transparent 0.42rem) 6rem 0 / 8rem 100% repeat-x;
    filter: drop-shadow(0 0 5px rgb(255 255 255 / 0.55));
    animation: yule-twinkle 2.4s ease-in-out infinite alternate;
}

@keyframes yule-twinkle {
    from {
        opacity: 0.65;
    }
    to {
        opacity: 1;
    }
}

.yule-kicker {
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FCA5A5;
}

.yule-title {
    font-family: var(--font-title);
    font-weight: 700;
    color: #FFF;
    text-shadow: 0 2px 0 rgb(5 46 22 / 0.6);
}

.yule-lede {
    color: #D1FAE5;
}

/* The countdown is a gift tag on a loop of string */
.yule-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 1.75rem;
    border-radius: 0.25rem 0.5rem 0.5rem 0.25rem;
    font-family: var(--font-title);
    font-size: 0.875rem;
    font-weight: 700;
    color: #7F1D1D;
    background-color: #FEF3C7;
    box-shadow: 0 3px 8px rgb(0 0 0 / 0.35);
    transform: rotate(-2deg);
    clip-path: polygon(0.75rem 0, 100% 0, 100% 100%, 0.75rem 100%, 0 50%);
}

.yule-tag::before {
    content: "";
    position: absolute;
    left: 0.85rem;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background-color: #14532D;
    transform: translateY(-50%);
}

.yule-tag strong {
    font-size: 1.25rem;
    line-height: 1;
    color: #B91C1C;
}

/* The picker is a wrapped present: red paper with a ribbon round it */
.yule-gift {
    position: relative;
    padding: 1.5rem 1.25rem;
    border-radius: 0.5rem;
    text-align: center;
    color: #FFF;
    background-color: #B91C1C;
    background-image:
        linear-gradient(90deg, transparent calc(50% - 0.9rem), #FACC15 calc(50% - 0.9rem), #FACC15 calc(50% + 0.9rem), transparent calc(50% + 0.9rem)),
        radial-gradient(circle, rgb(255 255 255 / 0.22) 0 2px, transparent 2.5px);
    background-size: auto, 1.5rem 1.5rem;
    box-shadow: 0 8px 16px -10px rgb(127 29 29 / 0.8);
}

.yule-gift > * {
    position: relative;
}

.yule-gift-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #FACC15;
    border-radius: 9999px;
    font-family: var(--font-title);
    font-size: 0.875rem;
    font-weight: 700;
    color: #FFF;
    background-color: #14532D;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.yule-gift-btn:hover,
.yule-gift-btn:focus-visible {
    background-color: #166534;
    transform: translateY(-2px);
}

.yule-gift-result {
    display: inline-block;
    min-height: 1.25rem;
    margin-top: 0.75rem;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #7F1D1D;
    background-color: #FEF3C7;
}

.yule-gift-result:empty {
    display: none;
}

/* Each movie is a Christmas card with a candy-cane edge */
.horror-movie {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #E7D9B8;
    border-radius: 0.5rem;
    color: #1C1917;
    background-color: #FFFBF0;
    box-shadow: 0 1px 2px rgb(68 64 60 / 0.25), 0 8px 14px -10px rgb(68 64 60 / 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horror-movie::before {
    content: "";
    flex-shrink: 0;
    height: 0.5rem;
    background: repeating-linear-gradient(135deg, #DC2626 0 0.6rem, #FFF 0.6rem 1.2rem);
}

.horror-movie-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 40rem) {
    .horror-movie-body {
        flex-direction: row;
    }
}

.horror-movie:hover {
    transform: translateY(-2px);
}

.horror-movie-poster {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 2.25rem;
    background-color: #14532D;
}

/* The rank hangs on the poster as a tree ornament */
.horror-movie-rank {
    position: absolute;
    top: 0.9rem;
    left: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-family: var(--font-title);
    font-size: 0.875rem;
    font-weight: 700;
    color: #FFF;
    background: radial-gradient(circle at 32% 28%, #F87171, #B91C1C 62%, #7F1D1D);
    box-shadow: 0 3px 6px rgb(0 0 0 / 0.45);
}

.horror-movie-rank::before {
    content: "";
    position: absolute;
    top: -0.35rem;
    left: 50%;
    width: 0.7rem;
    height: 0.45rem;
    border-radius: 2px 2px 0 0;
    background-color: #FACC15;
    transform: translateX(-50%);
}

.horror-movie-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: #14532D;
}

.horror-movie-title a:hover {
    color: #B91C1C;
}

.horror-movie-score {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #57534E;
}

.horror-movie-verdict {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.6;
    color: #44403C;
}

.horror-movie-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #B91C1C;
}

.horror-movie-link:hover {
    text-decoration: underline;
}

/* The picked movie lights up gold */
.horror-movie.is-picked {
    border-color: #FACC15;
    box-shadow: 0 0 0 3px #FACC15, 0 0 22px rgb(250 204 21 / 0.55);
}

html.dark .yule-gift,
html.dark .horror-movie {
    filter: brightness(0.88);
}

@media (prefers-reduced-motion: reduce) {
    .yule-hero::before,
    .yule-lights {
        animation: none;
    }

    .horror-movie,
    .yule-gift-btn {
        transition: none;
    }
}

/* Seasonal decorations */
.xmas-only,
.birthday-only {
    display: none;
}

html.christmas .xmas-only,
html.birthday .birthday-only {
    display: inline;
}

html.christmas .no-xmas,
html.birthday .santa-hat {
    display: none;
}

/* Year-round easter eggs */
.easter-egg-dialog {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgb(2 6 23 / 0.7);
    animation: fadeIn 0.2s ease-out forwards;
}

.easter-egg-dialog-card {
    width: 100%;
    max-width: 26rem;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 2px solid var(--color-cozyPink-200);
    background: #FFF;
    color: var(--color-slate-700);
    text-align: center;
    box-shadow: 0 25px 50px rgb(0 0 0 / 0.3);
}

html.dark .easter-egg-dialog-card {
    background: var(--card-bg);
}

.easter-egg-dialog-card h2 {
    font-family: var(--font-title);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-slate-800);
}

.easter-egg-dialog-body {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.easter-egg-dialog-time {
    margin-bottom: 0.5rem;
    font-family: ui-monospace, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-cozyPink-500);
}

.easter-egg-dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.easter-egg-dialog-actions button {
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-slate-200);
    background: var(--color-slate-50);
    color: var(--color-slate-700);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.easter-egg-dialog-actions button:hover {
    background: var(--color-slate-100);
}

.easter-egg-dialog-actions button.is-primary {
    border-color: transparent;
    background: var(--color-cozyPink-400);
    color: #FFF;
}

.easter-egg-dialog-actions button.is-primary:hover {
    background: var(--color-cozyPink-500);
}

/* Christmas easter eggs */
.easter-egg-toast {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 3100;
    max-width: calc(100vw - 3rem);
    padding: 0.625rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgb(255 255 255 / 0.15);
    background: #0F172A;
    color: #FBCFE8;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgb(0 0 0 / 0.3);
    animation: fadeIn 0.3s ease-in-out forwards;
}

#snow-pile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 31;
    height: 0;
    background: #FFF;
    box-shadow: inset 0 -10px 20px rgb(148 163 184 / 0.25);
    pointer-events: none;
    transition: height 10s linear;
}

/* Lumpy top edge of the snow */
#snow-pile::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 1px);
    height: 28px;
    background: radial-gradient(ellipse 50px 28px at 50% 100%, #FFF 98%, transparent) 0 0 / 90px 28px repeat-x;
}

#snow-pile.is-full {
    height: 20vh;
}

.snow-plow-squirrel {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 32;
    font-size: 3rem;
    line-height: 1.2;
    pointer-events: none;
}

.cocoa-marshmallow,
.birthday-confetti {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3050;
    pointer-events: none;
}

.cocoa-marshmallow {
    width: 18px;
    height: 14px;
    border-radius: 5px;
    background: #FFF;
    border: 1px solid #F8D7DF;
    box-shadow: inset -2px -2px 3px rgb(244 180 196 / 0.6);
}

.birthday-confetti {
    width: 8px;
    height: 12px;
    border-radius: 2px;
}

.krampus-visitor {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 45;
    width: 110px;
    pointer-events: none;
}

/* A badly animated costume, on purpose */
.krampus-visitor svg {
    display: block;
    transform-origin: 50% 100%;
    animation: krampus-shuffle 0.7s steps(2) infinite alternate;
}

@keyframes krampus-shuffle {
    from {
        transform: rotate(-5deg);
    }

    to {
        transform: rotate(5deg) translateY(-4px);
    }
}

.krampus-coal {
    position: fixed;
    bottom: 10px;
    z-index: 46;
    width: 34px;
    height: 26px;
    border-radius: 45% 55% 50% 40%;
    background: radial-gradient(circle at 35% 30%, #4B5563, #111827 70%);
    border: 1px solid #6B7280;
    box-shadow: 0 3px 6px rgb(0 0 0 / 0.35);
    cursor: pointer;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.krampus-coal:hover,
.krampus-coal:focus-visible {
    outline: 2px solid #F87171;
    outline-offset: 2px;
}

#cocoa-mug {
    margin-left: 0.25rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#cocoa-mug svg {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -2px;
}

#cocoa-mug:hover {
    transform: scale(1.3) rotate(-6deg);
}

#snow-layer,
#snow-day-layer {
    position: fixed;
    inset: 0;
    z-index: 30;
    overflow: hidden;
    pointer-events: none;
}

#snow-layer span,
#snow-day-layer span {
    position: absolute;
    top: -12px;
    width: var(--flake-size);
    height: var(--flake-size);
    border-radius: 50%;
    background: #FFF;
    box-shadow: 0 0 3px rgb(100 116 139 / 0.5);
    opacity: 0.85;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    to {
        transform: translate(var(--flake-drift), 105vh);
    }
}

#christmas-lights {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 34px;
    display: flex;
    gap: 26px;
    padding: 0 13px;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(#14532D, #14532D) top / 100% 2px no-repeat;
}

#christmas-lights span {
    position: relative;
    flex: none;
    width: 9px;
    height: 13px;
    margin-top: 5px;
    border-radius: 50% 50% 48% 48%;
    color: #FF3B47;
    background-color: currentColor;
    box-shadow: 0 0 6px 2px currentColor, 0 0 16px 4px currentColor;
    animation: light-twinkle ease-in-out infinite;
}

#christmas-lights span:nth-child(4n + 2) {
    color: #FFD54A;
}

#christmas-lights span:nth-child(4n + 3) {
    color: #35E06F;
}

#christmas-lights span:nth-child(4n + 4) {
    color: #4FC3FF;
}

/* Easter egg: each bulb can be popped, with a larger area to click */
#christmas-lights span {
    pointer-events: auto;
    cursor: pointer;
}

#christmas-lights span::after {
    content: "";
    position: absolute;
    inset: -5px -8px -8px;
}

#christmas-lights span.is-popped {
    color: #6B7280;
    opacity: 0.45;
    box-shadow: none;
    animation: none;
}

.lights-repair-squirrel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 2px;
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: none;
}

/* Socket joining each bulb to the wire */
#christmas-lights span::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: #14532D;
}

@keyframes light-twinkle {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 6px 2px currentColor, 0 0 16px 4px currentColor;
    }

    50% {
        opacity: 0.35;
        box-shadow: 0 0 2px 0 currentColor;
    }
}

@media (prefers-reduced-motion: reduce) {
    #christmas-lights span {
        animation: none;
    }
}

/* Soundboard card: slides out from behind the profile, then comes around to cover it */
#soundboard-card {
    visibility: hidden;
    z-index: 0;
}

#soundboard-card.is-open {
    visibility: visible;
    z-index: 20;
    animation: soundboard-card-in 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

#soundboard-card.is-closing {
    visibility: visible;
    animation: soundboard-card-out 0.6s ease-in-out both;
}

@keyframes soundboard-card-in {
    0%, 45% {
        z-index: 0;
    }

    0% {
        transform: none;
    }

    45% {
        transform: translate(58%, -3%) rotate(7deg);
    }

    46%, 100% {
        z-index: 20;
    }

    100% {
        transform: none;
    }
}

@keyframes soundboard-card-out {
    0%, 50% {
        z-index: 20;
    }

    0% {
        transform: none;
    }

    50% {
        transform: translate(58%, -3%) rotate(7deg);
    }

    51%, 100% {
        z-index: 0;
    }

    100% {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #soundboard-card.is-open {
        animation: none;
    }

    #soundboard-card.is-closing {
        visibility: hidden;
        animation: none;
    }
}

/* ============================================================
   THEME COLORS
   The compiled Tailwind utilities read these variables, so changing
   them restyles every page, including hover states and gradients.
============================================================ */
html.christmas {
    --page-bg: #F2F8F3;
    --color-cozyPink-50: #EEF7F0;
    --color-cozyPink-100: #DCEFE1;
    --color-cozyPink-200: #BFE0C7;
    --color-cozyPink-300: #E59AA2;
    --color-cozyPink-400: #C8202F;
    --color-cozyPink-500: #AD1727;
    --color-cozyPink-600: #15803D;
}

html.christmas body {
    background-color: var(--page-bg);
}

html.dark {
    color-scheme: dark;
    --page-bg: #181220;
    --card-bg: #241B2D;

    /* bg-slate-900 and bg-slate-950 stay dark: they sit behind white text */
    --color-slate-50: #2C2236;
    --color-slate-100: #33283E;
    --color-slate-200: #44364F;
    --color-slate-300: #5E4F69;
    --color-slate-400: #A394AD;
    --color-slate-500: #B9ACC2;
    --color-slate-600: #CFC4D6;
    --color-slate-700: #E1D8E6;
    --color-slate-800: #F2EBF5;
    --color-gray-100: #33283E;
    --color-gray-200: #44364F;
    --color-gray-600: #CFC4D6;
    --color-gray-700: #E1D8E6;
    --color-gray-900: #F2EBF5;
    --color-gray-950: #F2EBF5;

    --color-cozyPink-50: rgb(255 112 136 / 0.1);
    --color-cozyPink-100: rgb(255 112 136 / 0.18);
    --color-cozyPink-200: rgb(255 112 136 / 0.3);
    --color-cozyPink-300: rgb(255 112 136 / 0.5);
    --color-cozyPink-500: #FF6078;
    --color-cozyPink-600: #FF8FA3;
    --color-squirrelBrown-500: #E0B595;
    --color-squirrelBrown-600: #E0B595;

    --color-amber-50: rgb(245 158 11 / 0.1);
    --color-amber-100: rgb(245 158 11 / 0.18);
    --color-amber-200: rgb(245 158 11 / 0.3);
    --color-amber-300: rgb(245 158 11 / 0.45);
    --color-amber-700: #FCD34D;
    --color-amber-800: #FCD34D;
    --color-emerald-50: rgb(16 185 129 / 0.1);
    --color-emerald-100: rgb(16 185 129 / 0.18);
    --color-emerald-200: rgb(16 185 129 / 0.3);
    --color-emerald-300: rgb(16 185 129 / 0.45);
    --color-emerald-800: #6EE7B7;
    --color-purple-50: rgb(168 85 247 / 0.1);
    --color-purple-100: rgb(168 85 247 / 0.18);
    --color-purple-200: rgb(168 85 247 / 0.3);
    --color-purple-300: rgb(168 85 247 / 0.45);
    --color-sky-50: rgb(14 165 233 / 0.1);
    --color-sky-100: rgb(14 165 233 / 0.18);
    --color-sky-200: rgb(14 165 233 / 0.3);
    --color-sky-300: rgb(14 165 233 / 0.45);
    --color-sky-700: #7DD3FC;
    --color-sky-800: #7DD3FC;
    --color-rose-50: rgb(244 63 94 / 0.1);
    --color-rose-100: rgb(244 63 94 / 0.18);
    --color-rose-200: rgb(244 63 94 / 0.3);
    --color-rose-300: rgb(244 63 94 / 0.45);
    --color-rose-700: #FDA4AF;
    --color-rose-800: #FDA4AF;
    --color-blue-50: rgb(59 130 246 / 0.1);
    --color-blue-100: rgb(59 130 246 / 0.18);
    --color-blue-700: #93C5FD;
    --color-red-50: rgb(239 68 68 / 0.1);
    --color-red-100: rgb(239 68 68 / 0.18);
    --color-orange-50: rgb(249 115 22 / 0.1);
    --color-orange-100: rgb(249 115 22 / 0.18);
    --color-pink-100: rgb(236 72 153 / 0.18);
    --color-pink-700: #F9A8D4;
    --color-yellow-100: rgb(234 179 8 / 0.12);
}

/* Dark Christmas: green-tinted night sky with brighter festive accents */
html.dark.christmas {
    --page-bg: #0F1A15;
    --card-bg: #18271F;
    --color-slate-50: #1F3127;
    --color-slate-100: #263A2E;
    --color-slate-200: #34493C;
    --color-slate-300: #4C6355;
    --color-cozyPink-50: rgb(34 197 94 / 0.1);
    --color-cozyPink-100: rgb(34 197 94 / 0.18);
    --color-cozyPink-200: rgb(34 197 94 / 0.3);
    --color-cozyPink-300: rgb(248 113 113 / 0.55);
    --color-cozyPink-400: #DC2626;
    --color-cozyPink-500: #F87171;
    --color-cozyPink-600: #4ADE80;
}

html.dark body {
    background-color: var(--page-bg);
}

/* These reuse variables that also color text or buttons, so they are set directly */
html.dark .bg-white,
html.dark .hover\:bg-white:hover {
    background-color: var(--card-bg);
}

html.dark .bg-white\/95,
html.dark .bg-white\/90,
html.dark .bg-white\/85,
html.dark .bg-white\/70 {
    background-color: color-mix(in srgb, var(--card-bg) 92%, transparent);
}

html.dark .to-white {
    --tw-gradient-to: transparent;
}

html.dark .via-white {
    --tw-gradient-via: transparent;
}

html.dark .text-slate-900 {
    color: #F2EBF5;
}

html.dark .text-purple-600,
html.dark .text-purple-700,
html.dark .hover\:text-purple-600:hover,
html.dark .hover\:text-purple-700:hover,
html.dark .group-hover\:text-purple-600:is(:where(.group):hover *) {
    color: #D8B4FE;
}

html.dark .text-emerald-600,
html.dark .text-emerald-700,
html.dark .hover\:text-emerald-700:hover,
html.dark .group-hover\:text-emerald-700:is(:where(.group):hover *) {
    color: #6EE7B7;
}

html.dark .text-amber-600,
html.dark .hover\:text-amber-700:hover {
    color: #FCD34D;
}

html.dark .text-rose-600,
html.dark .hover\:text-rose-700:hover {
    color: #FDA4AF;
}

html.dark .text-blue-600,
html.dark .hover\:text-blue-700:hover {
    color: #93C5FD;
}

html.dark .text-sky-600 {
    color: #7DD3FC;
}

html.dark .text-red-600,
html.dark .text-orange-600 {
    color: #FDBA74;
}

html.dark .prose pre {
    background: #120D18;
}

html.christmas .custom-scrollbar::-webkit-scrollbar-track {
    background: var(--color-cozyPink-100);
}

html.christmas .custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--color-cozyPink-400);
}

html.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: var(--page-bg);
}

html.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
}
/* ============================================================
   BENTO LAYOUT
   Floating rounded cards on a soft page background. Colors come from
   the theme variables above, so dark and Christmas modes just work.
============================================================ */
.bento-card {
    background-color: var(--card-bg, #FFF);
    border: 1px solid var(--color-cozyPink-100);
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px 0 rgb(177 117 68 / 0.12), 0 1px 1px 0 rgb(248 67 82 / 0.06);
}

.bento-card-hover {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento-card-hover:hover {
    transform: translateY(-3px);
    border-color: var(--color-cozyPink-200);
    box-shadow: 0 10px 24px -12px rgb(248 67 82 / 0.35);
}

/* Inner tiles sit on the page tint inside a card */
.bento-tile {
    background-color: var(--color-cozyPink-50);
    border: 1px solid var(--color-cozyPink-100);
    border-radius: 1rem;
}

/* Card heading row: title on the left, "view all" link on the right */
.bento-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-cozyPink-500);
    border-bottom: 1px solid var(--color-cozyPink-200);
    padding-bottom: 1px;
    transition: border-color 0.2s ease, gap 0.2s ease;
}

.bento-link:hover {
    border-color: currentColor;
    gap: 0.6rem;
}

/* Inner pages: one big content card; its page header bleeds to the card edges */
.bento-content {
    padding: 1.25rem;
    overflow: hidden;
}

.page-hero {
    margin: -1.25rem -1.25rem 1.75rem;
    padding: 2rem 1.25rem 1.75rem;
    border-bottom: 1px solid var(--color-cozyPink-100);
}

@media (min-width: 40rem) {
    .bento-content { padding: 2rem; }
    .page-hero { margin: -2rem -2rem 2rem; padding: 2.25rem 2rem 2rem; }
}

.bento-link-purple { color: #9333EA; border-color: #E9D5FF; }
.bento-link-emerald { color: #059669; border-color: #A7F3D0; }
html.dark .bento-link-purple { color: #D8B4FE; border-color: rgb(168 85 247 / 0.4); }
html.dark .bento-link-emerald { color: #6EE7B7; border-color: rgb(16 185 129 / 0.4); }

/* ============================================================
   SPONSOR AD STACK
   Cards share one grid cell, so the deck is as tall as its tallest
   card; the ones behind peek out below, tilted.
============================================================ */
.shout-stack-deck {
    display: grid;
    perspective: 900px;
    margin-bottom: 1.25rem;
}

/* Each ad is a business card: thick cream stock, the sponsor's color down one edge.
   Card stock keeps its own ink colors in every theme. */
.shout-card {
    --card-accent: #E8517A;
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* Business cards are 3.5 by 2 inches; a wordy ad just makes a taller card */
    aspect-ratio: 7 / 4;
    padding: 1rem 1.1rem 0.9rem 1.6rem;
    overflow: hidden;
    border-radius: 4px;
    color: #44403C;
    background-color: #FFFDF6;
    background-image:
        linear-gradient(135deg, rgb(255 255 255 / 0.8), transparent 40%, rgb(120 113 108 / 0.07)),
        repeating-linear-gradient(90deg, rgb(120 113 108 / 0.03) 0 1px, transparent 1px 3px);
    box-shadow: 0 1px 1px rgb(68 64 60 / 0.3), 0 8px 14px -10px rgb(68 64 60 / 0.5);
    transform-origin: 50% 100%;
    transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.35s ease;
}

/* The colored band printed down the left edge */
.shout-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.6rem;
    background-color: var(--card-accent);
}

/* The cards underneath sit a little askew, the way a dropped stack does */
.shout-card[data-depth="0"] {
    z-index: 4;
}

.shout-card[data-depth="1"] {
    z-index: 3;
    transform: translate(5px, 7px) rotate(-3deg);
}

.shout-card[data-depth="2"] {
    z-index: 2;
    transform: translate(-4px, 13px) rotate(2.5deg);
}

.shout-card[data-depth="3"] {
    z-index: 1;
    opacity: 0;
    transform: translate(0, 13px) rotate(0deg);
}

/* Only blank card edges show from underneath, never stray bits of print */
.shout-card:not([data-depth="0"]) > * {
    visibility: hidden;
}

.shout-card-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid color-mix(in srgb, var(--card-accent) 45%, transparent);
}

/* The sponsor's "logo" */
.shout-card-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1.5px solid var(--card-accent);
    border-radius: 9999px;
    font-size: 1.3rem;
    line-height: 1;
}

.shout-card-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1C1917;
}

.shout-card-role {
    display: block;
    margin-top: 0.1rem;
    font-family: ui-monospace, monospace;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--card-accent);
}

/* The contact line along the bottom of the card */
.shout-card-contact {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: ui-monospace, monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--card-accent) 85%, #000);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.shout-card-contact:hover,
.shout-card-contact:focus-visible {
    text-decoration-color: currentColor;
}

/* The top card flips up and away before it drops to the back */
.shout-card.is-flipping {
    z-index: 5;
    opacity: 0;
    transform: translateY(-14px) rotateX(70deg) scale(0.96);
    transition: transform 0.38s ease-in, opacity 0.38s ease-in;
}

.shout-copy p + p,
.shout-copy p + ul,
.shout-copy p + ol,
.shout-copy ul + p,
.shout-copy ol + p {
    margin-top: 0.5rem;
}

.shout-copy ul {
    list-style: disc;
    padding-left: 1.1rem;
}

.shout-copy ol {
    list-style: decimal;
    padding-left: 1.1rem;
}

.shout-copy {
    flex: 1;
    font-size: 0.75rem;
    line-height: 1.6;
}

.shout-copy a {
    color: color-mix(in srgb, var(--card-accent) 85%, #000);
    text-decoration: underline;
}

.shout-copy strong {
    color: #1C1917;
}

.shout-stack-control {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    color: var(--color-slate-500);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.shout-stack-control:hover,
.shout-stack-control:focus-visible {
    background-color: var(--color-cozyPink-50);
    color: var(--color-cozyPink-500);
}

.shout-stack-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: var(--color-cozyPink-200);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.shout-stack-dot[aria-current="true"] {
    width: 1.25rem;
    background-color: var(--color-cozyPink-400);
}

.art-caption-description p + p {
    margin-top: 0.375rem;
}

@media (prefers-reduced-motion: reduce) {
    .shout-card,
    .shout-card.is-flipping,
    .shout-stack-dot {
        transition: none;
    }
}

/* ============================================================
   HOME PAGE PAPER GOODS
   The cards inside the home page tiles are drawn as things on a desk.
   Paper keeps its own ink colors in every theme, so none of these
   read the theme variables for text; dark mode only dims them a little.
============================================================ */

/* --- Featured projects: blueprint sheets, tinted with the category color in --bp --- */
.blueprint-card {
    --bp: #0369A1;
    --bp-line: rgb(255 255 255 / 0.6);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: 0.375rem;
    color: #FFF;
    background-color: var(--bp);
    background-image:
        radial-gradient(circle at 25% 0%, rgb(255 255 255 / 0.16), transparent 55%),
        linear-gradient(rgb(255 255 255 / 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.2) 1px, transparent 1px),
        linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px),
        linear-gradient(rgb(2 6 23 / 0.22), rgb(2 6 23 / 0.22));
    background-size: auto, 4rem 4rem, 4rem 4rem, 0.8rem 0.8rem, 0.8rem 0.8rem, auto;
    background-position: 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px, 0 0;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.25);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

/* The sheet's border frame */
.blueprint-card::before {
    content: "";
    position: absolute;
    inset: 0.4rem;
    border: 1px solid var(--bp-line);
    pointer-events: none;
}

.blueprint-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--bp) 80%, #000);
}

.blueprint-card > * {
    position: relative;
}

.blueprint-label,
.blueprint-stamp {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.35;
    color: rgb(255 255 255 / 0.82);
}

.blueprint-stamp {
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--bp-line);
    color: #FFF;
}

.blueprint-title {
    font-family: var(--font-title);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #FFF;
}

.blueprint-title a {
    text-decoration: underline dashed transparent 1px;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.2s ease;
}

.blueprint-card:hover .blueprint-title a {
    text-decoration-color: var(--bp-line);
}

.blueprint-notes {
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgb(255 255 255 / 0.9);
}

/* The logo sits in a drafting circle with centre lines running through it */
.blueprint-icon {
    position: relative;
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 1.5px dashed #FFF;
    background-color: color-mix(in srgb, var(--bp) 85%, #000);
    color: #FFF;
}

.blueprint-icon::before,
.blueprint-icon::after {
    content: "";
    position: absolute;
    background-color: var(--bp-line);
}

.blueprint-icon::before {
    top: 50%;
    left: -0.5rem;
    right: -0.5rem;
    height: 1px;
}

.blueprint-icon::after {
    left: 50%;
    top: -0.5rem;
    bottom: -0.5rem;
    width: 1px;
}

.blueprint-icon > * {
    position: relative;
    z-index: 1;
    width: 1.5rem;
    height: 1.5rem;
    margin: auto;
    border-radius: 9999px;
    background-color: color-mix(in srgb, var(--bp) 85%, #000);
}

/* The title block along the bottom edge of the sheet */
.blueprint-titleblock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bp-line);
}

.blueprint-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    border: 1px solid #FFF;
    border-radius: 0.25rem;
    color: #FFF;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.blueprint-btn:hover,
.blueprint-btn:focus-visible {
    background-color: #FFF;
    color: var(--bp);
}

/* --- Recent articles: newspaper clippings --- */
.news-clipping {
    --ink: #1C1917;
    --newsprint: #F4F0E4;
    position: relative;
    display: flex;
    filter: drop-shadow(0 1px 1px rgb(68 64 60 / 0.3)) drop-shadow(0 6px 8px rgb(68 64 60 / 0.18));
    transform: rotate(-0.7deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-clipping:nth-child(even) {
    transform: rotate(0.6deg);
}

.news-clipping:hover,
.news-clipping:focus-within {
    transform: rotate(0deg) translateY(-2px);
}

/* A strip of tape holding the clipping down */
.news-clipping::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    left: 50%;
    z-index: 1;
    width: 4.5rem;
    height: 1.25rem;
    background-color: rgb(253 230 138 / 0.6);
    border-left: 1px dashed rgb(120 113 108 / 0.35);
    border-right: 1px dashed rgb(120 113 108 / 0.35);
    transform: translateX(-50%) rotate(-2deg);
}

.news-clipping:nth-child(even)::before {
    left: 22%;
    transform: translateX(-50%) rotate(3deg);
}

/* Cut out by hand, so no edge is quite straight */
.news-clipping-paper {
    flex: 1;
    min-width: 0;
    padding: 1.1rem 1.25rem;
    color: var(--ink);
    background-color: var(--newsprint);
    background-image:
        linear-gradient(rgb(120 113 108 / 0.07), transparent 30%, rgb(120 113 108 / 0.09)),
        repeating-linear-gradient(0deg, rgb(120 113 108 / 0.035) 0 1px, transparent 1px 3px);
    clip-path: polygon(0.4% 3%, 11% 0.5%, 27% 2.2%, 46% 0.2%, 63% 2.4%, 82% 0.6%, 99.6% 2.6%, 100% 34%, 99.1% 66%, 99.8% 97.5%, 81% 99.6%, 60% 97.6%, 38% 99.8%, 17% 97.8%, 0.5% 99.4%, 1% 62%, 0% 30%);
}

.news-clipping:nth-child(even) .news-clipping-paper {
    clip-path: polygon(0% 1%, 18% 2.6%, 39% 0.4%, 58% 2.2%, 79% 0.3%, 100% 2.4%, 99.2% 31%, 100% 64%, 99.4% 99.5%, 76% 97.6%, 55% 99.7%, 33% 97.9%, 12% 99.8%, 0.6% 97.4%, 0% 68%, 0.9% 36%);
}

/* Printed photos: black and white with a halftone dot screen, until hovered */
.news-clipping-photo {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgb(28 25 23 / 0.55);
    background-color: #E7E2D3;
}

.news-clipping-photo img {
    filter: grayscale(1) contrast(1.15) sepia(0.12);
    transition: filter 0.4s ease;
}

.news-clipping-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgb(28 25 23 / 0.28) 0.6px, transparent 0.9px);
    background-size: 3px 3px;
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.news-clipping:hover .news-clipping-photo img {
    filter: none;
}

.news-clipping:hover .news-clipping-photo::after {
    opacity: 0;
}

.news-clipping-dateline,
.news-clipping-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #57534E;
}

.news-clipping-dateline {
    margin-bottom: 0.4rem;
    padding-bottom: 0.3rem;
    border-bottom: 3px double rgb(28 25 23 / 0.6);
}

.news-clipping-headline {
    margin-bottom: 0.35rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.news-clipping:hover .news-clipping-headline a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.news-clipping-copy {
    margin-bottom: 0.6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #44403C;
}

.news-clipping-footer {
    padding-top: 0.4rem;
    border-top: 1px solid rgb(28 25 23 / 0.35);
}

.news-clipping-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #9F1239;
}

.news-clipping-link:hover {
    text-decoration: underline;
}

/* --- Paw & Hand reviews: sticky notes --- */
.sticky-note {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.4rem 1.1rem 0.9rem;
    color: #422006;
    background: linear-gradient(176deg, #FFF7A6 0%, #FDEA6B 100%);
    /* The loose bottom corner curls up off the page */
    border-bottom-right-radius: 3.5rem 0.5rem;
    box-shadow: 0 1px 1px rgb(66 32 6 / 0.2), 0 12px 14px -10px rgb(66 32 6 / 0.45);
    transform: rotate(-1.1deg);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.sticky-note:nth-child(3n + 2) {
    background: linear-gradient(176deg, #FFD9E4 0%, #FFB8CC 100%);
    transform: rotate(0.9deg);
}

.sticky-note:nth-child(3n + 3) {
    background: linear-gradient(176deg, #D9F7C4 0%, #B9EC9A 100%);
    transform: rotate(-0.5deg);
}

/* The sticky strip along the top */
.sticky-note::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 0.9rem;
    background: linear-gradient(rgb(66 32 6 / 0.09), rgb(66 32 6 / 0.02));
}

.sticky-note:hover,
.sticky-note:focus-visible {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 1px 1px rgb(66 32 6 / 0.2), 0 18px 20px -12px rgb(66 32 6 / 0.5);
}

.sticky-note-tag {
    padding: 0.1rem 0.45rem;
    border: 1px solid rgb(66 32 6 / 0.45);
    border-radius: 9999px;
    font-family: ui-monospace, monospace;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sticky-note-good {
    color: #065F46;
}

.sticky-note-bad {
    color: #9F1239;
}

.sticky-note-title {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
}

/* Jotted down by hand */
.sticky-note-verdict {
    font-family: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Sans MS", cursive;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #57350F;
}

/* --- Writings and chapter serials: sheets of lined paper --- */
.lined-paper {
    --rule: 1.625rem;
    --accent: #7E22CE;
    position: relative;
    display: flex;
    flex-direction: column;
    /* One blank line above the writing, then every row of text sits on a rule */
    padding: var(--rule) 0.9rem var(--rule) 3rem;
    color: #1E293B;
    background-color: #FFFEF7;
    background-image:
        linear-gradient(90deg, transparent 2.3rem, rgb(239 68 68 / 0.5) 2.3rem, rgb(239 68 68 / 0.5) calc(2.3rem + 1px), transparent calc(2.3rem + 1px)),
        repeating-linear-gradient(transparent 0, transparent calc(var(--rule) - 1px), rgb(59 130 246 / 0.32) calc(var(--rule) - 1px), rgb(59 130 246 / 0.32) var(--rule));
    border-radius: 2px;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.18), 0 6px 10px -8px rgb(15 23 42 / 0.35);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.lined-paper-emerald {
    --accent: #047857;
}

/* Punched holes down the margin */
.lined-paper::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2.3rem;
    background: radial-gradient(circle, rgb(15 23 42 / 0.28) 0 0.26rem, transparent 0.3rem) center / 100% calc(var(--rule) * 2) repeat-y;
}

.lined-paper:hover,
.lined-paper:focus-visible {
    transform: translateY(-3px) rotate(-0.6deg);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.18), 0 14px 18px -12px rgb(15 23 42 / 0.45);
}

.lined-paper-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: ui-monospace, monospace;
    font-size: 0.625rem;
    line-height: var(--rule);
    color: #64748B;
}

.lined-paper-kicker {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
}

.lined-paper-rating {
    margin-right: 0.25rem;
    padding: 0.05rem 0.3rem;
    border: 1px solid currentColor;
    border-radius: 9999px;
    font-weight: 700;
    color: #BE123C;
}

.lined-paper-title {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: var(--rule);
    color: #1E293B;
    transition: color 0.2s ease;
}

.lined-paper:hover .lined-paper-title {
    color: var(--accent);
}

html.dark .news-clipping {
    filter: brightness(0.88) drop-shadow(0 6px 8px rgb(0 0 0 / 0.4));
}

html.dark .sticky-note,
html.dark .lined-paper {
    filter: brightness(0.88);
}

/* --- The same paper goods at full size, on the pages that list everything --- */
.blueprint-card-lg {
    padding: 1.75rem;
}

.blueprint-card-lg .blueprint-icon {
    width: 3.25rem;
    height: 3.25rem;
}

.blueprint-card-lg .blueprint-title {
    font-size: 1.3rem;
}

.blueprint-card-lg .blueprint-notes {
    font-size: 0.8rem;
}

.news-clipping-lg .news-clipping-paper {
    padding: 1.4rem 1.5rem;
}

.news-clipping-lg .news-clipping-headline {
    font-size: 1.4rem;
}

.news-clipping-lg .news-clipping-copy {
    font-size: 0.85rem;
}

.sticky-note-lg {
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: 13rem;
    padding: 1.75rem 1.4rem 1.1rem;
}

.sticky-note-lg .sticky-note-title {
    font-size: 1.15rem;
    line-height: 1.3;
}

.sticky-note-lg .sticky-note-verdict {
    font-size: 0.85rem;
}

/* What was reviewed, written above the title */
.sticky-note-item {
    font-family: ui-monospace, monospace;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7C4A12;
}

/* A small print of the cover stuck onto the note */
.sticky-note-photo {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border: 3px solid #FFF;
    background-color: #FFF;
    box-shadow: 0 2px 4px rgb(66 32 6 / 0.35);
    object-fit: cover;
    transform: rotate(3deg);
}

.sticky-note-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px dashed rgb(66 32 6 / 0.3);
    font-family: ui-monospace, monospace;
    font-size: 0.6875rem;
    font-weight: 700;
}

.sticky-note:hover .sticky-note-more {
    text-decoration: underline;
}

.lined-paper-lg {
    padding-right: 1.25rem;
}

.lined-paper-lg .lined-paper-title {
    font-size: 1.15rem;
}

/* The opening lines of the piece, one row of text to each rule */
.lined-paper-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.8rem;
    line-height: var(--rule);
    color: #334155;
}

.lined-paper-hidden {
    font-family: ui-monospace, monospace;
    font-size: 0.6875rem;
    line-height: var(--rule);
    color: #BE123C;
}

/* Sits one blank line below the writing */
.lined-paper-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: var(--rule);
    font-family: ui-monospace, monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: var(--rule);
    color: #64748B;
}

.lined-paper-more {
    color: var(--accent);
}

.lined-paper:hover .lined-paper-more {
    text-decoration: underline;
}

/* --- Artwork: instant photos, with the title written on the wide bottom border --- */
.polaroid {
    position: relative;
    display: block;
    padding: 0.75rem 0.75rem 0;
    color: #1E293B;
    background-color: #FCFBF6;
    background-image: linear-gradient(135deg, rgb(255 255 255 / 0.9), transparent 45%, rgb(120 113 108 / 0.06));
    border-radius: 3px;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.25), 0 10px 18px -10px rgb(15 23 42 / 0.45);
    transform: rotate(-1.6deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.polaroid:nth-child(3n + 2) {
    transform: rotate(1.2deg);
}

.polaroid:nth-child(3n + 3) {
    transform: rotate(-0.6deg);
}

.polaroid:hover,
.polaroid:focus-visible {
    z-index: 1;
    transform: rotate(0deg) translateY(-4px) scale(1.02);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.25), 0 20px 26px -14px rgb(15 23 42 / 0.5);
}

/* The square print, a little darker at its edges like developed film */
.polaroid-photo {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #1E293B;
}

.polaroid-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(125deg, rgb(255 255 255 / 0.22), transparent 38%);
    box-shadow: inset 0 0 18px rgb(15 23 42 / 0.35);
    pointer-events: none;
}

.polaroid-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 4.25rem;
    padding: 0.5rem 0.25rem 0.75rem;
    text-align: center;
}

/* Written on with a marker */
.polaroid-title {
    max-width: 100%;
    overflow: hidden;
    font-family: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Sans MS", cursive;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1E293B;
}

.polaroid-note {
    font-family: ui-monospace, monospace;
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94A3B8;
}

.polaroid-zoom {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    z-index: 1;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    color: #FFF;
    background-color: rgb(15 23 42 / 0.75);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.polaroid:hover .polaroid-zoom,
.polaroid:focus-visible .polaroid-zoom {
    opacity: 1;
}

html.dark .news-clipping-lg {
    filter: brightness(0.88) drop-shadow(0 6px 8px rgb(0 0 0 / 0.4));
}

html.dark .polaroid,
html.dark .shout-card {
    filter: brightness(0.88);
}

@media (prefers-reduced-motion: reduce) {
    .blueprint-card,
    .news-clipping,
    .sticky-note,
    .lined-paper,
    .polaroid {
        transition: none;
    }
}
