/* Suit Society. Quiet luxury, editorial. Mobile first. */

:root {
  --ivory: #F6F1EA;
  --ivory-2: #FBF8F3;
  --sand: #E7DCCB;
  --sand-2: #D9CBB4;
  --ink: #1B1A17;
  --ink-2: #4A463F;
  --ink-3: #7A7369;
  --gold: #B08D57;
  --gold-ink: #8A6C3E;
  --rule: rgba(27, 26, 23, .14);
  --rule-strong: rgba(27, 26, 23, .32);
  --danger: #9A3B2E;

  --serif: "Cormorant Garamond", "Bodoni Moda", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1360px;
  --header-h: 60px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t: 420ms;
}

@media (min-width: 720px) { :root { --gutter: 40px; --header-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 64px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 15px/1.65 var(--sans);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
::selection { background: var(--sand); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory);
  padding: 10px 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; transition: top .2s;
}
.skip:focus { top: 12px; }
.noscript { padding: 40px var(--gutter); text-align: center; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--ink-3); }
.fine { font-size: 12px; color: var(--ink-3); letter-spacing: .01em; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.012em;
  font-size: clamp(40px, 9vw, 104px);
}
.display, .sums__total dd, .confirm__code, .pdp__price, .card__name, .line__name, .palette__name, .size-table tbody th { font-variant-numeric: lining-nums; }
.display--xl { font-size: clamp(44px, 10vw, 128px); line-height: .98; }
.display--lg { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; }
.display--md { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; }
.display--sm { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label--muted { color: var(--ink-3); }
.label--gold { color: var(--gold-ink); }

.prose { font-size: 16px; line-height: 1.75; color: var(--ink-2); max-width: 62ch; }
.prose + .prose { margin-top: 1.1em; }
.prose--lg { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.8; color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid var(--rule-strong);
  transition: border-color var(--t) var(--ease), gap var(--t) var(--ease);
}
.link-arrow::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width var(--t) var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover::after { width: 28px; }

.linkish {
  font-size: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; text-decoration-color: var(--rule-strong);
  transition: text-decoration-color .2s;
}
.linkish:hover { text-decoration-color: currentColor; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 28px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s;
  white-space: nowrap;
}
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover:not(:disabled) { background: #33302A; border-color: #33302A; }
.btn--solid:disabled { background: transparent; color: var(--ink-3); border-color: var(--rule-strong); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--text { border-color: transparent; padding-inline: 4px; }
.btn--text:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; min-width: 0; }
.btn--lg { --h: 58px; }
.btn.is-added { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; }
.close-x { position: relative; }
.close-x::before, .close-x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1px; background: var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
.close-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- media / image fallback ---------- */
.media {
  position: relative; overflow: hidden; background: var(--sand);
  aspect-ratio: 4 / 5;
}
.media--portrait { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 9; }
.media--hero { aspect-ratio: auto; }
.media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .6s var(--ease), transform 1.2s var(--ease-out);
}
.media img.is-swapping { opacity: 0; }
.media.is-missing img { opacity: 0; }
.media.is-missing::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px); font-style: italic; color: var(--ink-2);
  background: var(--sand);
}

/* ---------- announcement + header ---------- */
.announce { background: var(--ink); color: var(--ivory); text-align: center; padding: 9px var(--gutter); }
.announce .label { font-size: 10.5px; letter-spacing: .2em; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--rule); }
.header__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 calc(var(--gutter) - 12px);
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.header__nav { display: none; }
.header__menu { justify-self: start; }
.burger { display: grid; gap: 6px; width: 22px; }
.burger span { height: 1px; background: var(--ink); }
.burger span:last-child { width: 14px; }
.wordmark {
  font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: .22em; text-transform: uppercase;
  white-space: nowrap; padding-left: .22em; line-height: 1;
}
@media (max-width: 380px) { .wordmark { font-size: 18px; letter-spacing: .18em; } .bag-btn__label { display: none; } }
.header__actions { justify-self: end; }
.bag-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.bag-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center;
  font-size: 11px; letter-spacing: 0; border: 1px solid var(--rule-strong);
  transition: background-color .3s, color .3s, border-color .3s;
}
.bag-btn.has-items .bag-btn__count { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

@media (min-width: 960px) {
  .header__menu { display: none; }
  .header__nav { display: block; justify-self: start; }
  .header__nav ul { display: flex; align-items: center; gap: 32px; padding-left: 12px; }
  .header__nav a, .header__nav .linkish {
    font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
    position: relative; padding: 6px 0; line-height: 1.4; display: inline-block;
  }
  .header__nav a::after, .header__nav .linkish::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
    transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
  }
  .header__nav a:hover::after, .header__nav .linkish:hover::after, .header__nav a[aria-current]::after { transform: scaleX(1); }
  .wordmark { font-size: 26px; letter-spacing: .26em; }
}

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: rgba(27, 26, 23, 0); transition: background-color .3s; }
.mobile-menu.is-open { background: rgba(27, 26, 23, .32); }
.mobile-menu__panel {
  position: absolute; inset: 0 auto 0 0; width: min(88vw, 380px); background: var(--ivory);
  display: flex; flex-direction: column; padding: 8px var(--gutter) 32px;
  transform: translateX(-100%); transition: transform .4s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); margin-right: -12px; }
