/* Dizzy Oak pixel-pages: typography, 9-slice frames, icons, London world.
   Driven independently of daycycle.js; reads --dc-night / --dc-tint / [data-dc-phase]
   and [data-dc-dark] when present, with safe defaults when they are not.
   Fraunces and Nunito Sans are SIL Open Font License (see assets/fonts/OFL-*.txt). */
@font-face{font-family:'Fraunces';src:url('./fonts/fraunces-semibold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Nunito Sans';src:url('./fonts/nunito-sans.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap}

:root{
  --dc-night: 0;
  --dc-tint: 0;
  --px-head:'Fraunces', 'Iowan Old Style', Palatino, 'Palatino Linotype', serif;
  --px-body:'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  --display: var(--px-head);
  --body: var(--px-body);
  --px-ink:#221b20;
  --px-cream:#fbefdd;
  --px-cream2:#fff8eb;
  --px-gold:#ffc847;
  --px-rust:#8a3f26;
  --px-chalk:#e8f0d8;
  --px-board:#16241e;
  --px-wood:#6f3f25;
  --px-shadow:#221b20;
}

img.px-icon, img.px-sprite, .px-brand-logo img, .lw-spot img, .lw-backdrop, .lw-sky,
.lw-river, .lw-clouds, .px-banner img{
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
body{ font-family: var(--px-body); -webkit-font-smoothing: antialiased; }
.main-nav a, .menu nav a{
  font-family: var(--px-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ---------- buttons (site-wide chrome, including purchase / dialog / empty-state) ---------- */
.button, .button-gold, .button-ink, .button-light{
  border: 6px solid transparent;
  border-image: url('./pixel/frame-gold.png') 4 fill / 6px / 0 repeat;
  border-radius: 0;
  font-family: var(--px-body);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 3px 3px 0 var(--px-shadow);
  background: #ffc847;
  color: #231910;
  min-height: 42px;
  padding: 8px 16px;
  gap: 8px;
}
.button:hover, .button-gold:hover{ background: #ffe194; }
.button-ink{
  border-image-source: url('./pixel/frame-ink.png');
  background: #221b20;
  color: #fff3e1;
}
.button-ink:hover{ background: #33282e; color: var(--px-gold); }
.button-light{
  border-image-source: url('./pixel/frame-cream.png');
  background: #fff8eb;
  color: #221b20;
}
.button .icon, .button-gold .icon, .text-link .icon{ display:none; }
.button::after, .button-gold::after, a.button::after{
  content:'';
  width:16px;height:16px;
  background: url('./pixel/icon-arrow.png') center / 16px 16px no-repeat;
  image-rendering: pixelated;
  flex-shrink:0;
}
.button-ink::after{ filter: invert(1) sepia(.4) saturate(4) hue-rotate(10deg); }
/* Don't draw an arrow on buttons that aren't "go" actions (remove, close, heart, etc.) */
.quiet-button::after, .heart-button::after, [data-row-remove]::after, [data-close-dialog]::after{ content:none; }

.quiet-button{
  font-family: var(--px-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--px-rust);
}

.text-link{
  font-family: var(--px-body);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.text-link:hover{ color: var(--px-rust); }
.text-link .icon{ display:none; }
.text-link::after{
  content:'';
  width:16px;height:16px;display:inline-block;vertical-align:-3px;margin-left:6px;
  background: url('./pixel/icon-arrow.png') center / 16px 16px no-repeat;
  image-rendering: pixelated;
}

/* ---------- typography for non-product chrome ---------- */
.page-intro h1,
.section-head .display-heading,
.editorial-copy .display-heading,
.story-copy .display-heading,
.empty-state h2,
.about-grid h2,
.dialog-header h2,
body[data-page="not-found"] h1{
  font-family: var(--px-head);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.page-intro .eyebrow, .story-copy .eyebrow, .section-head .eyebrow, .footer-inner h2,
.dialog-header .eyebrow, .lw-spot span, .london-board h2{
  font-family: var(--px-head);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
}
.page-intro .lede, .editorial-copy p, .story-copy p, .about-grid p,
.empty-state p, .saved-count, .values-inner span, .shop-filters label,
.footer-inner a, .footer-inner p, .footer-floor, .menu nav a,
.egg-toast, .london-board p, .lw-note, .dialog-search-form input,
.shop-filters input, .shop-filters select, .px-caption, .london-panorama figcaption{
  font-family: var(--px-body);
  font-size: 1.05rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.footer-inner a, .menu nav a{ font-size: 1.15rem; }

/* ---------- 9-slice panels ---------- */
.px-sign, .px-wood, .page-intro, .editorial-copy, .about-grid section,
.empty-state, .shop-filters, .dialog, .saved-count, .story-copy{
  border: 12px solid transparent;
  border-image: url('./pixel/frame-wood.png') 5 fill / 12px / 0 repeat;
  background: color-mix(in srgb, #2a2438 calc(var(--dc-night) * 70%), #f3e0c4);
  color: color-mix(in srgb, #efe7f6 calc(var(--dc-night) * 80%), #221b20);
  border-radius: 0;
  box-shadow: 4px 4px 0 #221b2088;
}
:root[data-dc-dark] .px-sign,
:root[data-dc-dark] .page-intro,
:root[data-dc-dark] .editorial-copy,
:root[data-dc-dark] .about-grid section,
:root[data-dc-dark] .empty-state,
:root[data-dc-dark] .shop-filters,
:root[data-dc-dark] .story-copy{
  border-image-source: url('./pixel/frame-wood-night.png');
  background: #241e3c;
  color: #efe7f6;
  box-shadow: 4px 4px 0 #07060e;
}
.px-chalk, .editorial-copy.px-chalk{
  border-image-source: url('./pixel/frame-chalk.png');
  background: var(--px-board);
  color: var(--px-chalk);
  box-shadow: 4px 4px 0 #0b120f, 0 0 0 1px #000;
}
:root[data-dc-dark] .px-chalk, :root[data-dc-dark] .editorial-copy.px-chalk{
  border-image-source: url('./pixel/frame-chalk-night.png');
  background: #0f1a16;
  color: #f3f6e4;
}
.px-chalk h1, .px-chalk h2, .px-chalk .display-heading, .px-chalk .lede, .px-chalk p, .px-chalk a{
  color: inherit;
}
.px-chalk a.text-link, .px-chalk .button{ /* gold button still gold */ }
.px-cork, .london-board{
  border-image-source: url('./pixel/frame-cork.png');
  background: #c49a62;
  color: var(--px-ink);
}
:root[data-dc-dark] .px-cork, :root[data-dc-dark] .london-board{
  background: #5a3a22;
  color: #f6ead6;
}

/* heading banners */
.px-banner, .section-head .display-heading{
  background: url('./pixel/banner.png') center / auto 100% repeat-x;
  image-rendering: pixelated;
  display: inline-block;
  padding: 10px 22px 12px;
  color: #fff4de;
  text-shadow: 2px 2px 0 #221b20;
  border: 0;
}
.section-head{
  align-items: end;
  gap: 12px;
}
/* hide the older CSS leaf mark so headings sit cleanly in pixel banners/frames */
.display-heading::after, .section-head .display-heading::after, .editorial-copy .display-heading::after{ display:none !important; }
.about-grid .px-icon{ width:40px; height:40px; }


/* pixel dividers */
.px-divider, .site-footer .footer-floor{
  background-image: url('./pixel/divider.png');
  background-repeat: repeat-x;
  background-position: 0 0;
  background-size: 128px 16px;
  image-rendering: pixelated;
}
.px-divider{ height: 16px; border:0; margin: 8px 0; }

/* ---------- icons ---------- */
img.px-icon{
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  image-rendering: pixelated;
}
.about-grid .px-icon{ margin-bottom: 10px; }
.values-inner .px-icon{
  width: clamp(24px, 2.6vw, 36px);
  height: clamp(24px, 2.6vw, 36px);
  filter: invert(1) sepia(.6) saturate(6) hue-rotate(5deg) brightness(1.15);
}
.nav-actions .px-icon, .menu summary .px-icon, .icon-link .px-icon{
  width: 22px; height: 22px;
  filter: invert(1) sepia(.4) saturate(5) hue-rotate(8deg) brightness(1.2);
}
.dialog .icon-link .px-icon{ filter: none; }
.empty-state .px-icon{ width: 40px; height: 40px; margin: 0 auto 10px; }

/* ---------- about / empty / values / footer / filters / dialogs / toasts / menu ---------- */
.about-grid{
  gap: 16px;
}
.about-grid section{
  border-top: 0;
  padding: clamp(16px, 3vw, 28px);
}
.empty-state{
  border-style: solid;
  text-align: center;
}
.values-band{
  border-block: 4px solid #160f13;
  box-shadow: inset 0 0 0 2px #e8bd6f44;
}
.footer-inner h2{ color: var(--px-gold); }
.footer-inner a:hover{ color: var(--px-gold); }
.site-footer .footer-logo img{ image-rendering: pixelated; }

.shop-filters{
  border-radius: 0;
  padding: 16px;
}
.shop-filters input, .shop-filters select, .dialog input{
  border: 2px solid var(--px-ink);
  border-radius: 0;
  font-family: var(--px-body);
  font-size: 1.2rem;
  background: var(--px-cream2);
  box-shadow: 2px 2px 0 #221b2044;
}
.shop-filters .input-with-icon .icon{ display:none; }
.shop-filters .input-with-icon{
  position: relative;
}
.shop-filters .input-with-icon::before{
  content:'';
  position:absolute; left:8px; top:50%; width:16px; height:16px; margin-top:-8px;
  background: url('./pixel/icon-search.png') center / 16px 16px no-repeat;
  image-rendering: pixelated;
  pointer-events:none;
}
.shop-filters .input-with-icon input{ padding-left: 30px; }

.dialog{
  border-radius: 0;
  border: 12px solid transparent;
  border-image: url('./pixel/frame-wood.png') 5 fill / 12px / 0 repeat;
  background: var(--px-cream2);
  box-shadow: 8px 8px 0 #00000088;
}
.menu nav{
  border: 10px solid transparent;
  border-image: url('./pixel/frame-ink.png') 5 fill / 10px / 0 repeat;
  border-radius: 0;
  background: #1a151c;
  box-shadow: 4px 4px 0 #000;
}
.menu nav a{ font-family: var(--px-body); }

.egg-toast{
  border: 8px solid transparent;
  border-image: url('./pixel/frame-ink.png') 5 fill / 8px / 0 repeat;
  border-radius: 0;
  background: #1a151c;
  color: #fff0d1;
  font-family: var(--px-body);
  font-size: 1.2rem;
  font-weight: 400;
  box-shadow: 4px 4px 0 #000;
}

/* favourites / bag chrome */
.saved-page .page-intro{ margin-bottom: 1.2rem; }
body[data-page="favourites"] .saved-row,
body[data-page="bag"] .saved-row{
  border: 8px solid transparent;
  border-image: url('./pixel/frame-cream.png') 5 fill / 8px / 0 repeat;
  border-radius: 0;
  background: color-mix(in srgb, #241e3c calc(var(--dc-night) * 80%), #fff8eb);
}
/* do not touch .saved-photo / stage imagery */

/* breadcrumbs (product-page chrome only typography / not gallery) */
.breadcrumbs{
  font-family: var(--px-body);
  font-size: 1.1rem;
}

/* homepage story + values already covered; collection-band header uses section-head */

/* ---------- brand cards (pixel logos, not product photos) ---------- */
.brand-card, a.brand-card.px-brand-card{
  border: 10px solid transparent;
  border-image: url('./pixel/frame-wood.png') 5 fill / 10px / 0 repeat;
  border-radius: 0;
  background: color-mix(in srgb, #2a2438 calc(var(--dc-night) * 70%), #f8ecd6);
  box-shadow: 4px 4px 0 #221b2080;
  overflow: hidden;
  image-rendering: pixelated;
}
.brand-card:hover, a.brand-card.px-brand-card:hover{
  border-image-source: url('./pixel/frame-gold.png');
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 #221b20;
}
.brand-card > div, .px-brand-logo{
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 6px 8px;
  background:
    color-mix(in srgb, #1d1830 calc(var(--dc-night) * 55%), #fff8eb);
  /* cancel product stage tiles if a leftover class remains */
  background-image: none !important;
}
.px-brand-logo img, .brand-card > div > img{
  width: 70%;
  height: auto;
  max-width: 70%;
  max-height: 86%;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  /* intrinsic width/height attributes must not cap the logo */
  display: block;
}
.brand-card > span{
  background: color-mix(in srgb, #241e3c calc(var(--dc-night) * 85%), #fff8eb) !important;
  color: color-mix(in srgb, #efe7f6 calc(var(--dc-night) * 85%), #221b20);
}
.brand-card strong{
  font-family: var(--px-head);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.brand-card small{
  font-family: var(--px-body);
  font-size: 1.05rem;
}
.brand-card .icon{ display:none; }
.brand-card > span::after{
  content:'';
  position:absolute; right:12px; bottom:14px;
  width:16px; height:16px;
  background: url('./pixel/icon-arrow.png') center / 16px 16px no-repeat;
  image-rendering: pixelated;
}
:root[data-dc-dark] .brand-card{
  border-image-source: url('./pixel/frame-wood-night.png');
  background: #241e3c;
  box-shadow: 4px 4px 0 #07060e;
}
:root[data-dc-dark] .px-brand-logo, :root[data-dc-dark] .brand-card > div{
  background: #2e2748;
}
:root[data-dc-dark] .brand-card > span{ background:#1d1830 !important; color:#efe7f6; }
:root[data-dc-dark] .brand-card > span::after{
  filter: invert(1) sepia(.4) saturate(4) hue-rotate(10deg);
}

/* collection cards: pixel frame + label typography, keep product photos as they are */
.collection-card{
  border: 8px solid transparent;
  border-image: url('./pixel/frame-cream.png') 5 fill / 8px / 0 repeat;
  border-radius: 0;
  box-shadow: 3px 3px 0 #221b2066;
}
.collection-card > span{
  font-family: var(--px-body);
}
.collection-card strong{
  font-family: var(--px-head);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}
.collection-card .icon{ display:none; }
.collection-card > span::after{
  content:'';
  position:absolute; right:12px; bottom:14px;
  width:16px; height:16px;
  background: url('./pixel/icon-arrow.png') center / 16px 16px no-repeat;
  image-rendering: pixelated;
}
/* do not alter .collection-card > div image area / stage backgrounds */

/* shelves (homepage collection promo labels only) */
.shelf span, .shelf strong, .shelf small{
  font-family: var(--px-body);
}
.shelf strong{
  font-family: var(--px-head);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- London world ---------- */
body[data-page="london"]{
  background: #4a8bd0;
  overflow-x: hidden;
}
body[data-page="london"] .site-header{ position: relative; z-index: 8; }
body[data-page="london"] > main{ padding: 0; position: relative; z-index: 1; }

.london-world{
  position: relative;
  overflow-x: hidden;
  min-height: 80vh;
  color: var(--px-ink);
}
.lw-backdrop{
  position: absolute;
  inset: 0 0 auto 0;
  height: 70vh;
  min-height: 420px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.lw-sky{
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: auto 100%;
  image-rendering: pixelated;
}
.lw-sky-day{ background-image: url('./pixel/sky-day.png'); opacity: calc(1 - var(--dc-night)); }
.lw-sky-night{ background-image: url('./pixel/sky-night.png'); opacity: var(--dc-night); }
.lw-stars{
  position: absolute; inset: 0;
  opacity: var(--dc-night);
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 0 1px, transparent 2px),
    radial-gradient(1px 1px at 28% 48%, #fff8 0 1px, transparent 2px),
    radial-gradient(1px 1px at 47% 18%, #fff 0 1px, transparent 2px),
    radial-gradient(1px 1px at 63% 35%, #fff9 0 1px, transparent 2px),
    radial-gradient(1px 1px at 81% 14%, #fff 0 1px, transparent 2px),
    radial-gradient(1px 1px at 91% 42%, #fff8 0 1px, transparent 2px);
  background-size: 240px 160px;
  image-rendering: pixelated;
}
.lw-clouds{
  position: absolute; left: 0; right: 0; top: 8%;
  height: 60px;
  background: url('./pixel/cloud.png') 0 0 / 128px 56px repeat-x;
  image-rendering: pixelated;
  opacity: calc(0.85 - var(--dc-night) * 0.35);
  animation: lw-drift 80s linear infinite;
}
.lw-far-skyline{
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 66px;
  background: url('./pixel/skyline.png') 0 100% / 480px 66px repeat-x;
  image-rendering: pixelated;
  opacity: calc(0.55 - var(--dc-night) * 0.15);
}
.lw-far-skyline::after{
  content:'';
  position:absolute; inset:0;
  background: url('./pixel/skyline-night.png') 0 100% / 480px 66px repeat-x;
  image-rendering: pixelated;
  opacity: var(--dc-night);
}

@keyframes lw-drift{
  from{ background-position: 0 0; }
  to{ background-position: 1280px 0; }
}

.lw-vista{
  position: relative;
  z-index: 1;
  padding-top: clamp(12px, 3vw, 28px);
}
body[data-page="london"] .london-panorama{
  background: transparent;
  color: inherit;
  border-radius: 0;
  overflow: visible;
  border: 10px solid transparent;
  border-image: url('./pixel/frame-wood.png') 5 fill / 10px / 0 repeat;
  box-shadow: 6px 8px 0 #221b2080;
}
body[data-page="london"] .london-panorama .scene-story-image{
  aspect-ratio: 16 / 9;
  border-radius: 0;
  width: 100%;
}
body[data-page="london"] .london-panorama figcaption,
.px-caption{
  font-family: var(--px-body);
  font-size: 1.15rem;
  padding: 8px 14px 4px;
  color: color-mix(in srgb, #efe7f6 calc(var(--dc-night) * 80%), #3a2a24);
  background: color-mix(in srgb, #2a2438 calc(var(--dc-night) * 60%), #e8d2ae);
}

.lw-street{
  position: relative;
  z-index: 1;
  margin-top: -2px;
  padding-bottom: clamp(32px, 6vw, 80px);
  background:
    url('./pixel/tile-river.png') 0 0 / 256px 80px repeat-x,
    url('./pixel/tile-cobble.png') 0 80px / 128px 128px repeat;
  image-rendering: pixelated;
}
.lw-street::before{
  /* night wash on the cobbles */
  content:'';
  position:absolute; inset:0;
  background: #1a1440;
  mix-blend-mode: multiply;
  opacity: calc(var(--dc-night) * .45);
  pointer-events:none;
}
.lw-plaza{
  position: relative;
  z-index: 1;
  padding-top: 92px;
  display: grid;
  gap: 28px;
}
.lw-signs{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.px-hanging{
  position: relative;
  margin-top: 16px;
}
.px-hanging::before{
  content:'';
  position:absolute; left: 18%; right: 18%; top: -16px; height: 16px;
  background: url('./pixel/hanging-hardware.png') space 0 / auto 16px;
  image-rendering: pixelated;
  pointer-events:none;
}
.london-board{
  padding: 18px 16px 16px;
}
.london-board h2{ margin: 0 0 12px; }
.london-notes{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.london-notes li, .london-notes button.px-note{
  display: block;
  width: 100%;
  text-align: left;
  border: 8px solid transparent;
  border-image: url('./pixel/frame-paper.png') 5 fill / 8px / 0 repeat;
  background: #fff8eb;
  color: var(--px-ink);
  padding: 10px 12px 10px 28px;
  position: relative;
  font-family: var(--px-body);
  font-size: 1.15rem;
  line-height: 1.3;
  box-shadow: 2px 3px 0 #00000033;
  cursor: pointer;
  transform: rotate(-0.6deg);
}
.london-notes li:nth-child(even), .london-notes button.px-note:nth-child(even){ transform: rotate(0.8deg); }
.london-notes li:nth-child(3), .london-notes button.px-note:nth-child(3){ transform: rotate(-1.2deg); }
.london-notes button.px-note::before{
  content:'';
  position:absolute; left:8px; top:6px;
  width:16px; height:20px;
  background: url('./pixel/pin-red.png') 0 0 / 16px 20px no-repeat;
  image-rendering: pixelated;
}
.london-notes button.px-note:nth-child(2)::before{ background-image: url('./pixel/pin-gold.png'); }
.london-notes button.px-note:nth-child(3)::before{ background-image: url('./pixel/pin-purple.png'); }
.london-notes button.px-note:hover, .london-notes button.px-note[aria-expanded="true"]{
  transform: rotate(0) translateY(-2px);
  box-shadow: 3px 5px 0 #00000044;
}
.london-notes .px-note-body{ display:none; margin: 6px 0 0; color: #4a3a36; }
.london-notes button.px-note[aria-expanded="true"] .px-note-body{ display:block; }
.london-notes .px-note-title{
  font-family: var(--px-head);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  font-weight: 600;
  display:block;
  margin-bottom: 2px;
}

.lw-landmarks{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  align-items: end;
}
.lw-spot{
  appearance: none;
  border: 8px solid transparent;
  border-image: url('./pixel/frame-wood.png') 5 fill / 8px / 0 repeat;
  background: color-mix(in srgb, #241e3c calc(var(--dc-night) * 60%), #f3e0c4);
  color: inherit;
  padding: 8px 8px 10px;
  display: grid;
  justify-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #221b2080;
  font: inherit;
  text-align: center;
  width: 100%;
}
.lw-spot img{
  width: auto;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
}
.lw-spot span{
  font-family: var(--px-head);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: color-mix(in srgb, #efe7f6 calc(var(--dc-night) * 80%), #221b20);
}
.lw-spot .lw-note{
  display:none;
  font-family: var(--px-body);
  font-size: 1.05rem;
  line-height: 1.3;
  text-align: left;
  color: color-mix(in srgb, #efe7f6 calc(var(--dc-night) * 80%), #3a2a24);
}
.lw-spot[aria-expanded="true"] .lw-note{ display:block; }
.lw-spot:hover, .lw-spot[aria-expanded="true"]{
  transform: translateY(-3px);
  box-shadow: 5px 6px 0 #221b20;
}

/* 404 */
body[data-page="not-found"]{
  background:
    url('./pixel/tile-cobble.png') 0 100% / 128px 128px repeat,
    url('./pixel/sky-day.png') 0 0 / auto 55vh repeat-x,
    #4a8bd0;
  image-rendering: pixelated;
  min-height: 100vh;
}
.px-404{
  max-width: 720px;
  margin: 8vh auto 12vh;
  padding: 0 16px;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.px-404 .px-sign{ padding: 24px 22px; }
.px-404 .px-actions{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.px-404 .px-sprite{ width: 84px; height: 84px; image-rendering: pixelated; }

/* product cards / product imagery stay untouched — no rules for
   .product-card, .product-stage, .product-photo, .gallery-stage, .gallery-photo */

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .lw-clouds, .px-hanging, .lw-spot, .london-notes button.px-note, .brand-card{
    animation: none !important;
    transition: none !important;
  }
  .lw-spot:hover, .lw-spot[aria-expanded="true"],
  .brand-card:hover{ transform: none; }
}

/* ---------- layout at 390 and 1440 ---------- */
@media (max-width: 760px){
  .lw-signs{ grid-template-columns: 1fr; }
  .page-intro h1, .section-head .display-heading, .editorial-copy .display-heading,
  .story-copy .display-heading, body[data-page="not-found"] h1{
    font-size: 1.7rem;
  }
  .lw-plaza{ padding-top: 72px; }
  .lw-spot img{ height: 56px; }
  .brand-card strong, .collection-card strong{ font-size: 1.05rem; }
  .button, .button-gold{ font-size: 0.9rem; }
}
/* prevent any pixel layer from causing sideways scroll */
.london-world, .lw-backdrop, .lw-street, .lw-vista, body[data-page="london"]{
  max-width: 100%;
}


/* ---------- homepage (and any) full-bleed .scene-story ---------- */
.scene-story.scene-story-bleed,
body[data-page="home"] .scene-story{
  --story-skyline: 66px;
  display: block;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 var(--story-skyline);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: 70vh;
  background: #5c4c50 url('./pixel/tile-cobble.png') 0 100% / 128px 128px repeat-x;
  image-rendering: pixelated;
  /* no beige, no wrap padding, no rounded frame */
}
:root[data-dc-dark] .scene-story.scene-story-bleed,
:root[data-dc-dark] body[data-page="home"] .scene-story{
  background-color: #2a2438;
}
/* flush the footer skyline onto the cobble strip at the bottom of the scene */
body[data-page="home"] .site-footer{
  margin-top: 0;
}

.scene-story.scene-story-bleed .scene-story-image,
body[data-page="home"] .scene-story .scene-story-image,
body[data-page="home"] .scene-story .scene-story-image.has-pixel-scene{
  position: absolute;
  inset: 0 0 var(--story-skyline) 0;
  width: auto;
  height: auto;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: #221b20;
  box-shadow: none;
}
.scene-story.scene-story-bleed .scene-story-image img,
.scene-story.scene-story-bleed .scene-story-image canvas.pixel-scene,
body[data-page="home"] .scene-story .scene-story-image img,
body[data-page="home"] .scene-story .scene-story-image canvas.pixel-scene{
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center bottom;
  transform: translateX(-50%);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius: 0;
  display: block;
}

/* text sits on a wood sign over the sky, not in a side column */
.scene-story.scene-story-bleed .story-copy,
body[data-page="home"] .scene-story .story-copy{
  position: absolute;
  z-index: 2;
  top: clamp(12px, 3.5vh, 36px);
  right: clamp(12px, 3vw, 48px);
  left: auto;
  width: min(380px, calc(100% - 24px), 34vw);
  max-width: calc(100vw - 24px);
  margin: 0;
  justify-items: start;
  box-sizing: border-box;
}
.scene-story.scene-story-bleed .story-copy.px-hanging::before,
body[data-page="home"] .scene-story .story-copy.px-hanging::before{
  left: 22%;
  right: 22%;
}
.scene-story.scene-story-bleed .story-copy p:not(.eyebrow),
body[data-page="home"] .scene-story .story-copy p:not(.eyebrow){
  max-width: none;
}
:root[data-dc-dark] .scene-story.scene-story-bleed .story-copy,
:root[data-dc-dark] body[data-page="home"] .scene-story .story-copy{
  border-image-source: url('./pixel/frame-wood-night.png');
  background: #241e3c;
  color: #efe7f6;
}

@media (max-width: 760px){
  .scene-story.scene-story-bleed,
  body[data-page="home"] .scene-story{
    min-height: 0;
    /* fill the width with a 16:9 (or a touch taller) crop, sign stacks below over cobble */
    display: flex;
    flex-direction: column;
    padding-bottom: var(--story-skyline);
  }
  .scene-story.scene-story-bleed .scene-story-image,
  body[data-page="home"] .scene-story .scene-story-image,
  body[data-page="home"] .scene-story .scene-story-image.has-pixel-scene{
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    flex: 0 0 auto;
  }
  .scene-story.scene-story-bleed .story-copy,
  body[data-page="home"] .scene-story .story-copy{
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin: -8px 12px 16px;
    /* sits just onto the plaza, does not cover the characters in the 16:9 crop */
  }
}

/* === QA fix: london scene fill + homepage scene clicks === */

/* Homepage: decorative overlays must not swallow canvas clicks.
   The section itself can form a stacking box over the canvas; punch through
   it, then re-enable hits on the scene and the sign/link. */
.scene-story.scene-story-bleed,
body[data-page="home"] .scene-story{
  pointer-events: none;
}
.scene-story.scene-story-bleed .scene-story-image,
.scene-story.scene-story-bleed .scene-story-image canvas.pixel-scene,
.scene-story.scene-story-bleed .scene-story-image img,
.scene-story.scene-story-bleed .story-copy,
.scene-story.scene-story-bleed .story-copy a,
body[data-page="home"] .scene-story .scene-story-image,
body[data-page="home"] .scene-story .scene-story-image canvas.pixel-scene,
body[data-page="home"] .scene-story .scene-story-image img,
body[data-page="home"] .scene-story .story-copy,
body[data-page="home"] .scene-story .story-copy a{
  pointer-events: auto;
}
.scene-story.scene-story-bleed::before,
.scene-story.scene-story-bleed::after,
.scene-story.scene-story-bleed .story-copy::before,
.scene-story.scene-story-bleed .story-copy::after,
body[data-page="home"] .scene-story::before,
body[data-page="home"] .scene-story::after,
body[data-page="home"] .scene-story .story-copy::before,
body[data-page="home"] .scene-story .story-copy::after{
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   /london/ scene fill — do NOT inherit homepage cover/transform rules, and
   override site.css's painted-hero crop (width:243.8%; left:-95.24%).
   The canvas (and the still fallback) must stretch to the image box edges.
   -------------------------------------------------------------------------- */
body[data-page="london"] .lw-vista{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
body[data-page="london"] .london-panorama{
  margin: 0;
  width: 100%;
  max-width: none;
  border: 0;
  border-image: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
  background: #221b20;
}
body[data-page="london"] .london-panorama .scene-story-image,
body[data-page="london"] .london-panorama .scene-story-image.has-pixel-scene,
body[data-page="london"] .scene-story-image,
body[data-page="london"] .scene-story-image.has-pixel-scene{
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: block;
  width: 100% !important;
  max-width: none;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: #221b20;
  transform: none !important;
  box-shadow: none;
}
body[data-page="london"] .scene-story-image img,
body[data-page="london"] .scene-story-image canvas.pixel-scene,
body[data-page="london"] .london-panorama .scene-story-image img,
body[data-page="london"] .london-panorama .scene-story-image canvas.pixel-scene,
body[data-page="london"] .scene-story-image.has-pixel-scene canvas.pixel-scene{
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  transform: none !important;
  object-fit: fill;
  object-position: 0 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  pointer-events: auto;
}
body[data-page="london"] .london-panorama figcaption,
body[data-page="london"] .px-caption{
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 760px){
  body[data-page="london"] .london-panorama .scene-story-image,
  body[data-page="london"] .scene-story-image,
  body[data-page="london"] .scene-story-image.has-pixel-scene{
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    transform: none !important;
  }
  body[data-page="london"] .scene-story-image img,
  body[data-page="london"] .scene-story-image canvas.pixel-scene{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    object-fit: fill;
  }
}

/* === QA fix: flush collection-band + footer skyline on home === */
/* Kiss the story scene to the collection cards (no beige gap). */
body[data-page="home"] .collection-band{
  border-bottom: 0;
  margin-bottom: 0;
}
body[data-page="home"] .collection-band > .section,
body[data-page="home"] .collection-band .section.wrap{
  padding-bottom: 0;
  margin-bottom: 0;
}
/* extras.css sets overflow:hidden then overflow-x:clip, which leaves overflow-y
   hidden and clips the skyline (::before at top:-65px). Let it sit on the plaza. */
body[data-page="home"] .site-footer{
  margin-top: 0;
  overflow-x: clip;
  overflow-y: visible;
}
/* === typography + fits + values-band 3-up === */


/* ---------- values-band: three shop links ---------- */
.values-inner{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.values-inner > * + *{ border-left: 1px solid #f3cf956e; }
.values-inner a{
  color: #fff2df;
  font-family: var(--px-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  gap: 10px;
  padding: 10px 12px;
  min-height: 52px;
  transition: color .15s ease, background-color .15s ease;
}
.values-inner a span{ font-size: inherit; line-height: 1.25; letter-spacing: inherit; }
.values-inner a .px-icon,
.values-inner a img.px-icon{
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: none;
}
.values-inner a:hover,
.values-inner a:focus-visible{
  color: var(--gold);
  background: #ffffff14;
}
:root[data-dc-dark] .values-inner a{ color: #efe7f6; }
:root[data-dc-dark] .values-inner a:hover,
:root[data-dc-dark] .values-inner a:focus-visible{ color: var(--gold); background: #ffffff12; }
@media (max-width: 760px){
  .values-inner{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0;
    padding: 8px 6px !important;
  }
  .values-inner > *{
    justify-content: center !important;
    flex-direction: column;
    text-align: center;
    gap: 6px !important;
    padding: 10px 6px !important;
    border-left: 0 !important;
  }
  .values-inner > * + *{ border-left: 1px solid #f3cf956e !important; }
  .values-inner a{ font-size: 0.85rem; min-height: 0; }
}

/* ---------- Fits page ---------- */
body[data-page="fits"]{ overflow-x: hidden; }
.fits-world{
  position: relative;
  background:
    url('./pixel/tile-cobble.png') 0 0 / 128px 128px repeat;
  image-rendering: pixelated;
  padding: 28px 0 72px;
}
:root[data-dc-dark] .fits-world{
  background-color: #1a1440;
  background-blend-mode: multiply;
}
.fits-intro{ max-width: 72ch; }
.fits-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}
.fit-card{
  display: grid;
  gap: 0;
  background: color-mix(in srgb, #2a2438 calc(var(--dc-night) * 70%), #f8ecd6);
  color: color-mix(in srgb, #efe7f6 calc(var(--dc-night) * 80%), #221b20);
  border: 12px solid transparent;
  border-image: url('./pixel/frame-wood.png') 5 fill / 12px / 0 repeat;
  box-shadow: 4px 4px 0 #221b2088;
  overflow: hidden;
}
:root[data-dc-dark] .fit-card{
  border-image-source: url('./pixel/frame-wood-night.png');
  background: #241e3c;
  color: #efe7f6;
  box-shadow: 4px 4px 0 #07060e;
}
.fit-collage{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: #221b20;
  min-height: 240px;
  aspect-ratio: 16 / 10;
}
.fit-collage a{
  display: block;
  overflow: hidden;
  background: #2a2430;
  min-width: 0;
  min-height: 0;
}
.fit-collage.cols-3 a:first-child, .fit-collage:not(.cols-4) a:first-child{ grid-row: 1 / span 2; }
.fit-collage.cols-4{
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.fit-collage.cols-4 a:first-child{ grid-row: auto; }
.fit-collage img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  display: block;
  transition: transform .25s ease;
}
.fit-collage a:hover img{ transform: scale(1.04); }
.fit-body{ padding: 16px 18px 18px; display: grid; gap: 12px; }
.fit-body h2{
  font-family: var(--px-head);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.fit-lede{
  font-family: var(--px-body);
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 0;
}
.fit-pieces{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fit-pieces li{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4px 12px;
  align-items: baseline;
  font-family: var(--px-body);
  font-size: 0.98rem;
  line-height: 1.35;
  padding-bottom: 8px;
  border-bottom: 1px dashed color-mix(in srgb, currentColor 30%, transparent);
}
.fit-pieces li:last-child{ border-bottom: 0; padding-bottom: 0; }
.fit-pieces a{ text-decoration: none; font-weight: 600; }
.fit-pieces a:hover{ color: var(--px-rust); }
:root[data-dc-dark] .fit-pieces a:hover{ color: var(--px-gold); }
.fit-pieces .fit-meta{ opacity: .8; font-size: 0.9rem; font-weight: 400; }
.fit-pieces .fit-price{ font-weight: 700; white-space: nowrap; }
.fit-total{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--px-head);
  font-weight: 600;
  font-size: 1.15rem;
  padding-top: 4px;
}
.fit-actions{ display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 760px){
  .fits-grid{ grid-template-columns: 1fr; gap: 20px; }
  .fit-collage{ min-height: 200px; }
}

/* SCENE-IMAGES: pixel-scene product photos fill the stage (1.5:1), badge baked into the image */
.scene-stage { aspect-ratio: 1.5 !important; background: #2a1f2e !important; }
.scene-stage .stage-caption { display: none; }
.scene-stage .product-image-link { inset: 0 !important; }
.scene-stage .product-photo.scene, .scene-stage .gallery-photo.scene, .collection-card .scene { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.collection-card > .scene-stage { aspect-ratio: 1.5 !important; }
.gallery-rail a { aspect-ratio: 1.5 !important; padding: 0 !important; overflow: hidden; }
.gallery-rail img { object-fit: cover !important; }
.product-card.is-sold .product-stage::after, .gallery-stage.is-sold::after { content: 'SOLD'; position: absolute; right: 10px; top: 10px; z-index: 4; background: #231b22; color: #f2c14e; border: 2px solid #f2c14e; padding: 6px 10px; letter-spacing: .12em; font-weight: 800; font-size: .8rem; display: block !important; inset: auto; background-image: none; }
.size-section { margin-top: 42px; }
.size-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.checkout-panel { margin-top: 26px; padding: 18px; border: 2px solid #73503b; border-radius: 10px; background: #fff3e3; max-width: 640px; }
.checkout-panel .co-row { display: grid; gap: 8px; margin: 10px 0; }
.checkout-panel select { margin-left: 8px; min-height: 40px; }
.checkout-panel .co-quote { min-height: 1.4em; font-weight: 700; }
.checkout-panel .co-note { font-size: .86rem; opacity: .8; }
.checkout-panel .co-err { color: #a02a1a; font-weight: 700; }
