:root {
  color-scheme: light;
  --ink: #182129;
  --muted: #52606b;
  --line: #dce1e5;
  --paper: #fff;
  --surface: #f3f5f6;
  --red: #a6232e;
  --red-hover: #861824;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.035em; }
h1 { font-size: clamp(2.75rem, 6.7vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(1.95rem, 4vw, 3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 750; }
.wrap { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }

header { border-bottom: 1px solid var(--line); }
header .wrap, footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; letter-spacing: .025em; line-height: 1; text-transform: uppercase; }
.brand small { display: block; margin-top: .32rem; color: var(--muted); font-size: .7rem; letter-spacing: .18em; }
.brand-logo { display: block; width: 2.65rem; height: auto; border-radius: 50%; }
nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); flex-wrap: wrap; }
.nav { font-weight: 650; }
.nav:hover, .nav[aria-current="page"], footer a:hover { color: var(--red); }
.nav[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }

.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.hero-copy { padding-block: .5rem; }
.hero h1 { max-width: 11ch; }
.hero p { max-width: 36ch; color: var(--muted); margin-block: 1.1rem 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-mark { display: grid; place-items: center; min-height: clamp(16rem, 32vw, 24rem); padding: 1rem; border-bottom: 4px solid var(--red); background: #191f24; }
.hero-logo { display: block; width: min(100%, 19rem); height: auto; mix-blend-mode: screen; }
.button { display: inline-block; padding: .75rem 1.15rem; border: 1px solid var(--red); border-radius: 4px; background: var(--red); color: #fff; font: inherit; font-weight: 700; }
.button:hover { background: var(--red-hover); border-color: var(--red-hover); }
.button.secondary { border-color: #b7c0c7; background: var(--paper); color: var(--ink); }
.button.secondary:hover { border-color: var(--ink); background: var(--surface); }

.catalog { padding-block: clamp(2.8rem, 7vw, 5.5rem); }
.intro { margin: .65rem 0 1.65rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 5vw, 4rem); }
.card { position: relative; min-height: 5.4rem; border-top: 1px solid var(--line); }
.card:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.card-body { padding: .9rem 3rem .9rem 0; }
.card p { margin-top: .3rem; color: var(--muted); }
.card-link { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-inline: .65rem; border-radius: 3px; color: var(--red); font-weight: 750; }
.card:hover, .card:focus-within { background: var(--surface); }
.card-link span { font-size: 1.4rem; line-height: 1; }

.wholesale { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); align-items: start; gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(1.3rem, 4vw, 3rem); margin-bottom: clamp(3rem, 7vw, 5rem); background: var(--surface); border-top: 3px solid var(--red); }
.wholesale p, .contact-page p { margin-top: .85rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-wide { grid-column: 1 / -1; }
.inquiry-form label { display: grid; align-content: start; gap: .3rem; min-width: 0; font-weight: 650; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; min-width: 0; padding: .65rem; border: 1px solid #adb8c1; border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; }
.inquiry-form textarea { resize: vertical; }
.inquiry-form button { margin-top: 1rem; cursor: pointer; }

.contact-page { min-height: 58vh; padding-block: clamp(3rem, 10vw, 7rem); }
.contact-page p { max-width: 57ch; }
.contact-page .button { margin-top: 1.3rem; }
.contact-page a[href^="mailto:"] { color: var(--red); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
#inquiry-confirmation { margin: 0 0 1rem; padding: .75rem 1rem; border-left: 3px solid #267052; background: #e9f4ee; color: #245a45; }
footer { border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 850px) {
  .wholesale { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  header .wrap { flex-wrap: wrap; gap: .75rem; padding-block: .75rem; }
  .brand { font-size: .875rem; }
  .brand-logo { width: 2.2rem; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { min-height: 10rem; }
  .hero-logo { width: min(100%, 13rem); }
  .grid, .form-grid { grid-template-columns: 1fr; }
  .card:nth-last-child(2) { border-bottom: 0; }
}

/* Catalog storefront */
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.store-header .store-tools { display: grid; grid-template-columns: auto minmax(13rem, 1fr) auto; gap: clamp(1rem, 4vw, 3.25rem); }
.catalog-search { display: flex; max-width: 39rem; min-width: 0; }
.catalog-search[hidden] { display: none; }
.catalog-search input { width: 100%; min-width: 0; border: 1px solid #aab2b8; border-right: 0; border-radius: 4px 0 0 4px; padding: .65rem .8rem; font: inherit; }
.catalog-search button { border: 1px solid #22282d; border-radius: 0 4px 4px 0; padding: .65rem .9rem; background: #22282d; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.catalog-search button:hover { background: #3c434a; }
.product-nav { display: block; background: #20252a; color: #fff; }
.store-header .product-nav .wrap { min-height: 0; justify-content: flex-start; gap: 0; overflow-x: auto; scrollbar-width: thin; }
.product-nav a { display: block; flex: 0 0 auto; padding: .75rem clamp(.75rem, 2vw, 1.35rem); font-weight: 650; }
.product-nav a:first-child { background: #ffd476; color: #242320; }
.product-nav a:not(:first-child):hover { background: #343d45; }
.product-nav a:focus-visible { outline: 2px solid #ffd476; outline-offset: -3px; }
.storefront .hero { background: linear-gradient(90deg,#1b1b1e 27%,#1b1b1edb 55%,#1b1b1e1f), url('/hero.webp') 68% center / cover; background-color: #1b1b1e; color: #fff; }
.storefront .hero .wrap { min-height: 24rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
.storefront .hero p { color: #f1ece4; }
.storefront .hero h1 { max-width: 12ch; }
.storefront .hero-mark { min-height: 0; border: 0; background: transparent; }
.storefront .hero-logo { width: min(100%, 17rem); }
.storefront .hero .button:first-child { background: #ffd476; border-color: #ffd476; color: #242320; }
.storefront .hero .button:first-child:hover { background: #ffe4a9; }
.storefront .hero .secondary { background: #262324; color: #fff; border-color: #a5a1a1; }
.storefront .hero .secondary:hover { background: #454141; }
.storefront .hero a:focus-visible { outline-color: #ffd476; }
.catalog-status { margin-block: -.5rem 1rem; color: var(--muted); }
#catalog-grid .card { scroll-margin-top: 1rem; }
#catalog-grid .card:target { background: #fff4d9; }
@media (max-width: 640px) {
  .store-header .store-tools { grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; }
  .store-tools nav { justify-content: end; }
  .catalog-search { grid-row: 2; grid-column: 1 / -1; max-width: none; }
  .storefront .hero .wrap { min-height: auto; gap: .65rem; }
  .storefront .hero-mark { justify-items: start; padding: 0; }
  .storefront .hero-logo { width: 8.75rem; }
  .storefront .hero h1 { max-width: 13ch; }
}

.new-year { background: #f6f0e1; border-bottom: 1px solid #e2d6b8; color: #29231a; }
.new-year .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .85rem; }
.new-year h2 { font-size: clamp(1.1rem, 2.3vw, 1.55rem); }
.new-year p { font-size: .875rem; color: #68573d; }
.countdown { display: flex; gap: clamp(.5rem, 2vw, 1rem); }
.countdown span { display: grid; min-width: 2.6rem; text-align: center; color: #68573d; font-size: .75rem; }
.countdown strong { color: #29231a; font-size: 1.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.inquiry-form button:disabled { opacity: .7; cursor: wait; }
.inquiry-feedback { border-left: 3px solid #6d7681; background: #fff; padding: .6rem .8rem; }
.inquiry-feedback[data-state="error"] { border-color: #a6232e; color: #861824; }
.inquiry-feedback[data-state="success"] { border-color: #267052; color: #245a45; }
.inquiry-alternative a { text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 640px) {
  .new-year .wrap { flex-wrap: wrap; gap: .55rem 1rem; }
}

/* The sky stays behind the page as it scrolls. Content panels provide contrast. */
.fireworks-page {
  min-height: 100vh;
  isolation: isolate;
  background: #141216 radial-gradient(ellipse at top, #261d2b, transparent 68%);
  color: #fff9f0;
}
.fireworks-canvas { position: fixed; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fireworks-page header { background: #fffffff2; color: var(--ink); }
.fireworks-page .product-nav { background: #20252af2; }
.fireworks-page .new-year { background: #f6f0e1ed; }
.fireworks-page .hero {
  background: linear-gradient(90deg, #151217d9, #1512172b);
  border-bottom-color: #dce1e52b;
}
.fireworks-page .intro,
.fireworks-page .catalog-status,
.fireworks-page .contact-page p { color: #eee4e1; }
.fireworks-page .hero-copy,
.fireworks-page .catalog h2,
.fireworks-page .intro,
.fireworks-page .contact-page h1 { text-shadow: 0 2px 12px #141216; }
.fireworks-page .card { border-color: #ffffff38; background: #1e1a24db; }
.fireworks-page .card:hover,
.fireworks-page .card:focus-within,
.fireworks-page #catalog-grid .card:target { background: #3b2e3dfa; }
.fireworks-page .card-body { padding-inline-start: 1rem; }
.fireworks-page .card p { color: #e5dad8; }
.fireworks-page .card-link,
.fireworks-page .contact-page a[href^="mailto:"] { color: #ffd476; }
.fireworks-page .wholesale { background: #f3f5f6f7; color: var(--ink); }
.fireworks-page footer { border-color: #ffffff38; background: #191620d9; color: #eee4e1; padding-bottom: 2.6rem; }
.fireworks-page footer a:hover { color: #ffd476; }
.fireworks-toggle { position: fixed; z-index: 2; right: 1rem; bottom: calc(.65rem + env(safe-area-inset-bottom, 0px)); padding: .35rem .7rem; border: 1px solid #b2aaa1; border-radius: 4px; background: #1b1b1e; color: #fff; font: inherit; font-size: .875rem; cursor: pointer; }
.fireworks-page .card-link:focus-visible,
.fireworks-toggle:focus-visible { outline-color: #ffd476; }