.mobile-menu__list { margin-top: 24px; border-top: 1px solid var(--rule); }
.mobile-menu__list li { border-bottom: 1px solid var(--rule); }
.mobile-menu__list a, .mobile-menu__list .linkish {
  display: block; width: 100%; text-align: left; padding: 18px 0; text-decoration: none;
  font-family: var(--serif); font-size: 30px; line-height: 1.1;
}
.mobile-menu__foot { margin-top: auto; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; }
.hero__media { aspect-ratio: 4 / 5; }
.hero__media img { object-position: 60% 30%; }
.hero__copy { padding: 36px var(--gutter) 8px; }
.hero__kicker { margin-bottom: 18px; }
.hero__title { max-width: 11ch; }
.hero__sub { margin-top: 20px; max-width: 42ch; font-size: 16px; color: var(--ink-2); }
.hero__ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: calc(100vh - var(--header-h) - 36px); max-height: 940px; }
  .hero__media { grid-area: 1 / 1; aspect-ratio: auto; height: 100%; }
  .hero__media img { object-position: 50% 30%; }
  .hero__copy {
    grid-area: 1 / 1; align-self: end; justify-self: start; z-index: 1;
    margin: 0 0 64px var(--gutter); padding: 44px 48px 40px; max-width: 560px;
    background: var(--ivory);
  }
  .hero__title { font-size: clamp(56px, 6vw, 96px); }
}

/* ---------- sections ---------- */
.section { padding-block: 72px; }
@media (min-width: 900px) { .section { padding-block: 128px; } }
.section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 24px;
  padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--rule);
}
.section-head .label { grid-column: 1 / -1; }
.section-head .display { grid-column: 1; }
.section-head .link-arrow { grid-column: 2; margin-bottom: 8px; }
.section-head--center { text-align: center; grid-template-columns: 1fr; justify-items: center; border: 0; margin-bottom: 40px; }
@media (min-width: 900px) { .section-head { margin-bottom: 56px; } }

/* ---------- grid + cards ---------- */
.grid { display: grid; gap: 48px 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid--3, .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 56px 24px; }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 72px 32px; }
  .grid--2 { gap: 72px 32px; }
}

.card { position: relative; }
.card__link { display: block; position: relative; }
.card__link:hover .media img, .card__link:focus-visible .media img { transform: scale(1.035); }
.card__badge {
  position: absolute; top: 14px; left: 14px; background: var(--ivory); padding: 6px 10px; font-size: 10px;
}
.card__body { padding-top: 18px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card__row--meta { align-items: center; margin-top: 8px; }
.card__name { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; }
.card__name a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.card__price { font-size: 14px; white-space: nowrap; }
.card__swatches { display: flex; gap: 2px; margin-right: -8px; }
.card__color { margin-top: 2px; min-height: 1.4em; }

/* swatches */
.swatch {
  --sw: var(--sand);
  position: relative; display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
}
.swatch::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(27, 26, 23, .18);
  transition: transform .3s var(--ease);
}
.swatch::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid transparent;
  transition: border-color .3s var(--ease), inset .3s var(--ease);
}
.swatch:hover::before { transform: scale(1.12); }
.swatch.is-active::after, .swatch[aria-checked="true"]::after { border-color: var(--ink); inset: 3px; }
.swatch--lg { width: 48px; height: 48px; }
.swatch--lg::before { width: 30px; height: 30px; }
.swatch--lg::after { inset: 4px; }
.swatch--lg[aria-checked="true"]::after { inset: 1px; }
.swatch:focus-visible { outline-offset: 0; }

