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

:root {
    --base00: #1d1f21;
    --base01: #282a2e;
    --base02: #373b41;
    --base03: #969896;
    --base04: #b4b7b4;
    --base05: #c5c8c6;
    --base06: #e0e0e0;
    --base07: #ffffff;
    --base08: #cc6666;
    --base09: #de935f;
    --base0A: #f0c674;
    --base0B: #b5bd68;
    --base0C: #8abeb7;
    --base0D: #81a2be;
    --base0E: #b294bb;
    --base0F: #a3685a;

    --action: var(--base0D);
    --emphasis: var(--base0A);
    --mute: var(--base0C);
    --highlight: var(--base0E);

    --text-lg: clamp(16px, 1.25vw + 9px, 28px);
    --text-md: clamp(14px, 0.75vw + 10px, 20px);
    --text-sm: clamp(12px, 0.5vw + 9px, 16px);

    --mono: 'JetBrains Mono', monospace;
    --sans: 'Instrument Sans', sans-serif;
}

body {
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: var(--sans);
    color: var(--base05);
    background: var(--base00);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px
    );
    background-size: 28px 28px;
}

/* layout */

.page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(2rem, 3vw, 6rem);
    max-width: 1400px;
    min-width: 0;
    width: 100%;
    padding: clamp(0.5rem, 2dvh, 3rem) clamp(0.5rem, 2vw, 3rem);
}

.card-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* card */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: clamp(1rem, 2vw, 2rem);
    background: var(--base01);
    border: 1px solid var(--base02);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0 40px auto 40px;
    height: 1px;
    background: linear-gradient(
    90deg, transparent,
    rgba(255, 255, 255, 0.1), transparent
    );
}

.card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emphasis);
}

.status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--emphasis);
    border-radius: 50%;
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.email-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-addr {
    font-family: var(--mono);
    font-size: var(--text-sm);
    color: var(--emphasis);
    letter-spacing: 0.02em;
    text-decoration: underline color-mix(
    in srgb, var(--emphasis) 15%, transparent
    );
    text-underline-offset: 0.25em;
}

.copy-btn {
    font-family: var(--mono);
    font-size: var(--text-sm);
    color: var(--emphasis);
    background: none;
    border: 1px solid var(--base02);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    color: var(--base07);
    border-color: color-mix(
    in srgb, var(--emphasis) 50%, transparent
    );
}

.copy-btn.copied {
    color: var(--base0B);
    border-color: color-mix(
    in srgb, var(--base0B) 30%, transparent
    );
}

.copy-btn.copied::after {
    content: ' ✓';
}

.name {
    font-size: clamp(1.25rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.role {
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
    font-family: var(--mono);
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    color: var(--base04);
    opacity: 0.6;
}

.motto {
    margin-top: -0.75rem;
    font-family: var(--mono);
    font-size: var(--text-md);
    font-weight: 300;
    line-height: 1.8;
    color: var(--base03);
}

.motto strong {
    font-weight: 500;
    color: var(--base06);
}

.typed {
    color: var(--action);
    display: inline-block;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.6em solid var(--action);
    animation:
    typing 1s steps(12) 0.4s forwards,
    caret-hide 0s 2s forwards;
}

.links {
    margin-top: -0.75rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    font-family: var(--mono);
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--base04);
    border: 1px solid var(--base02);
    border-radius: 8px;
    transition: all 0.2s;
}

.links a:hover {
    color: var(--mute);
    border-color: color-mix(
    in srgb, var(--mute) 30%, transparent
    );
    background: color-mix(
    in srgb, var(--mute) 5%, transparent
    );
}

.links a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* subnav */

.subnav {
    display: flex;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
}

.subnav a {
    color: var(--base03);
    text-decoration: none;
    transition: color 0.2s;
}

.subnav a:hover { color: var(--mute); }

.subnav a + a::before {
    content: '|';
    margin-right: 0.5rem;
    color: var(--base02);
}

/* details */

.details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.details-intro {
    font-family: var(--mono);
    font-size: var(--text-md);
    font-weight: 300;
    color: var(--base06);
    line-height: 1.8;
}

.section-label {
    font-family: var(--mono);
    font-size: var(--text-sm);
    color: var(--action);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.domain {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.domain-title {
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.domain-desc {
    font-family: var(--mono);
    font-size: var(--text-md);
    font-weight: 300;
    color: var(--base03);
    line-height: 1.7;
}

.highlight {
    font-weight: 500;
    color: var(--base05);
}

.accent {
    font-weight: 500;
    color: var(--emphasis);
}

/* placeholder pages */

.placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: var(--text-md);
}

.placeholder-text {
    color: var(--base05);
    line-height: 1.6;
}

.placeholder-text.dim {
    color: var(--base03);
}

.placeholder-link {
    margin-top: 1rem;
    color: var(--action);
    text-decoration: none;
    transition: color 0.2s;
}

.placeholder-link:hover {
    color: var(--mute);
}

/* animations */

@keyframes pulse {
    0%, 25% { opacity: 1; }
    50% { opacity: 0.25; }
    75%, 100% { opacity: 1; }
}

@keyframes typing { to { width: 12ch; } }
@keyframes caret-hide { to { border-color: transparent; } }

/* two-column layout */

@media (min-width: 64rem) {
    body { align-items: center; }

    .page {
        flex-direction: row;
        align-items: center;
    }

    .card-column {
        width: 720px;
        flex-shrink: 0;
    }

    .details { min-width: 512px; }

    .domain {
        border-left: 1px solid var(--base02);
        padding-left: 1.2rem;
    }
}

/* card-top: stack status and email on phones */

@media (max-width: 28rem) {
    .page { gap: clamp(1rem, 5dvh, 4rem); }

    .card-top { flex-wrap: wrap; }

    .card { gap: 0.75rem; }

    .card-column { gap: 0.5rem; }

    .role { margin-bottom: 0.25rem; }

    .motto {
        margin-top: 0;
        line-height: 1.5;
    }

    .links {
        grid-template-columns: repeat(3, auto);
        justify-content: start;
        gap: 0.25rem;
    }

    .links a {
        width: 1.75rem;
        height: 1.75rem;
        padding: 0;
        font-size: 0;
        letter-spacing: 0;
        gap: 0;
    }

    .details { gap: 0.75rem; }

    .details-intro { line-height: 1.5; }

    .domain-desc { line-height: 1.4; }
}

/* subnav: hide separator on narrow views */

@media (max-width: 40rem) {
    .subnav {
        justify-content: space-evenly;
        width: 100%;
    }

    .subnav a + a::before { display: none; }
}
