:root {
    color-scheme: light;
    --bg: #f4f1e9;
    --panel: #fffdf8;
    --panel-strong: #ffffff;
    --text: #151814;
    --muted: #667065;
    --line: #ded7c9;
    --accent: #176b5b;
    --accent-strong: #0f4f43;
    --accent-soft: #e4f0eb;
    --gold: #c9861c;
    --gold-soft: #f6ead2;
    --shadow: 0 18px 50px rgba(32, 36, 28, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #fffcf5 0%, var(--bg) 42%, #eef2eb 100%);
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.55;
}

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

a:hover {
    text-decoration: underline;
}

.site-header,
.site-footer,
main {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(222, 215, 201, 0.78);
}

.brand,
.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    color: var(--text);
    font-weight: 800;
    font-size: 1.02rem;
}

.brand-mark,
.app-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--text), #2d3b35);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: inset 0 -3px 0 rgba(201, 134, 28, 0.8);
}

.site-nav a {
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--accent-strong);
    font-weight: 700;
    padding: 8px 10px;
}

.site-nav a:hover {
    background: var(--accent-soft);
    border-color: #c7ddd5;
    text-decoration: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 18px;
    padding: 68px 0 48px;
}

.app-hero {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.app-icon-large {
    width: 92px;
    height: 92px;
    font-size: 2.4rem;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 14px;
    font-size: 3.85rem;
    letter-spacing: 0;
    line-height: 1;
}

h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

h3 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.lede {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.12rem;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-actions span,
.hero-actions a {
    border: 1px solid #c9dcd4;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 9px 12px;
}

.hero-actions a:hover {
    background: #d9ebe4;
    text-decoration: none;
}

.hero-panel {
    background: linear-gradient(180deg, var(--panel-strong), #f8f3e8);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.hero-panel strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.45rem;
    line-height: 1.15;
}

.hero-panel p {
    color: var(--muted);
}

.panel-kicker {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.section.narrow,
.document {
    max-width: 820px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-header p {
    color: var(--muted);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.app-card,
.link-row {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.app-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 14px;
    padding: 18px 18px 16px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.app-card:hover {
    border-color: #b9cfc5;
    box-shadow: 0 12px 32px rgba(31, 46, 39, 0.08);
    transform: translateY(-2px);
}

.app-card h3 a {
    color: var(--text);
}

.card-link {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--accent-strong);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 7px 10px;
}

.card-link:hover {
    background: var(--accent-soft);
    text-decoration: none;
}

.link-list {
    display: grid;
    gap: 10px;
}

.link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    color: var(--text);
    font-weight: 800;
    transition:
        background-color 160ms ease,
        border-color 160ms ease;
}

.link-row:hover {
    background: #ffffff;
    border-color: #b9cfc5;
    text-decoration: none;
}

.link-row span:last-child {
    color: var(--accent-strong);
    font-size: 0.92rem;
}

.document {
    padding: 50px 0;
}

.document-header {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--muted);
    font-weight: 700;
}

.document-body {
    display: grid;
    gap: 18px;
    padding: 28px 0 12px;
}

.document-body section {
    background: rgba(255, 253, 248, 0.66);
    border: 1px solid rgba(222, 215, 201, 0.8);
    border-radius: 8px;
    padding: 20px;
}

.document-body p,
.snapshot p,
.section p {
    color: var(--muted);
}

.site-footer {
    padding: 30px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@media (max-width: 640px) {
    .site-header,
    .section-header,
    .app-hero {
        align-items: start;
        flex-direction: column;
    }

    .site-header {
        gap: 12px;
    }

    .site-nav {
        width: 100%;
    }

    .app-hero {
        grid-template-columns: 1fr;
    }

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

    .hero {
        padding: 42px 0 34px;
    }

    h1 {
        font-size: 2.4rem;
    }

    .app-card {
        grid-template-columns: auto 1fr;
    }

    .card-link {
        grid-column: 1 / -1;
        text-align: center;
    }
}
