@font-face {
    font-family: 'DM Serif Display';
    src: url('DMSerifDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --bg: #f9f9f7;
    --accent: #6B30C2;
    --max-width: 680px;

    --c1: #6B30C2;
    --c2: #C689C6;
    --c3: #E8A0BF;
    --c4: #FCC5C0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(to bottom, var(--bg) 0%, #ede9f2 100%);
    min-height: 100vh;
    color: var(--text);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8rem 1.5rem 6rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    margin: 0 0 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Hero */

header {
    margin-bottom: 8rem;
    text-align: center;
}

.brand {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    font-weight: 400;
    margin: 0 0 1.5rem;
    color: var(--c1);
}

.tagline {
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.subline {
    color: var(--text-muted);
    margin: 0;
}

/* Sections */

section, footer {
    margin-top: 9rem;
}

h2 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c1);
    margin: 0 0 2rem;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

/* Services */

dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

dt {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

dd {
    margin: 0;
}

/* Projects / Open source */

article {
    margin-bottom: 3.5rem;
}

article:last-child {
    margin-bottom: 0;
}

.meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

/* Responsive */

@media (max-width: 480px) {
    main {
        padding: 5rem 1.25rem 4rem;
    }

    .tagline {
        font-size: 1.25rem;
    }
}
