:root {
    color-scheme: light;
    --ink: #171717;
    --muted: #66615c;
    --line: #d8d3cc;
    --paper: #fbfaf8;
    --panel: #ffffff;
    --accent: #b52732;
    --accent-ink: #ffffff;
    --ok: #177245;
    --warning: #b46b00;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

main {
    min-height: calc(100vh - 68px);
}

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

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

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

.brand {
    color: var(--ink);
    font-weight: 800;
}

.brand-mark {
    background: linear-gradient(135deg, var(--accent), #272727);
    display: inline-block;
    height: 28px;
    width: 28px;
}

.page-band {
    padding: 44px 24px;
}

.intro-band {
    background: #efebe5;
    border-bottom: 1px solid var(--line);
}

.page-inner {
    margin: 0 auto;
    max-width: 1120px;
}

.launch-screen {
    align-items: center;
    display: grid;
    min-height: calc(100vh - 68px);
    padding: 44px 24px;
}

.launch-inner {
    margin: 0 auto;
    max-width: 720px;
    text-align: center;
}

.launch-inner h1,
.launch-inner .lead {
    margin-left: auto;
    margin-right: auto;
}

.intro-grid {
    align-items: center;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

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

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

h1 {
    font-size: 48px;
    line-height: 1.05;
    margin-bottom: 16px;
}

.lead {
    color: var(--muted);
    font-size: 18px;
    max-width: 620px;
}

.button,
button {
    background: var(--accent);
    border: 0;
    color: var(--accent-ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 16px;
}

.status-panel,
.setup-notice,
.empty-state {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 18px;
}

.status-panel {
    align-items: center;
    display: flex;
    gap: 12px;
}

.status-dot {
    border-radius: 999px;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.is-ok {
    background: var(--ok);
}

.is-warning {
    background: var(--warning);
}

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

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

.match-card {
    background: var(--panel);
    border: 1px solid var(--line);
    display: grid;
    grid-template-rows: 160px 1fr;
    min-height: 320px;
}

.match-thumb {
    background: linear-gradient(135deg, #2b2b2b, #7e1e28);
    overflow: hidden;
}

.match-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.match-body {
    padding: 18px;
}

.match-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.match-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.access-badge {
    background: #efebe5;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
}

.filters {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
    margin-bottom: 24px;
}

.admin-band {
    min-height: calc(100vh - 68px);
}

.admin-auth {
    background: var(--panel);
    border: 1px solid var(--line);
    margin: 0 auto;
    max-width: 440px;
    padding: 24px;
}

.admin-form {
    display: grid;
    gap: 16px;
}

label span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

input {
    border: 1px solid var(--line);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

@media (max-width: 720px) {
    .site-header,
    .section-heading,
    .intro-grid,
    .filters {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 36px;
    }
}
