/* Aude's Wardrobe — tokens from the design handoff (README.md) */
:root {
  --bg: #FDFCFA;
  --ink: #1D1B19;
  --body2: #4A4641;
  --muted: #6E6862;
  --line: #ECE8E2;
  --chip: #DDD8D1;
  --well: #F1EEE9;
  --stripe-a: #F3F0EB;
  --stripe-b: #EDE9E3;
  --accent: #F3E6E4;
  --script: 'Pinyon Script', cursive;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--muted); }
button { font-family: var(--sans); color: var(--ink); }
img { display: block; }
em { font-style: italic; }
.muted { color: var(--muted); }
.label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

/* image wells */
.well { overflow: hidden; background: var(--well); }
.well img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder {
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 10px, var(--stripe-b) 10px 20px);
  display: flex; align-items: center; justify-content: center;
}
.placeholder span {
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #8A847D; background: var(--bg); padding: 6px 10px;
}

/* announcement */
.announce {
  background: var(--accent); color: var(--ink); text-align: center; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; padding: 10px 16px; font-weight: 400;
}

/* header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(253, 252, 250, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-inner {
  max-width: 1600px; margin: 0 auto; padding: 16px var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.header-nav, .header-actions { display: flex; gap: 32px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.header-nav { flex-wrap: wrap; }
.header-actions { justify-content: flex-end; }
.header-actions button {
  background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
.wordmark { font-family: var(--script); font-size: 30px; line-height: 1; white-space: nowrap; }

/* hero — triptych */
.hero {
  max-width: 1600px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--pad) 0;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title {
  margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(84px, 15vw, 260px);
  line-height: .9; letter-spacing: 0; text-align: center; white-space: nowrap;
}
.hero-tagline { display: flex; align-items: center; gap: 18px; margin-top: clamp(12px, 2vw, 28px); }
.hero-tagline span:not(.rule) { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 28px); }
.rule { width: 48px; height: 1px; background: var(--ink); }
.triptych, .triptych-captions {
  width: 100%; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(8px, 1.2vw, 20px);
}
.triptych { margin-top: clamp(40px, 6vw, 88px); align-items: end; }
.triptych .side { aspect-ratio: 3 / 4; }
.triptych .center { aspect-ratio: 4 / 5.4; }
.triptych-captions { padding-top: 18px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.triptych-captions .cap { color: var(--muted); }
.triptych-captions .cap:hover { color: var(--ink); }
.cap-cta { justify-self: center; white-space: nowrap; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.cap-end { justify-self: end; }

/* sections */
.section { max-width: 1440px; margin: 0 auto; padding: clamp(72px, 9vw, 136px) var(--pad) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section h2, .newsletter h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); }

.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .cat-name { font-size: 22px; } }
.cat { display: flex; flex-direction: column; gap: 16px; }
.cat .well { aspect-ratio: 3 / 4; }
.cat .well img { transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.cat:hover .well img { transform: scale(1.03); }
.cat-row { display: flex; justify-content: space-between; align-items: baseline; }
.cat-name { font-family: var(--serif); font-size: 28px; }

/* new arrivals */
.shop-head { align-items: flex-end; gap: 24px; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 10px 18px; cursor: pointer;
  border: 1px solid var(--chip); background: transparent; color: var(--ink); font-weight: 400; border-radius: 0;
}
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.subchips { display: flex; justify-content: flex-end; gap: 28px; margin: -16px 0 36px; }
.subchips[hidden] { display: none; }
.subchip {
  background: none; border: 0; padding: 0 0 4px; cursor: pointer; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); font-weight: 400; border-bottom: 1px solid transparent;
}
.subchip:hover { color: var(--ink); }
.subchip.on { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 760px) { .subchips { justify-content: flex-start; gap: 20px; margin-top: -12px; } }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 48px 20px; }
.product { display: flex; flex-direction: column; gap: 14px; }
.product .well { position: relative; aspect-ratio: 3 / 4; }
.tag-new, .save { z-index: 2; }
.product .well[data-open], .product-name[data-open] { cursor: pointer; }
.hover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; pointer-events: none; }
.has-video.playing .hover-video { opacity: 1; }
.video-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; background: rgba(253, 252, 250, .92); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; padding: 5px 9px; transition: opacity .3s;
}
.video-badge::before { content: ''; display: inline-block; margin-right: 6px; border-left: 6px solid var(--ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.has-video.playing .video-badge { opacity: 0; }

/* product page */
body.pdp-open { overflow: hidden; }
.pdp { position: fixed; inset: 0; z-index: 30; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.pdp[hidden] { display: none; }
.pdp-bar {
  position: sticky; top: 0; z-index: 3; background: rgba(253, 252, 250, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px var(--pad); border-bottom: 1px solid var(--line);
}
.pdp-back, .pdp-bag { background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.pdp-back { justify-self: start; } .pdp-bag { justify-self: end; }
.pdp-main {
  max-width: 1440px; margin: 0 auto; padding: 28px var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start;
}
.pdp-media-wrap { position: relative; }
.pdp-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pdp-shot { background: var(--well); aspect-ratio: 3 / 4; overflow: hidden; }
.pdp-shot:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.pdp-shot:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.pdp-shot img, .pdp-shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-count { display: none; }
.pdp-info { position: sticky; top: 90px; display: flex; flex-direction: column; max-width: 460px; }
.pdp-crumb { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.pdp-name { margin: 14px 0 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.6vw, 52px); line-height: 1.05; }
.pdp-price { font-size: 17px; }
.pdp-desc { margin: 26px 0 30px; font-size: 15px; line-height: 1.7; color: var(--body2); }
.pdp-size-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.size-hint { font-size: 12px; color: #9A3B3B; }
.pdp-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size { border: 1px solid var(--chip); background: transparent; padding: 13px 0; font-size: 13px; letter-spacing: .12em; cursor: pointer; }
.size:hover { border-color: var(--ink); }
.size.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pdp-add {
  margin-top: 18px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); padding: 18px; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; cursor: pointer; font-weight: 400; transition: background .2s, color .2s;
}
.pdp-add:hover { background: transparent; color: var(--ink); }
.pdp-add[disabled] { opacity: .6; cursor: default; }
.waitlist { display: flex; flex-direction: column; margin-top: 22px; }
.waitlist-intro { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--body2); }
.waitlist input[type=email] {
  border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 13px 0; font-family: var(--sans);
  font-size: 15px; font-weight: 300; outline: none; color: var(--ink); border-radius: 0;
}
.waitlist .pdp-add { margin-top: 16px; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-msg { margin: 10px 0 0; font-size: 13px; min-height: 1em; color: var(--muted); }
.waitlist-msg.error { color: #9A3B3B; }
.waitlist-done { margin: 0; padding: 18px 0; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.35; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bag-open { display: none !important; }
.shop-on .bag-open { display: inline !important; }
.checkout[disabled] { opacity: .5; cursor: default; }
.test-banner { display: none; }
.shop-on .test-banner {
  display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #F3E6E4; color: var(--ink);
  text-align: center; font-size: 12px; letter-spacing: .06em; padding: 8px 12px;
}
.order-done { position: fixed; inset: 0; z-index: 70; background: rgba(29, 27, 25, .35); display: flex; align-items: center; justify-content: center; padding: 20px; }
.order-done[hidden] { display: none; }
.order-done-box { background: var(--bg); max-width: 460px; width: 100%; padding: 44px 36px; text-align: center; }
.order-done-box h2 { margin: 6px 0 14px; font-family: var(--serif); font-weight: 400; font-size: 36px; }
.order-done-box p { margin: 0 0 22px; color: var(--body2); line-height: 1.6; font-size: 15px; }
.order-done-close {
  background: var(--ink); color: var(--bg); border: 0; padding: 15px 26px; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; cursor: pointer; font-family: var(--sans);
}
.pdp-save {
  margin-top: 8px; background: transparent; border: 1px solid var(--chip); padding: 14px; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; cursor: pointer; font-weight: 400;
}
.pdp-note { font-size: 13px; margin: 18px 0 24px; line-height: 1.6; }
.pdp-acc { border-top: 1px solid var(--line); }
.pdp-acc:last-child { border-bottom: 1px solid var(--line); }
.pdp-acc summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: '+'; font-size: 16px; line-height: 1; }
.pdp-acc[open] summary::after { content: '−'; }
.pdp-acc p { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--body2); }
.pdp-related { max-width: 1440px; margin: 0 auto; padding: clamp(72px, 8vw, 120px) var(--pad) 80px; }
.pdp-related h2 { margin: 0 0 28px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related { display: flex; flex-direction: column; gap: 12px; }
.related .well { aspect-ratio: 3 / 4; }
.related .product-name { font-size: 19px; }
@media (max-width: 760px) {
  .pdp-bar { padding: 14px 20px; }
  .pdp-bar { grid-template-columns: auto 1fr auto; gap: 12px; }
  .pdp-bar .wordmark { grid-column: 2; grid-row: 1; justify-self: center; font-size: 22px; }
  .pdp-back { grid-column: 1; grid-row: 1; } .pdp-bag { grid-column: 3; grid-row: 1; }
  .pdp-back, .pdp-bag { font-size: 11px; letter-spacing: .14em; }
  .pdp-main { grid-template-columns: 1fr; padding: 0; gap: 24px; }
  .pdp-media { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pdp-media::-webkit-scrollbar { display: none; }
  .pdp-shot, .pdp-shot:first-child, .pdp-shot:last-child:nth-child(even) { flex: 0 0 100%; aspect-ratio: 3 / 4; scroll-snap-align: start; }
  .pdp-count {
    display: block; position: absolute; right: 14px; bottom: 14px; background: rgba(253, 252, 250, .92);
    font-size: 11px; letter-spacing: .14em; padding: 5px 9px;
  }
  .pdp-info { position: static; padding: 0 20px; max-width: none; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
.tag-new {
  position: absolute; top: 14px; left: 14px; background: var(--bg); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; padding: 6px 10px; font-weight: 400;
}
.save {
  position: absolute; top: 10px; right: 10px; background: rgba(253, 252, 250, .92); border: 0; cursor: pointer;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 8px 12px;
}
.product-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.product-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.product-name { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.product-detail { font-size: 13px; color: var(--muted); }
.product-price { font-size: 15px; white-space: nowrap; }
.add {
  border: 1px solid var(--ink); background: transparent; padding: 12px; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; cursor: pointer; font-weight: 400; transition: background .2s, color .2s;
}
.add:hover { background: var(--ink); color: var(--bg); }
.empty { grid-column: 1 / -1; text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); padding: 40px 0; }

/* note from Aude */
.note {
  max-width: 1440px; margin: 0 auto; padding: clamp(88px, 10vw, 160px) var(--pad);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.note-img { aspect-ratio: 4 / 5; }
.note-copy { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.eyebrow { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.quote { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.2; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.facts > div { display: flex; flex-direction: column; gap: 6px; }
.fact-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.fact-val { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* newsletter */
.newsletter { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.newsletter-inner {
  max-width: 760px; margin: 0 auto; padding: clamp(64px, 8vw, 112px) 24px; text-align: center;
  display: flex; flex-direction: column; gap: 20px; align-items: center;
}
.newsletter p { margin: 0; font-size: 16px; color: var(--body2); line-height: 1.6; }
.news-form { display: flex; width: 100%; max-width: 480px; border-bottom: 1px solid var(--ink); margin-top: 12px; }
.news-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 0; font-family: var(--sans);
  font-size: 15px; font-weight: 300; outline: none; color: var(--ink); border-radius: 0;
}
.news-form button { border: 0; background: transparent; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; font-weight: 400; }
.newsletter .news-thanks { margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink); }

/* footer */
.footer {
  max-width: 1440px; margin: 0 auto; padding: 56px var(--pad) 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; font-size: 14px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col:first-child { gap: 12px; }
.footer-mark { font-size: 34px; }

/* bag drawer */
.overlay { position: fixed; inset: 0; background: rgba(29, 27, 25, .28); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 41;
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(29, 27, 25, .08);
  transform: translateX(105%); transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.drawer-title { font-family: var(--serif); font-size: 28px; }
.bag-close { background: none; border: 0; cursor: pointer; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.drawer-items { flex: 1; overflow: auto; padding: 12px 28px; display: flex; flex-direction: column; }
.bag-empty { margin: 40px 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); text-align: center; }
.bag-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.bag-thumb { aspect-ratio: 3 / 4; background: repeating-linear-gradient(135deg, var(--stripe-a) 0 6px, var(--stripe-b) 6px 12px); overflow: hidden; }
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-info { display: flex; flex-direction: column; gap: 4px; }
.bag-name { font-family: var(--serif); font-size: 19px; }
.bag-qty { font-size: 13px; color: var(--muted); }
.bag-remove { align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; color: var(--muted); text-decoration: underline; }
.bag-total { font-size: 15px; }
.drawer-foot { padding: 24px 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.drawer-total { display: flex; justify-content: space-between; font-size: 15px; }
.ship-note, .checkout-msg { font-size: 13px; }
.checkout {
  background: var(--ink); color: var(--bg); border: 0; padding: 18px; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; cursor: pointer; font-weight: 400;
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); background: var(--ink); color: var(--bg);
  padding: 14px 24px; font-size: 13px; letter-spacing: .06em; z-index: 50; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* phones: keep the design, fit the narrow screen */
@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 10px 16px; padding-top: 14px; padding-bottom: 10px; }
  .wordmark { grid-column: 1; grid-row: 1; justify-self: start; font-size: 26px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 14px; font-size: 11px; letter-spacing: .14em; }
  .header-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 16px; font-size: 10.5px; letter-spacing: .12em; justify-content: space-between; }
  .header-nav::-webkit-scrollbar { display: none; }
  .cat-row .label { display: none; }
  .hero-title { font-size: clamp(56px, 16vw, 84px); white-space: normal; line-height: 1; }
  .announce { font-size: 10px; letter-spacing: .12em; }
  .triptych-captions { font-size: 10px; letter-spacing: .1em; }
  .facts { gap: 12px; }
  .toast { white-space: normal; width: max-content; max-width: calc(100% - 40px); text-align: center; }
}
