:root {
    --bg: #fff5f9;
    --bg-strong: #ffe0ec;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-solid: #ffffff;
    --text: #4c2738;
    --muted: #8c5a70;
    --pink: #ff8ab7;
    --pink-dark: #ef4e86;
    --red: #e8425f;
    --cream: #fffafc;
    --line: rgba(239, 78, 134, 0.24);
    --shadow: 0 22px 60px rgba(239, 78, 134, 0.18);
    --radius: 24px;
    --font: "Trebuchet MS", "Comic Sans MS", "Segoe UI", system-ui, sans-serif;
}

body.dark-theme {
    --bg: #2c1722;
    --bg-strong: #442033;
    --panel: rgba(58, 30, 45, 0.9);
    --panel-solid: #3b2030;
    --text: #fff4f8;
    --muted: #f0b3ca;
    --pink: #ff9ac2;
    --pink-dark: #ff6aa5;
    --red: #ff7188;
    --cream: #331925;
    --line: rgba(255, 154, 194, 0.28);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font);
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.95) 0 7px, transparent 8px),
        radial-gradient(circle at 82% 18%, rgba(255, 138, 183, 0.38) 0 12px, transparent 13px),
        radial-gradient(circle at 72% 78%, rgba(232, 66, 95, 0.18) 0 18px, transparent 19px),
        linear-gradient(135deg, var(--bg), var(--bg-strong));
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        linear-gradient(45deg, transparent 45%, rgba(255, 138, 183, 0.14) 46% 54%, transparent 55%),
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px);
    background-size: 54px 54px, 32px 32px;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel-solid) 86%, transparent);
    backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.theme-toggle {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    box-shadow: 0 10px 24px rgba(239, 78, 134, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--pink-dark);
    font-weight: 900;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pink);
    color: white;
}

.top-nav {
    display: none;
    gap: 6px;
    padding: 6px;
}

.top-nav a {
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
}

.top-nav a:hover {
    background: var(--bg-strong);
    color: var(--pink-dark);
}

.theme-toggle,
.button,
.copy-button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.theme-toggle {
    padding: 0 14px;
}

.theme-toggle:hover,
.button:hover,
.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(239, 78, 134, 0.18);
}

.section {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.hero {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding-top: 34px;
}

.hero-card,
.text-card,
.profile-card,
.social-grid a,
.project-card,
.donate-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-card {
    width: min(940px, 100%);
    display: grid;
    gap: 26px;
    padding: 26px;
    border-radius: 36px;
    overflow: hidden;
}

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 260px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 138, 183, 0.36), rgba(255, 255, 255, 0.76)),
        url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Hello%20Kitty%20Breakfast%20Set.jpg") center / cover;
}

.hero-art::before,
.hero-art::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 78px;
    height: 42px;
    border-radius: 999px 999px 18px 18px;
    background: var(--pink);
    opacity: 0.9;
}

.hero-art::before {
    left: 24px;
    transform: rotate(-18deg);
}

.hero-art::after {
    right: 24px;
    transform: rotate(18deg);
}

.hero-image {
    width: min(78%, 340px);
    padding: 18px;
    border: 8px solid rgba(255, 255, 255, 0.82);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 18px 28px rgba(76, 39, 56, 0.18));
}

.hero-copy {
    align-self: center;
    text-align: center;
}

.kicker {
    margin: 0 0 10px;
    color: var(--pink-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(48px, 15vw, 104px);
    line-height: 0.88;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(32px, 9vw, 58px);
    line-height: 0.95;
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.tagline,
.text-card p,
.donate-intro,
.project-card p,
.site-footer {
    color: var(--muted);
    line-height: 1.65;
}

.tagline {
    max-width: 520px;
    margin: 0 auto 22px;
    font-size: 19px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    text-decoration: none;
}

.button.primary {
    background: var(--pink-dark);
    color: white;
}

.button.secondary,
.theme-toggle,
.copy-button {
    background: var(--panel-solid);
}

.float-img {
    position: absolute;
    display: none;
    width: 120px;
    border-radius: 24px;
    opacity: 0.84;
    filter: drop-shadow(0 16px 24px rgba(239, 78, 134, 0.2));
    animation: floaty 5s ease-in-out infinite;
}

.float-img-left {
    left: 0;
    top: 80px;
}

.float-img-right {
    right: 0;
    bottom: 90px;
    animation-delay: -2s;
}

.section-heading {
    margin-bottom: 22px;
    text-align: center;
}

.about-grid,
.project-grid {
    display: grid;
    gap: 18px;
}

.profile-card,
.text-card,
.donate-card {
    border-radius: var(--radius);
}

.profile-card {
    margin: 0;
    overflow: hidden;
}

.profile-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.profile-card figcaption {
    padding: 14px 18px;
    color: var(--pink-dark);
    font-weight: 900;
    text-align: center;
}

.text-card {
    padding: 24px;
}

.facts-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.facts-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg) 62%, transparent);
}

.facts-list span,
.wallet-label {
    color: var(--pink-dark);
    font-weight: 900;
}

.social-grid {
    display: grid;
    gap: 14px;
}

.social-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 78px;
    padding: 18px;
    border-radius: 22px;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-grid a:hover,
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(239, 78, 134, 0.22);
}

.social-grid span {
    font-size: 20px;
    font-weight: 900;
}

.social-grid small {
    color: var(--muted);
    font-weight: 800;
    text-align: right;
}

.project-card {
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.project-card div {
    padding: 20px;
}

.donate-card {
    padding: 24px;
}

.wallet-list {
    display: grid;
    gap: 14px;
}

.wallet-row {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
}

.wallet-row code {
    display: block;
    max-width: 100%;
    margin-top: 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-button {
    padding: 0 16px;
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 28px 18px 44px;
    text-align: center;
    font-weight: 800;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 20;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--pink-dark);
    color: white;
    box-shadow: var(--shadow);
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floaty {
    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-14px) rotate(4deg);
    }
}

@media (min-width: 700px) {
    .top-nav {
        display: flex;
    }

    .hero-card {
        grid-template-columns: 0.95fr 1.05fr;
        padding: 32px;
    }

    .hero-copy {
        text-align: left;
    }

    .tagline {
        margin-left: 0;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .about-grid {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: stretch;
    }

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

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

    .wallet-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

@media (min-width: 980px) {
    .float-img {
        display: block;
    }
}
