:root {
    --accent: #e04200;
    --black: #0a0a0a;
    --paper: #f5f2ec;
    --muted: #77736d;
    --line: #d8d3ca;

    font-family:
            Inter,
            ui-sans-serif,
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--black);
}

a {
    color: inherit;
}

.subnav,
.site-header,
.site-footer,
.hero,
.badges,
.about,
.howto,
.page {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    font-weight: 800;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 28px;
}

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

.hero {
    padding: 110px 0 140px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(4rem, 9vw, 8.5rem);
    line-height: .9;
    letter-spacing: -.065em;
}

.intro {
    max-width: 620px;
    margin: 40px 0;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1.6;
}

.button {
    display: inline-block;
    padding: 14px 22px;
    background: var(--accent);
    color: var(--black);
    font-weight: 750;
    text-decoration: none;
}

.badges {
    padding: 80px 0 120px;
    border-top: 1px solid var(--line);
}

.section-header {
    margin-bottom: 48px;
}

.section-header h2,
.about h2 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5rem);
    letter-spacing: -.05em;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.badge-card {
    background: #fff;
    border: 1px solid var(--line);
}

.badge-preview {
    min-height: 300px;
    padding: 48px;
    display: grid;
    place-items: center;
    background: #ece8e0;
}

.badge-preview img {
    display: block;
    width: 100%;
    max-height: 230px;
}

.badge-meta {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.badge-meta h3 {
    margin: 6px 0 0;
    font-size: 1.2rem;
}

.badge-style,
.version {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.actions {
    padding: 0 24px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.actions a,
.actions button {
    appearance: none;
    border: 1px solid var(--black);
    background: transparent;
    color: var(--black);
    padding: 9px 13px;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.actions button:hover,
.actions a:hover {
    background: var(--black);
    color: #fff;
}

.about {
    padding: 120px 0;
    border-top: 1px solid var(--line);
}

.about p:last-child {
    max-width: 680px;
    margin-top: 36px;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.7;
}

.site-footer {
    padding: 36px 0;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: .85rem;
}

.page {
    padding: 80px 0 120px;
}

.page-header {
    margin-bottom: 48px;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: .95;
    letter-spacing: -.05em;
}

.page-content {
    max-width: 760px;
    font-size: 1.08rem;
    line-height: 1.7;
}

.page-content h2,
.page-content h3 {
    margin-top: 2.5em;
}

.page-content p {
    margin: 0 0 1.4em;
}

@media (max-width: 760px) {
    .site-header nav {
        display: none;
    }

    .hero {
        padding: 80px 0 100px;
    }

    .badge-grid {
        grid-template-columns: 1fr;
    }

    .badge-preview {
        min-height: 220px;
        padding: 28px;
    }

    .site-footer {
        flex-direction: column;
    }
}