* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --pur: #7c3aed;
    --pur2: #a855f7;
    --pur3: #c084fc;
    --pur4: #ede9fe;
    --pur5: #1e1027;
    --pur6: #2d1b4e;
    --yell: #fde68a;
    --pink: #f472b6;
    --mint: #6ee7b7;
}

html { scroll-behavior: smooth; }

body {
    background: var(--pur5);
    background-image:
        radial-gradient(ellipse at 20% 10%, #3b1a6e 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, #1a0a3e 0%, transparent 50%);
    min-height: 100vh;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--pur4);
}

/* bg star pattern */
body::before {
    content: '✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦';
    position: fixed;
    top: 0; left: 0; right: 0;
    font-size: 16px;
    color: var(--pur6);
    letter-spacing: 18px;
    line-height: 38px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    white-space: pre-wrap;
    padding: 8px;
    opacity: 0.7;
}

.page { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem 6rem; }

/* ── HERO ── */
.hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
}

.hero-deco {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: wobble 3s ease-in-out infinite;
    color: var(--pur3);
}

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

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(3.5rem, 11vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--pur3);
    text-shadow: 4px 4px 0 var(--pur), -1px -1px 0 #c084fc55;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero h1 em {
    font-style: italic;
    color: var(--yell);
    text-shadow: 3px 3px 0 #92400e;
}

.hero-sub {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--pur3);
    transform: rotate(-1.5deg);
    display: inline-block;
    margin-bottom: 1.8rem;
    opacity: 0.85;
}

.tapes {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.tape {
    display: inline-block;
    background: var(--yell);
    color: #78350f;
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    padding: 4px 18px;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0 #92400e88;
}
.tape.pink { background: var(--pink); color: #831843; box-shadow: 2px 2px 0 #9d174d88; transform: rotate(1.8deg); }
.tape.mint { background: var(--mint); color: #065f46; box-shadow: 2px 2px 0 #05966988; transform: rotate(-1deg); }

.nav-stamps {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stamp-link {
    display: inline-block;
    border: 2.5px solid var(--pur2);
    color: var(--pur2);
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    padding: 6px 22px;
    text-decoration: none;
    position: relative;
    transition: all 0.15s;
}

.stamp-link::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px dashed var(--pur2);
    opacity: 0.4;
}

.stamp-link:hover {
    background: var(--pur2);
    color: var(--pur5);
    transform: translateY(-3px) rotate(-1.5deg);
}

/* ── SECTION HEADERS ── */
.section-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 4rem 0 2rem;
}

.section-head h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 700;
    color: var(--yell);
    white-space: nowrap;
}

.scribble-line {
    flex: 1;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--pur) 0, var(--pur) 8px,
        transparent 8px, transparent 14px
    );
}

.section-badge {
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    background: var(--pur6);
    border: 1.5px solid var(--pur);
    color: var(--pur3);
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transform: rotate(2deg);
    display: inline-block;
}

/* ── CARDS ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--pur6);
    border: 2px solid var(--pur);
    padding: 1.4rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: pop-in 0.4s ease backwards;
}

.card:nth-child(odd) { transform: rotate(-0.7deg); }
.card:nth-child(even) { transform: rotate(0.5deg); }
.card:hover {
    transform: rotate(0) translateY(-5px) scale(1.01) !important;
    box-shadow: 6px 6px 0 var(--pur), 0 0 30px #7c3aed44;
    z-index: 10;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.20s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.30s; }

@keyframes pop-in {
    from { opacity: 0; transform: scale(0.88) rotate(-3deg); }
    to { opacity: 1; }
}

/* folded corner */
.card::after {
    content: '';
    position: absolute;
    top: -1px; right: -1px;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 28px 28px 0;
    border-color: transparent var(--pur5) transparent transparent;
}

.card-type-stamp {
    display: inline-block;
    font-family: 'Caveat', cursive;
    font-size: 0.85rem;
    padding: 2px 10px;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.own   { background: var(--pur);  color: var(--pur4); }
.contrib { background: var(--pink); color: #4a0020; }

.card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pur3);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.card p {
    color: #c4b5fd;
    font-size: 12px;
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

.contrib-note {
    background: #1a0a30;
    border-left: 3px solid var(--pink);
    padding: 6px 10px;
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: var(--pink);
    margin-bottom: 0.8rem;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0.8rem; }

.tag {
    background: #1e0a3c;
    border: 1px solid #5b21b6;
    color: var(--pur3);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
}

.card-links { display: flex; gap: 12px; }

.card-link {
    color: var(--yell);
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 1px dashed var(--yell);
    transition: color 0.1s;
}
.card-link:hover { color: var(--pink); border-bottom-color: var(--pink); }

/* ── STICKERS ── */
.sticker { display: inline-block; animation: float 4s ease-in-out infinite; cursor: default; user-select: none; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50%       { transform: translateY(-7px) rotate(5deg); }
}

.sticker-row {
    text-align: center;
    margin: 2rem 0;
    font-size: 2rem;
    letter-spacing: 12px;
}

.deco-row {
    text-align: center;
    color: var(--pur);
    opacity: 0.4;
    letter-spacing: 4px;
    margin: 1.5rem 0;
}

/* ── ABOUT ── */
.about-box {
    background: var(--pur6);
    border: 2px solid var(--pur);
    padding: 2rem;
    position: relative;
    transform: rotate(-0.3deg);
}

.about-box::before {
    content: '';
    position: absolute;
    inset: -7px;
    border: 1px dashed var(--pur);
    opacity: 0.25;
    pointer-events: none;
}

.about-name {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-style: italic;
    color: var(--pur3);
    margin-bottom: 0.2rem;
}

.about-role {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: var(--yell);
    transform: rotate(-1deg);
    display: inline-block;
    margin-bottom: 1.2rem;
}

.about-bio {
    color: #ddd6fe;
    line-height: 1.9;
    font-size: 13px;
}

.about-skills {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    background: var(--pur5);
    border: 1.5px solid var(--pur2);
    color: var(--pur2);
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    padding: 4px 14px;
    border-radius: 20px;
    transition: all 0.15s;
}
.skill-chip:nth-child(3n)   { border-color: var(--pink); color: var(--pink); }
.skill-chip:nth-child(3n+1) { border-color: var(--mint); color: var(--mint); }
.skill-chip:hover { transform: scale(1.07) rotate(-2deg); }

/* ── CONTACT ── */
.contact-pile { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--pur6);
    border: 2px solid var(--pur);
    padding: 12px 18px;
    text-decoration: none;
    color: var(--pur3);
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    transition: all 0.15s;
}
.contact-item:nth-child(odd)  { transform: rotate(-0.7deg); }
.contact-item:nth-child(even) { transform: rotate(0.5deg); }
.contact-item:hover {
    transform: translateX(8px) rotate(0) !important;
    border-color: var(--pur2);
    background: #2d1b4e;
    color: var(--yell);
}

.contact-icon { font-size: 1.4rem; }

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 3.5rem 1rem 1rem;
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--pur);
    opacity: 0.55;
}

footer span { display: block; }
footer span:last-child { font-size: 0.9rem; margin-top: 0.4rem; transform: rotate(-1deg); display: inline-block; }

/* ── FIXED FLOATING STARS ── */
.bg-star {
    position: fixed;
    pointer-events: none;
    color: var(--pur);
    opacity: 0.12;
    animation: spin-float 22s linear infinite;
    z-index: 0;
}
@keyframes spin-float {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (max-width: 580px) {
    .hero h1 { font-size: 3.2rem; }
    .cards-grid { grid-template-columns: 1fr; }
}