@font-face {
    font-family: "Syne";
    src: url("assets/fonts/syne-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("assets/fonts/manrope-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --night: #080c18;
    --night-soft: #111a2e;
    --cyan: #43bdd1;
    --paper: #f4f1ea;
    --muted: rgba(244, 241, 234, 0.62);
    --line: rgba(244, 241, 234, 0.24);
    --display: "Syne", "Arial Black", sans-serif;
    --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
    --page: min(1280px, calc(100% - 56px));
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse 82% 60% at 50% 18%, rgba(108, 219, 226, 0.34), transparent 72%),
        linear-gradient(180deg, #2b5369 0%, #23485f 27%, #17344c 57%, var(--night) 100%);
    color: var(--paper);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 6px;
}

::selection {
    background: var(--cyan);
    color: var(--night);
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    background: var(--cyan);
    color: var(--night);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 180ms var(--ease);
}

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

.site-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    width: var(--page);
    min-height: 100svh;
    margin: 0 auto;
    overflow: clip;
    isolation: isolate;
}

.ambient {
    position: absolute;
    z-index: -2;
    display: block;
    width: clamp(180px, 32vw, 460px);
    height: clamp(180px, 32vw, 460px);
    border-radius: 50%;
    filter: blur(88px);
    opacity: 0.3;
    pointer-events: none;
}

.ambient-one {
    top: 2%;
    left: -18%;
    background: #153b63;
}

.ambient-two {
    right: -15%;
    bottom: 4%;
    background: #2c1641;
}

.ambient-three {
    top: 34%;
    right: 22%;
    width: clamp(100px, 18vw, 250px);
    height: clamp(100px, 18vw, 250px);
    background: #0d566b;
    opacity: 0.2;
}

.social-link > span:last-child {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: clamp(60px, 9vw, 124px) 0 clamp(56px, 8vw, 108px);
}

.profile-content {
    display: flex;
    width: min(100%, 760px);
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: profile-in 900ms 100ms var(--ease) both;
}

.logo-stage {
    position: relative;
    display: grid;
    width: clamp(220px, 28vw, 330px);
    height: clamp(220px, 28vw, 330px);
    place-items: center;
    margin-bottom: clamp(24px, 4vw, 42px);
}

.personal-mark {
    position: relative;
    z-index: 1;
    display: block;
    width: clamp(160px, 18vw, 220px);
    height: auto;
    object-fit: contain;
    animation: mark-float 5s ease-in-out infinite;
}

h1 {
    margin: 0;
    font-family: var(--display);
    color: var(--paper);
    font-size: clamp(2rem, 4.3vw, 3.68rem);
    font-weight: 600;
    letter-spacing: -0.08em;
    line-height: 0.92;
}

.social-nav {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(24px, 5vw, 54px);
    margin-top: clamp(22px, 3vw, 30px);
}

.social-link {
    position: relative;
    display: flex;
    min-width: 58px;
    flex-direction: column;
    align-items: center;
    color: var(--muted);
    text-decoration: none;
    transition: color 220ms var(--ease), transform 220ms var(--ease);
}

.social-link:hover,
.social-link:focus-visible {
    color: var(--paper);
    transform: translateY(-5px);
}

.social-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(244, 241, 234, 0.32);
    border-radius: 50%;
    background: rgba(17, 26, 46, 0.44);
    transition: background-color 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.social-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.social-link:hover .social-icon,
.social-link:focus-visible .social-icon {
    border-color: var(--cyan);
    background: var(--cyan);
    color: var(--night);
    box-shadow: 0 0 28px rgba(67, 189, 209, 0.24);
}

.social-link > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes profile-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mark-float {
    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-6px) rotate(2deg);
    }
}

@media (max-width: 600px) {
    :root {
        --page: calc(100% - 32px);
    }

    .profile {
        min-height: 100svh;
        padding: 54px 0 66px;
    }

    .logo-stage {
        width: 230px;
        height: 230px;
        margin-bottom: 28px;
    }

    .personal-mark {
        width: 160px;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(1.75rem, 8vw, 2.4rem);
    }

    .social-nav {
        gap: 24px;
        margin-top: 24px;
    }

    .social-icon {
        width: 52px;
        height: 52px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
