@font-face {
  font-family: "DM Sans";
  src: url("dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ice: #f1faff;
  --blue: #0756a8;
  --blue-hover: #074585;
  --cyan: #00aeef;
  --ink: #102638;
  --muted: #496376;
  --line: #cadfea;
  --control: #637f93;
  --magenta: #ad176b;
  --error: #932747;
  --warning: #683906;
  --success: #135b49;
  --white: #fff;
  --pad: clamp(16px, 4vw, 48px);
  font: 400 1rem/1.5 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ice);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-block: clamp(24px, 4vw, 52px) 64px; }
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--pad); }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.125rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.38rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { overflow-wrap: anywhere; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
:where(button, input, select) { font: inherit; }
button, .button {
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--blue); border-radius: 10px;
  padding: 9px 16px; background: var(--blue); color: var(--white);
  text-decoration: none; text-align: center; font-weight: 700; cursor: pointer; overflow-wrap: anywhere;
}
button:not(:disabled):hover, .button:hover { background: var(--blue-hover); color: var(--white); }
button:disabled { opacity: .57; cursor: default; }
.secondary { background: var(--white); color: var(--blue); }
.quiet { color: var(--blue); background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .22em; }
.skip { position: absolute; top: 8px; left: 8px; background: white; padding: 12px; z-index: 1200; transform: translateY(-200%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 20px; }
.header-inner { min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); text-decoration: none; min-height: 48px; }
.brand small { display: block; color: var(--muted); font-size: .74rem; line-height: 1; }
.brand strong { display: block; font-size: 1.65rem; line-height: 1.04; letter-spacing: -.06em; }
.brand-mark { width: 24px; height: 24px; margin-inline: 3px; background: linear-gradient(140deg, var(--cyan), var(--blue) 78%); border-radius: 58% 0 58% 58%; transform: rotate(-45deg); }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 clamp(6px, 2vw, 24px); }
nav a { min-height: 44px; display: inline-flex; gap: 5px; align-items: center; text-decoration: none; color: var(--ink); font-size: .9375rem; font-weight: 700; white-space: nowrap; border-bottom: 2px solid transparent; }
nav a[aria-current], nav a:hover { color: var(--blue); border-color: var(--blue); }
.counter { display: inline-grid; min-width: 22px; min-height: 22px; padding-inline: 4px; place-items: center; border-radius: 20px; background: #d7f2fd; font-size: .8rem; font-variant-numeric: tabular-nums; }
.counter.bump { animation: cart-update 140ms ease-out; }
@keyframes cart-update { from { opacity: .55; } }
.site-footer { background: white; color: var(--ink); border-top: 1px solid var(--line); padding-block: 18px max(18px, env(safe-area-inset-bottom)); }
.site-footer span { color: var(--muted); font-weight: 400; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.hero { display: grid; gap: 20px; align-items: center; padding: clamp(20px, 4vw, 55px); border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(ellipse at right bottom, #d2f2ff, transparent 65%), white; }
.hero-copy { display: grid; justify-items: start; gap: 16px; }
.hero-copy h1 { max-width: 12ch; }
.hero-copy > p:not(.location) { max-width: 37ch; font-size: clamp(1rem, 1.7vw, 1.125rem); color: var(--muted); }
.location { color: var(--magenta); font-weight: 700; }
.hero-art { overflow: hidden; position: relative; border-radius: 20px; background: #164983; isolation: isolate; }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 35%, #b4f0ff32 49%, transparent 67%); opacity: .45; }
.hero-art.reflect::after { animation: reflection 450ms ease-out both; }
@keyframes reflection { from { transform: translateX(-65%); opacity: 0; } to { transform: none; opacity: .45; } }
.catalog { margin-top: 48px; }
.catalog:first-child { margin-top: 0; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; min-width: 0; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 24px; }
.intro p, .muted { color: var(--muted); }
.panel { min-width: 0; padding: clamp(16px, 2.4vw, 28px); background: white; border: 1px solid var(--line); border-radius: 16px; }
.product { display: grid; gap: 16px; align-items: center; }
.product + .product { margin-top: 12px; }
.product-photo { width: 100%; max-width: 180px; height: auto; border-radius: 12px; }
.product-main { min-width: 0; }
.product-main :is(h2, h3) { font-size: 1.2rem; }
.product-main p { margin-top: 6px; }
.price, .amount { font-variant-numeric: tabular-nums; font-weight: 700; }
.price { font-size: 1.25rem; color: var(--blue); }
.price small { color: var(--muted); font-size: .875rem; font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions > * { max-width: 100%; }
.quantity { display: grid; gap: 4px; width: fit-content; }
.stepper { display: flex; gap: 4px; align-items: center; }
.stepper input { width: 4.1em; text-align: center; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.stepper button { width: 44px; padding-inline: 0; font-size: 1.15rem; }
.columns, .checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
.cart-line { display: grid; gap: 12px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.cart-line:last-child { border: 0; padding-bottom: 0; }
.cart-line .quiet { justify-self: start; padding-inline: 0; }
.summary { display: grid; gap: 16px; }
.summary ul { list-style: none; margin: 0; padding: 0; }
.summary li, .total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.total { font-size: 1.25rem; border-bottom: 0; padding-block: 0; }
.included { color: var(--success); font-weight: 700; }
.reading { width: min(100%, 690px); margin-inline: auto; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-weight: 700; }
fieldset { min-inline-size: 0; margin: 0; border: 0; padding: 0; }
legend { font-size: 1.13rem; font-weight: 700; margin-bottom: 12px; }
.fields { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; align-content: start; min-width: 0; }
.field label, .quantity > label { font-size: .9375rem; font-weight: 700; }
input:not([type="radio"]), select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--control); border-radius: 8px; color: var(--ink); background: white; }
.stepper input { width: 4.1em; }
.field-error { color: var(--error); font-size: .9rem; }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.choice-set { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--control); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 600; }
.choice:has(:checked) { border-color: var(--blue); background: var(--ice); color: var(--blue); }
.choice input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--blue); }
#delivery-methods button[aria-pressed="true"]:not(:hover) { background: var(--ice); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.notice { border-left: 3px solid var(--blue); background: #e4f5ff; border-radius: 8px; padding: 12px 14px; }
.notice:empty { display: none; }
.notice.error { border-color: var(--error); background: #fff0f3; color: var(--error); }
.notice.warning { border-color: #a45d0a; background: #fff5e8; color: var(--warning); }
.notice .actions, .notice ul { margin-top: 8px; }
.notice ul { padding-inline-start: 20px; }
.notice del { margin-inline-end: 8px; }
.store-info { padding: 14px; background: var(--ice); border-radius: 10px; }
.store-info > * + * { margin-top: 6px; }
.map-frame { height: 260px; border-radius: 10px; border: 1px solid var(--control); background: #e1f2f7; isolation: isolate; z-index: 0; }
.map-attribution { font-size: .8125rem; color: var(--muted); }
.map-steps { display: grid; grid-template-columns: repeat(4, 44px); gap: 5px; }
.map-steps button { padding-inline: 0; }
.receipt-code { font-size: clamp(1rem, 4vw, 1.55rem); font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.receipt-state { display: grid; gap: 10px; }
.tracking-view > .intro { margin-bottom: 0; }
.tracking-view h1 { font-size: clamp(1.25rem, 3vw, 1.65rem); color: var(--muted); letter-spacing: -.015em; }
#tracking-result h2 { font-size: clamp(2rem, 5vw, 3rem); }
.track-events { margin: 0; list-style: none; padding: 0; }
.track-events li { display: grid; gap: 3px; padding: 10px 14px; border-left: 2px solid var(--line); }
.track-events li:last-child { border-color: var(--cyan); }
.track-events time { color: var(--muted); font-size: .9rem; }
@media (min-width: 550px) {
  .product { grid-template-columns: auto minmax(0, 1fr) auto; }
  .product .actions { grid-column: -2; justify-content: flex-end; }
  .cart-line { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
  .cart-line .quiet { grid-column: 1; }
  .fields.two, .choice-set.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 830px) {
  .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; }
  .columns, .checkout-grid { grid-template-columns: minmax(0, 1fr) minmax(290px, .56fr); gap: 24px; }
  #checkout-summary { grid-area: 1 / 2 / 3; position: sticky; top: 16px; }
  .checkout-actions { grid-column: 1; }
}
@media (max-width: 549px) {
  .header-inner { padding-top: 8px; }
  nav { width: 100%; }
  .hero { padding: 18px; }
  .product-photo { max-width: none; }
  .summary > .actions > *, .receipt-actions > * { flex: 1 1 130px; }
  .receipt-actions > * { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art.reflect::after, .counter.bump { animation: none; }
}
