@font-face {
    font-family: "Ioskeley Mono";
    src: url("fonts/IoskeleyMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Ioskeley Mono";
    src: url("fonts/IoskeleyMono-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Ioskeley Mono";
    src: url("fonts/IoskeleyMono-Italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #ffffff;
    --fg: #141414;
    --muted: #666666;
    --line: #e6e6e6;
    --accent: #fc5185;
    --max-width: 640px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #141312;
        --fg: #f2efe9;
        --muted: #9a948b;
        --line: #2a2825;
    }
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    padding: 4rem 1.5rem;
    color: var(--fg);
    background: var(--bg);
    font-family: "Ioskeley Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
        monospace;
    font-size: 16px;
    line-height: 1.65;
    font-variant-ligatures: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

::selection {
    background: var(--accent);
    color: #fff;
}

header {
    margin-bottom: 4.5rem;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
}

h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.intro {
    max-width: 48ch;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

h2 {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.projects {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.projects li {
    border-bottom: 1px solid var(--line);
}

.projects a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "name arrow"
        "desc arrow";
    gap: 0.15rem 1.5rem;
    padding: 1.1rem 0;
    transition: color 0.15s ease;
}

.projects a:hover {
    color: var(--accent);
}

.project-name {
    grid-area: name;
    font-weight: 700;
}

.project-desc {
    grid-area: desc;
    color: var(--muted);
    font-size: 0.9rem;
}

.projects a:hover .project-desc {
    color: var(--accent);
}

.arrow {
    grid-area: arrow;
    align-self: center;
    color: var(--muted);
    transition: transform 0.15s ease, color 0.15s ease;
}

.projects a:hover .arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

footer {
    margin-top: 4.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

footer p {
    margin: 0 0 0.5rem;
}

footer a:hover {
    color: var(--accent);
}

@media (max-width: 480px) {
    body {
        padding: 3rem 1.25rem;
    }

    header {
        margin-bottom: 3rem;
    }

    .projects a {
        gap: 0.1rem 1rem;
    }
}
