@font-face {
  font-family: Geist;
  src: url('/vendor/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #19213a;
  --deep: #173bbd;
  --dark-hover: #102b92;
  --muted: #4c566b;
  --lime: #d9e8ff;
  --paper: #f7f7f4;
  --surface: #fff;
  --wash: #eaf0ff;
  --line: #d7dbe3;
  --control-line: #737c8e;
  --danger: #8a2b25;
  --focus: #253dc5;
  --ease-out: cubic-bezier(.23,1,.32,1);
  --ease-drawer: cubic-bezier(.32,.72,0,1);
  --wrap: 1320px;
  --gutter: clamp(16px, 4.35vw, 64px);
  --section-space: clamp(54px, 7vw, 106px);
  --z-sticky: 2;
  --z-toast: 3;
  font: 400 16px/1.55 Geist, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
main { max-width: 100%; overflow-x: clip; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.06; letter-spacing: -.04em; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
section[id] { scroll-margin-top: 88px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: var(--gutter); transform: translateY(-200%); padding: 10px 14px; z-index: var(--z-toast); background: var(--lime); color: var(--deep); border-radius: 8px; }
.skip-link:focus { transform: none; }

.shipping-banner {
  min-height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px 16px;
  flex-wrap: wrap;
  padding: 4px 12px;
  color: #242e4f;
  background: #dce9ff;
  font-size: .75rem;
  font-weight: 620;
}
.shipping-banner a { text-decoration: underline; text-underline-offset: 3px; }
.mast { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-content { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-type { font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: .91; font-weight: 840; letter-spacing: -.072em; color: var(--ink); }
.brand-type span { color: var(--deep); }
.mast nav, .footer nav { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 40px); font-size: .88rem; font-weight: 650; }
nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; }
nav a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 5px; }
.footer nav a:hover { color: white; }

.primary, .quiet, .bag, .filter, .close, .stepper button {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 15px;
  font-size: .86rem;
  font-weight: 710;
  transition: transform 135ms var(--ease-out), background-color 150ms ease, color 150ms ease;
}
:is(.primary, .quiet, .bag, .filter, .close, .stepper button):active:not(:disabled) { transform: scale(.97); }
.primary { background: var(--deep); color: white; }
.primary:hover:not(:disabled) { background: var(--dark-hover); }
.primary:disabled { background: #e5e8ee; color: #4d5671; }
.quiet, .bag, .filter, .stepper button, .close { border-color: var(--control-line); background: transparent; }
.quiet:hover, .bag:hover, .filter:hover:hover, .stepper button:hover:not(:disabled), .close:hover { background: var(--wash); }
.bag span:last-child { min-width: 24px; height: 24px; display: grid; place-content: center; background: var(--deep); color: white; border-radius: 50%; font-size: .75rem; padding-inline: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  min-height: clamp(430px, 34vw, 530px);
  background: var(--deep);
  color: #fff;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: clamp(14px, 1.85vw, 26px);
  padding-block: clamp(38px, 4.6vw, 76px);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  padding-right: clamp(17px, 4.4vw, 70px);
}
.hero h1 {
  font-size: clamp(3.15rem, 5.7vw, 5.25rem);
  line-height: .92;
  font-weight: 770;
  letter-spacing: -.04em;
  text-wrap: initial;
}
.hero .hero-location { color: #e0e9ff; font-size: .86rem; font-weight: 650; }
.hero-description { color: #edf1ff; max-width: 34ch; font-size: clamp(1rem, 1.35vw, 1.2rem); }
.hero-media { margin: 0; min-width: 0; position: relative; background: #bfd4eb; }
.hero-photo { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 17px; }
.hero .primary, .footer .primary { color: #14265b; background: #fff; border-color: #fff; }
.hero .primary:hover, .footer .primary:hover { background: #e5edff; }
.hero .quiet { padding-inline: 0; color: #fff; border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.hero .quiet:hover { color: #d9e8ff; }
.hero :focus-visible, .footer :focus-visible, .toast :focus-visible { outline-color: #d9e8ff; }

.section { padding-block: var(--section-space); }
.section h2, .how h2, .footer h2 { font-size: clamp(2.05rem, 4.5vw, 3.85rem); font-weight: 740; }
.catalog { padding-top: clamp(42px,5.5vw,74px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.search-control { width: min(100%, 315px); }
input:not([type=radio]), textarea { min-height: 46px; width: 100%; min-width: 0; color: var(--ink); background: white; border: 1px solid var(--control-line); border-radius: 9px; padding: 9px 12px; }
input::placeholder { color: var(--muted); opacity: 1; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter[aria-pressed=true] { background: var(--deep); border-color: var(--deep); color: white; }
.result-count, .mode-note { color: var(--muted); font-size: .82rem; }
.result-count:empty { display: none; }
.mode-note { margin-top: 13px; }
.catalog-message { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.catalog-message[hidden] { display: none; }
.catalog-message a { text-decoration: underline; text-underline-offset: 4px; }

.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(10px,1.5vw,20px); margin-top: 16px; }
.product { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.product-photo { width: 100%; aspect-ratio: 1.24; display: grid; place-content: stretch; background: #e7effc; position: relative; overflow: hidden; border: 0; padding: 0; text-align: left; }
.product-photo:focus-visible { outline-offset: -5px; }
.product-photo img, .family img, .detail-image img, .cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-photo img, .family img { transition: transform 680ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .product-photo:hover img, .family:hover img { transform: scale(1.05); } }
.image-fallback { background: #e7effc; display: grid; place-items: center; width: 100%; height: 100%; color: var(--deep); font-size: 1rem; font-weight: 780; }
.photo-cta { position: absolute; right: 8px; bottom: 8px; color: var(--deep); background: white; border-radius: 4px; padding: 4px 8px; font-size: .72rem; font-weight: 680; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: clamp(10px,1.6vw,20px); }
.product-meta, .buy { display: flex; gap: 6px 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.meta, .product-description, .sku { font-size: .79rem; color: var(--muted); overflow-wrap: anywhere; }
.availability { border-radius: 99px; font-size: .72rem; background: #e4f3e6; color: #245640; padding: 2px 7px; font-weight: 670; }
.availability[data-out] { background: #f2e8e6; color: #79352d; }
.product h3 { font-size: clamp(1rem,1.6vw,1.37rem); overflow-wrap: anywhere; }
.buy { margin-top: auto; padding-top: 6px; }
.product-price, #detail-price, .subtotal strong { font-weight: 760; font-variant-numeric: tabular-nums; }
.product-price { font-size: clamp(.95rem,1.55vw,1.23rem); }
.skeleton { min-height: clamp(210px,25vw,350px); background: #e6eee8; border-radius: 14px; }

.families-section { padding-top: 0; }
.families { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-flow: dense; gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 14px; overflow: hidden; margin-top: 25px; }
.family { display: flex; position: relative; flex-direction: column; min-width: 0; min-height: 164px; overflow: hidden; padding: 0; border: 0; background: white; text-align: left; }
.family:focus-visible { z-index: 1; outline-offset: -4px; }
.family-media { width: 100%; aspect-ratio: 1.82; overflow: hidden; background: #e7effc; }
.family-label { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 6px; margin-top: auto; padding: 12px; font-weight: 720; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .families { transition: grid-template-columns 235ms var(--ease-out); }
  .families[data-count="4"]:has(.family:nth-child(1):is(:hover,:focus-visible)) { grid-template-columns: 1.35fr .88fr .88fr .89fr; }
  .families[data-count="4"]:has(.family:nth-child(2):is(:hover,:focus-visible)) { grid-template-columns: .88fr 1.35fr .88fr .89fr; }
  .families[data-count="4"]:has(.family:nth-child(3):is(:hover,:focus-visible)) { grid-template-columns: .88fr .88fr 1.35fr .89fr; }
  .families[data-count="4"]:has(.family:nth-child(4):is(:hover,:focus-visible)) { grid-template-columns: .88fr .88fr .89fr 1.35fr; }
  .family-media { aspect-ratio: auto; height: clamp(148px,14vw,196px); }
}

.how { background: var(--wash); padding-block: var(--section-space); }
.how-content { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(25px,7vw,100px); align-items: start; }
.how p { color: var(--muted); margin-top: 11px; max-width: 42ch; }
.payment-list { display: grid; gap: 12px; }
.payment-list article { background: #fff; border: 1px solid #d4dff5; padding: clamp(14px,2.3vw,28px); border-radius: 14px; }
.payment-list h3 { font-size: clamp(1.25rem,2.3vw,1.7rem); }
.reveal-word { display: inline-block; }
.footer { padding-block: var(--section-space) 22px; background: var(--deep); color: white; }
.footer h2 { max-width: 16ch; }
.footer .primary { margin-top: 20px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid #788acc; padding-top: 14px; margin-top: clamp(42px,7vw,86px); color: #eef1ff; font-size: .82rem; }

dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #081f22a6; }
dialog[open]:not([data-instant]) { transition: transform 220ms var(--ease-drawer), opacity 160ms var(--ease-out); }
@starting-style {
  .cart-dialog[open]:not([data-instant]) { transform: translateX(10%); opacity: 0; }
  .product-dialog[open]:not([data-instant]) { transform: scale(.97); opacity: 0; }
}
.cart-dialog { margin: 0 0 0 auto; width: min(506px,100%); height: 100%; max-width: 100%; max-height: 100%; }
.drawer { display: flex; flex-direction: column; height: 100%; }
.drawer-head, .drawer-foot { padding: 17px clamp(16px,5vw,26px); background: var(--paper); }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; border-bottom: 1px solid var(--line); }
.drawer h2, .detail-body h2 { font-size: clamp(1.65rem,4vw,2.45rem); }
.close { width: 44px; flex: none; padding: 0; font-size: 1.55rem; }
.drawer-head .meta:empty { display: none; }
.drawer-content { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 17px clamp(16px,5vw,26px); }
.drawer-foot { border-top: 1px solid var(--line); display: grid; gap: 7px; }
.drawer-foot p { font-size: .81rem; color: var(--muted); }
.subtotal { display: flex; justify-content: space-between; gap: 8px; font-weight: 650; }
.cart-line { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: start; border-bottom: 1px solid var(--line); padding: 12px 0; }
.cart-thumb { height: 55px; overflow: hidden; border-radius: 8px; }
.cart-info { min-width: 0; overflow-wrap: anywhere; }
.cart-info p { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.stepper { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.stepper button { width: 44px; padding: 0; font-size: 1rem; border-radius: 8px; }
.stepper button:disabled { opacity: .54; }
.stepper output { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin: 10px 0 17px; }
.form-fields label { display: grid; gap: 3px; font-size: .83rem; font-weight: 650; }
.form-fields label:last-child { grid-column: 1 / -1; }
.form-fields textarea { resize: vertical; }
.text-button { min-height: 44px; border: 0; padding: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 740; margin-bottom: 6px; }
.payment-option { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; border: 1px solid var(--control-line); border-radius: 9px; padding: 9px 10px; background: white; font-size: .88rem; font-weight: 650; }
.payment-option + .payment-option { margin-top: 7px; }
.payment-option:has(input:checked) { background: #eaf0ff; box-shadow: inset 0 0 0 1px var(--deep); border-color: var(--deep); }
.payment-option input { margin: 4px 0 0; accent-color: var(--deep); }
.payment-option small { display: block; color: var(--muted); font-size: .76rem; font-weight: 450; }
.checkout-status:not(:empty) { margin-top: 12px; font-size: .87rem; }
.checkout-status[data-error] { color: var(--danger); }
.receipt { display: grid; gap: 10px; }
#receipt-reference { border-radius: 9px; background: var(--wash); font-size: .9rem; font-weight: 700; padding: 12px; overflow-wrap: anywhere; }

.product-dialog { width: min(780px,calc(100% - 32px)); max-height: calc(100% - 28px); border-radius: 15px; }
.detail-layout { display: grid; grid-template-columns: .9fr 1fr; position: relative; }
.detail-layout .close { position: absolute; right: 11px; top: 11px; z-index: 1; background: var(--surface); }
.detail-image { min-width: 0; min-height: 220px; background: #e7effc; }
.detail-body { min-width: 0; padding: 54px 23px 22px; display: grid; align-content: center; gap: 10px; }
.detail-body h2 { overflow-wrap: anywhere; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 2px 0; padding-block: 10px; border-block: 1px solid var(--line); }
.detail-facts dt { font-size: .77rem; font-weight: 700; }
.detail-facts dd { margin: 0; overflow-wrap: anywhere; }
.detail-buy, .detail-actions { display: flex; gap: 8px 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.detail-actions:has(p:empty):has(button[hidden]) { display: none; }

.toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: max(12px,env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); display: flex; gap: 7px 12px; align-items: center; padding: 4px 8px 4px 13px; background: var(--deep); color: white; border-radius: 12px; font-size: .82rem; transition: transform 170ms var(--ease-out), opacity 140ms var(--ease-out); }
.toast button { color: white; background: transparent; border: 0; font-weight: 700; min-height: 44px; flex: none; text-decoration: underline; }
.toast button:last-child { font-size: 1.1rem; min-width: 44px; text-decoration: none; }
@starting-style { .toast:not([hidden]):not([data-instant]) { opacity: 0; transform: translate(-50%,8px); } }

@media (max-width: 920px) {
  .products, .families { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .mast nav { display: none; }
  .mast-content { min-height: 62px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 36px var(--gutter) 34px; gap: 13px; }
  .hero h1 { font-size: clamp(3.15rem, 11.5vw, 4.4rem); }
  .hero-media { aspect-ratio: 1.75; }
  .hero-photo { object-position: 55% 54%; }
  .section-head { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 16px; }
  .search-control { width: 100%; }
  .how-content { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-image { min-height: 0; aspect-ratio: 1.65; }
  .detail-body { padding: 17px; }
}
@media (max-width: 380px) {
  .primary, .quiet, .filter { padding-inline: 12px; }
  .form-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* Brand chapters and responsive navigation */
.story { padding-block: var(--section-space); background: #e5edff; }
.story-grid { display: grid; grid-template-columns: 1.13fr 1fr; gap: clamp(25px, 6vw, 94px); align-items: center; }
.story figure { margin: 0; overflow: hidden; background: var(--wash); }
.story img { width: 100%; height: auto; aspect-ratio: 1.27; object-fit: cover; }
.story .section-label { color: var(--deep); font-size: .83rem; font-weight: 740; }
.story .section-label:first-child { margin-top: 0; }
.story h2, .brands h2 { font-size: clamp(2.05rem, 4.6vw, 3.85rem); font-weight: 740; }
.story p, .brands p { margin-block: 14px; color: var(--muted); max-width: 49ch; }
.editorial-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-weight: 690; text-decoration: underline; text-underline-offset: 4px; }
.brands { padding-block: var(--section-space); background: var(--paper); }
.brand-grid { display: grid; grid-template-columns: .95fr 1fr; gap: 24px clamp(28px, 7vw, 108px); align-items: start; }
.brand-feature { padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line); background: white; border-radius: 8px; }
.brand-feature h3 { font-size: clamp(1.85rem, 4vw, 3rem); }
.live-brands { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.buy-steps { margin: 18px 0 0; padding-left: 21px; color: var(--muted); }
.buy-steps li + li { margin-top: 6px; }
.drawer-foot .checkout-status:empty { display: none; }
.drawer-foot .checkout-status:not(:empty) { margin: 0; max-height: 7em; overflow: auto; }
.families[data-count="1"] { grid-template-columns: 1fr; }
.families[data-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (min-width: 921px) { .families[data-count="3"] { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 920px) { .families[data-count="3"] .family:last-child { grid-column: 1 / -1; } }
@media (max-width: 650px) {
  section[id] { scroll-margin-top: 122px; }
  .mast-content { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 6px; }
  .mast nav { grid-row: 2; grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; font-size: .76rem; gap: 0 6px; }
  .mast .bag { grid-area: 1 / 2; }
  .story-grid, .brand-grid { grid-template-columns: 1fr; }
  .story-copy { grid-row: 1; }
  .story img { aspect-ratio: 1.55; }
}
