:root {
    color-scheme: dark;
    --background: #11110f;
    --text: #f0eee7;
    --muted: #9d9a90;
    --quiet: #6e6c65;
    --line: #32312d;
    --accent: #c8983d;
    --page-width: 1440px;
    --gutter: clamp(1.25rem, 4vw, 4.5rem);
    --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --display-font: Georgia, "Times New Roman", serif;
}

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

html {
    background: var(--background);
}

body {
    position: relative;
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before,
body::after {
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

body::before {
    top: -26vmax;
    left: -20vmax;
    width: 65vmax;
    height: 65vmax;
    background: radial-gradient(circle, rgb(200 152 61 / 0.2), rgb(200 152 61 / 0.08) 38%, transparent 70%);
    animation: ambient-drift 9s ease-in-out -4.5s infinite alternate;
}

body::after {
    top: 28%;
    right: -22vmax;
    width: 55vmax;
    height: 55vmax;
    background: radial-gradient(circle, rgb(82 106 102 / 0.16), rgb(82 106 102 / 0.06) 42%, transparent 70%);
    animation: ambient-pulse 11s ease-in-out -5.5s infinite;
}

@keyframes ambient-drift {
    from {
        opacity: 0.55;
        transform: translate3d(0, 0, 0) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate3d(14vw, 12vh, 0) scale(1.15);
    }
}

@keyframes ambient-pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: translate3d(0, 6vh, 0) scale(0.9);
    }

    50% {
        opacity: 0.95;
        transform: translate3d(-12vw, -7vh, 0) scale(1.16);
    }
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    padding: 0.7rem 1rem;
    background: var(--text);
    color: var(--background);
    font-size: 0.875rem;
    font-weight: 650;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 1fr;
    width: min(100%, var(--page-width));
    min-height: 100svh;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
    gap: clamp(3rem, 8vw, 9rem);
    align-items: center;
    padding-block: clamp(4rem, 9vw, 8.5rem);
}

.intro-copy {
    max-width: 55rem;
}

h1 {
    max-width: 14ch;
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(3.25rem, 7.2vw, 7.25rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-wrap: balance;
}

.summary {
    max-width: 36rem;
    margin: clamp(2rem, 4vw, 3.25rem) 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.contact-links a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--quiet);
    font-size: 0.875rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 160ms ease, color 160ms ease;
}

.link-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    fill: currentColor;
}

.link-icon--stroke {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

.contact-links .link-arrow {
    margin-left: 0.05rem;
    color: var(--accent);
    transition: transform 160ms ease;
}

.contact-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.contact-links a:hover .link-arrow {
    transform: translate(0.12rem, -0.12rem);
}

.portrait {
    margin: 0;
}

.portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
    object-fit: cover;
    object-position: 52% center;
    filter: saturate(0.82) contrast(1.04);
}

.portrait figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.85rem;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 760px) {
    .intro {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        padding-block: 3.75rem;
    }

    h1 {
        font-size: clamp(3rem, 14vw, 4.75rem);
        line-height: 1;
    }

    .portrait {
        width: min(82%, 24rem);
        margin-inline: auto;
    }

}

@media (max-width: 430px) {
    .portrait {
        width: 100%;
    }

}

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