:root {
    --pink: #c82a73;
    --orange: #ff8e3c;
    --yellow: #ffd84f;
    --cream: #fff8e7;
    --text: #4c1330;
    --shadow: 0 22px 60px rgba(123, 20, 77, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 25%),
        radial-gradient(circle at bottom right, rgba(255, 215, 79, 0.28), transparent 30%),
        linear-gradient(135deg, #ff9f41, #ff6f61 45%, #db3b86 100%);
}

.shell {
    width: min(1100px, calc(100% - 28px));
    margin: 0 auto;
    padding: 26px 0 56px;
    position: relative;
    z-index: 2;
}

.hero,
.panel {
    border-radius: 28px;
    background: rgba(255, 248, 231, 0.9);
    border: 1px solid rgba(76, 19, 48, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero {
    animation: shellBob 4.6s infinite ease-in-out;
}

.panel {
    animation: shellBobAlt 5.2s infinite ease-in-out;
}

body.page-background-checker .hero,
body.page-background-checker .panel {
    animation: none;
}

.hero {
    padding: 34px;
}

.nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

.nav-pill {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(76, 19, 48, 0.12);
}

.nav-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.34), rgba(255,255,255,0.05));
    transform: translateX(-120%);
}

.nav-pill--pulse {
    animation: navPulse 1.2s infinite ease-in-out;
}

.nav-pill--pulse::after {
    animation: shimmer 1.4s infinite linear;
}

.nav-pill--spin {
    transform-origin: center;
    animation: navTilt 1.5s infinite ease-in-out;
}

.nav-pill--spin::after {
    animation: shimmer 1.8s infinite linear;
}

.nav-pill--bounce {
    animation: navBounce 0.9s infinite ease-in-out;
}

.nav-pill--bounce::after {
    animation: shimmer 1.2s infinite linear;
}

.nav-pill--calm {
    animation: none;
}

.nav-pill--calm::after {
    display: none;
}

.eyebrow {
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: rgba(76, 19, 48, 0.7);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    line-height: 0.96;
}

.lead {
    margin: 18px 0 0;
    max-width: 60ch;
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-grid,
.panel-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: start;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.button-row a {
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 700;
}

.button-row .primary {
    background: var(--pink);
    color: var(--cream);
}

.button-row .secondary {
    background: rgba(255, 255, 255, 0.58);
    color: var(--text);
}

.media-stack,
.photo-grid {
    display: grid;
    gap: 12px;
}

.chaos-stack {
    position: relative;
}

.chaos-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.chaos-orbit {
    position: absolute;
    width: clamp(90px, 12vw, 180px);
    border-radius: 22px;
    border: 5px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 18px 40px rgba(76, 19, 48, 0.22);
    opacity: 0.2;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
}

.chaos-orbit--one {
    top: 6vh;
    left: 4vw;
    animation-name: driftOne, fadePulse;
    animation-duration: 10s, 3.4s;
}

.chaos-orbit--two {
    top: 18vh;
    right: 6vw;
    animation-name: driftTwo, fadePulse;
    animation-duration: 9s, 2.9s;
}

.chaos-orbit--three {
    bottom: 10vh;
    left: 8vw;
    animation-name: driftThree, fadePulse;
    animation-duration: 11s, 4.1s;
}

.chaos-orbit--four {
    top: 42vh;
    left: 38vw;
    width: clamp(72px, 9vw, 140px);
    animation-name: driftFour, fadePulse;
    animation-duration: 8s, 2.4s;
}

.chaos-orbit--five {
    top: 70vh;
    right: 18vw;
    width: clamp(82px, 10vw, 150px);
    animation-name: driftFive, fadePulse;
    animation-duration: 9.5s, 3s;
}

.chaos-orbit--six {
    top: 8vh;
    left: 54vw;
    width: clamp(78px, 10vw, 146px);
    animation-name: driftSix, fadePulse;
    animation-duration: 7.8s, 2.6s;
}

.photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-stack img,
.photo-grid img {
    width: 100%;
    display: block;
    border-radius: 18px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.55);
}

