/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a1d2e;
    --charcoal: #242738;
    --warm-bg: #1e2030;
    --amber: #c9a84c;
    --gold: #d4b96b;
    --gold-dim: #a08940;
    --cream: #e8e0d0;
    --cream-soft: #c8c0b0;
    --cream-dim: #9a9080;
    --serif: 'Cormorant Garamond', 'Georgia', serif;
    --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--navy);
    color: var(--cream);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Subtle Background Texture ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(201, 168, 76, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(201, 168, 76, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Layout ─── */
main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    padding: 3rem 1.5rem;
}

.study {
    text-align: center;
}

/* ─── Portrait ─── */
.portrait-frame {
    display: inline-block;
    padding: 4px;
    border: 1px solid var(--gold-dim);
    border-radius: 50%;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease 0.2s both;
}

.portrait {
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    filter: sepia(10%) contrast(1.05);
}

/* ─── Typography ─── */
h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 2.75rem;
    letter-spacing: 0.06em;
    color: var(--cream);
    margin-bottom: 0.3rem;
    animation: fadeIn 1s ease 0.4s both;
}

.tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gold);
    letter-spacing: 0.02em;
    margin-bottom: 2.2rem;
    animation: fadeIn 1s ease 0.6s both;
}

.introduction {
    max-width: 420px;
    margin: 0 auto 2.5rem;
    animation: fadeIn 1s ease 0.8s both;
}

.introduction p {
    font-size: 0.925rem;
    color: var(--cream-soft);
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

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

.introduction a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.introduction a:hover {
    border-bottom-color: var(--gold);
}

/* ─── Links ─── */
.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease 1s both;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    color: var(--cream-dim);
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.link:hover {
    color: var(--gold);
}

.link svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.link:hover svg {
    opacity: 1;
}

/* ─── Colophon ─── */
.colophon {
    font-size: 0.72rem;
    color: var(--cream-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadeIn 1s ease 1.2s both;
}

.colophon a {
    color: var(--cream-dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.colophon a:hover {
    color: var(--gold-dim);
    border-bottom-color: var(--gold-dim);
}

/* ─── Animation ─── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    main {
        padding: 2rem 1.25rem;
    }
    
    .portrait {
        width: 150px;
        height: 150px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    .tagline {
        font-size: 1.05rem;
    }
    
    .introduction p {
        font-size: 0.875rem;
    }
}

/* ─── Prefers reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    .portrait-frame,
    h1,
    .tagline,
    .introduction,
    .links,
    .colophon {
        opacity: 1;
        animation: none;
    }
}
