:root {
    --bg: #ffffff;
    --fg: #1c1c1e;
    --muted: #5f6b66;
    --accent: #1f9b6a;
    --rule: #dde8e2;
    --card: #f1f8f4;
    --icon-shadow: 0 4px 16px rgba(11, 36, 31, 0.18);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f2823;
        --fg: #eaf3ee;
        --muted: #9ab3ab;
        --accent: #48d298;
        --rule: #1d4239;
        --card: #173a33;
        --icon-shadow: none;
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

header {
    text-align: center;
    padding: 2.5rem 1.25rem 2rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 2.5rem;
    background: var(--card);
    border-bottom: 1px solid var(--rule);
}

header img.icon {
    width: 120px;
    height: 120px;
    border-radius: 22%;
    box-shadow: var(--icon-shadow);
}

h1 {
    margin: 1rem 0 0.25rem;
    font-size: 2rem;
    letter-spacing: -0.01em;
}

.tagline {
    color: var(--muted);
    margin: 0;
    font-size: 1.05rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.4rem;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
}

p {
    margin: 0 0 1rem;
}

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

a:hover {
    text-decoration: underline;
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.contact-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    border: 1px solid var(--rule);
}

footer {
    text-align: center;
    font-size: 0.85rem;
    padding: 2rem 1.25rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-top: 1px solid var(--rule);
}

/* Smooth anchor scroll, with a little offset so headings aren't flush with viewport top */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 1rem;
}
