:root {
    color-scheme: dark;
    --bg: #0b0d10;
    --surface: #11151b;
    --surface-soft: #151a22;
    --line: rgba(226, 232, 240, 0.12);
    --text: #f8fafc;
    --muted: #9aa7b7;
    --soft: #d8dee8;
    --blue: #7dd3fc;
    --green: #86efac;
    --amber: #fbbf24;
    --violet: #c4b5fd;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a,
button {
    font: inherit;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 64px;
    padding: 0 clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
    background: rgba(11, 13, 16, 0.9);
    backdrop-filter: blur(16px);
}

.brand,
.contact-button,
.project-action {
    display: inline-flex;
    align-items: center;
}

.brand {
    gap: 0.65rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark,
.project-mark {
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 850;
}

.brand-mark {
    width: 38px;
    height: 34px;
    background: var(--text);
    color: var(--bg);
    font-size: 0.75rem;
}

.contact-button {
    gap: 0.45rem;
    min-height: 38px;
    padding: 0 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--soft);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 750;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.contact-button:hover {
    border-color: rgba(125, 211, 252, 0.34);
    background: var(--surface-soft);
    color: var(--text);
}

.contact-button svg,
.project-action svg {
    width: 1rem;
    height: 1rem;
}

.page-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem) 3rem;
}

.intro {
    max-width: 680px;
    margin-bottom: 2rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(2.7rem, 8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
}

.intro p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.skill-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.2rem;
}

.skill-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 0.55rem;
    border: 1px solid rgba(226, 232, 240, 0.1);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.025);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 720;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.project-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    min-height: 236px;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 232, 240, 0.25);
    background: var(--surface-soft);
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.project-mark {
    width: 32px;
    height: 32px;
    background: rgba(248, 250, 252, 0.08);
    color: var(--text);
}

.project-state {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.project-state.live {
    border-color: rgba(134, 239, 172, 0.24);
    color: var(--green);
}

.project-state.open {
    border-color: rgba(196, 181, 253, 0.28);
    color: var(--violet);
}

.project-state.planned {
    border-color: rgba(251, 191, 36, 0.26);
    color: var(--amber);
}

h2 {
    margin: 1rem 0 0.55rem;
    font-size: 1.28rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.15;
}

.project-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.58;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.project-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 0.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--soft);
    font-size: 0.74rem;
    font-weight: 700;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-action {
    justify-self: start;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0 0.75rem;
    border: 1px solid rgba(125, 211, 252, 0.26);
    border-radius: 8px;
    background: rgba(125, 211, 252, 0.08);
    color: var(--text);
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.project-card > .project-action {
    margin-top: 1rem;
}

.project-action:hover {
    border-color: rgba(125, 211, 252, 0.46);
    background: rgba(125, 211, 252, 0.13);
}

.project-action.muted {
    border-color: var(--line);
    background: rgba(248, 250, 252, 0.035);
    color: var(--muted);
    cursor: default;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem) 2rem;
    color: var(--muted);
    font-size: 0.82rem;
}

@media (max-width: 760px) {
    .site-header {
        height: 60px;
        padding-inline: 1rem;
    }

    .contact-button {
        padding-inline: 0.7rem;
    }

    .page-shell {
        padding-top: 2.5rem;
    }

    h1 {
        font-size: clamp(2.45rem, 17vw, 3.4rem);
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 0;
        padding: 1rem;
    }

    .site-footer {
        display: grid;
    }
}
