:root {
    color-scheme: light;
    --bg: #fcfaf5;
    --bg-soft: #fffdf9;
    --surface: rgba(255, 255, 255, 0.68);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --surface-soft: rgba(255, 255, 255, 0.46);
    --text: #171717;
    --text-soft: #6f6b63;
    --line: rgba(23, 23, 23, 0.1);
    --line-strong: rgba(23, 23, 23, 0.16);
    --brand: #ffcc00;
    --brand-strong: #f1b800;
    --accent: #ff9900;
    --accent-soft: rgba(255, 153, 0, 0.12);
    --success: #167d6a;
    --success-soft: rgba(22, 125, 106, 0.1);
    --danger: #cb4c4c;
    --danger-soft: rgba(203, 76, 76, 0.1);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow-soft: 0 20px 42px rgba(23, 23, 23, 0.06);
    --site-width: min(100% - 28px, 1280px);
    --chrome-width: min(100% - 28px, 1640px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 204, 0, 0.11), transparent 18%),
        radial-gradient(circle at top right, rgba(255, 153, 0, 0.08), transparent 20%),
        linear-gradient(180deg, #fffdfa 0%, #fcf7ef 52%, #fffdf9 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
textarea { resize: vertical; }
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type='number'] { appearance: textfield; -moz-appearance: textfield; }
::selection { background: rgba(255, 204, 0, 0.26); color: var(--text); }
:focus-visible { outline: 3px solid rgba(255, 153, 0, 0.18); outline-offset: 2px; }

.chrome-shell,
.site-shell,
.main-shell { width: var(--site-width); margin: 0 auto; }
.chrome-shell { width: var(--chrome-width); }
.main-shell { padding-bottom: 56px; }
.section { padding: 34px 0; }
.section--tight { padding: 20px 0; }

h1, h2, h3, .brand-mark__text strong {
    margin: 0;
    font-family: 'Sora', 'Manrope', sans-serif;
    letter-spacing: -0.04em;
    line-height: 0.98;
    color: var(--text);
}
h1 { font-size: clamp(2.35rem, 5vw, 4.65rem); font-weight: 700; }
h2 { font-size: clamp(1.18rem, 2vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.04rem; font-weight: 700; }
p, small, label, li { color: var(--text-soft); }
p { margin: 0; line-height: 1.65; }
small { font-size: 0.86rem; }

.kicker,
.mini-kicker,
.round-tag,
.live-sync-pill,
.footer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.kicker, .mini-kicker, .footer-kicker { color: var(--text-soft); }
.round-tag, .live-sync-pill { color: var(--text); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.section-heading--compact { margin-bottom: 12px; }
.section-heading--spread { align-items: center; }
.section-heading--plain { padding: 0; border: 0; background: transparent; }

.flash-list { display: grid; gap: 10px; margin: 18px 0 0; }
.flash {
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    padding: 14px 16px;
    font-weight: 600;
}
.flash--success { border-color: rgba(22,125,106,0.18); background: rgba(22,125,106,0.06); color: #126251; }
.flash--danger { border-color: rgba(203,76,76,0.18); background: rgba(203,76,76,0.06); color: #a13737; }
.flash--warning { border-color: rgba(255,153,0,0.18); background: rgba(255,153,0,0.08); color: #8a5a00; }


.policy-page h1 + p { margin-top: 18px; }
.line-chart__axis-label {
    fill: rgba(23,23,23,0.56);
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
}
.dashboard-hero__identity {
    display: flex;
    align-items: center;
    gap: 16px;
}
.invite-share-block { display: grid; gap: 12px; }
.invite-share-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}
.club-listing { display: grid; gap: 12px; }
.club-listing__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(23,23,23,0.08);
}
.club-listing__row:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 960px) {
    .invite-share-row,
    .club-listing__row,
    .dashboard-hero__identity { grid-template-columns: 1fr; }
    .dashboard-hero__identity { display: grid; }
}

@media (max-width: 960px) {
    :root {
        --site-width: min(100% - 18px, 1280px);
        --chrome-width: min(100% - 18px, 1640px);
    }
    .section { padding: 26px 0; }
    .section-heading { align-items: stretch; flex-direction: column; }
}
