:root {
    --water-light: #f4f9fb;
    --water-mid: #e0eef3;
    --water-accent: #b8d4de;
    --water-deep: #6a9baa;
    --ink: #1a1a1a;
    --ink-soft: #555;
    --ink-faint: #999;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--water-light);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
}

#ripple-canvas {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

/* ── Nav ── */
.nav {
    position: fixed; top: 0; right: 0; z-index: 10;
    padding: 1.6rem 2.2rem;
    display: flex; align-items: center; gap: 0.3rem;
}
.nav a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; font-weight: 400;
    letter-spacing: 0.04em; text-transform: lowercase;
    color: var(--ink-faint); text-decoration: none;
    padding: 0.3em 0.55em; border-radius: 3px;
    transition: color 0.3s ease, background 0.3s ease;
}
.nav a:hover, .nav a.active {
    color: var(--water-deep);
    background: rgba(184,212,222,0.15);
}
.nav .sep {
    color: var(--water-mid);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; margin: 0 0.05em;
}

/* ── Two-column layout (homepage) ── */
.page-two-col {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28vh 4rem 10vh;
    min-height: 100vh;
}

.col-left {
    position: sticky; top: 28vh;
    align-self: start;
    text-align: right;
}

.col-right { padding-top: 0.15em; }

/* ── Single-column layout (subpages) ── */
.page {
    position: relative; z-index: 1;
    max-width: 660px;
    padding: 18vh 5vw 10vh;
    padding-left: max(5vw, 40px);
}
@media (min-width: 900px) {
    .page { padding-left: 14vw; }
}

/* ── Typography ── */
h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: -0.02em; line-height: 1.1;
    margin-bottom: 1rem;
}
h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    letter-spacing: -0.01em; line-height: 1.2;
    margin-bottom: 1.5rem;
}
.bio {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    line-height: 1.7; color: var(--ink-soft);
    margin-bottom: 2rem; margin-left: auto;
    max-width: 320px;
}

/* ── Section labels ── */
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; font-weight: 400;
    letter-spacing: 0.08em; text-transform: lowercase;
    color: var(--water-deep); margin-bottom: 0.6rem;
}
.items + .section-label { margin-top: 2.2rem; }

/* ── Lists ── */
.items { list-style: none; margin-bottom: 0.3rem; }
.items li {
    font-size: clamp(0.93rem, 1.5vw, 1.03rem);
    line-height: 1.65; color: var(--ink-soft);
    padding-left: 1.1em; position: relative;
    margin-bottom: 0.35em;
}
.items li::before {
    content: ''; position: absolute; left: 0; top: 0.7em;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--water-accent);
}

.now-items { list-style: none; }
.now-items li {
    font-size: clamp(0.95rem, 1.8vw, 1.08rem);
    line-height: 1.7; color: var(--ink-soft);
    font-style: italic; margin-bottom: 0.4em;
    padding-left: 1.2em; position: relative;
}
.now-items li::before {
    content: '~'; position: absolute; left: 0;
    color: var(--water-accent); font-style: normal;
}

/* ── Contact ── */
.contact-list { list-style: none; }
.contact-list li {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; line-height: 2.2;
    color: var(--ink-faint);
}
.contact-list a {
    color: var(--ink-soft); text-decoration: none;
    border-bottom: 1px solid var(--water-mid);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.contact-list a:hover { color: var(--water-deep); border-color: var(--water-deep); }

.feedback-link {
    display: inline-block; margin-top: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; color: var(--ink-faint);
    text-decoration: none;
    border-bottom: 1px dashed var(--water-mid);
    transition: color 0.3s ease;
}
.feedback-link:hover { color: var(--water-deep); }

.divider {
    width: 36px; height: 1px;
    background: var(--water-mid); margin: 2.8rem 0;
}

.prose {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.75; color: var(--ink-soft); max-width: 560px;
}
.prose p { margin-bottom: 1em; }

/* ── Fade in ── */
.fade-in { opacity: 0; transform: translateY(10px); animation: fadeUp 0.7s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.col-left .fade-in:nth-child(1) { animation-delay: 0.05s; }
.col-left .fade-in:nth-child(2) { animation-delay: 0.15s; }
.col-left .fade-in:nth-child(3) { animation-delay: 0.28s; }
.col-left .fade-in:nth-child(4) { animation-delay: 0.40s; }
.col-right .fade-in:nth-child(1) { animation-delay: 0.25s; }
.col-right .fade-in:nth-child(2) { animation-delay: 0.40s; }
.page .fade-in:nth-child(1) { animation-delay: 0.05s; }
.page .fade-in:nth-child(2) { animation-delay: 0.15s; }
.page .fade-in:nth-child(3) { animation-delay: 0.28s; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .page-two-col {
        grid-template-columns: 1fr;
        gap: 2.5rem; padding: 16vh 7vw 8vh;
    }
    .col-left { position: static; text-align: left; }
    .bio { margin-left: 0; }
    .page { padding: 14vh 7vw 8vh; }
    .nav { padding: 1.2rem 1.4rem; }
}
