*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--frost); color: var(--navy); font: 400 var(--text-base)/1.55 var(--font-body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--royal); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--sky); }
.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: .5rem 1rem; z-index: 5; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-block; font: 700 1.125rem/1 var(--font-display); text-decoration: none; padding: 1.0625rem 1.75rem; border-radius: var(--r-pill); border: 2px solid transparent; }
.btn-white { background: var(--white); color: var(--royal); }
.btn-white:hover { background: var(--ice); }
.btn-line { border-color: rgba(255, 255, 255, .65); color: var(--white); }
.btn-line:hover { background: rgba(255, 255, 255, .14); }
.btn-royal { background: var(--royal); color: var(--white); }
.btn-royal:hover { background: var(--navy); }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding-block: var(--space-3); }
.site-head .logo img { height: 40px; width: auto; }
.site-head nav { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.site-head nav a { color: var(--white); font: 600 1.0625rem var(--font-display); text-decoration: none; }
.site-head nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* Blue fields carry the logo's swoops */
.bands { position: relative; color: var(--white); background: var(--royal) url("/assets/bands.svg") center / cover no-repeat; }

/* Hero */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: var(--space-4); padding-block: var(--space-4) var(--space-6); }
.hero h1 { font-size: var(--text-hero); line-height: .92; }
.hero-copy > p { font-size: var(--text-lg); line-height: 1.4; max-width: 31rem; margin-top: var(--space-3); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero h1 .word { display: inline-block; }
.hero-mark .c { transform-box: fill-box; transform-origin: center; }
.hero-mark { width: 100%; max-width: 30rem; justify-self: end; height: auto; filter: drop-shadow(0 0 26px rgba(214, 238, 255, .5)); }

/* Sections and hanging aisle signs */
.aisle-section { position: relative; padding-block: 0 var(--space-6); }
.aisle { position: relative; display: inline-flex; align-items: stretch; margin-top: 3.25rem; margin-bottom: var(--space-4); background: var(--royal); color: var(--white); border-radius: var(--r-sign); }
.aisle::before, .aisle::after { content: ""; position: absolute; bottom: 100%; width: 3px; height: 3.25rem; background: var(--steel); opacity: .55; }
.aisle::before { left: 2.25rem; }
.aisle::after { right: 2.25rem; }
.aisle b { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 4.5rem; padding: .625rem .875rem; font: 800 2.5rem/1 var(--font-display); background: var(--white); color: var(--royal); border: 3px solid var(--royal); border-radius: var(--r-sign) 0 0 var(--r-sign); }
.aisle b small { font: 700 .8125rem/1 var(--font-display); margin-bottom: .1875rem; }
.aisle h2 { align-self: center; font-size: var(--text-xl); padding: .75rem 1.5rem; }
.dark .aisle { background: var(--white); color: var(--navy); }
.dark .aisle b { background: var(--royal); color: var(--white); border-color: var(--white); }
.dark .aisle::before, .dark .aisle::after { background: var(--white); }
.lede { max-width: 38rem; font-size: var(--text-lg); line-height: 1.4; }

/* Store map */
.map-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--space-5); align-items: start; margin-top: var(--space-4); }
.map text { font: 800 26px var(--font-display); text-anchor: middle; dominant-baseline: central; fill: var(--royal); pointer-events: none; }
.map .small { font: 700 19px var(--font-display); fill: var(--steel); }
.map .zone { cursor: pointer; }
.map .zone > rect:not(.shelf) { fill: var(--ice); transition: fill .15s; }
.map .zone circle { fill: var(--white); }
.map .zone.on > rect:not(.shelf) { fill: var(--royal); }
.map .shelf { fill: #bcdcfb; pointer-events: none; }
.map .zone.on .shelf { fill: #2f6fe2; }
.map .bay { stroke: #a9c4e6; stroke-width: 3; }
.directory { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.directory button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .875rem; width: 100%; padding: .625rem .75rem; border-radius: var(--r-ticket); }
.directory button:focus-visible { outline: 3px solid var(--royal); outline-offset: 1px; }
.directory .key { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--ice); color: var(--royal); font: 800 1.125rem var(--font-display); }
.directory strong { display: block; font: 700 1.1875rem/1.2 var(--font-display); }
.directory span.what { display: block; font-size: var(--text-sm); line-height: 1.4; color: var(--steel); }
.directory .on button { background: var(--royal); color: var(--white); }
.directory .on span.what { color: var(--ice); }
.directory .on .key { background: var(--white); }
.note { font-size: var(--text-sm); color: var(--steel); margin-top: var(--space-2); }

/* Gondola shelf */
.shelf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-4); }
.bay-col { display: flex; flex-direction: column; }
.bay-col .goods { height: 8.5rem; display: flex; align-items: flex-end; padding-inline: var(--space-3); }
.bay-col .goods svg { height: 7.25rem; width: auto; margin-bottom: -1px; }
.rail { height: 1rem; background: var(--royal); }
.ticket { background: var(--white); border: 2px solid var(--royal); border-top: 0; border-radius: 0 0 var(--r-ticket) var(--r-ticket); margin: 0 var(--space-2); padding: var(--space-2) var(--space-3) var(--space-3); flex: 1; }
.ticket h3 { font-size: var(--text-xl); margin-bottom: .5rem; }
.ticket p { font-size: 1.0625rem; color: var(--steel); }

