/*
 * Sherisa de Groot — sherisadegroot.com
 * Stylesheet
 *
 * Author:  Okay, Sounds Great (okaysoundsgreat.com)
 * Built:   2026
 *
 * Contents:
 *   1. Palettes
 *   2. Reset & Base
 *   3. Layout
 *   4. Bio Text
 *   5. Links
 *   6. Social Icons
 *   7. Responsive
 */

/* =============================================================================
   PALETTES
   Five bold random color schemes applied via body class.
   ============================================================================= */

.p-ember  { --bg:#c84b1a; --text:#f7ede0; --l1:#f7d060; --l2:#a8e6a3; --l3:#f0a8d0; --l4:#8fd3f4; --l5:#f7d060; --icon:rgba(247,237,224,0.55); --icon-h:#f7ede0; }
.p-forest { --bg:#1b4332; --text:#f2ead8; --l1:#f4c842; --l2:#f08060; --l3:#a0d8b0; --l4:#e8a0c8; --l5:#f4c842; --icon:rgba(242,234,216,0.55); --icon-h:#f2ead8; }
.p-plum   { --bg:#3d1a4a; --text:#f5ede8; --l1:#ffcc44; --l2:#6ee8b4; --l3:#ff8c6e; --l4:#a0c8f0; --l5:#ffcc44; --icon:rgba(245,237,232,0.55); --icon-h:#f5ede8; }
.p-ochre  { --bg:#c8860a; --text:#0e0a04; --l1:#6b1212; --l2:#0e3d1e; --l3:#2e1448; --l4:#6b1212; --l5:#0e3d1e; --icon:rgba(14,10,4,0.45);     --icon-h:#0e0a04; }
.p-ink    { --bg:#0e1826; --text:#f0e8d8; --l1:#ff6b35; --l2:#f7d060; --l3:#7ee8b0; --l4:#e8608a; --l5:#ff6b35; --icon:rgba(240,232,216,0.5);  --icon-h:#f0e8d8; }


/* =============================================================================
   RESET & BASE
   ============================================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* Paper grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 100;
}


/* =============================================================================
   LAYOUT
   ============================================================================= */

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 9vw 8vw 10vw;
}


/* =============================================================================
   BIO TEXT
   ============================================================================= */

.bio p {
    font-size: clamp(1.6rem, 3.4vw, 2.55rem);
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: -0.005em;
    margin-bottom: 1.15em;
    opacity: 0;
    transform: translateY(20px);
}

.bio p:last-child {
    margin-bottom: 0;
}

/* Staggered paragraph reveal */
.bio p:nth-child(1) { animation: rise 0.9s cubic-bezier(0.22,1,0.36,1) forwards 0.15s; }
.bio p:nth-child(2) { animation: rise 0.9s cubic-bezier(0.22,1,0.36,1) forwards 0.45s; }
.bio p:nth-child(3) { animation: rise 0.9s cubic-bezier(0.22,1,0.36,1) forwards 0.75s; }
.bio p:nth-child(4) { animation: rise 0.9s cubic-bezier(0.22,1,0.36,1) forwards 1.05s; }

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Name — heavy weight, stands out inline */
.bio .name {
    font-weight: 700;
    font-style: normal;
}


/* =============================================================================
   LINKS
   Each link is italic, black-weight, and gets its own accent color.
   300 body vs 900 links = maximum contrast.
   ============================================================================= */

.bio a {
    font-style: italic;
    font-weight: 900;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.bio a:hover {
    color: var(--text);
    border-bottom-color: transparent;
}

.bio a:visited {
    color: var(--text);
    border-bottom: 2px solid var(--text);
}

.bio a:visited:hover {
    border-bottom-color: transparent;
}

.bio a:nth-of-type(1)  { color: var(--l1); }
.bio a:nth-of-type(2)  { color: var(--l2); }
.bio a:nth-of-type(3)  { color: var(--l3); }
.bio a:nth-of-type(4)  { color: var(--l4); }
.bio a:nth-of-type(5)  { color: var(--l5); }
.bio a:nth-of-type(6)  { color: var(--l1); }
.bio a:nth-of-type(7)  { color: var(--l2); }
.bio a:nth-of-type(8)  { color: var(--l3); }
.bio a:nth-of-type(9)  { color: var(--l4); }
.bio a:nth-of-type(10) { color: var(--l5); }
.bio a:nth-of-type(11) { color: var(--l1); }
.bio a:nth-of-type(12) { color: var(--l2); }


/* =============================================================================
   SOCIAL ICONS
   ============================================================================= */

.social-icons {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 1.8rem;
    opacity: 0;
    animation: rise 0.8s cubic-bezier(0.22,1,0.36,1) forwards var(--icons-delay, 3000ms);
}

.social-icon {
    color: var(--icon);
    font-size: clamp(1.2rem, 2.55vw, 1.9rem);
    text-decoration: none;
    transition: color 0.22s ease, transform 0.22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.social-icon:hover {
    color: var(--icon-h);
    transform: translateY(-3px);
}

/* Substack SVG icon */
.icon-substack {
    width: clamp(1.05rem, 2.25vw, 1.65rem);
    height: clamp(1.05rem, 2.25vw, 1.65rem);
    fill: var(--icon);
    display: block;
    transition: fill 0.22s ease;
}

.social-icon:hover .icon-substack {
    fill: var(--icon-h);
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 600px) {
    .page {
        padding: 13vw 7vw 12vw;
    }

    .bio p {
        font-size: clamp(1.4rem, 5.8vw, 1.85rem);
    }

    .social-icons {
        gap: 1.6rem;
        margin-top: 1.6rem;
    }

    .social-icon {
        font-size: clamp(1.05rem, 4.35vw, 1.4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bio p,
    .social-icons {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
