:root {
    --background: #f6f2ea;
    --surface: #fffdf9;
    --border: #d7d0c4;
    --text: #171717;
    --muted: #5b5b57;
    --accent: #111111;
    --max-width: 1040px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

.wrap {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.site-header,
.site-footer {
    background: var(--surface);
}

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

.header-row,
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.15rem 0;
}

.brand,
.nav a,
.footer-links a,
.list-item,
.button {
    text-decoration: none;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.nav,
.footer-links {
    display: flex;
    gap: 1.2rem;
}

.nav a,
.footer-links a {
    color: var(--muted);
}

.nav a:hover,
.footer-links a:hover,
.list-item:hover {
    color: var(--accent);
}

.hero,
.section {
    padding: 5rem 0;
}

.section-border {
    border-top: 1px solid var(--border);
}

.hero-inner {
    max-width: 760px;
}

.kicker {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

h1,
h2,
h3 {
    font-family: "Newsreader", serif;
    font-weight: 600;
    line-height: 1.08;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
    max-width: 10ch;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
    font-size: 1.55rem;
    margin-bottom: 0.8rem;
}

.lead,
.text-column p,
.card p,
.article-content p,
.article-content li,
.list-item span:last-child,
.site-footer p {
    color: var(--muted);
}

.lead {
    max-width: 56ch;
    margin-top: 1.5rem;
    font-size: 1.08rem;
}

.actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.1rem;
    border: 1px solid var(--accent);
    font-weight: 600;
}

.button-dark {
    background: var(--accent);
    color: #ffffff;
}

.button-light {
    background: transparent;
    color: var(--accent);
}

.section-heading {
    max-width: 640px;
    margin-bottom: 2rem;
}

.grid-three,
.two-column {
    display: grid;
    gap: 1.25rem;
}

.grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-column {
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
}

.card,
.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
}

.card {
    padding: 1.6rem;
}

.text-column p + p,
.article-content p + p {
    margin-top: 1rem;
}

.list {
    display: grid;
    border-top: 1px solid var(--border);
}

.list-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-box {
    max-width: 760px;
}

.contact-box .button {
    margin-top: 1.5rem;
}

.article-page .site-header,
.article-page .site-footer {
    background: transparent;
}

.article-shell {
    width: min(calc(100% - 2rem), 760px);
    margin: 0 auto;
    padding: 4rem 0 5rem;
}

.article-card {
    padding: 2rem;
}

.article-meta {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.article-content {
    margin-top: 1.5rem;
}

.article-content h2 {
    margin: 2rem 0 0.8rem;
    font-size: 2rem;
}

.article-content ul {
    margin: 1rem 0 0 1.2rem;
}

@media (max-width: 860px) {
    .grid-three,
    .two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-row,
    .footer-row,
    .nav,
    .footer-links,
    .actions,
    .list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero,
    .section,
    .article-shell {
        padding: 3rem 0;
    }

    .article-card,
    .card {
        padding: 1.25rem;
    }
}