.media-stack img {
    aspect-ratio: 4 / 3;
}

.photo-grid img {
    aspect-ratio: 1 / 1;
}

.panel {
    margin-top: 20px;
    padding: 28px;
}

.panel p,
.panel li {
    line-height: 1.7;
}

.checklist {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.checklist li,
.joke-list li {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
}

.joke-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.status {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
}

.footer {
    margin-top: 20px;
    text-align: center;
    color: rgba(76, 19, 48, 0.82);
}

.chaos-ribbon {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.chaos-ribbon span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--pink);
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px rgba(76, 19, 48, 0.12);
    animation: ribbonDance 1.3s infinite ease-in-out;
}

.chaos-ribbon span:nth-child(2) {
    animation-delay: 0.2s;
}

.chaos-ribbon span:nth-child(3) {
    animation-delay: 0.4s;
}

.chaos-float {
    position: absolute;
    width: 120px;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 12px 20px rgba(76, 19, 48, 0.18));
}

.chaos-float--left {
    top: -28px;
    left: -18px;
    animation: floatLeft 2.2s infinite ease-in-out, fadePulse 2.4s infinite ease-in-out;
}

.chaos-float--right {
    bottom: -30px;
    right: -18px;
    animation: floatRight 1.8s infinite ease-in-out, fadePulse 2.1s infinite ease-in-out;
}

@media (max-width: 820px) {
    .hero-grid,
    .panel-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .chaos-float {
        width: 88px;
    }

    .chaos-float--left {
        left: -6px;
    }

    .chaos-float--right {
        right: -6px;
    }
}

@keyframes shimmer {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes navPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes navTilt {
    0%, 100% { transform: rotate(0deg) scale(1); }
    30% { transform: rotate(-4deg) scale(1.03); }
    70% { transform: rotate(4deg) scale(1.03); }
}

@keyframes navBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.18; }
    50% { opacity: 0.82; }
}

@keyframes ribbonDance {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-4deg) scale(1.05); }
    50% { transform: rotate(4deg) scale(1.08); }
    75% { transform: rotate(-2deg) scale(1.03); }
}

@keyframes floatLeft {
    0%, 100% { transform: translate(0, 0) rotate(-6deg); }
    50% { transform: translate(18px, 14px) rotate(8deg); }
}

@keyframes floatRight {
    0%, 100% { transform: translate(0, 0) rotate(8deg); }
    50% { transform: translate(-20px, -16px) rotate(-8deg); }
}

@keyframes driftOne {
    0% { transform: translate(0, 0) rotate(-8deg) scale(0.92); }
    100% { transform: translate(18vw, 10vh) rotate(9deg) scale(1.08); }
}

@keyframes driftTwo {
    0% { transform: translate(0, 0) rotate(10deg) scale(0.94); }
    100% { transform: translate(-16vw, 16vh) rotate(-11deg) scale(1.06); }
}

@keyframes driftThree {
    0% { transform: translate(0, 0) rotate(-4deg) scale(0.95); }
    100% { transform: translate(26vw, -18vh) rotate(8deg) scale(1.1); }
}

@keyframes driftFour {
    0% { transform: translate(0, 0) rotate(4deg) scale(0.9); }
    100% { transform: translate(18vw, -16vh) rotate(-10deg) scale(1.12); }
}

@keyframes driftFive {
    0% { transform: translate(0, 0) rotate(-9deg) scale(0.9); }
    100% { transform: translate(-22vw, -22vh) rotate(10deg) scale(1.08); }
}

@keyframes driftSix {
    0% { transform: translate(0, 0) rotate(7deg) scale(0.92); }
    100% { transform: translate(-14vw, 26vh) rotate(-12deg) scale(1.08); }
}

@keyframes shellBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0.3deg); }
}

@keyframes shellBobAlt {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(7px) rotate(-0.25deg); }
}
