:root {
    --bg: #fafaf9;
    --text: #1c1917;
    --muted: #78716c;
    --accent: #1c1917;
    --rule: #e7e5e4;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c0a09;
        --text: #f5f5f4;
        --muted: #a8a29e;
        --accent: #f5f5f4;
        --rule: #292524;
    }
}

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

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.tagline {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: var(--muted);
}

.contact {
    align-self: flex-start;
    margin-top: 2.5rem;
    padding-bottom: 0.125rem;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.15s ease;
}

.contact:hover,
.contact:focus-visible {
    border-color: var(--accent);
}

footer {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 1.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}
