@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
    --rust: #993c1d;
    --charcoal: #1c1b19;
    --stone: #5f5e5a;
    --sand: #f1efe8;
    --line: #d9d6cf;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f8f8;
    color: var(--charcoal);
    font-family: 'Be Vietnam Pro', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.5;
}

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

a:hover {
    text-decoration: underline;
}

header,
main,
footer {
    width: min(760px, calc(100% - 40px));
    margin-inline: auto;
}

header {
    padding: 36px 0 20px;
    border-bottom: 1px solid var(--line);
}

header p {
    margin-top: 6px;
    color: var(--stone);
    font-size: 13px;
    font-weight: 500;
}

header strong {
    color: var(--charcoal);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
}

nav a[aria-current="page"] {
    color: var(--charcoal);
    font-weight: 700;
    text-decoration: none;
    pointer-events: none;
}

main {
    flex: 1;
    padding: 36px 0 64px;
}

.metadata {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 24px;
    margin-bottom: 28px;
}

.metadata h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.15;
}

.metadata p {
    color: var(--stone);
    font-size: 13px;
    font-style: italic;
    font-weight: 500;
}

article h2 {
    margin: 36px 0 12px;
    font-size: 22px;
    font-weight: 700;
}

article h3 {
    margin: 24px 0 10px;
    font-size: 16px;
    font-weight: 700;
}

article p,
article li {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

article p {
    margin-bottom: 16px;
}

article ul,
article ol {
    margin: 0 0 16px 22px;
}

article li {
    margin-bottom: 8px;
}

article address {
    font-style: normal;
    margin-bottom: 16px;
}

.contact-card {
    background: var(--sand);
    border-radius: 16px;
    padding: 20px 22px;
    margin: 8px 0 24px;
}

.contact-card p {
    margin-bottom: 8px;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

footer {
    padding: 20px 0 36px;
    border-top: 1px solid var(--line);
    color: var(--stone);
    font-size: 12px;
    font-weight: 500;
}

footer p + p {
    margin-top: 8px;
}

@media (max-width: 600px) {
    header,
    main,
    footer {
        width: calc(100% - 32px);
    }

    header {
        padding-top: 24px;
    }

    main {
        padding-top: 28px;
    }

    article h2 {
        font-size: 20px;
    }
}