/* ---------- split (story teaser) ---------- */
.split { padding-top: 0; }
.split__inner { display: grid; gap: 40px; }
.split__copy { display: grid; gap: 20px; align-content: center; }
.split__copy .display { margin-bottom: 4px; }
.split__copy .link-arrow { justify-self: start; margin-top: 12px; }
@media (min-width: 900px) {
  .split__inner { grid-template-columns: 1.05fr 1fr; gap: 96px; align-items: center; }
  .split__copy { padding-right: 4%; }
}

.draft-marker {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; width: max-content;
  padding: 5px 10px; border: 1px dashed var(--gold); color: var(--gold-ink); font-size: 10px; letter-spacing: .18em;
}
.draft-marker > span[aria-hidden] { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- pillars ---------- */
.pillars { border-top: 1px solid var(--rule); }
.pillars__list { display: grid; gap: 0; }
.pillar { padding: 32px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; }
.pillar:last-child { border-bottom: 0; }
.pillar__num { grid-row: span 2; font-family: var(--serif); font-size: 20px; color: var(--gold-ink); line-height: 1.4; }
.pillar__title { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; }
.pillar__text { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 900px) {
  .pillars__list { grid-template-columns: repeat(3, 1fr); }
  .pillar { grid-template-columns: 1fr; padding: 0 40px; border-bottom: 0; border-left: 1px solid var(--rule); gap: 18px; }
  .pillar:first-child { border-left: 0; padding-left: 0; }
  .pillar:last-child { padding-right: 0; }
  .pillar__num { grid-row: auto; }
  .pillar__title { font-size: 34px; }
}

/* ---------- society band ---------- */
.society { position: relative; display: grid; background: var(--sand); }
.society__media { aspect-ratio: 4 / 3; }
.society__panel { padding: 48px var(--gutter) 56px; display: grid; gap: 20px; justify-items: start; }
@media (min-width: 900px) {
  .society { grid-template-columns: 1fr; }
  .society__media { grid-area: 1 / 1; aspect-ratio: 16 / 8; max-height: 860px; }
  .society__panel {
    grid-area: 1 / 1; z-index: 1; align-self: center; justify-self: end; margin-right: var(--gutter);
    max-width: 480px; background: var(--ivory); padding: 56px 52px;
  }
}

/* ---------- swatch strip ---------- */
.swatches__band .media { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .swatches__band .media { aspect-ratio: 21 / 8; } .swatches__band .media img { object-position: 50% 55%; } }
.palette {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 12px; margin-top: 40px;
}
.palette li { display: grid; justify-items: center; gap: 8px; text-align: center; }
.palette__dot { width: 44px; height: 44px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(27,26,23,.14); }
.palette__name { font-family: var(--serif); font-size: 22px; line-height: 1; }
.palette__fam { font-size: 9.5px; }
@media (min-width: 720px) { .palette { grid-template-columns: repeat(6, 1fr); } }

/* ---------- newsletter ---------- */
.newsletter { border-top: 1px solid var(--rule); }
.newsletter__inner { display: grid; gap: 32px; }
.newsletter__inner > div:first-child { display: grid; gap: 16px; }
@media (min-width: 900px) { .newsletter__inner { grid-template-columns: 1fr 1fr; gap: 96px; align-items: end; } }
.newsletter__thanks { display: grid; gap: 10px; outline: none; }
.newsletter__thanks[hidden] { display: none; }

/* ---------- form fields ---------- */
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field .label { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field > label .muted { text-transform: none; letter-spacing: 0; }
input[type="text"], input[type="email"], input[type="tel"], input:not([type]), textarea, select {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--ivory-2); border: 1px solid var(--rule-strong); border-radius: 0;
  font-size: 16px; line-height: 1.4; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 96px; }
input:hover, textarea:hover, select:hover { border-color: var(--ink-3); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
input[readonly] { background: transparent; color: var(--ink-2); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
input::placeholder, textarea::placeholder { color: #A39C91; }
.field__hint { font-size: 12px; color: var(--ink-3); }
.field__error { font-size: 12.5px; color: var(--danger); }
.field__error[hidden] { display: none; }
.field__row { display: flex; gap: 0; }
.field__row input { flex: 1; min-width: 0; border-right: 0; }
.field__row .btn { --h: 52px; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; pointer-events: none;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-70%) rotate(45deg);
}
.select select { padding-right: 44px; cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink-2); margin-top: 20px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--ivory); margin-top: auto; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter) 40px;
  display: grid; gap: 40px; grid-template-columns: 1fr 1fr;
}
.footer__brand { grid-column: 1 / -1; display: grid; gap: 10px; }
.wordmark--lg { font-size: 30px; justify-self: start; padding-left: 0; }
.footer__ar { font-family: "Noto Naskh Arabic", "Geeza Pro", "Times New Roman", serif; font-size: 20px; color: var(--sand-2); justify-self: start; }
.footer__tag { color: #BDB3A4; max-width: 34ch; }
.footer__col h2 { color: #9E9587; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; font-size: 14px; }
.footer__col .linkish { text-decoration: none; }
.footer__col .linkish:hover { text-decoration: underline; }
.footer__muted { color: #9E9587; }
.footer__base {
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter) 32px;
  border-top: 1px solid rgba(246, 241, 234, .14); display: grid; gap: 6px;
  font-size: 12px; color: #9E9587;
}
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1.2fr; padding-top: 96px; }
  .footer__brand { grid-column: auto; }
  .footer__base { grid-template-columns: 1fr auto; }
}

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(27, 26, 23, 0); transition: background-color .38s var(--ease); }
.drawer.is-open .drawer__scrim { background: rgba(27, 26, 23, .36); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, 460px);
  background: var(--ivory); display: flex; flex-direction: column; outline: none;
  transform: translateX(100%); transition: transform .38s var(--ease-out);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--gutter) - 12px) 0 var(--gutter); height: var(--header-h); border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px) { .drawer__head, .drawer__body, .drawer__foot { --gutter: 32px; } }
