@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;500;700;900&display=swap");

@font-face {
    font-family: "Demon Stars";
    src: url("fonts/DemonStars.woff2") format("woff2"),
         url("fonts/DemonStars.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg: #f8dce9;
    --bg2: #fff6fa;
    --panel: #fff9fb;
    --panel2: #ffe8f1;
    --ink: #24121c;
    --muted: #866774;
    --chrome1: #623548;
    --chrome2: #d45f98;
    --pink: #f05fa2;
    --pink2: #ff9ccd;
    --line: #e7bfd2;
    --shadow: rgba(157, 69, 110, 0.18);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--ink);
    font-family: "Zapf Chancery", "Apple Chancery", "URW Chancery L", "Brush Script MT", cursive;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.55), transparent 20%),
        radial-gradient(circle at top right, rgba(240,95,162,0.18), transparent 18%),
        radial-gradient(circle at bottom right, rgba(255,255,255,0.16), transparent 20%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
    background-image: radial-gradient(rgba(0,0,0,0.16) 0.6px, transparent 0.8px);
    background-size: 4px 4px;
    mix-blend-mode: multiply;
}

.bg-layer,
.sparkle-bg,
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.bg-layer {
    z-index: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.15), transparent 20%),
        radial-gradient(circle at 75% 25%, rgba(240,95,162,0.09), transparent 16%);
}

.sparkle-bg {
    z-index: 1;
    opacity: 0.10;
    background:
        radial-gradient(circle, rgba(255,255,255,0.9) 0 1px, transparent 1.4px) 0 0 / 64px 64px,
        radial-gradient(circle, rgba(255,214,232,0.95) 0 1px, transparent 1.4px) 22px 18px / 72px 72px;
}

.grain {
    z-index: 2;
    opacity: 0.10;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.03),
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 3px
        );
    mix-blend-mode: soft-light;
}

.page {
    position: relative;
    z-index: 3;
    width: min(1800px, calc(100% - 16px));
    margin: 0 auto;
    padding: 8px 0 20px;
}

.topnav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 6px 0 10px;
    font-size: 1rem;
}

.topnav a {
    color: #7d5870;
    text-decoration: none;
    text-transform: lowercase;
}

.topnav a:hover {
    color: var(--pink);
    text-decoration: underline;
}

.hero {
    position: relative;
    min-height: 420px;
    padding: 12px 18px 8px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(62, 31, 47, 0.98), rgba(112, 58, 90, 0.96), rgba(62, 31, 47, 0.98));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 18px 40px rgba(157, 69, 110, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero-date {
    position: absolute;
    left: 24px;
    top: 16px;
    font-size: 0.7rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.84);
    z-index: 4;
}

.hero-subtitle {
    position: absolute;
    left: 24px;
    bottom: 14px;
    font-size: 0.68rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.84);
    z-index: 4;
}

.hero-burst {
    position: relative;
    min-height: 360px;
}

.hero-burst img {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.hero-bg {
    top: -18px;
    left: -40px;
    width: min(1450px, 120vw);
    opacity: 0.99;
    filter:
        drop-shadow(0 20px 34px rgba(0,0,0,0.55))
        saturate(1.12)
        contrast(1.08);
}

.hero-decal {
    top: 34px;
    left: 24px;
    width: 240px;
    transform: rotate(-9deg);
    z-index: 2;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.48));
}

.hero-title {
    top: 72px;
    left: 110px;
    width: min(1000px, 92vw);
    z-index: 3;
    transform: rotate(-7deg);
    filter:
        drop-shadow(0 5px 0 #c64e8d)
        drop-shadow(0 18px 28px rgba(0,0,0,0.55));
}

.homepage-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 18px;
    margin-top: 16px;
    align-items: start;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.paper {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.08)),
        linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
    border: 1px solid rgba(220, 167, 196, 0.42);
    box-shadow:
        0 14px 28px var(--shadow),
        inset 0 1px 0 rgba(255,255,255,0.42);
    padding: 14px;
    border-radius: 18px 10px 20px 12px;
}

.paper::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.12), transparent 35%);
    opacity: 0.65;
    border-radius: inherit;
}

.card {
    overflow: hidden;
}

.sticker {
    display: inline-block;
    background: linear-gradient(180deg, var(--chrome1), var(--chrome2));
    color: #fff7fb;
    padding: 6px 12px;
    border-radius: 6px 16px 6px 16px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    box-shadow:
        2px 2px 0 rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.12);
    margin-bottom: 12px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.18);
}

.sticker.pink {
    background: linear-gradient(180deg, #ff9dcc, #f05fa2);
}

.intro-box {
    min-height: 360px;
}

.intro-image {
    width: 100%;
    display: block;
    margin-bottom: 14px;
    border: 1px solid #e1bed0;
    border-radius: 16px 10px 18px 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.16);
}

.interface-box {
    min-height: 430px;
    box-shadow:
        0 18px 34px rgba(157,69,110,0.22),
        inset 0 1px 0 rgba(255,255,255,0.48);
    transform: scale(1.02);
}

.interface-box a {
    display: block;
    padding: 12px 0;
    color: #7d5870;
    text-decoration: none;
    border-bottom: 1px dotted #e5c3d7;
    font-size: 1.08rem;
}

.interface-box a:hover {
    color: var(--pink);
    text-decoration: underline;
}

.small-note {
    min-height: 150px;
}

.small-note ul {
    margin: 0;
    padding-left: 20px;
}

.main {
    position: relative;
    min-height: 520px;
}

.wallpaper-note {
    position: relative;
    min-height: 420px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.40), rgba(255,255,255,0.06)),
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow:
        inset 0 0 40px rgba(255,255,255,0.18),
        0 18px 40px rgba(157, 69, 110, 0.08);
}

.wallpaper-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 25% 20%, rgba(255,255,255,0.18), transparent 20%),
        radial-gradient(circle at 70% 30%, rgba(240,95,162,0.10), transparent 24%),
        radial-gradient(circle at 65% 70%, rgba(255,214,232,0.16), transparent 26%);
}

.italic {
    font-style: italic;
    color: #765d6a;
}

.footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    padding: 10px 0 0;
    color: #8b7280;
    font-size: 0.95rem;
    text-transform: lowercase;
}

.footer span:first-child,
.footer span:last-child {
    color: var(--pink);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

@media (max-width: 980px) {
    .homepage-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 300px;
    }

    .hero-title {
        width: min(900px, 96vw);
        left: 54px;
        top: 76px;
    }

    .hero-bg {
        width: min(1350px, 126vw);
    }

    .interface-box {
        transform: none;
    }
}

