:root {
    font: 16px/1.55 system-ui, sans-serif;
    color-scheme: light;
}

body {
    --canvas: #f3f5f8;
    --surface: #fff;
    --ink: #171d26;
    --muted: #465368;
    --border: #cdd5e0;
    --accent: #254ea1;
    --accent-ink: #fff;
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
}

.theme-racevibe {
    color-scheme: dark;
    --canvas: #101213;
    --surface: #191d1f;
    --ink: #f0f3f1;
    --muted: #c0c9c4;
    --border: #3a4340;
    --accent: #ff5b0a;
    --accent-ink: #18100c;
}

a { color: inherit; }
.masthead { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem max(5vw, 1rem); background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { font-size: 1.3rem; font-weight: 850; text-decoration: none; }
main { margin: auto; width: min(1120px, 90vw); padding-bottom: 4rem; }
.hero { border-bottom: 1px solid var(--border); margin-bottom: 2rem; padding: clamp(2.5rem, 8vw, 6rem) 0 2rem; }
.hero.compact { padding-top: 2.5rem; }
h1 { font-size: clamp(2.4rem, 8vw, 5rem); letter-spacing: -.06em; line-height: 1; margin: 0; }
h2 { font-size: 1.25rem; line-height: 1.2; margin-top: 0; }
p { color: var(--muted); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.checkout { display: grid; gap: 1rem; grid-template-columns: 3fr 2fr; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); padding: clamp(1rem, 3vw, 2rem); border-radius: .65rem; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
label { display: block; margin-bottom: 1rem; }
input { font: inherit; width: 100%; box-sizing: border-box; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: .3rem; background: var(--canvas); color: var(--ink); }
input[type=number] { width: 5rem; }
button { font: inherit; font-weight: 750; padding: .65rem 1rem; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: .3rem; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
dl div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding: .6rem 0; border-top: 1px solid var(--border); }
dd { margin: 0; overflow-wrap: anywhere; }
.pagination { display: flex; gap: 1rem; margin-top: 1rem; }
.notice { border: 1px solid var(--border); margin-top: 1rem; padding: 0 1rem; border-radius: .3rem; }
.masthead nav { display: flex; flex-wrap: wrap; gap: .75rem; }
.shop-section, .card + .card { margin-top: 1.5rem; }
.account-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
textarea, select { font: inherit; width: 100%; padding: .5rem; background: var(--canvas); color: var(--ink); border: 1px solid var(--border); border-radius: .3rem; box-sizing: border-box; }
.racevibe-wordmark { color: var(--accent); font-style: italic; }
.racevibe-hero {
    border-bottom-color: var(--accent);
    background: linear-gradient(115deg, transparent 55%, #ff5b0a15);
}
.racevibe-hero p { margin-bottom: 0; }
@media (max-width: 700px) { .checkout { grid-template-columns: 1fr; } }
