/* craig.pink - v2026.02.04 */

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

/* Base */
:root {
    /* Pinks from Aerith's dress (light to dark) */
    --pink-light: #f8b0c0;
    --pink-mid: #f090a0;
    --pink-dark: #e07880;
    /* Red from shoulders */
    --red: #883840;
    /* Grays */
    --gray-light: #e0e0e0;
    --gray-mid: #b0b0b0;
    --gray-dark: #888;
    --gray-darker: #666;
    --gray-muted: #555;
    --gray-faint: #444;
    /* Backgrounds */
    --bg-dark: #0a0a0a;
    --bg-button: #1e1e1e;
    --bg-button-hover: #323232;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-light);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

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

.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, color-mix(in srgb, var(--pink-light) 20%, transparent) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -2;
}

.glow-orb.one {
    top: -200px;
    left: -200px;
}

.glow-orb.two {
    bottom: -200px;
    right: 200px;
}

/* Character */
.character {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 550px;
    height: 100vh;
    background: url('aerith.png') no-repeat right bottom;
    background-size: contain;
    opacity: 0.7;
    z-index: -1;
    filter: grayscale(20%) contrast(1.1) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    mask-image:
        linear-gradient(to top, transparent 5%, black 40%),
        linear-gradient(to left, black 50%, transparent 100%);
    -webkit-mask-image:
        linear-gradient(to top, transparent 5%, black 40%),
        linear-gradient(to left, black 50%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

.character::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50px;
    width: 300px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
}

/* Content */
.content {
    max-width: 650px;
    padding: 100px 80px;
}

/* Typography */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.accent {
    font-style: italic;
    background: linear-gradient(135deg, var(--pink-light), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 0.1em;
}

.tagline {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.bio {
    font-size: 1.15rem;
    color: var(--gray-mid);
    margin-bottom: 4rem;
    line-height: 1.9;
}

.bio a {
    color: var(--pink-mid);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--pink-mid) 30%, transparent);
    transition: color 0.3s, border-color 0.3s;
}

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

/* Section */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #fff;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--gray-darker);
    margin-bottom: 1.5rem;
}

/* Articles */
.articles {
    list-style: none;
    margin-bottom: 4rem;
}

.articles li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.articles li::before {
    content: '';
    flex-shrink: 0;
    width: 30px;
    height: 1px;
    margin-top: 0.7em;
    background: linear-gradient(90deg, var(--red), transparent);
    transition: width 0.3s;
}

.articles li:hover::before {
    width: 50px;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    max-width: 350px;
}

.articles a {
    color: var(--gray-mid);
    text-decoration: none;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.articles a:hover {
    color: var(--pink-mid);
}

.article-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray-muted);
}

.article-meta .source::after {
    content: '·';
    margin-left: 0.5rem;
    color: var(--gray-faint);
}

/* Footer Links */
.links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.links a {
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--pink-dark);
    transition: width 0.3s;
}

.links a:hover {
    color: var(--pink-mid);
}

.links a:hover::after {
    width: 100%;
}

/* Music Button - max z-index ensures visibility above all content on mobile */
.music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background-color: var(--bg-button);
    box-shadow: 0 0 0 4px var(--bg-button);
    color: var(--pink-mid);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    z-index: 2147483647;
    isolation: isolate;
    transform: translate3d(0, 0, 0);
}

.music-btn:hover {
    background-color: var(--bg-button-hover);
    box-shadow: 0 0 0 4px var(--bg-button-hover);
    color: var(--pink-dark);
}

.music-btn svg {
    width: 20px;
    height: 20px;
}

.music-btn .icon-pause {
    display: none;
}

.music-btn.playing .icon-play {
    display: none;
}

.music-btn.playing .icon-pause {
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .character {
        opacity: 0.3;
        background-position: right calc(100% + 100px);
    }

    .content {
        padding: 60px 30px;
    }

    h1 {
        font-size: 3.5rem;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    }

    .tagline {
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
    }

    .bio {
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    }

    .section-title {
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
    }

    .music-btn {
        width: 40px;
        height: 40px;
    }

    .music-btn svg {
        width: 18px;
        height: 18px;
    }
}
