@font-face {
    font-family: "PolySans";
    src: url("PolySans-Median.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --background: #071d2b;
    --text: #f3f1eb;
    --muted: #a8b2b7;
    --line: rgba(243, 241, 235, 0.2);
    --accent: #86b7ff;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.page-shell {
    width: min(100% - 48px, 1320px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header {
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.name {
    font-family: "PolySans", Arial, sans-serif;
    font-size: 18px;
    text-decoration: none;
}

.role,
.site-footer {
    color: var(--muted);
    font-size: 14px;
}

.intro {
    display: flex;
    align-items: center;
    padding: clamp(80px, 12vw, 180px) 0;
}

.content {
    max-width: 980px;
}

.eyebrow {
    margin: 0 0 28px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    max-width: 980px;
    margin: 0;
    font-family: "PolySans", Arial, sans-serif;
    font-size: clamp(44px, 5.4vw, 82px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.98;
}

.bio {
    max-width: 640px;
    margin: 36px 0 0;
    color: #d0d6d8;
    font-size: clamp(18px, 1.55vw, 22px);
    font-weight: 300;
    line-height: 1.55;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    margin-top: 42px;
}

.contact-links a {
    display: inline-flex;
    gap: 8px;
    align-items: baseline;
    padding: 0 0 6px;
    border-bottom: 1px solid currentColor;
    color: var(--text);
    font-family: "PolySans", Arial, sans-serif;
    font-size: 18px;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease;
}

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

.contact-links span {
    font-size: 14px;
}

.site-footer {
    padding: 24px 0 30px;
    border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 32px, 620px);
    }

    .site-header {
        padding: 22px 0;
    }

    .intro {
        padding: 50px 0 64px;
    }

    .eyebrow {
        margin-bottom: 20px;
    }

    h1 {
        font-size: clamp(42px, 13vw, 64px);
        line-height: 1.02;
    }

    .bio {
        margin-top: 28px;
    }

    .contact-links {
        margin-top: 34px;
    }
}

@media (max-width: 460px) {
    .role {
        display: none;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