/* Work with us */
.dark { background-position: 70% center; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.work-grid h3 { font-size: var(--text-2xl); }
.work-grid h3 + p { margin-top: var(--space-3); font-size: var(--text-lg); max-width: 30rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: var(--space-3); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--space-2); align-items: start; }
.steps li::before { content: counter(s); width: 3.25rem; height: 3.25rem; display: grid; place-items: center; background: var(--white); color: var(--royal); border-radius: 50%; font: 800 1.5rem var(--font-display); }
.steps strong { display: block; font: 700 var(--text-lg)/1.2 var(--font-display); }

/* Receipt */
.rules-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: var(--space-5); align-items: start; }
.rules-grid .lede + .lede { margin-top: var(--space-2); }
.receipt { --tooth: 10px; background: var(--paper); color: #16213e; font: 400 .9375rem/1.5 var(--font-receipt); padding: var(--space-3) var(--space-3) calc(var(--space-3) + var(--tooth)); transform: rotate(1.2deg);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) var(--tooth) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) var(--tooth) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat; }
.receipt-wrap { filter: drop-shadow(0 12px 18px rgba(4, 25, 92, .18)); }
.receipt img { width: 72px; margin: 0 auto .625rem; }
.receipt .c { text-align: center; }
.receipt hr { border: 0; border-top: 2px dashed #16213e; margin: .75rem 0; }
.receipt dl { margin: 0; display: grid; gap: .375rem; }
.receipt dl div { display: flex; justify-content: space-between; gap: 1rem; }
.receipt dd { margin: 0; font-weight: 700; white-space: nowrap; }
.barcode { height: 52px; margin: .875rem auto .25rem; max-width: 15rem; background: repeating-linear-gradient(90deg, #16213e 0 2px, transparent 2px 5px, #16213e 5px 6px, transparent 6px 8px, #16213e 8px 12px, transparent 12px 14px, #16213e 14px 15px, transparent 15px 19px); }

/* Footer */
.site-foot { background: var(--navy); color: var(--ice); padding-block: var(--space-5); }
.foot-grid { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.site-foot img { height: 36px; width: auto; margin-bottom: var(--space-2); }
.site-foot a { color: var(--white); }
.site-foot nav { display: grid; gap: .5rem; align-content: start; }
.site-foot p { max-width: 34rem; font-size: var(--text-sm); }

/* 404 */
.lost { min-height: 100vh; display: flex; flex-direction: column; }
.lost .body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: var(--space-5); }
.lost h1 { font-size: var(--text-hero); line-height: .92; max-width: 12ch; }
.lost p { margin-top: var(--space-3); font-size: var(--text-lg); max-width: 30rem; }

/* Plain pages */
.page-hero { padding-block: var(--space-3) var(--space-5); }
.page-hero h1 { font-size: var(--text-2xl); }
.legal { padding-block: var(--space-5) var(--space-6); max-width: 42rem; display: grid; gap: var(--space-4); margin-inline: 0; }
.legal h2 { font-size: var(--text-xl); margin-bottom: var(--space-1); }

/* Hover motion */
.btn { transition: transform .18s, background-color .18s; }
.btn:hover { transform: translateY(-2px); }
.bay-col .goods svg { transform-origin: 50% 100%; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.bay-col:hover .goods svg { transform: translateY(-8px) rotate(-3deg); }
.ticket { transform-origin: 50% 0; }
.aisle { transform-origin: 50% -3.25rem; }
.map .zone { transform-box: fill-box; transform-origin: center; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding-bottom: var(--space-5); }
  .hero-mark { order: -1; max-width: 6.5rem; justify-self: start; }
  .bands, .dark { background-position: 15% center; }
  .map-grid, .work-grid, .rules-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .shelf-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .aisle-section { padding-bottom: var(--space-5); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map .zone > rect:not(.shelf) { transition: none; }
  .btn, .bay-col .goods svg { transition: none; }
  .btn:hover, .bay-col:hover .goods svg { transform: none; }
}
