:root {
    color-scheme: light;
    --background: #f6f7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #64748b;
    --border: #dfe4ec;
    --accent: #4f46e5;
    --accent-dark: #3730a3;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header,
main,
footer {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

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

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--muted);
    font-size: .95rem;
    text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
    color: var(--accent);
}

nav .admin-link {
    color: var(--accent);
    font-weight: 700;
}

.hero {
    padding: clamp(5rem, 10vw, 8rem) 0;
    max-width: 790px;
}

.eyebrow {
    margin: 0 0 .65rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -.025em;
}

h3 {
    margin-bottom: .4rem;
    font-size: 1.05rem;
}

.hero-copy {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.16rem;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .65rem 1rem;
    border: 1px solid var(--border);
    border-radius: .55rem;
    font-weight: 650;
    text-decoration: none;
}

.button.primary {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
}

.button.primary:hover,
.button.primary:focus-visible {
    background: var(--accent-dark);
}

.button.secondary {
    background: var(--surface);
}

.section {
    margin-bottom: 1.5rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface);
}

.section-heading,
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.section-heading > p,
.two-columns p,
.feature-grid p,
.empty-state p,
.muted {
    color: var(--muted);
}

.empty-state {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px dashed #cbd5e1;
    border-radius: .75rem;
    background: #fafbfc;
}

.empty-state > span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: #eef2ff;
}

.empty-state p,
.empty-state h3,
.feature-grid p {
    margin-bottom: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature-grid article {
    padding-top: 1rem;
    border-top: 2px solid var(--border);
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 2rem;
    color: var(--muted);
    font-size: .88rem;
}

@media (max-width: 720px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: .75rem;
        padding-block: 1rem;
    }

    nav {
        width: 100%;
        gap: 1rem;
        overflow-x: auto;
    }

    .hero {
        padding: 4rem 0;
    }

    .section-heading,
    .two-columns,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
    }
}
