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

:root {
    --bg: #faf8f5;
    --text: #2c2c2c;
    --accent: #b8a089;
    --accent-light: #d4c5b5;
    --shadow: rgba(0, 0, 0, 0.06);
}

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

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

/* Subtle background texture — soft radial glow */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(184, 160, 137, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 50% 60%, rgba(184, 160, 137, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    animation: fadeUp 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ── Photo Frame ── */
.photo-frame {
    position: relative;
    margin-bottom: 2.5rem;
}

.photo-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e2da 0%, #dcd5ca 50%, #e0d9cf 100%);
    box-shadow:
        0 2px 20px var(--shadow),
        0 8px 40px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition:
        box-shadow 0.5s ease,
        transform 0.5s ease;
}

.photo-placeholder:hover {
    box-shadow:
        0 4px 30px var(--shadow),
        0 12px 50px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    transform: scale(1.02);
}

/* Ornamental ring */
.photo-frame::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid var(--accent-light);
    opacity: 0.6;
    pointer-events: none;
    animation: pulseRing 4s ease-in-out infinite;
}

/* Show image, hide placeholder when photo exists */
.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.photo-placeholder.has-photo img {
    display: block;
}

.photo-placeholder.has-photo .placeholder-text {
    display: none;
}

/* Image fade-in on load */
.photo-placeholder.has-photo img {
    animation: imageReveal 0.8s ease-out both;
}

.placeholder-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: #9a8e80;
    letter-spacing: 0.03em;
    text-align: center;
    padding: 1rem;
}

.placeholder-icon {
    font-size: 1.6rem;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

code {
    font-family: 'Inter', monospace;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.15em 0.5em;
    border-radius: 4px;
    letter-spacing: 0;
}

/* ── Name ── */
.name {
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text);
    text-align: center;
    line-height: 1.15;
}

/* ── Accent Line ── */
.accent-line {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin-top: 1.5rem;
    opacity: 0.7;
}

/* ── Son Shoutout ── */
.son-shoutout {
    margin-top: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #7a7066;
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.son-shoutout a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.son-shoutout a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.son-shoutout a:hover {
    color: #9a7e62;
}

.son-shoutout a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageReveal {
    from {
        opacity: 0;
        transform: scale(1.06);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseRing {
    0%, 100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .photo-placeholder {
        width: 220px;
        height: 220px;
    }

    .photo-frame::before {
        inset: -9px;
    }

    .name {
        font-size: 2rem;
    }

    .container {
        padding: 1.25rem;
    }
}
