/* smooth native cross-fade between pages (Chromium/Safari; ignored elsewhere) */
@view-transition {
    navigation: auto;
}

/* respect reduced-motion: skip the cross-fade */
@media (prefers-reduced-motion: reduce) {

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

/* self-hosted JetBrains Mono — subset to latin + the glyphs the site uses */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/assets/fonts/JetBrainsMono-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/JetBrainsMono-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('/assets/fonts/JetBrainsMono-LightItalic.woff2') format('woff2');
}

:root {
    --bg: #0f0e11;
    --foam: #9ccfd8;
    --rose: #eb6f92;
    --text: #e0def4;
    --subtle: #6e6a86;
    --muted: #3a3648;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem;
    width: 420px;
}

.name {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.name span {
    color: var(--foam);
}

.tagline {
    font-size: 0.82rem;
    font-style: italic;
    font-weight: 300;
    color: var(--subtle);
    line-height: 1.8;
}

/* contact-me page: label/value rows aligned in monospace columns */
.contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 300;
    margin-top: 0.2rem;
}

.contact-row {
    display: flex;
}

.contact-label {
    width: 10ch;
    flex-shrink: 0;
    color: var(--subtle);
}

.contact-value {
    color: var(--text);
    text-decoration: none;
}

a.contact-value:hover {
    color: var(--foam);
}

.row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    line-height: 1.6rem;
    user-select: none;
    text-decoration: none;
    color: inherit;
}

/* hidden but still occupies space, so slugs stay aligned whether or not it shows */
.row-arrow {
    visibility: hidden;
    color: var(--rose);
}

.row.active .row-arrow {
    visibility: visible;
}

.row-slug {
    color: var(--muted);
}

.row.active .row-slug {
    color: var(--text);
    font-weight: 500;
}

.row-star {
    color: var(--subtle);
}

.cursor {
    width: 8px;
    height: 1rem;
    background: var(--text);
    animation: blink 1.1s step-end infinite;
}

.location {
    position: fixed;
    bottom: 2rem;
    right: 2.5rem;
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 0;
    }
}