/* Open Palm Shop. Object studio: each category owns a colour field, the page colour follows the category in view.
   Tokens first, then base, layout, parts, pages, motion. */

/* ------------------------------------------------------------------ tokens */
:root {
  --mint: #CFF3E4;      /* mats and props */
  --pink: #FFC2DC;      /* clothing */
  --lilac: #DAD3FF;     /* class packs */
  --yellow: #FFF1A8;    /* gift cards */
  --ink: #0B0B0B;
  --white: #FFFFFF;
  --grey: #F2F2F2;
  --fc: #FFFFFF;                       /* the current field colour, set by site.js */
  --line: rgba(11, 11, 11, .16);
  --line-2: rgba(11, 11, 11, .32);
  --muted: rgba(11, 11, 11, .68);

  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* type scale */
  --t-hero: clamp(2.6rem, 1rem + 5vw, 6.4rem);
  --t-h1: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
  --t-h2: clamp(2.3rem, 1.1rem + 4.4vw, 5.4rem);
  --t-h3: clamp(1.12rem, 1rem + .4vw, 1.4rem);
  --t-lead: clamp(1.06rem, .98rem + .34vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-mono: .875rem;

  /* spacing scale (4 px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --sec: clamp(72px, 4rem + 4.4vw, 136px);       /* one section padding for every band */

  /* grid */
  --m: clamp(16px, 2.8vw, 44px);                 /* page margin */
  --g: clamp(12px, 1.5vw, 22px);                 /* gutter */
  --hd: 64px;                                    /* header height */
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 760px) { :root { --hd: 56px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #fff; }
body { margin: 0; background: transparent; color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.5;
  font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
.nw { white-space: nowrap; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; font-feature-settings: 'zero' 0; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ft :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 8px; }

/* the colour field behind every page */
.field { position: fixed; inset: 0; z-index: -1; background: var(--fc); pointer-events: none; }

.wrap { width: 100%; max-width: 1720px; margin-inline: auto; padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: -.005em; text-decoration: none;
  border-radius: 0; transition: background .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.btn:hover { background: #2B2B2B; }
.btn .ar { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }
.btn .mono { font-size: .9375rem; opacity: .86; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: .28em; min-height: 44px; }
.tlink .ar { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.tlink:hover .ar { transform: translateX(3px); }

/* ------------------------------------------------------------------ header */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd); background: var(--fc); view-transition-name: hd;
  box-shadow: 0 1px 0 var(--line); }
.hd-in { height: 100%; display: flex; align-items: center; gap: var(--s6); max-width: 1720px; margin-inline: auto; padding-inline: var(--m); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.015em; text-decoration: none; min-height: 44px; }
.brand .mark { width: 28px; height: 28px; flex: none; }
.hd-nav { flex: 1; }
.hd-nav ul { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.hd-nav a { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 500; text-decoration: none; min-height: 44px; }
.hd-nav a i { width: 10px; height: 10px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .28); }
.hd-nav a:hover, .hd-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .3em; }
.hd-r { display: flex; align-items: center; gap: var(--s2); margin-left: auto; }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 16px; background: var(--ink); color: #fff; font-weight: 600; font-size: .9375rem; }
.cart-n { font-family: var(--mono); min-width: 24px; height: 24px; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: .8125rem; padding: 0 5px; }
.cart-btn.bump .cart-n { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-btn .menu-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-btn i, .menu-btn i::before { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .35s var(--ease); }
.menu-btn i::before { content: ''; position: absolute; top: 7px; }
.menu-btn i { transform: translateY(-3.5px); }
.menu-btn[aria-expanded='true'] i { transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] i::before { transform: translateY(-7px) rotate(-90deg); }

.menu { position: fixed; inset: var(--hd) 0 0; z-index: 45; background: #fff; overflow-y: auto; padding-bottom: 96px; }
.menu-cats li { background: var(--c); border-bottom: 1px solid var(--line); }
.menu-cats a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); padding: 22px var(--m); text-decoration: none; }
.menu-cats span { font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.menu-cats small { font-family: var(--mono); font-size: var(--t-mono); }
.menu-small { padding: var(--s5) var(--m); display: grid; gap: 2px; }
.menu-small a { display: flex; align-items: center; min-height: 44px; font-weight: 500; }

@media (max-width: 1100px) {
  .hd-nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ------------------------------------------------------------------ product cards */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.4vw, 56px) var(--g); }
.pc { position: relative; min-width: 0; }
.pc-media { position: relative; }
.pc-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pc-media:hover .pc-img img { transform: scale(1.025); }
.pc-info { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s3); align-items: baseline; padding-top: var(--s4); }
.pc-name { font-size: var(--t-h3); font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.pc-name a { text-decoration: none; }
.pc-name a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.pc-price { font-size: .9375rem; white-space: nowrap; }
.pc-sub { grid-column: 1 / -1; color: var(--muted); font-size: var(--t-small); margin-top: 2px; }

/* quick add: a bar over the photo on hover, a small square button on touch */
.qa { position: absolute; z-index: 6; left: var(--s3); right: var(--s3); bottom: var(--s3); display: flex; align-items: center; gap: 2px;
  background: #fff; min-height: 48px; padding: 4px; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .45s var(--ease); }
.pc-media:hover .qa, .qa:focus-within { opacity: 1; transform: none; }
.qa-btn { flex: 1; display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 12px; font-weight: 600; font-size: .9375rem; }
.qa-btn:hover { background: var(--ink); color: #fff; }
.qa-l { flex: 1; padding-left: 10px; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.qa-sizes button { font-family: var(--mono); font-size: .8125rem; width: 40px; height: 40px; }
.qa-sizes button:hover { background: var(--ink); color: #fff; }
.qa-t { display: none; position: absolute; z-index: 6; right: var(--s2); bottom: var(--s2); width: 44px; height: 44px; background: #fff; color: var(--ink);
  align-items: center; justify-content: center; text-decoration: none; }
.qa-t svg { width: 18px; height: 18px; }
.qa-t.done, .qa-btn.done { background: var(--ink); color: #fff; }
@media (hover: none), (max-width: 760px) {
  .qa { display: none; }
  .qa-t { display: inline-flex; }
}

/* ------------------------------------------------------------------ home hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--hd) + clamp(20px, 3.4vh, 44px)); }
.hero-top { align-items: end; row-gap: var(--s5); padding-bottom: clamp(20px, 3.2vh, 40px); }
.hero-h { grid-column: 1 / span 8; font-size: var(--t-hero); font-weight: 750; letter-spacing: -.042em; line-height: .92; }
.hero-side { grid-column: 9 / span 4; display: grid; gap: var(--s5); padding-bottom: .4em; }
.hero-side p { font-size: var(--t-lead); line-height: 1.45; max-width: 34ch; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s2); }

.slabs { flex: 1; display: flex; min-height: 300px; max-width: none; padding: 0; }
.slab { flex: 1 1 0; min-width: 0; background: var(--c); transition: flex-grow .8s var(--ease); }
.slab-a { position: relative; height: 100%; display: flex; flex-direction: column; padding: clamp(16px, 1.6vw, 24px); text-decoration: none; overflow: hidden; }
.slab:first-child .slab-a { padding-left: var(--m); }
.slab-t { font-size: clamp(1.25rem, .9rem + 1vw, 2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.slab-m { font-size: var(--t-mono); margin-top: 8px; }
.slab-img { flex: 1; position: relative; margin-top: var(--s4); min-height: 0; }
.slab-img img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transform: translateX(-50%); transition: transform 1s var(--ease); }
@media (hover: hover) {
  .slabs:hover .slab { flex-grow: .86; }
  .slabs .slab:hover, .slabs .slab:focus-within { flex-grow: 1.5; }
  .slab:hover .slab-img img { transform: translateX(-50%) scale(1.03); }
}

/* ------------------------------------------------------------------ category sections */
.cat, .grp, .studio, .deliv, .shop-hd, .cart-hd, .tax, .rel, .flat { position: relative; }
.cat { padding-top: var(--sec); background: var(--sc); }
.no-js .cat { padding-bottom: var(--sec); }
.js .cat, .js .grp, .js .rel { background: transparent; }
.cat-hd { align-items: end; row-gap: var(--s4); margin-bottom: clamp(32px, 3.6vw, 56px); }
.cat-h { font-size: var(--t-h2); font-weight: 750; letter-spacing: -.04em; line-height: .94; }
.cat-hd .cat-h { grid-column: 1 / span 7; }
.cat-side { grid-column: 9 / span 4; display: grid; gap: var(--s3); justify-items: start; }
.cat-side p { max-width: 40ch; }

.how { margin-top: clamp(48px, 5vw, 80px); padding-top: var(--s5); border-top: 1px solid var(--line-2); row-gap: var(--s4); }
.how-h { grid-column: 1 / span 3; font-size: var(--t-h3); font-weight: 650; letter-spacing: -.015em; }
.how-l { grid-column: 4 / span 6; display: grid; gap: var(--s3); counter-reset: how; }
.how-l li { counter-increment: how; display: grid; grid-template-columns: 2.4em 1fr; }
.how-l li::before { content: counter(how); font-family: var(--mono); font-size: var(--t-mono); padding-top: .2em; }
.how-l b { font-weight: 650; }
.how-n { grid-column: 10 / span 3; color: var(--muted); font-size: var(--t-small); }
.how-n a { color: var(--ink); }

/* gift module */
.gifts { padding-top: var(--sec); background: var(--sc); }
.js .gifts { background: transparent; }
.gift-grid { align-items: center; row-gap: var(--s6); }
.gift-img { grid-column: 2 / span 5; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; transition: opacity .3s; }
.gift-img img { width: 100%; height: 100%; object-fit: cover; }
.gift-buy { grid-column: 8 / span 5; display: grid; gap: var(--s5); align-content: center; }
.gift-lead { font-size: var(--t-lead); max-width: 36ch; }
.gift-row { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; }
.gift-more { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); padding-top: var(--s5); border-top: 1px solid var(--line-2); }
.gmini { display: grid; grid-template-columns: 76px 1fr; gap: var(--s3); align-items: center; text-decoration: none; }
.gmini-img { aspect-ratio: 4 / 5; overflow: hidden; display: block; }
.gmini-img img { width: 100%; height: 100%; object-fit: cover; }
.gmini-t { display: grid; gap: 2px; font-size: var(--t-small); }
.gmini-t b { font-weight: 650; }
.gmini:hover b { text-decoration: underline; }

/* studio band */
.studio { padding-top: var(--sec); }
.studio .grid { align-items: end; row-gap: var(--s6); }
.studio-img { grid-column: 1 / span 8; aspect-ratio: 16 / 9; overflow: hidden; }
.studio-img img { width: 100%; height: 100%; object-fit: cover; }
.studio-t { grid-column: 9 / span 4; display: grid; gap: var(--s4); justify-items: start; }
.studio-t .cat-h { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.4rem); }

/* delivery and returns table */
.deliv { padding-block: var(--sec); background: #EFEFEF; }
.js .deliv { background: transparent; }
.deliv .grid { row-gap: var(--s6); }
.deliv-hd { grid-column: 1 / span 4; display: grid; gap: var(--s4); align-content: start; }
.deliv-hd .cat-h { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.4rem); }
.deliv-hd p { color: var(--muted); max-width: 34ch; }
.deliv-hd a { color: var(--ink); }
.dl { grid-column: 6 / span 7; border-top: 1px solid var(--line-2); }
.dl-r { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--g); padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.dl-r dt { font-weight: 650; }
.dl-r dd { color: var(--ink); }

/* ------------------------------------------------------------------ shop */
.shop-hd, .cart-hd { padding-top: calc(var(--hd) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(32px, 4vw, 56px); }
.shop-hd .grid, .cart-hd .grid { align-items: end; row-gap: var(--s4); }
.shop-h { grid-column: 1 / span 6; font-size: var(--t-hero); font-weight: 750; letter-spacing: -.045em; line-height: .92; }
.shop-p { grid-column: 8 / span 5; font-size: var(--t-lead); max-width: 42ch; }
.bar { position: sticky; top: var(--hd); z-index: 40; background: var(--fc); box-shadow: 0 1px 0 var(--line), 0 -1px 0 var(--line); }
.bar-in { display: flex; align-items: center; gap: var(--s4); min-height: 60px; }
.flts { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 4px; }
.flts::-webkit-scrollbar { display: none; }
.flt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-weight: 550; font-size: .9375rem; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, .5); }
.flt i { width: 12px; height: 12px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .3); }
.flt .mono { font-size: .8125rem; opacity: .7; }
.flt:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.flt[aria-pressed='true'] { background: var(--ink); color: #fff; box-shadow: none; }
.flt[aria-pressed='true'] .mono { opacity: .8; }
.sort { margin-left: auto; display: flex; align-items: center; gap: var(--s2); font-size: .9375rem; font-weight: 550; }
.sort select { appearance: none; min-height: 44px; padding: 0 36px 0 12px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 0;
  background: rgba(255, 255, 255, .5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B0B0B' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px; }
.bar-count { font-family: var(--mono); font-size: var(--t-mono); white-space: nowrap; min-width: 9ch; text-align: right; }

.grp { padding-top: clamp(40px, 4vw, 72px); background: var(--sc); scroll-margin-top: calc(var(--hd) + 60px); }
.grp + .grp { padding-top: var(--sec); }
.grp:last-child { padding-bottom: 0; }
.no-js .grp { padding-bottom: var(--sec); }
.grp-hd { align-items: baseline; row-gap: var(--s3); padding-top: var(--s5); margin-bottom: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line-2); }
.grp-h { grid-column: 1 / span 5; font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.6rem); font-weight: 750; letter-spacing: -.04em; line-height: .96; }
.grp-p { grid-column: 7 / span 4; color: var(--ink); }
.grp-n { grid-column: 11 / span 2; justify-self: end; font-size: var(--t-mono); }
.flat { padding-block: clamp(40px, 4vw, 72px) var(--sec); }
.sorted .flat .pc { background: var(--c); padding: 8px 8px 16px; }
.sorted .flat .pc-info { padding-inline: 6px; }
.sorted .flat .pc-sub { color: rgba(11, 11, 11, .74); }

/* ------------------------------------------------------------------ product page */
.pdp { padding-top: calc(var(--hd) + clamp(20px, 3vh, 40px)); padding-bottom: var(--sec); align-items: start; }
.gal { grid-column: 1 / span 7; position: sticky; top: calc(var(--hd) + clamp(20px, 3vh, 40px)); }
.gal-in { display: flex; gap: var(--g); align-items: flex-start; }
.gal-main { order: 2; aspect-ratio: 4 / 5; height: min(calc(100svh - var(--hd) - clamp(40px, 6vh, 80px)), 980px); max-width: calc(100% - 92px); overflow: hidden;
  background: color-mix(in srgb, var(--fc) 80%, #000 6%); transition: opacity .35s; }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { order: 1; display: grid; gap: var(--s2); width: 72px; flex: none; }
.thumb { display: block; aspect-ratio: 4 / 5; width: 72px; overflow: hidden; opacity: .62; transition: opacity .25s; box-shadow: 0 0 0 0 var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-pressed='true'] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.gal-in:not(:has(.thumbs)) .gal-main { max-width: 100%; }

.buy { grid-column: 8 / span 5; display: grid; gap: var(--s5); padding-top: var(--s2); }
.crumbs { display: flex; gap: var(--s2); font-size: var(--t-small); color: var(--muted); align-items: center; }
.crumbs a { color: var(--ink); min-height: 32px; display: inline-flex; align-items: center; }
.pdp-h { font-size: var(--t-h1); font-weight: 750; letter-spacing: -.035em; line-height: 1; margin-top: calc(var(--s3) * -1); }
.pdp-sub { color: var(--muted); margin-top: calc(var(--s4) * -1); }
.pdp-price { display: flex; align-items: baseline; gap: var(--s3); border-top: 1px solid var(--line-2); padding-top: var(--s4); }
.pdp-price .mono { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.pdp-tax { font-size: var(--t-small); color: var(--muted); }
.pdp-lead { font-size: 1.0625rem; }
.opts { display: grid; gap: var(--s5); }
.opt { display: grid; gap: var(--s3); }
.opt-row { display: flex; align-items: center; justify-content: space-between; }
.opt-row .tlink { min-height: 32px; font-size: var(--t-small); }
.opt-l { font-weight: 650; font-size: .9375rem; }
.opt-l span { font-weight: 400; color: var(--muted); margin-left: 6px; }
.vals { display: flex; flex-wrap: wrap; gap: 6px; }
.val { min-height: 44px; padding: 0 16px; box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 550; font-size: .9375rem; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .45); transition: background .2s, color .2s, box-shadow .2s; }
.val .mono { font-size: .8125rem; opacity: .75; }
.val:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.val[aria-pressed='true'] { background: var(--ink); color: #fff; box-shadow: none; }
.val-s { min-width: 52px; justify-content: center; padding: 0 10px; }
.sws { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 48px; height: 48px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, .45); }
.sw i { width: 32px; height: 32px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .18); transition: transform .3s var(--ease); }
.sw:hover i { transform: scale(1.08); }
.sw[aria-checked='true'] { box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
.buy-row { display: flex; gap: var(--s2); }
.qty { display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, .45); }
.qty button { width: 44px; height: 52px; font-size: 1.25rem; }
.qty button:hover { background: rgba(11, 11, 11, .08); }
.qty output { min-width: 28px; text-align: center; font-family: var(--mono); }
.btn-add { flex: 1; justify-content: space-between; }
.buy-note { font-size: var(--t-small); color: var(--muted); margin-top: calc(var(--s3) * -1); }
.gnote { display: grid; gap: 6px; font-size: .9375rem; font-weight: 650; }
.gnote textarea { font-weight: 400; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, .6); padding: 10px 12px; resize: vertical; border-radius: 0; }
.accs { border-top: 1px solid var(--line-2); }
.acc { border-bottom: 1px solid var(--line-2); }
.acc summary { display: flex; justify-content: space-between; align-items: center; min-height: 54px; cursor: pointer; font-weight: 650; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ''; width: 12px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
  linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc > p, .acc > dl { padding-bottom: var(--s5); font-size: var(--t-small); }
.spec div { display: grid; grid-template-columns: 9.5em 1fr; gap: var(--s3); padding: 6px 0; }
.spec dt { font-weight: 600; }
.sizeguide { box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, .6); padding: var(--s4); font-size: var(--t-small); display: grid; gap: var(--s3); }
.sizeguide table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: .8125rem; }
.sizeguide caption { text-align: left; font-family: var(--font); font-weight: 650; font-size: .9375rem; padding-bottom: 8px; }
.sizeguide th, .sizeguide td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.sizeguide thead th { font-family: var(--font); font-weight: 600; }

.rel { padding-bottom: var(--sec); }
.rel-hd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s4); padding-top: var(--s5); margin-bottom: clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--line-2); }

/* ------------------------------------------------------------------ cart page and drawer */
.cartp { padding-bottom: 0; }
.cart-grid { align-items: start; row-gap: var(--s7); }
.cart-lines { grid-column: 1 / span 7; border-top: 1px solid var(--line-2); }
.cart-sum { grid-column: 9 / span 4; box-shadow: 0 0 0 1px var(--line); position: sticky; top: calc(var(--hd) + 24px); background: #fff; padding: var(--s5); display: grid; gap: var(--s4); }
.cart-sum h2 { font-size: 1.375rem; letter-spacing: -.02em; }
.ln { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.ln-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c); }
.ln-img img { width: 100%; height: 100%; object-fit: cover; }
.ln-b { display: grid; gap: 6px; min-width: 0; }
.ln-n { font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.ln-n a { text-decoration: none; }
.ln-n a:hover { text-decoration: underline; }
.ln-o { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.ln-q { display: flex; align-items: center; gap: var(--s4); margin-top: 6px; }
.ln-q .qty button { height: 40px; width: 40px; }
.ln-rm { font-size: var(--t-small); text-decoration: underline; text-underline-offset: .25em; min-height: 40px; }
.ln-p { font-family: var(--mono); font-size: .9375rem; text-align: right; }
.sum { display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; gap: var(--s3); }
.sum dd { font-family: var(--mono); }
.sum .sum-t { border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 4px; font-weight: 650; }
.sum .sum-t dd { font-size: 1.125rem; }
.sum-tax { font-size: var(--t-small); color: var(--muted); }
.meth { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.meth legend { font-weight: 650; padding: 0 0 6px; font-size: .9375rem; }
.meth label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; font-size: .9375rem; }
.meth label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.meth input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.meth .mono { margin-left: auto; font-size: .8125rem; }
.demo-msg { font-size: var(--t-small); }
.demo-msg:not(:empty) { background: var(--yellow); padding: 12px 14px; }
.meter { height: 6px; background: rgba(11, 11, 11, .1); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .7s var(--ease); }
.free-l { font-size: var(--t-small); }
.cart-empty { padding-top: var(--s3); }
.ce-t { font-size: var(--t-lead); margin-bottom: var(--s6); }
.tax { padding-bottom: var(--sec); }
.tax .grid { padding-top: var(--s5); border-top: 1px solid var(--line-2); }
.tax .grid { row-gap: var(--s4); }
.tax .cat-h { grid-column: 1 / span 4; font-size: clamp(2rem, 1.2rem + 2.2vw, 3.4rem); }
.tax-t { grid-column: 6 / span 6; display: grid; gap: var(--s3); font-size: var(--t-lead); }

.drawer { position: fixed; inset: 0; z-index: 120; }
.dr-scrim { position: absolute; inset: 0; background: rgba(11, 11, 11, .38); }
.dr-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: #fff; display: flex; flex-direction: column; outline: 0; }
.dr-top { display: flex; justify-content: space-between; align-items: center; min-height: var(--hd); padding: 0 var(--s5); border-bottom: 1px solid var(--line); }
.dr-top h2 { font-size: 1.375rem; letter-spacing: -.02em; }
.dr-x { min-height: 44px; padding: 0 4px; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.dr-free { padding: var(--s4) var(--s5); display: grid; gap: 10px; background: var(--grey); font-size: var(--t-small); }
.dr-lines { flex: 1; overflow-y: auto; padding: 0 var(--s5); overscroll-behavior: contain; }
.dr-lines .ln { grid-template-columns: 76px 1fr auto; }
.dr-foot { padding: var(--s5); border-top: 1px solid var(--line); display: grid; gap: var(--s4); padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom)); }
.dr-btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.dr-empty { padding: var(--s7) 0; display: grid; gap: var(--s4); justify-items: start; }
.dr-empty p { font-size: var(--t-lead); }
.dr-cats { display: grid; gap: 4px; width: 100%; }
.dr-cats a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 var(--s4); background: var(--c); text-decoration: none; font-weight: 600; }

/* ------------------------------------------------------------------ footer */
.ft { background: var(--ink); color: #fff; padding-top: clamp(64px, 7vw, 112px); padding-bottom: 96px; position: relative; z-index: 1; }
.ft a { color: #fff; }
.ft-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s7) var(--g); }
.ft-brand { grid-column: 1 / span 4; display: grid; gap: var(--s4); align-content: start; }
.brand-ft .mark rect:first-child { fill: #fff; }
.brand-ft .mark g { fill: var(--ink); }
.ft-brand p { color: rgba(255, 255, 255, .74); max-width: 34ch; }
.ft-col { grid-column: span 2; display: grid; gap: var(--s3); align-content: start; font-size: var(--t-small); }
.ft-col:last-child { grid-column: 10 / span 3; }
.ft-col h2 { font-size: .9375rem; font-weight: 650; color: rgba(255, 255, 255, .6); }
.ft-col ul { display: grid; gap: 2px; }
.ft-col li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.ft-col li a:hover { text-decoration: underline; }
.ft-col p { color: rgba(255, 255, 255, .8); }
.ft-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); margin-top: clamp(48px, 6vw, 88px); padding-top: var(--s5); border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: var(--t-small); color: rgba(255, 255, 255, .7); }
.credits { max-width: 72ch; }
.credits summary { cursor: pointer; color: #fff; min-height: 32px; }
.credits p { margin-top: var(--s3); }

/* ------------------------------------------------------------------ tablet */
@media (max-width: 1100px) {
  .hero-h { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / span 9; }
  .cat-hd .cat-h { grid-column: 1 / -1; }
  .cat-side { grid-column: 1 / span 8; }
  .how-h { grid-column: 1 / -1; } .how-l { grid-column: 1 / span 8; } .how-n { grid-column: 9 / span 4; }
  .gift-img { grid-column: 2 / span 5; } .gift-buy { grid-column: 7 / span 6; }
  .studio-img { grid-column: 1 / -1; } .studio-t { grid-column: 1 / span 8; }
  .deliv-hd { grid-column: 1 / -1; } .dl { grid-column: 1 / -1; }
  .shop-h { grid-column: 1 / -1; } .shop-p { grid-column: 1 / span 8; }
  .gal { grid-column: 1 / span 7; } .buy { grid-column: 8 / span 5; }
  .cart-lines { grid-column: 1 / span 7; } .cart-sum { grid-column: 8 / span 5; }
  .ft-brand { grid-column: 1 / span 12; } .ft-col { grid-column: span 4; } .ft-col:last-child { grid-column: span 4; }
}

/* ------------------------------------------------------------------ phone, its own layout */
@media (max-width: 760px) {
  :root { --t-body: 1rem; }
  body { font-size: 1rem; }
  .brand span { font-size: 1rem; }
  .cart-btn { height: 40px; padding: 0 6px 0 12px; }
  .hero { min-height: auto; padding-top: calc(var(--hd) + 22px); }
  .hero-top { padding-bottom: 20px; }
  .hero-h { font-size: clamp(2.3rem, 10.6vw, 2.9rem); letter-spacing: -.045em; line-height: .94; }
  .hero-side { grid-column: 1 / -1; gap: var(--s4); padding: 0; }
  .hero-side p { font-size: 1rem; }
  .btns .btn { flex: 1 1 auto; padding: 0 16px; }
  .slabs { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
  .slab-a { aspect-ratio: 4 / 5; padding: 12px; }
  .slab:first-child .slab-a { padding-left: 12px; }
  .slab:nth-child(odd) .slab-a { padding-left: var(--m); }
  .slab-t { font-size: 1.125rem; }
  .slab-m { font-size: .75rem; margin-top: 4px; }
  .slab-img { margin-top: 10px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .pgrid > .pc:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .pgrid > .pc:first-child:nth-last-child(odd) .pc-name { font-size: 1.25rem; }
  .pc-info { grid-template-columns: 1fr; padding-top: 10px; row-gap: 2px; }
  .pc-name { font-size: 1rem; }
  .pc-price { font-size: .875rem; }
  .pc-sub { font-size: .8125rem; }
  .cat-hd .cat-h, .cat-side { grid-column: 1 / -1; }
  .cat-h { font-size: clamp(2.3rem, 11vw, 3rem); }
  .how-h, .how-l, .how-n { grid-column: 1 / -1; }
  .gift-img, .gift-buy { grid-column: 1 / -1; }
  .gift-more { grid-template-columns: 1fr; }
  .studio-img, .studio-t { grid-column: 1 / -1; }
  .studio-img { aspect-ratio: 4 / 3; }
  .dl-r { grid-template-columns: 1fr; gap: 4px; }
  .shop-hd, .cart-hd { padding-top: calc(var(--hd) + 32px); }
  .shop-h { font-size: clamp(2.5rem, 12vw, 3.2rem); }
  .shop-p { grid-column: 1 / -1; font-size: 1rem; }
  .bar-in { gap: var(--s2); min-height: 56px; padding-right: 0; }
  .flts { flex: 1; min-width: 0; margin-left: calc(-1 * var(--m)); padding-left: var(--m); }
  .sort { flex: none; margin-left: 0; }
  .sort label, .bar-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sort select { width: 132px; padding-right: 28px; background-position: right 10px center; font-size: .875rem; }
  .bar .wrap { padding-right: var(--m); }
  .grp-hd { grid-template-columns: 1fr auto; }
  .grp-h { grid-column: 1; } .grp-n { grid-column: 2; } .grp-p { grid-column: 1 / -1; font-size: .9375rem; }
  .pdp { padding-top: var(--hd); }
  .gal { grid-column: 1 / -1; position: relative; top: 0; margin-inline: calc(-1 * var(--m)); }
  .gal-in { flex-direction: column; gap: 8px; }
  .gal-main { order: 1; width: 100%; height: auto; max-width: none; }
  .thumbs { order: 2; display: flex; width: auto; padding-inline: var(--m); }
  .thumb { width: 52px; }
  .buy { grid-column: 1 / -1; padding-top: var(--s5); gap: var(--s5); }
  .pdp-h { font-size: clamp(2rem, 9vw, 2.5rem); margin-top: -4px; }
  .cart-lines, .cart-sum { grid-column: 1 / -1; }
  .cart-sum { position: static; }
  .ln { grid-template-columns: 76px 1fr; }
  .ln-p { grid-column: 2; text-align: left; }
  .tax .cat-h, .tax-t { grid-column: 1 / -1; }
  .tax-t { font-size: 1rem; }
  .ft-col, .ft-col:last-child { grid-column: span 6; }
  .ft-col:last-child { grid-column: 1 / -1; }
  .dr-btns { grid-template-columns: 1fr 1fr; }
  .dr-foot { padding-bottom: 80px; gap: var(--s3); }
  .ft-col li a, .crumbs a, .opt-row .tlink { min-height: 44px; }
  .credits summary { min-height: 44px; line-height: 44px; }
  .dr-lines .ln { grid-template-columns: 64px 1fr auto; }
  .dr-lines .ln-p { grid-column: auto; text-align: right; }
}

/* ------------------------------------------------------------------ motion */
.js.motion [data-split] { visibility: hidden; }
.js.motion [data-split].split-ok { visibility: visible; }
.split-line { padding-bottom: .06em; margin-bottom: -.06em; }

/* the WebGL lens replaces the photo once its texture is ready; keep the photo for snapshots between pages */
.vt-leaving .sbgl-on img { opacity: 1 !important; }
.vt-leaving .sbgl-canvas { visibility: hidden; }
.sbgl-on { cursor: none; }
@media (hover: none) { .sbgl-on { cursor: auto; } }

/* page transitions: the page rises in on the new colour, the product photo travels between pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .42s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: vt-in .62s var(--ease) both; }
::view-transition-group(*) { animation-duration: .62s; animation-timing-function: cubic-bezier(.3, .8, .2, 1); }
::view-transition-group(hd) { animation-duration: .4s; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(32px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
