:root {
    --ink: #312119;
    --muted: #755f53;
    --soft: #e9ded6;
    --paper: #d9ccc2;
    --paper-light: #efe7e1;
    --gold: #8a6548;
    --gold-deep: #5b3d2f;
    --shadow: 0 24px 60px rgba(45, 28, 21, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--paper);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    background:
        radial-gradient(circle at 20% 5%, rgba(255, 255, 255, 0.46), transparent 28rem),
        linear-gradient(155deg, #eadfd7 0%, #d3c2b6 54%, #bea896 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 62%);
}

a {
    color: inherit;
    text-decoration: none;
}

.bio-shell {
    width: min(100%, 430px);
    min-height: 100svh;
    margin: 0 auto;
    overflow: hidden;
    background: rgba(236, 226, 219, 0.72);
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    min-height: clamp(326px, 50svh, 420px);
    isolation: isolate;
    background: #806d67;
}

.hero::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 42%;
    content: "";
    background: linear-gradient(to bottom, transparent 0%, rgba(217, 204, 194, 0.08) 38%, var(--paper) 100%);
    z-index: 2;
}

.hero-photo-wrap,
.hero-photo {
    position: absolute;
    inset: 0;
}

.hero-photo-wrap {
    overflow: hidden;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    animation: portraitIn 900ms cubic-bezier(.2,.8,.2,1) both;
}

.photo-shine {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(120deg, rgba(255,255,255,.14), transparent 32%),
        radial-gradient(circle at 62% 36%, transparent 0 26%, rgba(31, 18, 13, .22) 75%);
    mix-blend-mode: soft-light;
}

.content-panel {
    position: relative;
    z-index: 4;
    margin-top: -22px;
    padding: 14px clamp(20px, 6vw, 30px) calc(14px + env(safe-area-inset-bottom));
    text-align: center;
}

.content-panel::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(to bottom, rgba(217, 204, 194, .86), var(--paper) 22%, #e5d9d0 100%);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -18px 34px rgba(49, 33, 25, .12);
}

.brand-logo {
    display: block;
    width: min(78%, 286px);
    height: auto;
    margin: 0 auto 5px;
    filter: drop-shadow(0 10px 18px rgba(49, 33, 25, .12));
    animation: riseIn 680ms 120ms cubic-bezier(.2,.8,.2,1) both;
}

.tagline {
    margin: 0 auto 15px;
    max-width: 270px;
    color: var(--muted);
    font-family: "Playfair Display", Georgia, serif;
    font-size: .84rem;
    line-height: 1.28;
    animation: riseIn 680ms 190ms cubic-bezier(.2,.8,.2,1) both;
}

.link-list {
    display: grid;
    gap: 10px;
    margin: 0 auto;
}

.bio-link {
    position: relative;
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 16px 8px 20px;
    overflow: hidden;
    color: var(--ink);
    background: rgba(243, 236, 231, .42);
    border: 1px solid rgba(91, 61, 47, .82);
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(91, 61, 47, .08), inset 0 1px 0 rgba(255, 255, 255, .5);
    transform: translateZ(0);
    animation: riseIn 620ms cubic-bezier(.2,.8,.2,1) both;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.bio-link:nth-child(1) { animation-delay: 260ms; }
.bio-link:nth-child(2) { animation-delay: 330ms; }
.bio-link:nth-child(3) { animation-delay: 400ms; }
.bio-link:nth-child(4) { animation-delay: 470ms; }

.bio-link::before,
.bio-link::after {
    position: absolute;
    top: 50%;
    width: 13px;
    height: 13px;
    content: "";
    background: var(--paper);
    border: 1px solid rgba(91, 61, 47, .82);
    border-radius: 50%;
    transform: translateY(-50%);
}

.bio-link::before { left: -7px; }
.bio-link::after { right: -7px; }

.bio-link span {
    display: grid;
    min-width: 0;
    text-align: left;
}

.bio-link strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.05;
    text-transform: uppercase;
}

.bio-link small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.15;
}

.bio-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: var(--gold-deep);
    transition: transform 180ms ease;
}

.bio-link:focus-visible {
    outline: 3px solid rgba(138, 101, 72, .32);
    outline-offset: 4px;
}

.bio-link:hover,
.bio-link:active {
    background: rgba(255, 250, 246, .72);
    border-color: var(--gold-deep);
    box-shadow: 0 16px 32px rgba(91, 61, 47, .14), inset 0 1px 0 rgba(255, 255, 255, .72);
    transform: translateY(-2px);
}

.bio-link:hover svg,
.bio-link:active svg {
    transform: translateX(3px);
}

.bio-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px auto 0;
    animation: fadeIn 800ms 560ms ease both;
}

.bio-footer img {
    width: min(42%, 158px);
    height: auto;
    object-fit: contain;
    opacity: .78;
}

@keyframes portraitIn {
    from {
        opacity: .001;
        transform: scale(1.035);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes riseIn {
    from {
        opacity: .001;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: .001; }
    to { opacity: 1; }
}

@media (min-width: 700px) {
    body {
        display: grid;
        min-height: 100vh;
        place-items: center;
        padding: 28px;
    }

    .bio-shell {
        min-height: min(860px, calc(100vh - 56px));
        border-radius: 30px;
    }
}

@media (max-height: 720px) {
    .hero {
        min-height: 46svh;
    }

    .content-panel {
        margin-top: -18px;
        padding-top: 12px;
    }

    .bio-link {
        min-height: 47px;
    }

    .link-list {
        gap: 8px;
    }

    .brand-logo {
        width: min(72%, 260px);
    }

    .tagline {
        margin-bottom: 12px;
    }

    .bio-footer {
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
