:root {
    color-scheme: dark;
    --background: #101914;
    --panel: #17241c;
    --border: #34493b;
    --text: #fff5e0;
    --muted: #c0cdbf;
    --gold: #f0c77e;
    --gold-hover: #fbdda4;
    --green: #b8dfbb;
    --red: #f3b4ad;
    --gutter: clamp(1rem, 3.8vw, 2.5rem);
    font-family: system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 70% 0%, #233d2c 0%, transparent 49rem),
        var(--background);
    color: var(--text);
    line-height: 1.55;
}

a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

h1, h2, p { margin: 0; }

h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    line-height: 1.15;
    font-size: clamp(1.7rem, 3.5vw, 2.15rem);
    letter-spacing: -.025em;
}

.page-width {
    width: min(100% - var(--gutter) * 2, 69rem);
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid #49594a;
    background: #101a14;
}

.navigation {
    display: flex;
    min-height: 4.65rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid #e6cc98;
    border-radius: .32rem;
    background: #f5e6bf;
    color: #203728;
    box-shadow: .14rem .16rem 0 #755e37;
    transform: rotate(-8deg);
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: 0;
}

.logout {
    color: var(--muted);
    text-underline-offset: .24em;
}

.logout:hover { color: var(--text); }

.hero {
    position: relative;
    isolation: isolate;
    min-height: 20rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid #9a7a4c;
    border-radius: 1rem;
    background:
        linear-gradient(90deg, #0d1b14fa 0%, #0d1b14ee 27%, #10251977 51%, #0d1b1400 74%),
        linear-gradient(0deg, #0c1711a8, transparent 62%),
        #193728 url("poker-felt-2026.webp") center 55% / cover no-repeat;
    box-shadow: 0 1.15rem 3rem #060b0799;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: .65rem;
    border: 1px solid #dcc08870;
    border-radius: .55rem;
    pointer-events: none;
}

.hero-content {
    width: 100%;
    padding: clamp(2rem, 6vw, 4.5rem);
}

.season {
    width: fit-content;
    padding: .18rem .62rem .18rem .76rem;
    border: 1px solid #d5b570a6;
    border-radius: .22rem;
    background: #101b14c2;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: .22em;
}

.hero h1 {
    max-width: 13ch;
    margin-top: .65rem;
    font: 400 clamp(2.4rem, 6.35vw, 5.65rem)/.97 Georgia, serif;
    letter-spacing: -.065em;
    overflow-wrap: anywhere;
    text-wrap: balance;
    text-shadow: 0 .11em .38em #080e09d9;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, .56fr);
    gap: 1rem;
    margin-block: clamp(1.5rem, 8vh, 5rem);
    align-items: stretch;
}

.login-layout .hero {
    min-height: clamp(24rem, 55vh, 36rem);
    background:
        linear-gradient(0deg, #0c1811fa 0%, #0d1b14de 26%, #0e1c1352 57%, transparent 78%),
        linear-gradient(90deg, #0c18117d, transparent 71%),
        #193728 url("poker-felt-2026.webp") 71% 53% / cover no-repeat;
}

.login-layout .hero h1 {
    font-size: clamp(2.55rem, 6.35vw, 5.65rem);
}

.panel {
    min-width: 0;
    padding: clamp(1.2rem, 3vw, 2rem);
    background: linear-gradient(145deg, #1d2b21, var(--panel) 95%);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-panel h2 { margin-bottom: 1.6rem; }

label, legend {
    display: block;
    font-size: .95rem;
    font-weight: 640;
}

input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    min-height: 3rem;
    border: 1px solid #5b6d59;
    border-radius: .55rem;
    margin: .4rem 0 1.05rem;
    padding: .65rem .8rem;
    color: var(--text);
    background: var(--background);
    font: inherit;
}

.primary-button {
    width: 100%;
    min-height: 3rem;
    padding: .65rem 1rem;
    border: 1px solid #ffdbaa;
    border-radius: .55rem;
    background: var(--gold);
    box-shadow: 0 .18rem 0 #8e6939;
    color: #20170d;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.primary-button:not(:disabled):hover { background: var(--gold-hover); }
.primary-button:disabled { opacity: .65; cursor: wait; }

.error { color: var(--red); }
#login-error { margin-bottom: 1rem; }

.event-page { margin-block: 1.6rem 3rem; }

.invitation {
    display: flex;
    align-items: center;
    gap: 1.6rem 2.5rem;
    margin-block: 1rem;
    border-top-color: #aa854d;
}

.event-date {
    min-width: 12.5rem;
    display: grid;
    padding-right: 1.75rem;
    border-right: 1px solid var(--border);
}

.event-date strong { color: var(--gold); }
.event-date span, .muted, .invitation p { color: var(--muted); }

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
}

.event-grid h2 { margin-bottom: .75rem; }
.event-grid form { margin-top: 1.35rem; }

fieldset {
    min-width: 0;
    border: 0;
    padding: 0;
    margin: 0 0 1.1rem;
}

legend { padding: 0; }

.response-options {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
}

.response-option {
    display: inline-flex;
    min-height: 2.7rem;
    align-items: center;
    gap: .35rem;
    border: 1px solid #5b6d59;
    border-radius: .5rem;
    padding: .35rem .55rem;
    font-size: .88rem;
    cursor: pointer;
}

.response-option:has(:checked) {
    border-color: var(--gold);
    color: var(--gold);
}

.response-option input { margin: 0; accent-color: var(--gold); }

.form-status:not(:empty) { margin-top: .75rem; }

.guest-counts, .guest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guest-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin-bottom: 1rem;
}

.guest-counts li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    padding: .7rem .2rem;
    border: 1px solid var(--border);
    border-radius: .55rem;
    background: var(--background);
    font-size: .875rem;
    text-align: center;
}

.guest-counts strong {
    display: grid;
    place-items: center;
    min-width: 2.65rem;
    min-height: 2.65rem;
    padding: .08rem;
    border: .2rem dashed currentColor;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px currentColor;
    font-size: 1.25rem;
    line-height: 1;
}
.status-yes { color: var(--green); }
.status-maybe { color: var(--gold); }
.status-no { color: var(--red); }

.guest-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1rem;
    border-top: 1px solid var(--border);
    padding-block: .6rem;
    overflow-wrap: anywhere;
}

.guest-status {
    flex-shrink: 0;
    font-size: .875rem;
}

@media (max-width: 46rem) {
    .login-layout, .event-grid { grid-template-columns: 1fr; }
    .login-layout .hero, .hero {
        min-height: 17rem;
        background:
            linear-gradient(0deg, #0c1811fa 0%, #0d1b14d6 23%, #0e1c1340 59%, transparent 83%),
            linear-gradient(90deg, #0b151090, transparent 73%),
            #193728 url("poker-felt-2026.webp") 73% 50% / cover no-repeat;
    }
    .login-layout { margin-block: 1rem 2rem; }
    .navigation { min-height: 3.75rem; }
}

@media (max-width: 34rem) {
    .invitation { display: block; }
    .event-date { border-right: 0; padding: 0; }
    .event-date + p {
        border-top: 1px solid var(--border);
        padding-top: .8rem;
        margin-top: .8rem;
    }
}
