/* Azetta: shared styles for the three store pages. Undyed wool ground, ink, Dades rose. */
:root {
  --ground: #F6F4F0;
  --ink: #1E1B19;
  --muted: #6B655E;
  --line: #E3DED6;
  --surface: #EDE9E2;
  --rose: #A3214F;
  --rose-deep: #861A41;
  --warp: #DAD3C8;
  --display: "Stardom", "Times New Roman", serif;
  --text: "Jost", "Helvetica Neue", Arial, sans-serif;
  --tif: "Noto Sans Tifinagh", sans-serif;
  --gut: clamp(20px, 5vw, 72px);
  --sec: clamp(112px, 15vw, 220px);
  --top: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 400 18px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
em, i { font-style: normal; }
::selection { background: var(--ink); color: var(--ground); }
a { text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { width: 100%; height: auto; }
.wrap { max-width: 1400px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec { padding: var(--sec) 0; }
[id] { scroll-margin-top: var(--top); }

/* Type */
.d1 { font: 400 clamp(60px, 11vw, 172px)/.9 var(--display); letter-spacing: -.012em; }
.d2 { font: 400 clamp(42px, 5.6vw, 88px)/1 var(--display); letter-spacing: -.008em; }
.d3 { font: 400 clamp(28px, 2.4vw, 36px)/1.1 var(--display); }
.lede { font-size: clamp(18px, 1.35vw, 19px); line-height: 1.5; max-width: 30em; color: var(--ink); }
.quiet { color: var(--muted); }
.small { font-size: 14px; line-height: 1.45; letter-spacing: .01em; }
.tag { display: inline-block; font: 500 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px 5px; vertical-align: middle; }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* Buttons and links: one hover style, the kit roll */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--rose); color: #fff; font: 500 16px/1 var(--text); letter-spacing: .01em;
  transition: background-color .45s var(--ease-io), transform .25s var(--ease);
}
.btn:hover { background: var(--rose-deep); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .link:focus-visible, .top a:focus-visible, .top button:focus-visible, .seg button:focus-visible, .thumb:focus-visible, .wave__play:focus-visible, .foot a:focus-visible, .basket button:focus-visible, .basket a:focus-visible, .room__rug:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
.btn[disabled] { background: var(--ink); cursor: default; }
.btn svg { width: 16px; height: 16px; }
.link { display: inline-flex; align-items: center; gap: 10px; height: 48px; font: 500 16px/1 var(--text); color: var(--ink); transition: transform .25s var(--ease); }
.link:active { transform: scale(.97); }
.link .k-roll, .link > span:first-child { border-bottom: 1px solid currentColor; padding-bottom: 2px; height: calc(1.25em + 3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Header */
.top { position: fixed; z-index: 60; inset: 0 0 auto 0; height: var(--top); transition: background-color .5s var(--ease), border-color .5s var(--ease); border-bottom: 1px solid transparent; }
.top.is-solid { background: var(--ground); border-bottom-color: var(--line); }
.top__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mark { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); height: 44px; align-items: center; }
.mark__tif { font: 400 20px/1 var(--tif); letter-spacing: .04em; }
.mark__lat { font: 400 24px/1 var(--display); transform: translateY(1px); }
.top__nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); font: 500 15px/1 var(--text); letter-spacing: .01em; }
.top__nav > a { display: inline-flex; align-items: center; height: 44px; }
.top__nav > a[aria-current="page"] .k-roll > span:first-child { border-bottom: 1px solid currentColor; }
.top__basket { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0; border: 0; background: none; font: 500 15px/1 var(--text); transition: transform .25s var(--ease); }
.top__basket:active { transform: scale(.97); }
.count {
  position: relative; display: inline-grid; place-items: center; overflow: hidden;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font: 500 12px/1 var(--text);
  transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease);
}
.count > span { grid-area: 1 / 1; display: block; }
.count.is-full { background: var(--rose); border-color: var(--rose); color: #fff; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: clamp(72px, 9vw, 120px) 0 36px; }
.foot__grid { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 40px; }
.foot__brand p { margin-top: 20px; max-width: 22em; color: var(--muted); font-size: 16px; }
.foot__col h3 { font: 500 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot__col a { display: flex; align-items: center; min-height: 36px; font-size: 16px; width: fit-content; }
.foot__base { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: clamp(64px, 8vw, 112px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Basket drawer */
.basket { position: fixed; inset: 0; z-index: 90; overflow: hidden; visibility: hidden; transition: visibility 0s linear .7s; }
.basket.is-open { visibility: visible; transition: none; }
.basket__veil { position: absolute; inset: 0; background: rgba(30, 27, 25, .28); opacity: 0; transition: opacity .6s var(--ease); border: 0; padding: 0; width: 100%; cursor: default; }
.basket.is-open .basket__veil { opacity: 1; }
.basket__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: var(--ground); display: flex; flex-direction: column; padding: 24px clamp(20px, 3vw, 36px) 32px; transform: translateX(100%); transition: transform .7s var(--ease); }
.basket.is-open .basket__panel { transform: none; }
.basket__head { display: flex; justify-content: space-between; align-items: center; height: 48px; }
.basket__head h2 { font: 400 30px/1 var(--display); }
.basket__close { height: 44px; padding: 0 2px; border: 0; background: none; font: 500 15px/1 var(--text); }
.basket__list { flex: 1; overflow: auto; margin-top: 24px; border-top: 1px solid var(--line); }
.basket__item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.basket__item img { width: 72px; height: 72px; object-fit: cover; background: var(--surface); }
.basket__item b { display: block; font: 400 20px/1.15 var(--display); }
.basket__item p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.basket__item button { border: 0; background: none; height: 32px; padding: 0; font: 500 13px/1 var(--text); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.basket__empty { padding: 28px 0; color: var(--muted); }
.basket__foot { padding-top: 20px; }
.basket__total { display: flex; justify-content: space-between; align-items: baseline; font: 400 24px/1 var(--display); }
.basket__share { margin: 8px 0 20px; font-size: 14px; color: var(--muted); }
.basket__foot .btn { width: 100%; }
.basket__note { margin-top: 12px; font-size: 13px; color: var(--muted); min-height: 20px; }

/* ---------- Home: the loom hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; }
.kit-js:not(.is-static) .hero { height: 250vh; height: 250svh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__warps, .hero__weft { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__warps line { stroke: var(--warp); stroke-width: 1; }
.hero__text { position: relative; z-index: 2; padding-top: calc(var(--top) + clamp(36px, 9vh, 104px)); }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-top: clamp(24px, 4.5vh, 48px); }
.hero__row .lede { max-width: 25em; }
.hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.hero__count { font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* Shop */
.shop__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(56px, 7vw, 104px); }
.shop__head p { max-width: 22em; color: var(--muted); }
.shop__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 6vw, 112px); row-gap: clamp(72px, 9vw, 136px); }
.card { display: block; color: var(--ink); }
.card:nth-child(even) { margin-top: clamp(0px, 14vw, 220px); }
.card__frame { aspect-ratio: 4 / 5; background: var(--surface); }
.card__zoom { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.card__zoom img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__zoom, .card:focus-visible .card__zoom { transform: scale(1.035); }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.card__meta { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; margin-top: 22px; }
.card__name { font: 400 clamp(26px, 2.3vw, 34px)/1.1 var(--display); }
.card__price { font: 400 clamp(26px, 2.3vw, 34px)/1.1 var(--display); text-align: right; white-space: nowrap; }
.card__sub { color: var(--muted); font-size: 16px; }
.card__sub--r { text-align: right; white-space: nowrap; }
.card__get { grid-column: 1 / -1; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
.card__get b { font-weight: 500; }

/* Room preview */
.room__head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.room__head p { color: var(--ink); }
.room__frame { position: relative; overflow: hidden; aspect-ratio: 1200 / 732; background: var(--surface); }
.room__stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.room__stage > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.room__rug { position: absolute; left: 0; top: 0; transform-origin: 0 0; touch-action: none; cursor: grab; outline: none; }
.room__rug.is-drag { cursor: grabbing; }
.room__stage > .room__occ--sofa { clip-path: polygon(0 0, 61.25% 0, 61.25% 60.1%, 60.4% 61.1%, 23.8% 78.6%, 23.5% 82%, 17.1% 82.5%, 16.7% 79%, 0 73.8%); }
.room__stage > .room__occ--table { clip-path: polygon(47.7% 58.5%, 55% 54%, 62.1% 51.6%, 63.3% 54.4%, 68.3% 56%, 68.2% 60.8%, 67.7% 72.4%, 60.2% 79.9%, 47.7% 77.2%); }
.room__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-top: 20px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.seg button { position: relative; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font: 500 15px/1 var(--text); color: var(--ink); transition: background-color .45s var(--ease), color .45s var(--ease), transform .25s var(--ease); }
.seg button:active { transform: scale(.97); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.seg sup { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; top: -.5em; opacity: .75; }
.room__hint { font-size: 14px; color: var(--muted); }

/* Money */
.money__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(56px, 7vw, 96px); }
.money__bar { display: flex; gap: 4px; height: 4px; }
.money__bar span { display: block; height: 100%; transform-origin: 0 50%; }
.money__legend { display: grid; grid-template-columns: 62fr 13fr 15fr 10fr; gap: 4px; margin-top: 24px; }
.money__legend div { min-width: 0; padding-right: 8px; }
.money__legend b { display: block; font: 400 clamp(30px, 4.6vw, 68px)/1 var(--display); }
.money__legend span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }
.money__note { margin-top: clamp(48px, 6vw, 80px); max-width: 30em; }
.c1 { background: var(--ink); } .c2 { background: #8E867C; } .c3 { background: #BDB5AA; } .c4 { background: #D9D2C7; }

/* Voice note */
.voice__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 136px); align-items: center; }
.voice__frame { aspect-ratio: 4 / 5; background: var(--surface); }
.voice__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.voice__who { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.wave { display: flex; align-items: center; gap: 18px; margin: clamp(32px, 4vw, 48px) 0 clamp(28px, 3vw, 40px); }
.wave__play { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--rose); color: #fff; display: grid; place-items: center; transition: background-color .45s var(--ease-io), transform .25s var(--ease); }
.wave__play:hover { background: var(--rose-deep); }
.wave__play:active { transform: scale(.94); }
.wave__play svg { width: 16px; height: 16px; }
.wave__play .i-pause { display: none; }
.wave__play.is-playing .i-play { display: none; }
.wave__play.is-playing .i-pause { display: block; }
.wave__svg { flex: 1; height: 44px; min-width: 0; }
.wave__svg .b0 { fill: #D3CBBF; } .wave__svg .b1 { fill: var(--ink); }
.wave__time { flex: none; font-size: 14px; color: var(--muted); min-width: 3.2em; text-align: right; }
.transcript { font: 400 clamp(22px, 1.9vw, 28px)/1.42 var(--display); max-width: 22em; }
.transcript .w { transition: color .35s var(--ease); }
.kit-js:not(.is-static) .transcript.is-live .w { color: #A8A096; }
.kit-js:not(.is-static) .transcript.is-live .w.on { color: var(--ink); }
.voice__src { margin-top: 24px; font-size: 14px; color: var(--muted); }
.voice .actions { margin-top: clamp(36px, 4vw, 56px); }

/* ---------- Rug page ---------- */
.pdp { padding-top: calc(var(--top) + clamp(28px, 4vw, 56px)); }
.pdp__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 104px); align-items: start; }
.gal__main { position: relative; aspect-ratio: 1 / 1; background: var(--surface); overflow: hidden; }
.gal__shot { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.gal__shot.is-on { opacity: 1; }
.gal__shot img, .gal__shot canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__shot--rug img { object-position: 50% 100%; }
.gal__shot--loom img { object-position: 28% 50%; }
.gal__thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumb { width: 76px; height: 76px; padding: 0; border: 0; background: var(--surface); overflow: hidden; opacity: .55; transition: opacity .4s var(--ease), transform .25s var(--ease); outline: 1px solid transparent; outline-offset: 3px; }
.thumb:hover { opacity: .85; }
.thumb:active { transform: scale(.97); }
.thumb[aria-pressed="true"] { opacity: 1; outline-color: var(--ink); }
.thumb img, .thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__cap { margin-left: auto; align-self: center; font-size: 14px; color: var(--muted); }
.buy { position: sticky; top: calc(var(--top) + 32px); }
.buy__by { font-size: 15px; color: var(--muted); }
.buy h1 { margin-top: 14px; font: 400 clamp(42px, 4.3vw, 66px)/1 var(--display); letter-spacing: -.008em; }
.buy__price { display: flex; align-items: baseline; gap: 16px; margin-top: clamp(28px, 3vw, 40px); }
.buy__price b { font: 400 clamp(34px, 3vw, 44px)/1 var(--display); }
.buy__price span { color: var(--muted); font-size: 17px; }
.buy__get { margin-top: 10px; font-size: 16px; }
.buy__get b { font-weight: 500; }
.spec { margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.spec dt { color: var(--muted); }
.buy .actions { margin-top: clamp(28px, 3vw, 40px); }
.words blockquote p { font: 400 clamp(26px, 3.9vw, 60px)/1.18 var(--display); max-width: 21em; letter-spacing: -.004em; }
.words figcaption { margin-top: clamp(28px, 3vw, 44px); font-size: 15px; color: var(--muted); }
.ship { border-top: 1px solid var(--line); }
.ship__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; align-items: start; }
.ship__lines p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: 32em; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ship__lines p:first-child { padding-top: 0; }

/* ---------- Weavers page ---------- */
.wv-hero { padding-top: calc(var(--top) + clamp(72px, 12vw, 176px)); padding-bottom: clamp(72px, 9vw, 136px); }
.wv-hero .lede { margin-top: clamp(28px, 3vw, 44px); }
.wv-index { margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); }
.wv-index a { display: grid; grid-template-columns: 3em 1fr auto; align-items: center; gap: 16px; min-height: 76px; border-bottom: 1px solid var(--line); color: var(--ink); transition: padding-left .6s var(--ease); }
.wv-index a:hover { padding-left: 12px; }
.wv-index a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wv-index b { font: 400 clamp(26px, 2.4vw, 34px)/1 var(--display); }
.wv-index .tifi { font: 400 18px/1 var(--tif); color: var(--muted); }
.wv-index span:last-child { color: var(--muted); font-size: 15px; }
.coop { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.coop__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 120px); align-items: center; width: 100%; }
.coop--flip .coop__frame { order: 2; }
.coop__frame { aspect-ratio: 5 / 4; background: var(--surface); }
.coop__frame img { width: 100%; height: 100%; object-fit: cover; }
.coop__place { font-size: 15px; color: var(--muted); }
.coop h2 { margin-top: 12px; }
.coop__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(32px, 4vw, 52px); padding-top: 24px; border-top: 1px solid var(--line); }
.coop__stats b { display: block; font: 400 clamp(48px, 5vw, 76px)/1 var(--display); }
.coop__stats span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.coop__text { margin-top: clamp(28px, 3vw, 40px); max-width: 26em; }
.coop .actions { margin-top: 20px; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1000px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .room__head, .ship__grid { grid-template-columns: 1fr; }
  .pdp__grid { grid-template-columns: 1fr; }
  .buy { position: static; }
  .voice__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 760px) {
  :root { --top: 64px; }
  body { font-size: 17px; }
  .mark__tif { font-size: 16px; }
  .mark__lat { font-size: 21px; }
  .mark { gap: 8px; }
  .top__nav { gap: 18px; }
  .top__basket .k-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .hero__side { align-items: flex-start; }
  .hero__count { display: none; }
  .shop__grid { grid-template-columns: 1fr; row-gap: 72px; }
  .card:nth-child(even) { margin-top: 0; }
  .room__frame { aspect-ratio: 1 / 1; }
  .money__legend { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .money__legend b { font-size: 40px; }
  .voice__grid { grid-template-columns: 1fr; }
  .voice__frame { aspect-ratio: 1 / 1; }
  .spec div { grid-template-columns: 7.5em 1fr; }
  .coop { min-height: 0; }
  .coop__grid { grid-template-columns: 1fr; }
  .coop--flip .coop__frame { order: 0; }
  .wv-index a { grid-template-columns: 2.2em 1fr; }
  .wv-index span:last-child { grid-column: 2; margin-top: -14px; padding-bottom: 14px; }
  .gal__cap { display: none; }
  .thumb { width: 64px; height: 64px; }
}
.words blockquote p::before { content: "\201C"; margin-left: -.44em; }
.words blockquote p::after { content: "\201D"; }
@media (max-width: 760px) { .words blockquote p::before { margin-left: 0; } }