.drawer__title { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.drawer__count { font-size: 18px; color: var(--ink-3); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px var(--gutter); overscroll-behavior: contain; }
.drawer__foot { padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.drawer__foot:empty { display: none; }
.drawer__empty { display: grid; gap: 14px; justify-items: start; padding: 40px 0; }
.drawer__empty-title { font-family: var(--serif); font-size: 30px; line-height: 1.1; }

.lines { display: grid; }
.line { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.line:last-child { border-bottom: 0; }
.line__img { position: relative; display: block; }
.line__img .media.is-missing::after { font-size: 12px; padding: 6px; }
.line__info { display: grid; gap: 6px; align-content: start; min-width: 0; }
.line__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.line__name { font-family: var(--serif); font-size: 20px; line-height: 1.2; font-weight: 500; }
.line__price { font-size: 14px; white-space: nowrap; }
.line__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.line__remove { font-size: 12px; color: var(--ink-3); }
.line__note { font-size: 12px; color: var(--gold-ink); }
.line__badge {
  position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px;
  background: var(--ink); color: var(--ivory); font-size: 11px; display: grid; place-items: center;
}
.line--text { grid-template-columns: 1fr auto; padding: 12px 0; font-size: 14px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule-strong); height: 52px; }
.qty button { width: 44px; height: 100%; font-size: 18px; transition: background-color .2s; }
.qty button:hover:not(:disabled) { background: var(--sand); }
.qty button:disabled { color: #BDB3A4; }
.qty output { min-width: 28px; text-align: center; font-size: 14px; }
.qty--sm { height: 36px; }
.qty--sm button { width: 34px; font-size: 16px; }

.freebar { display: grid; gap: 8px; }
.freebar__text { font-size: 12.5px; color: var(--ink-2); }
.freebar__track { height: 2px; background: var(--sand); }
.freebar__track span { display: block; height: 100%; background: var(--gold); transition: width .6s var(--ease); }

.sums { display: grid; gap: 8px; font-size: 14px; }
.sums > div { display: flex; justify-content: space-between; gap: 16px; }
.sums dt { color: var(--ink-2); }
.sums__total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--rule); font-size: 16px; }
.sums__total dt { color: var(--ink); }
.sums__total dd { font-family: var(--serif); font-size: 24px; line-height: 1; }

/* ---------- modal ---------- */
.modal {
  border: 0; padding: 0; background: var(--ivory); color: var(--ink);
  width: min(100vw - 24px, 640px); max-height: calc(100vh - 24px); overflow: auto;
}
.modal::backdrop { background: rgba(27, 26, 23, .42); }
.modal[open] { animation: rise .45s var(--ease-out); }
.modal__inner { padding: 20px 24px 32px; display: grid; gap: 16px; }
@media (min-width: 720px) { .modal__inner { padding: 28px 48px 48px; } }
.modal__head .close-x:focus:not(:focus-visible) { outline: none; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-right: -12px; }
.modal__title { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.modal__lede { color: var(--ink-2); font-size: 14px; }
.table-wrap { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { padding: 14px 8px; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.size-table thead th { font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.size-table tbody th { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.modal__how { margin-top: 8px; display: grid; gap: 12px; }
.modal__how dl { display: grid; gap: 10px; font-size: 14px; }
.modal__how dl div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.modal__how dt { font-weight: 600; }
.modal__how dd { color: var(--ink-2); }

/* ---------- product page ---------- */
.crumbs { padding-top: 20px; padding-bottom: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule-strong); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

.pdp { display: grid; gap: 32px; padding-inline: 0; }
.pdp__gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scrollbar-width: none; }
.pdp__gallery::-webkit-scrollbar { display: none; }
.pdp__gallery > figure { scroll-snap-align: center; }
.pdp__detail figcaption { margin-top: 10px; }
.pdp__main .media img { transition: opacity .5s var(--ease); }
.pdp__info { padding-inline: var(--gutter); }
.pdp__sticky { display: grid; gap: 14px; }
.pdp__badge { margin-left: 10px; padding: 3px 8px; border: 1px solid var(--gold); }
.pdp__name { margin-top: 2px; }
.pdp__price { font-size: 17px; display: flex; gap: 10px; align-items: baseline; }
.pdp__tagline { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--ink-2); padding-bottom: 8px; }
.pdp__form { display: grid; gap: 24px; padding-top: 22px; border-top: 1px solid var(--rule); }
.pdp__note { margin-top: -8px; }

.opt { border: 0; padding: 0; margin: 0; min-width: 0; position: relative; }
.opt__legend { padding: 0; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.opt__value { font-size: 14px; color: var(--ink-2); }
.opt__guide { margin-left: auto; font-size: 12px; color: var(--ink-2); }
.opt__legend { width: 100%; }
.swatches-row { display: flex; gap: 6px; margin-left: -8px; }
.opt__stock { margin-top: 12px; font-size: 13px; min-height: 1.4em; color: var(--ink-2); }
.opt__stock[data-state="low"] { color: var(--gold-ink); }

.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.size {
  min-height: 64px; border: 1px solid var(--rule-strong); display: grid; place-content: center; gap: 2px; text-align: center;
  transition: border-color .2s, background-color .2s, color .2s;
}
.size__l { font-size: 15px; font-weight: 500; letter-spacing: .06em; }
.size__s { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); min-height: 1em; }
.size:hover:not([aria-disabled="true"]) { border-color: var(--ink); }
.size.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.size.is-active .size__s { color: var(--sand-2); }
.size--soldout { cursor: not-allowed; color: #A9A194; border-style: dashed; }
.size--soldout .size__l { text-decoration: line-through; text-decoration-thickness: 1px; }
.size--soldout .size__s { color: #A9A194; }

.pdp__buy { display: flex; gap: 8px; }
.pdp__buy .btn { --h: 52px; padding-inline: 16px; }

.accordion { margin-top: 28px; border-top: 1px solid var(--rule); }
.acc { border-bottom: 1px solid var(--rule); }
.acc__h { font: inherit; }
.acc__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; text-align: left;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.acc__icon { position: relative; width: 12px; height: 12px; flex: none; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(0deg); }
.acc__panel { padding: 0 0 24px; display: grid; gap: 14px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.acc__panel[hidden] { display: none; }
.acc__panel strong.label { color: var(--ink); }
.ticks { display: grid; gap: 6px; }
.ticks li { padding-left: 20px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .85em; width: 10px; height: 1px; background: var(--gold); }

.look { border-top: 1px solid var(--rule); margin-top: 72px; }

.mobile-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--ivory); border-top: 1px solid var(--rule); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .35s var(--ease-out);
}
.mobile-buy.is-visible { transform: none; }
.mobile-buy__name { font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.mobile-buy .btn { --h: 46px; }

@media (min-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; padding-inline: var(--gutter); align-items: start; }
  .pdp__gallery { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; padding: 0; gap: 16px; }
  .pdp__info { padding: 0; }
  .pdp__sticky { position: sticky; top: calc(var(--header-h) + 24px); }
  .mobile-buy { display: none; }
}
@media (min-width: 1200px) {
  .pdp { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 96px; }
  .pdp__sticky { padding-right: 32px; }
}

/* ---------- shop ---------- */
.page-head { padding-top: 48px; padding-bottom: 32px; display: grid; gap: 16px; }
.page-head__lede { max-width: 48ch; }
@media (min-width: 900px) { .page-head { padding-top: 88px; padding-bottom: 56px; } }
.shop { padding-bottom: 96px; }
.toolbar {
  display: grid; gap: 20px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.toolbar__groups { display: grid; gap: 18px; }
.filter { display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border: 1px solid var(--rule-strong); font-size: 13px; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px rgba(246,241,234,.5), inset 0 0 0 1px rgba(27,26,23,.18); }
.toolbar__sort { display: grid; gap: 10px; }
.toolbar__sort select { min-height: 44px; padding-block: 8px; font-size: 14px; background: transparent; }
.shop__count { padding: 20px 0 28px; }
.empty { grid-column: 1 / -1; display: grid; gap: 20px; justify-items: start; padding: 40px 0; }
@media (min-width: 900px) {
  .toolbar { grid-template-columns: 1fr 240px; align-items: end; }
  .toolbar__groups { grid-template-columns: auto 1fr; gap: 40px; }
}

/* ---------- story ---------- */
.story__head { padding-top: 56px; padding-bottom: 40px; display: grid; gap: 18px; justify-items: start; }
.story__head .display { max-width: 18ch; font-size: clamp(44px, 8vw, 112px); }
.story__lead { display: grid; gap: 40px; padding-bottom: 56px; }
.story__first { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.35; max-width: 30ch; }
.story__first::first-letter { font-size: 2.6em; float: left; line-height: .85; padding: .06em .08em 0 0; color: var(--gold-ink); }
.story__body { display: grid; gap: 28px; padding-block: 24px 56px; }
.story__body .prose + .prose { margin-top: 0; }
.story__figure { padding-block: 24px 64px; }
.story__figure figcaption { margin-top: 12px; }
.story__end { display: grid; gap: 22px; justify-items: start; padding-block: 72px 120px; border-top: 1px solid var(--rule); }
.pillars--story { border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) {
  .story__head { padding-top: 104px; padding-bottom: 72px; }
  .story__lead { grid-template-columns: 1.15fr 1fr; gap: 96px; align-items: end; padding-bottom: 96px; }
  .story__figure { max-width: 1100px; padding-block: 48px 96px; }
  .story__figure .media { aspect-ratio: 16 / 11; }
  .story__figure .media img { object-position: 50% 40%; }
}

/* ---------- checkout ---------- */
.checkout { padding-top: 40px; padding-bottom: 96px; }
.checkout__head { display: grid; gap: 14px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); }
.checkout__grid { display: grid; gap: 48px; }
.checkout__summary { order: -1; }
.checkout__form { display: grid; gap: 40px; }
.fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.fs__legend { padding: 0; margin-bottom: 20px; font-family: var(--serif); font-size: 28px; display: flex; gap: 14px; align-items: baseline; }
.fs__num { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; color: var(--gold-ink); }
.fields { display: grid; gap: 18px 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .fields { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.paynote { padding: 20px; background: var(--sand); display: grid; gap: 8px; }
.paynote__title { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.form-error { padding: 14px 16px; border: 1px solid var(--danger); color: var(--danger); font-size: 14px; }
.form-error[hidden] { display: none; }
.summary { background: var(--ivory-2); border: 1px solid var(--rule); padding: 20px; display: grid; gap: 4px; }
.summary__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.summary__head .linkish { font-size: 12px; }
.summary .sums { margin-top: 12px; }
.summary .fine { margin-top: 8px; }
.lines--summary .line { grid-template-columns: 64px 1fr; padding: 16px 0; }
.lines--summary .line--text { grid-template-columns: 1fr auto; }
@media (min-width: 960px) {
  .checkout { padding-top: 72px; }
  .checkout__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 96px; align-items: start; }
  .checkout__summary { order: 0; position: sticky; top: calc(var(--header-h) + 24px); }
  .summary { padding: 32px; }
}
.checkout-empty { display: grid; gap: 18px; justify-items: start; padding-block: 96px 140px; }

.confirm { display: grid; gap: 22px; justify-items: start; padding-block: 64px 120px; }
.confirm h1 { outline: none; }
.confirm__ref { display: grid; gap: 6px; padding: 20px 24px; border: 1px solid var(--gold); width: 100%; }
.confirm__code { font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); letter-spacing: .06em; line-height: 1.1; }
.summary--confirm { width: 100%; }
.confirm__ctas { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 12px; }

.notfound .wrap { display: grid; gap: 20px; justify-items: start; padding-block: 64px; }

/* ---------- loading ---------- */
.loading { min-height: 60vh; }

/* ---------- motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.hero__media img { animation: settle 2.4s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.06); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (hover: none) {
  .card__link:hover .media img { transform: none; }
}
