/* === TOKENS === */
:root {
    --deep: #0a1a1f;
    --reef-dark: #0f2b33;
    --reef-mid: #164049;
    --teal: #1a7a6d;
    --teal-light: #2aa8a8;
    --amber: #d4a054;
    --amber-soft: #c4935a;
    --amber-glow: #e8b86a;
    --sand: #c8b89a;
    --sand-light: #ddd2be;
    --biolum: #4aeadc;
    --biolum-soft: rgba(74, 234, 220, 0.15);
    --text: #d4cfc6;
    --text-bright: #eae5dc;
    --text-dim: #8a8578;
    --section-pad-x: 8vw;
    --section-pad-y: 6rem;
    --card-border: 1px solid rgba(74, 234, 220, 0.08);
    --card-bg: linear-gradient(135deg, rgba(22, 64, 73, 0.25), rgba(15, 43, 51, 0.35));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background: var(--deep);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 122, 109, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 160, 84, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(74, 234, 220, 0.03) 0%, transparent 40%);
}

body::after {
    z-index: 1;
    opacity: 0.025;
    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");
    background-size: 256px 256px;
}

a {
    color: var(--amber);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--amber-glow);
}

/* === LAYOUT === */
section,
footer,
.hero {
    position: relative;
    z-index: 2;
}

section {
    padding: var(--section-pad-y) var(--section-pad-x);
}

.section-border {
    border-top: 1px solid rgba(74, 234, 220, 0.08);
}

.section-label {
    margin-bottom: 1rem;
    color: var(--teal);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

section p {
    max-width: 640px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text);
    line-height: 1.7;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3 {
    font-family: 'Lora', serif;
    color: var(--text-bright);
}

h1 {
    margin-bottom: 1.8rem;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 400;
    line-height: 1.3;
}

h1 em {
    font-style: italic;
    color: var(--amber);
}

h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.35;
}

h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 500;
}

/* === SHARED COMPONENTS === */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    background: linear-gradient(to bottom, var(--deep), transparent);
}

nav .name {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-bright);
    letter-spacing: 0.02em;
}

nav .links {
    display: flex;
    gap: 2.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

nav .links a {
    position: relative;
    color: var(--text-dim);
}

nav .links a:hover {
    color: var(--text-bright);
}

nav .links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber);
    transition: width 0.3s ease;
}

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

.hero {
    display: flex;
    align-items: center;
    min-height: 110vh;
    padding: 0 var(--section-pad-x);
}

.hero-content {
    max-width: 640px;
    animation: fadeUp 1.2s ease-out;
}

.hero p {
    max-width: 600px;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.hero-note,
.section-note {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.hero-note {
    margin-bottom: 0;
}

.section-note {
    margin-top: 1.5rem;
}

.glow-line {
    width: 60px;
    height: 1px;
    margin: 2.5rem 0;
    opacity: 0.6;
    background: linear-gradient(90deg, var(--biolum), transparent);
}

.glow-line.glow-line-spaced {
    margin-top: 3rem;
}

.quote-block {
    max-width: 520px;
    margin: 2.5rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(212, 160, 84, 0.25);
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--sand);
    line-height: 1.65;
}

.quote-block.quote-block-spaced {
    margin-top: 2rem;
}

.quote-block .attribution {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    font-style: normal;
    font-family: 'Jost', sans-serif;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.card {
    padding: 1.8rem;
    border: var(--card-border);
    border-radius: 8px;
    background: var(--card-bg);
}

.media-frame {
    max-width: 700px;
    margin-top: 2rem;
}

.media-frame img {
    width: 100%;
    border: var(--card-border);
    border-radius: 6px;
    opacity: 0.92;
}

.media-caption {
    margin-top: 0.8rem;
    font-size: 0.82rem;
    font-style: italic;
    color: var(--text-dim);
    line-height: 1.6;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem var(--section-pad-x);
    border-top: 1px solid rgba(74, 234, 220, 0.06);
    font-size: 0.8rem;
    color: var(--text-dim);
}

footer .footer-links {
    display: flex;
    gap: 2rem;
}

footer a {
    color: var(--text-dim);
}

footer a:hover {
    color: var(--text);
}

.mucosal-speck {
    font-size: 6px;
    color: var(--text-dim);
}

/* === HOME PAGE === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.about-threads {
    padding-top: 0.5rem;
}

.thread {
    position: relative;
    margin: 0.6rem 0;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(74, 234, 220, 0.06);
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease;
}

.thread:first-child {
    border-top: 1px solid rgba(74, 234, 220, 0.06);
}

.thread:nth-child(odd) {
    transform: translateX(-12px);
}

.thread:nth-child(even) {
    transform: translate(18px, 6px);
}

.thread-title {
    margin-bottom: 0.3rem;
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--amber-soft);
}

.thread-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.projects-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2.5rem;
}

.projects-split > div {
    padding-top: 0.5rem;
}

.listen-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(212, 160, 84, 0.3);
    color: var(--amber);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: gap 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.listen-link:hover {
    gap: 1rem;
    color: var(--amber-glow);
    border-color: var(--amber-glow);
}

.listen-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* === UTILITIES === */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    nav {
        padding: 1.2rem 1rem;
    }

    nav .links {
        gap: 1.1rem;
        font-size: 0.75rem;
    }

    .hero {
        min-height: auto;
        padding: 6rem 2rem;
    }

    section {
        padding: 3.5rem 2rem;
    }

    .about-grid,
    .projects-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
