:root {
    --paper: #f3ece0;
    --paper-2: #e7dece;
    --ink: #1c1712;
    --ink-soft: #53493d;
    --line: #d2c6b2;
    --rust: #c24a1a;
    --rust-dark: #9a3812;
    --sage: #2f5a43;
    --header: #221c16;
    --header-text: #f3ece0;
    --focus: #c24a1a;
    --max: 68rem;
    --narrow: 40rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, .brand-name, .footer-brand, .eyebrow {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 650;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin: 0 0 0.75rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.75rem;
}

h3 {
    font-size: 1.15rem;
    margin: 0 0 0.4rem;
}

p, ul, ol {
    margin: 0 0 1rem;
}

a {
    color: var(--rust-dark);
}

a:hover {
    color: var(--rust);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -3rem;
    background: var(--header);
    color: var(--header-text);
    padding: 0.5rem 0.75rem;
    z-index: 20;
}

.skip-link:focus {
    top: 0.75rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.wrap {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

.narrow {
    width: min(100% - 2rem, var(--narrow));
}

.muted {
    color: var(--ink-soft);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: var(--rust-dark);
    margin-bottom: 0.4rem;
}

.lede {
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.site-header {
    background: var(--header);
    color: var(--header-text);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--header-text);
    text-decoration: none;
    font-size: 1.25rem;
}

.brand:hover {
    color: var(--header-text);
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.4rem;
    display: block;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-label {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle-label span:not(.visually-hidden) {
    display: block;
    width: 1.35rem;
    height: 2px;
    background: var(--header-text);
    box-shadow: 0 -6px 0 var(--header-text), 0 6px 0 var(--header-text);
}

.site-nav {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    position: absolute;
    left: 0;
    right: 0;
    top: 4rem;
    background: var(--header);
    padding: 0.75rem 1rem 1rem;
}

.nav-toggle:checked ~ .site-nav {
    display: flex;
}

.nav-link {
    color: var(--header-text);
    text-decoration: none;
    padding: 0.55rem 0.2rem;
}

.nav-link.is-current {
    box-shadow: inset 0 -2px 0 #e2b089;
}

@media (min-width: 800px) {
    .nav-toggle-label {
        display: none;
    }

    .site-nav {
        display: flex;
        flex-direction: row;
        position: static;
        padding: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.85rem 1.1rem;
    }
}

.hero, .section, .page {
    padding: 3.5rem 0;
}

.hero-grid,
.split {
    display: grid;
    gap: 2rem;
}

@media (min-width: 860px) {
    .hero-grid,
    .split {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }
}

.hero-figure,
.media-frame {
    margin: 0;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.hero-figure img,
.media-frame img,
.media-frame video,
.media-frame iframe {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

.media-frame iframe,
.media-frame video {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 12rem;
}

.media-placeholder figcaption {
    padding: 0.75rem 1rem;
    color: var(--ink-soft);
}

.section-alt {
    background: var(--paper-2);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid var(--ink);
    font-weight: 650;
    cursor: pointer;
    font: inherit;
}

.btn-primary {
    background: var(--rust);
    border-color: var(--rust-dark);
    color: #fff7f0;
}

.btn-primary:hover {
    background: var(--rust-dark);
    color: #fff7f0;
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
}

.btn-ghost:hover {
    color: var(--ink);
    background: var(--paper-2);
}

.split-list,
.plain-list,
.flow {
    padding-left: 1.2rem;
}

.flow {
    display: grid;
    gap: 0.65rem;
    max-width: 28rem;
}

.browser-grid,
.card-grid,
.download-grid {
    display: grid;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.browser-grid li,
.card-grid li,
.download-grid li,
.feature-stack section {
    background: #fffaf2;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
}

@media (min-width: 700px) {
    .browser-grid,
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.browser-name,
.download-grid h2 {
    display: block;
    font-weight: 650;
    margin-bottom: 0.35rem;
}

.status,
.status-line .status {
    display: inline-block;
    color: var(--sage);
    font-weight: 650;
}

.feature-stack {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-band {
    background: var(--header);
    color: var(--header-text);
}

.cta-band h2,
.cta-band p {
    color: var(--header-text);
}

.cta-band .btn-primary {
    margin-top: 0.5rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0 2.5rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand::before {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.3rem;
    background: url("/favicon/icon48.png") center / cover no-repeat;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
}

@media (min-width: 700px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: end;
    }
}

.stack-form {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf2;
    color: var(--ink);
    font: inherit;
}

.field-error,
.form-errors {
    color: var(--rust-dark);
}

.notice {
    background: #fffaf2;
    border: 1px solid var(--line);
    border-left: 4px solid var(--sage);
    padding: 1rem 1.1rem;
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.wrap-note {
    margin-top: 1.5rem;
}
