:root {
    color-scheme: light;
    font: 100%/1.55 system-ui, sans-serif;
    color: #15291e;
    background: #f5f6ee;
    --ink: #15291e;
    --forest: #0a2119;
    --green: #205e43;
    --lime: #d5f47d;
    --paper: #fff;
    --line: #dce4d9;
    --muted: #4d6356;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: -.045em; }
h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.shell { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.muted { color: var(--muted); }
[id] { scroll-margin-top: 1.5rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, .table-wrap:focus-visible { outline: 3px solid #2579a0; outline-offset: 3px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; font-weight: 780; letter-spacing: -.045em; text-decoration: none; }
.brand-mark { display: grid; width: 2.1rem; aspect-ratio: 1; place-items: center; font-size: .78rem; letter-spacing: -.05em; border-radius: .52rem; color: var(--forest); background: var(--lime); }
.store-header, .store-footer { background: var(--forest); color: #f5f9f1; }
.store-nav, .store-footer .shell, .admin-top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.4rem; gap: 1rem; }
.store-nav nav, .admin-account { display: flex; align-items: center; gap: clamp(.8rem, 4vw, 2.2rem); }
.store-nav nav a, .store-footer .shell > a:last-child { color: inherit; font-size: .9rem; text-decoration: none; }
.store-nav a:hover, .store-footer a:hover { text-decoration: underline; }

.hero { background: #142c21 url("/stadium-hero.webp") center 60% / cover no-repeat; color: #f6fbf2; }
.hero-inner { min-height: clamp(28rem, 60vw, 39rem); display: grid; align-items: center; }
.hero { background-image: linear-gradient(90deg, #071c15 0%, #071c15eb 21%, #071c1592 47%, #071c1508 82%), url("/stadium-hero.webp"); }
.hero-copy { max-width: 39rem; padding: 3.8rem 0; }
.hero-copy .hero-kicker { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; font-weight: 700; color: var(--lime); }
.hero-kicker span { width: .55rem; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
.hero h1 { font-size: clamp(4rem, 9vw, 7.2rem); line-height: .9; letter-spacing: -.085em; }
.hero h1 + p { max-width: 26rem; margin: 1.35rem 0 1.65rem; color: #e3ece4; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.button, button {
    display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
    padding: .65rem .95rem; border: 1px solid var(--green); border-radius: .48rem;
    color: #fff; background: var(--green); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.button:hover, button:hover { filter: brightness(.93); }
button:disabled { opacity: .65; cursor: wait; }
.hero-button { color: var(--forest); background: var(--lime); border-color: var(--lime); }
.button-secondary { background: #fff; border-color: #b9cbbd; color: var(--green); }
.picks, .checkout, .how { padding-block: clamp(2.4rem, 6vw, 4.6rem); }
.checkout { padding-top: 0; }
.section-heading { margin-bottom: 1.25rem; }
.section-heading p { margin-top: .4rem; color: var(--muted); }
.availability { margin-bottom: 1rem; color: #325b45; background: #e9f1df; border: 1px solid #d7e5cd; border-radius: .55rem; padding: .7rem .9rem; }
.catalog, .payment { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16.5rem, 100%), 1fr)); gap: .95rem; }
.payment { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.product-card, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: .8rem; padding: 1.15rem; }
.product-card { display: flex; flex-direction: column; gap: .75rem; border-top: 3px solid #a7c5a7; }
.product-top, .product-bottom { display: flex; justify-content: space-between; align-items: start; gap: .65rem; }
.product-card h3, .product-card p { overflow-wrap: anywhere; }
.product-card p { color: var(--muted); }
.product-bottom { margin-top: auto; align-items: end; padding-top: .45rem; }
.price { font-size: 2rem; line-height: 1.1; letter-spacing: -.06em; }
.price small { font-size: .86rem; letter-spacing: 0; }
.chip { display: inline-block; flex-shrink: 0; padding: .15rem .5rem; border-radius: 2rem; background: #edf1ed; color: #3d5347; font-size: .77rem; font-weight: 700; }
.state-success { background: #e1f2df; color: #216039; }
.state-pending, .state-review { background: #fcf0d3; color: #775114; }
.state-failed, .state-cancelled { background: #fbe9e6; color: #873e30; }
.how { background: #e9efe4; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.steps li { border-top: 1px solid #a6baa7; padding-top: .9rem; }
.steps p { margin-top: .45rem; color: var(--muted); }
.paybill ol { margin: .8rem 0 0; padding-left: 1.25rem; }
.paybill li + li { margin-top: .55rem; }

label { display: block; margin: .7rem 0 .3rem; font-weight: 650; }
input:not([type="checkbox"]), select, textarea {
    width: 100%; min-width: 0; padding: .58rem .68rem; border: 1px solid #a9bbae;
    border-radius: .42rem; background: #fff; color: var(--ink); font: inherit;
}
textarea { resize: vertical; }
form > button { margin-top: .85rem; }
.status:not(:empty), .notice { padding: .62rem .8rem; border-left: 3px solid var(--green); background: #eaf4ee; margin-top: .75rem; }
.notice { margin-bottom: 1rem; }

.admin-body { background: #f2f5f0; }
.admin-top { background: #102b20; color: #fff; }
.admin-account a { color: #e5efe5; }
.admin-account form button { margin: 0; background: transparent; border-color: #88a294; color: #fff; }
.admin, .admin-login { padding: 1.4rem 0 3.5rem; }
.admin-login { max-width: 31rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.65rem; }
.admin-nav a { border-radius: .42rem; text-decoration: none; padding: .45rem .7rem; font-weight: 700; }
.admin-nav [aria-current="page"] { background: #deebdb; color: #194b32; }
.admin h1, .admin-login h1 { margin-bottom: .55rem; font-size: clamp(2.05rem, 5vw, 3.2rem); letter-spacing: -.055em; }
.admin h2 { font-size: 1.45rem; letter-spacing: -.025em; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: .8rem; margin: 1.25rem 0; }
.admin-stats .panel { text-decoration: none; color: var(--ink); }
.admin-stats .panel:hover { border-color: #78a48a; }
.admin-stats strong { display: block; font-size: 1.65rem; letter-spacing: -.04em; margin-top: .25rem; }
.admin-stats small, .admin-stats span { color: var(--muted); }
.admin-overview p { margin-top: .35rem; }
.admin-overview a { margin-top: .7rem; }
.admin-products { display: grid; gap: .65rem; margin-top: 1.15rem; }
.product-editor summary { cursor: pointer; }
.product-editor summary .chip { margin-left: .35rem; }
.admin-form { max-width: 37rem; }
.admin-form label input:not([type="checkbox"]), .admin-form label textarea { display: block; margin-top: .25rem; }
.admin-form .check { display: flex; gap: .4rem; align-items: center; }
.filters { margin-block: .95rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: .6rem; align-items: end; }
.filters label { margin: 0; font-size: .88rem; }
.filters input, .filters select { margin-top: .22rem; }
.filter-actions { grid-column: 1 / -1; display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.filter-actions button { margin: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
td, th { border-bottom: 1px solid var(--line); padding: .55rem .7rem; white-space: nowrap; }
th { font-size: .8rem; color: var(--muted); }
td button { margin: 0; padding: .25rem .5rem; }
.pager { display: flex; align-items: center; gap: .85rem; padding-top: .85rem; }

@media (max-width: 40rem) {
    .shell { width: min(72rem, calc(100% - 2rem)); }
    .store-nav, .store-footer .shell, .admin-top-inner { min-height: 3.75rem; }
    .hero { background-position: 62% center; background-image: linear-gradient(90deg, #071c15ed, #071c1572), url("/stadium-hero.webp"); }
    .hero-inner { min-height: 28rem; }
    .hero h1 { font-size: clamp(3.6rem, 13vw, 5rem); }
    .steps { grid-template-columns: 1fr; gap: .75rem; }
    .admin-account { gap: .65rem; font-size: .83rem; }
    .admin-account button { padding: .42rem .5rem; }
}
