:root {
  color-scheme: dark;
  --bg: #11101b;
  --panel: #201b30;
  --ink: #faf7ff;
  --muted: #c9c0d8;
  --edge: #453956;
  --accent: #dfff4e;
  --card: #faf8fc;
  --card-ink: #231a2c;
  font: 100%/1.55 "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #92edfa; outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
.wrap { width: min(74rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; transform: translateY(-120%); padding: .6rem 1rem; background: var(--accent); color: var(--bg); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masthead { background: #181427; border-bottom: 1px solid var(--edge); }
.masthead-inner, footer .wrap { display: flex; justify-content: space-between; gap: .8rem 2rem; align-items: center; flex-wrap: wrap; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; text-decoration: none; }
.brand span { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; background: var(--accent); color: var(--bg); border-radius: .45rem; }
nav { display: flex; gap: .35rem 1.2rem; flex-wrap: wrap; }
nav a { font-size: .93rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.crumb { padding-block: 1.1rem; color: var(--muted); font-size: .88rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: stretch; border: 1px solid var(--edge); border-radius: 1.25rem; overflow: hidden; background: linear-gradient(122deg, #1c192a, #291e3d); }
.hero-copy { padding: clamp(1.4rem, 4.8vw, 3.8rem); align-self: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.8rem); letter-spacing: -.075em; }
.hero h1 span { display: block; color: var(--accent); font-size: .65em; }
.hero-copy p { margin-top: 1rem; max-width: 46ch; color: var(--muted); }
.hero figure { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--card); color: var(--card-ink); }
.hero figure img { width: 100%; height: 100%; max-height: 22rem; object-fit: contain; }
figcaption { padding: .45rem .8rem; font-size: .78rem; background: #ede7f1; }
.actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1.2rem; }
.button, .add { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .6rem .85rem; border: 1px solid transparent; border-radius: .5rem; background: var(--accent); color: var(--bg); font-size: .91rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.secondary { background: transparent; color: var(--ink); border-color: #8879a0; }
.button:hover { border-color: var(--accent); }
section + section { margin-top: 2.7rem; }
section { scroll-margin-top: 1rem; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.5rem); letter-spacing: -.045em; }
h3 { font-size: 1.1rem; }
.section-note, .muted { color: var(--muted); }
.section-note { margin-block: .55rem .95rem; max-width: 78ch; }
.panel, fieldset { min-width: 0; border: 1px solid var(--edge); border-radius: .75rem; padding: 1rem; background: var(--panel); }
.panel p { margin-top: .55rem; }
.controls, .two, .product-grid { display: grid; gap: .8rem; }
.controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .85rem; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
label { display: grid; gap: .28rem; min-width: 0; font-weight: 650; }
input, select { width: 100%; min-height: 44px; border-radius: .45rem; border: 1px solid #a28eaf; background: var(--card); color: var(--card-ink); padding: .45rem .55rem; font-weight: 400; }
input[aria-invalid="true"] { border-color: #d84178; outline: 2px solid #d84178; }
.catalog-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem .8rem; margin-block: .8rem; }
.catalog-status a, .related a { color: var(--accent); }
.product { min-width: 0; display: flex; flex-direction: column; border-radius: .85rem; overflow: hidden; color: var(--card-ink); background: var(--card); border: 1px solid #ddd5e5; }
.product:focus-within { outline: 3px solid #92edfa; outline-offset: 2px; }
.product-link { flex: 1; text-decoration: none; }
.product-link:hover .view { text-decoration: underline; }
.product img { width: 100%; aspect-ratio: 1; height: auto; object-fit: contain; background: #ede8f1; }
.product-copy { padding: .85rem; }
.category { margin-bottom: .25rem; color: #574a65; font-size: .82rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .65rem; margin-block: .55rem; }
.price strong { color: #32553d; }
.price span { color: #5d5069; font-size: .82rem; }
.view { font-size: .88rem; font-weight: 700; }
.add { align-self: flex-start; margin: 0 .85rem .85rem; background: #ebe4f4; }
.add:hover { background: #ded1ec; }
fieldset { display: grid; gap: .65rem; margin: 0; background: #191526; }
legend { padding-inline: .35rem; font-weight: 750; }
.quote-notes { margin-top: .8rem; }
.comparison { color: var(--accent); font-weight: 750; }
details { border-bottom: 1px solid var(--edge); padding-block: .7rem; }
summary { cursor: pointer; font-weight: 750; }
details p { margin-top: .3rem; max-width: 74ch; }
#selection-wrap { margin-top: .85rem; }
#selection { margin: .4rem 0; padding-left: 1.35rem; }
#selection button { border: 0; padding: .25rem .5rem; margin-left: .3rem; color: var(--accent); background: transparent; text-decoration: underline; cursor: pointer; }
footer { margin-top: 2.6rem; border-top: 1px solid var(--edge); color: var(--muted); font-size: .87rem; }
footer .brand { color: var(--ink); }
@media (max-width: 53rem) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 1.4rem); }
  .hero, .controls, .two { grid-template-columns: 1fr; }
  .hero figure img { max-height: 13rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-copy { padding: .65rem; }
  .add { margin-inline: .65rem; }
}
