:root {
    color-scheme: light;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #192025;
    background: #f1f2f0;
    --ink: #192025;
    --muted: #515b61;
    --orange: #ff8a39;
    --line: #d8ddda;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
a { color: inherit; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 3px solid #126eb0; outline-offset: 3px; }
.site-width { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 850; letter-spacing: .05em; font-size: .92rem; }
.brand small { display: block; margin-top: .14rem; font-size: .88rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.brand-mark { width: 2.45rem; height: 2.45rem; background: var(--orange); border-radius: 5px 5px 14px 5px; display: grid; place-items: center; }
.brand-mark::after { content: ""; display: block; width: 1.08rem; height: 1.08rem; border: solid var(--ink); border-width: 4px 0 0 4px; transform: rotate(45deg) translate(2px, 2px); }
.header-link { font-size: .9rem; font-weight: 700; background: none; border: 0; cursor: pointer; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }

.welcome { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: stretch; padding-block: clamp(2rem, 6vw, 5rem); }
.intro { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 31rem; padding: clamp(2.25rem, 5vw, 5rem); border-radius: 1.125rem; background: #1b2327; color: #fff; }
.intro::after { content: ""; position: absolute; z-index: -1; inset: -10% -35% -45% 52%; background: repeating-linear-gradient(135deg, transparent 0 14px, #ffffff18 14px 15px, transparent 15px 27px); transform: skewY(-8deg); }
.accent-line { width: 3rem; height: .28rem; background: var(--orange); margin-bottom: 1.6rem; }
.intro h1 { font-size: clamp(3.8rem, 8vw, 7.5rem); font-weight: 850; letter-spacing: -.075em; line-height: .86; }
.intro h1 span { color: var(--orange); }
.intro p { max-width: 29ch; margin-top: 1.7rem; color: #e1e8e7; font-size: 1.13rem; line-height: 1.6; }
.steps-title { margin-top: 2.15rem; font-size: 1.3rem; }
.club-steps { max-width: 33rem; display: grid; gap: 1.1rem; margin: 1.05rem 0 0; padding-inline-start: 1.65rem; }
.club-steps li { padding-inline-start: .3rem; }
.club-steps li::marker { color: var(--orange); font-weight: 800; }
.club-steps strong, .club-steps span { display: block; line-height: 1.45; }
.club-steps span { margin-top: .12rem; color: #dde7e8; font-size: .94rem; }

.card { background: #fff; padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 1.125rem; }
.application-card { display: flex; flex-direction: column; justify-content: center; }
.member-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; margin-bottom: 1.4rem; padding: .25rem; border-radius: .65rem; background: #edf0ee; }
.member-nav a { display: grid; place-items: center; min-height: 2.65rem; padding: .3rem .45rem; border-radius: .45rem; text-align: center; text-decoration: none; font-size: .9rem; font-weight: 750; }
.member-nav a[aria-current="page"] { background: #fff; box-shadow: 0 1px 3px #19202526; }
.member-nav a:hover { text-decoration: underline; text-underline-offset: .18em; }
.card h1, .card h2, .admin h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -.045em; }
.muted { color: var(--muted); margin-top: .65rem; line-height: 1.55; }
.stack { display: grid; gap: 1rem; margin-top: 1.55rem; }
.application-fields { display: grid; gap: 1rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field { display: grid; gap: .35rem; }
label { font-size: .92rem; font-weight: 700; }
.field-hint { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.field input { min-height: 3.25rem; min-width: 0; width: 100%; border: 1px solid #a5afac; background: #fdfdfc; border-radius: .55rem; padding: .72rem .9rem; color: var(--ink); }
.field input::placeholder { color: #626d71; }
.input-validation-error { border-color: #b52522 !important; }
.field-error { color: #9b241c; font-size: .9rem; line-height: 1.5; }
.privacy-field { display: grid; gap: .65rem; }
.privacy-link { width: fit-content; font-weight: 750; text-underline-offset: .22em; }
.privacy-page { max-width: 49rem; margin: clamp(2rem, 7vw, 5rem) auto; }
.privacy-text { margin-top: 1.2rem; white-space: pre-line; line-height: 1.55; overflow-wrap: anywhere; }
.check-label { display: flex; align-items: flex-start; gap: .55rem; line-height: 1.45; cursor: pointer; }
.check-label input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: .1rem 0 0; accent-color: var(--ink); }
.field-validation-valid, .validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 1.2rem; }
.button { min-height: 2.85rem; border: 1px solid transparent; border-radius: .55rem; cursor: pointer; color: var(--ink); font-weight: 750; padding: .65rem 1rem; }
.stack .button { min-height: 3.25rem; }
.primary { background: var(--orange); }
.primary:hover { background: #fa7930; }
.button:disabled, .field input:disabled { color: var(--muted); background: #ecefed; cursor: default; }
.secondary { background: #fff; border-color: #a5afac; }
.secondary:hover { background: #ecefed; }
.message { margin-top: 1.1rem; padding: .9rem 1rem; border-radius: .55rem; color: #253940; background: #e8efef; line-height: 1.5; }
.success { background: #e6f4eb; color: #225736; }

.login-card { max-width: 33rem; margin: clamp(2rem, 7vw, 5rem) auto; }
.admin { max-width: 59rem; margin: clamp(2rem, 6vw, 4.5rem) auto; }
.empty, .submissions { margin-top: 1.4rem; }
.submissions { display: grid; gap: .65rem; list-style: none; padding: 0; }
.submission { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.2rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: .78rem; background: #fff; }
.applicant { flex: 1 1 13rem; min-width: 0; display: grid; gap: .35rem; }
.applicant h2 { font-size: 1.08rem; overflow-wrap: anywhere; }
.applicant-details { display: grid; gap: .3rem; margin: 0; font-size: .9rem; }
.applicant-details div { display: flex; flex-wrap: wrap; gap: .2rem .45rem; }
.applicant-details dt { color: var(--muted); }
.applicant-details dd { margin: 0; overflow-wrap: anywhere; }
.applicant time { font-size: .86rem; color: var(--muted); }
.telephone { width: fit-content; text-underline-offset: 3px; }
.status { border-radius: 2rem; font-size: .875rem; font-weight: 700; padding: .33rem .65rem; }
.pending { background: #fff0d0; color: #6c430a; }
.approved { background: #e0f2e6; color: #245337; }
.rejected { background: #fae9e6; color: #8a251e; }
.actions { display: flex; gap: .45rem; }

.rewards { max-width: 59rem; margin: clamp(2rem, 6vw, 4.5rem) auto; }
.rewards-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .85rem 1.1rem; margin-bottom: 1.25rem; }
.rewards-heading h1 { font-size: clamp(1.95rem, 5vw, 3rem); letter-spacing: -.045em; }
.balance { display: grid; gap: .1rem; padding: .65rem 1rem; border-radius: .6rem; background: #1b2327; color: #fff; }
.balance span { color: #dde7e8; font-size: .875rem; }
.balance strong { font-size: 1.13rem; }
.rewards-nav { grid-template-columns: repeat(4, 1fr); }
.rewards-card { margin-top: 1rem; }
.rewards-card h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
.rewards-card a.button { display: inline-flex; align-items: center; text-decoration: none; }
.rewards-card p + form, .rewards-card p + a.button, .purchase-summary + form { margin-top: 1rem; }
.reward-scan-start { width: 100%; min-height: 3.25rem; margin-top: 1rem; }
.reward-camera, .reward-code-manual { margin-top: 1rem; }
.reward-camera video { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 55vh; object-fit: contain; background: var(--ink); border-radius: .55rem; }
.reward-camera .button { margin-top: .65rem; }
.reward-scan-status { scroll-margin-block: 1rem; }
.reward-scan-status:not(:empty) { margin-top: .75rem; padding: .75rem 1rem; border: 1px solid #c2d1d8; border-inline-start-width: 4px; border-radius: .5rem; background: #eef3f5; color: #243c48; line-height: 1.45; }
.reward-scan-status[data-kind="success"] { border-color: #3e825b; background: #e8f6ed; color: #16432b; font-weight: 650; }
.reward-scan-status[data-kind="warning"] { border-color: #9b6d11; background: #fff3d7; color: #573900; font-weight: 650; }
.reward-scan-status[data-kind="error"] { border-color: #b6504b; background: #fcecea; color: #742520; font-weight: 650; }
.reward-code-manual summary { width: fit-content; padding-block: .25rem; font-weight: 700; cursor: pointer; }
.profile-details, .purchase-summary { display: grid; gap: .6rem; margin: 1.1rem 0; }
.profile-details div, .purchase-summary div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; border-bottom: 1px solid var(--line); padding-bottom: .45rem; }
.profile-details dt, .purchase-summary dt { color: var(--muted); }
.profile-details dd, .purchase-summary dd { margin: 0; font-weight: 700; }
.reward-product { display: grid; grid-template-columns: minmax(10rem, .65fr) 1fr; align-items: center; gap: 1.5rem; }
.reward-art { display: grid; place-items: center; min-height: 11rem; border-radius: .8rem; background: #ffe1cb; color: #612e13; }
.reward-art span { font-size: 3.8rem; font-weight: 800; }
.reward-price { display: block; margin: .85rem 0; }
.purchase-details { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1.1rem; margin-top: 1rem; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.cart-actions input { width: 4.8rem; min-height: 2.85rem; padding: .4rem; border: 1px solid #a5afac; border-radius: .55rem; }
.order-list { list-style: none; padding: 0; margin-bottom: 0; }
.order-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line); padding: .8rem 0; }
.preparing { background: #fff0d0; color: #6c430a; }
.delivered { background: #e0f2e6; color: #245337; }
.cancelled { background: #fae9e6; color: #8a251e; }

@media (max-width: 46rem) {
    .site-width { width: min(100% - 1.5rem, 34rem); }
    .header-inner { min-height: 4.4rem; }
    .welcome { grid-template-columns: 1fr; gap: .75rem; padding-block: 1rem 2rem; }
    .intro { min-height: auto; padding-block: 2rem; }
    .intro h1 { font-size: clamp(3.35rem, 11vw, 5.4rem); }
    .intro p { margin-top: 1rem; font-size: 1rem; }
    .accent-line { margin-bottom: 1rem; }
    .steps-title { margin-top: 1.45rem; }
    .rewards-nav { grid-template-columns: repeat(2, 1fr); }
    .reward-product { grid-template-columns: 1fr; }
    .actions { flex-wrap: wrap; }
}
