:root {
    --fg: #1a1d24;
    --muted: #5b6472;
    --accent: #2563eb;
    --bg: #ffffff;
    --soft: #f5f7fa;
    --border: #e3e7ec;
    --max: 960px;
}

* { 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: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

header.site {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

header.site .bar {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.1em 1.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1em;
}

header.site .brand {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--fg);
    font-size: 1.1em;
}

header.site nav a {
    color: var(--fg);
    margin-left: 1.2em;
    font-size: 0.95em;
}

header.site nav a:hover { color: var(--accent); text-decoration: none; }

main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 2.5em 1.5em 3em;
}

h1 { font-size: 2em; line-height: 1.2; margin: 0 0 0.3em; }
h2 { font-size: 1.35em; margin-top: 2em; margin-bottom: 0.5em; }
h3 { font-size: 1.1em; margin-top: 1.5em; margin-bottom: 0.3em; }

p { margin: 0.8em 0; }

.lead { font-size: 1.15em; color: var(--muted); max-width: 640px; }

ul { padding-left: 1.3em; }
li { margin: 0.35em 0; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2em;
    margin-top: 1.5em;
}

.card {
    padding: 1.3em 1.4em;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.card h3 { margin-top: 0; }

dl.contact { margin: 1em 0 0; }
dl.contact dt {
    font-weight: 600;
    margin-top: 1em;
    color: var(--muted);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
dl.contact dd { margin: 0.2em 0 0; font-size: 1.05em; }

footer.site {
    border-top: 1px solid var(--border);
    background: var(--soft);
    color: var(--muted);
    font-size: 0.88em;
    padding: 1.8em 0;
    margin-top: 2em;
}

footer.site .bar {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8em;
}

@media (max-width: 600px) {
    header.site .bar { flex-direction: column; align-items: flex-start; }
    header.site nav a { margin-left: 0; margin-right: 1em; }
    h1 { font-size: 1.65em; }
    main { padding: 1.8em 1.2em; }
}
