:root {
            color-scheme: dark;
            font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            font-synthesis: none;
            text-rendering: optimizeLegibility;
            color: #f3efff;
            background: #100d19;
        }

        * {
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
            min-height: 100svh;
            margin: 0;
            padding: clamp(2rem, 8vw, 7rem) clamp(1.25rem, 6vw, 5rem);
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            background:
                radial-gradient(ellipse at 12% 12%, rgb(125 75 190 / 22%), transparent 42%),
                radial-gradient(ellipse at 88% 82%, rgb(56 75 157 / 20%), transparent 40%),
                linear-gradient(135deg, #100d19 0%, #191327 48%, #101522 100%);
        }

        .site-layout {
            width: min(100%, 1040px);
            flex: 1 0 auto;
            margin: 0 auto;
            display: grid;
            gap: clamp(3rem, 7vw, 5.5rem);
        }

        .site-footer {
            width: min(100%, 1040px);
            margin: clamp(3rem, 7vw, 5.5rem) auto 0;
            padding-top: 1.25rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            border-top: 1px solid rgb(205 187 240 / 17%);
            color: #b5afc4;
            font-size: 0.9rem;
        }

        .site-footer p {
            max-width: none;
            margin: 0;
            font-size: inherit;
            line-height: 1.5;
        }

        .site-footer a,
        .site-footer a:visited {
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            gap: 0.65rem;
            color: #fff;
            transition: color 180ms ease;
        }

        .site-footer a:hover {
            color: #fff;
        }

        .site-footer img {
            width: 20px;
            height: 20px;
            object-fit: contain;
            filter: brightness(0) invert(1);
            opacity: 0.8;
        }

        .content {
            animation: arrive 700ms ease-out both;
        }

        .details-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
            align-items: start;
            gap: clamp(2rem, 6vw, 5rem);
            padding-top: clamp(2rem, 5vw, 3.5rem);
            border-top: 1px solid rgb(205 187 240 / 17%);
        }

        .about,
        .projects-section,
        .socials-section {
            min-width: 0;
        }

        .section-title {
            margin: 0 0 1.25rem;
            color: #c8b8f0;
            font-size: 1.25rem;
            font-weight: 500;
            line-height: 1.4;
        }

        .welcome-title {
            margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
            color: #c8b8f0;
            font-size: clamp(1.15rem, 2.5vw, 1.5rem);
            font-weight: 500;
            line-height: 1.4;
        }

        h1 {
            max-width: 14ch;
            margin: 0;
            font-family: Georgia, "Times New Roman", serif;
            font-size: clamp(2.8rem, 8vw, 6.5rem);
            font-weight: 500;
            line-height: 0.98;
            letter-spacing: 0;
            text-wrap: balance;
        }

        .typing-line {
            position: relative;
            display: block;
            width: max-content;
            max-width: 100%;
            line-height: 1.12;
            white-space: nowrap;
        }

        .typing-text {
            display: block;
            width: max-content;
            max-width: 100%;
            clip-path: inset(-0.3em 100% -0.3em 0);
        }

        .typing-line-first .typing-text {
            animation: type 1.05s steps(13, end) forwards;
        }

        .typing-line-second .typing-text {
            animation: type 700ms steps(8, end) 1.05s forwards;
        }

        .typing-cursor {
            position: absolute;
            top: -0.3em;
            bottom: -0.3em;
            left: 0;
            width: 2px;
            border-radius: 1px;
            background: #c8b8f0;
            opacity: 0;
            pointer-events: none;
        }

        .typing-line-first .typing-cursor {
            opacity: 1;
            animation: cursor-move 1.05s steps(13, end) forwards, cursor-hide 0s step-end 1.05s forwards;
        }

        .typing-line-second .typing-cursor {
            animation: cursor-move 700ms steps(8, end) 1.05s forwards, cursor-show 0s step-end 1.05s forwards, caret-fade 250ms ease-out 1.75s forwards;
        }

        p {
            max-width: 58ch;
            margin: 0.8rem 0 0;
            color: #b5afc4;
            font-size: clamp(1rem, 1.8vw, 1.125rem);
            line-height: 1.75;
        }

        .socials,
        .projects {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
            gap: 0.75rem;
            animation: arrive 700ms 120ms ease-out both;
        }

        .social,
        .project {
            min-width: 0;
            min-height: 76px;
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.25rem;
            border: 1px solid rgb(205 187 240 / 17%);
            border-radius: 8px;
            background: rgb(255 255 255 / 4%);
            color: #f3efff;
            font-size: 1rem;
            line-height: 1.45;
            overflow-wrap: anywhere;
            transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
        }

        .social:hover,
        .project:hover {
            transform: translateY(-2px);
            border-color: rgb(205 187 240 / 45%);
            background: rgb(255 255 255 / 7%);
        }

        .social img,
        .project img {
            width: 28px;
            height: 28px;
            flex: 0 0 28px;
            object-fit: contain;
            filter: brightness(0) invert(1);
        }

        a {
            color: inherit;
            text-decoration: none;
            text-underline-offset: 0.2em;
        }

        a:hover {
            text-decoration: underline;
        }

        a:focus-visible {
            border-radius: 8px;
            outline: 2px solid #c8b8f0;
            outline-offset: 5px;
        }

        @keyframes arrive {
            from {
                opacity: 0;
                transform: translateY(12px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes type {
            to {
                clip-path: inset(-0.3em 0 -0.3em 0);
            }
        }

        @keyframes cursor-move {
            to {
                left: 100%;
            }
        }

        @keyframes cursor-hide {
            to {
                opacity: 0;
            }
        }

        @keyframes cursor-show {
            to {
                opacity: 1;
            }
        }

        @keyframes caret-fade {
            from {
                opacity: 1;
            }
            to {
                opacity: 0;
            }
        }

        @media (max-width: 600px) {
            body {
                padding-top: 3rem;
                padding-bottom: 3rem;
            }

            h1 {
                font-size: clamp(2rem, 11vw, 2.8rem);
            }

            .site-layout {
                gap: 2.75rem;
            }

            .site-footer {
                align-items: flex-start;
                flex-direction: column;
                gap: 0.5rem;
            }

            .details-grid {
                grid-template-columns: 1fr;
                gap: 2.5rem;
                padding-top: 1.75rem;
            }

            .social,
            .project {
                min-height: 68px;
                padding: 0.9rem 1rem;
            }
        }

        @media (min-width: 601px) and (max-width: 800px) {
            .details-grid {
                grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
                gap: 2rem;
            }
        }

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

            .typing-text {
                clip-path: none;
                animation: none !important;
            }

            .typing-cursor {
                display: none;
            }
        }