/* Layout: concrete-studio atelier. The rose-gold SM monogram over an editorial photo strip,
   then a quiet catalogue grid. One dark world, matched to the lookbook's grey studio. */
:root {
  --ink: #151413;        /* page ground, warm graphite */
  --stone: #1f1d1b;      /* raised surfaces */
  --concrete: #37332f;   /* hairlines, borders */
  --bone: #ece5da;       /* primary text */
  --ash: #a39c92;        /* secondary text */
  --rose: #d2a68c;       /* rose gold from the studio logo, used sparingly */
  --scrim: rgba(10, 9, 8, 0.62);
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --f-body: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--rose); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ash); font-weight: 400; }
.price { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 30px; border: 1px solid var(--bone);
  background: var(--bone); color: var(--ink); text-decoration: none; cursor: pointer;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  transition: background .25s, color .25s;
}
.btn:hover { background: transparent; color: var(--bone); }
.btn.ghost { background: transparent; color: var(--bone); }
.btn.ghost:hover { background: var(--bone); color: var(--ink); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; color: var(--ash); font-size: .85rem; }
.link:hover { color: var(--bone); }

/* Header */
.announce { text-align: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ash); padding: 9px 16px; border-bottom: 1px solid var(--concrete); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(21, 20, 19, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--concrete);
}
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; gap: 16px; }
.nav { display: flex; gap: 28px; }
.nav a, .bag-btn { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ash); }
.nav a:hover, .nav a[aria-current="page"], .bag-btn:hover { color: var(--bone); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: auto; height: 36px; }
.logo-text { display: grid; font-family: var(--f-display); font-size: 1.15rem; line-height: 1.05; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.logo-text small { font-family: var(--f-body); font-size: .56rem; letter-spacing: .5em; color: var(--rose); padding-top: 3px; }
.header-end { display: flex; justify-content: flex-end; }
.bag-btn { background: none; border: 0; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; padding: 8px 0; }
.bag-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--rose); color: var(--ink); font-size: .7rem; letter-spacing: 0; font-weight: 500; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px 0; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ash); }
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; justify-self: start; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid var(--concrete); padding: 8px var(--gutter) 16px; }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--concrete); }
  .logo { gap: 8px; }
  .logo img { height: 30px; }
  .logo-text { font-size: .9rem; letter-spacing: .1em; }
  .logo-text small { font-size: .5rem; letter-spacing: .4em; }
}

/* Hero */
.hero { padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 80px); }
.brand-hero { display: grid; justify-items: center; gap: 14px; margin: 0 0 clamp(28px, 4vw, 48px); }
.brand-hero img { width: auto; height: clamp(190px, 30vw, 360px); }
.brand-hero span { font-family: var(--f-body); font-weight: 400; font-size: clamp(.72rem, 1.1vw, .9rem); letter-spacing: .7em; padding-left: .7em; text-transform: uppercase; color: var(--rose); }
.hero-row { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(10px, 1.6vw, 22px); align-items: end; }
.hero-row figure { margin: 0; position: relative; }
.hero-row figure img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.hero-row figure:nth-child(2) img { aspect-ratio: 4/5.4; }
.hero-row figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: .78rem; color: var(--ash); }
.hero-row figcaption em { font-family: var(--f-display); font-style: italic; color: var(--bone); font-size: 1rem; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.hero-copy p { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.25; max-width: 30ch; }
.hero-copy p em { color: var(--rose); }
@media (max-width: 760px) {
  .hero-row { grid-template-columns: 1fr 1fr; }
  .hero-row figure:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .hero-copy { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--concrete); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.section-head h2 em { font-style: italic; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 22px); }
@media (min-width: 1000px) { .grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 999px) { .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .media { position: relative; overflow: hidden; background: var(--stone); aspect-ratio: 3/4; }
.card .media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .5s, transform .8s; }
.card .media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .media img.alt { opacity: 1; }
.card:hover .media img:only-child { transform: scale(1.03); }
.card .meta { display: grid; gap: 2px; }
.card .no { font-size: .68rem; letter-spacing: .22em; color: var(--ash); text-transform: uppercase; }
.card h3 { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.card .price { color: var(--ash); font-size: .9rem; }

/* Placeholder for outfits awaiting photography */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 14%;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 7px),
    radial-gradient(120% 80% at 30% 20%, var(--t1), transparent 70%),
    linear-gradient(160deg, var(--t1), var(--t2));
  color: var(--ph-fg, #f4efe7);
}
.ph .ph-name { font-family: var(--f-display); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 2rem); line-height: 1.15; text-shadow: 0 1px 18px rgba(0,0,0,.25); }
.ph .ph-note { display: block; margin-top: 14px; font-family: var(--f-body); font-style: normal; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; opacity: .8; }
.ph.light { --ph-fg: #2a2520; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: clamp(24px, 3vw, 36px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--concrete); background: transparent; padding: 8px 16px; cursor: pointer; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.chip[aria-pressed="true"], .chip:hover { border-color: var(--bone); color: var(--bone); }
.select { background: var(--ink); color: var(--bone); border: 1px solid var(--concrete); padding: 9px 12px; font: inherit; font-size: .85rem; }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-block: clamp(24px, 4vw, 56px); align-items: start; }
.gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
.gallery .main { aspect-ratio: 3/4; background: var(--stone); overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--stone); cursor: pointer; aspect-ratio: 3/4; overflow: hidden; opacity: .6; }
.thumbs button[aria-current="true"] { border-color: var(--bone); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery.single { grid-template-columns: 1fr; }
.info { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: grid; gap: 22px; min-width: 0; }
.crumbs { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--bone); }
.info h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.info .price { font-size: 1.3rem; }
.tagline { color: var(--ash); max-width: 46ch; }
.size-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 52px; height: 46px; padding: 0 12px; border: 1px solid var(--concrete); background: transparent; cursor: pointer; font-size: .85rem; letter-spacing: .08em; }
.size:hover { border-color: var(--ash); }
.size[aria-pressed="true"] { border-color: var(--bone); background: var(--bone); color: var(--ink); }
.hint { font-size: .82rem; color: var(--ash); }
.hint.err { color: var(--rose); }
.buy-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--concrete); height: 50px; }
.qty button { width: 40px; height: 100%; background: none; border: 0; cursor: pointer; font-size: 1.1rem; color: var(--ash); }
.qty button:hover { color: var(--bone); }
.qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.assure { display: grid; gap: 6px; font-size: .84rem; color: var(--ash); padding-top: 4px; }
.acc { border-top: 1px solid var(--concrete); }
.acc details { border-bottom: 1px solid var(--concrete); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1rem; letter-spacing: 0; color: var(--ash); }
.acc details[open] summary::after { content: "–"; }
.acc .body { padding-bottom: 18px; color: var(--ash); }
.acc ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.occasions { display: flex; flex-wrap: wrap; gap: 6px; }
.occasions span { border: 1px solid var(--concrete); padding: 4px 10px; font-size: .78rem; color: var(--bone); }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .info { position: static; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; }
  .thumbs button { width: 64px; flex: none; }
}

/* Story & contact */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.story img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.story .text { display: grid; gap: 20px; max-width: 54ch; }
.story h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.story p { color: var(--ash); }
.story .text { gap: 32px; }
.about-part { display: grid; gap: 10px; }
.manifesto { text-align: center; }
.manifesto .wrap { max-width: 860px; display: grid; gap: 22px; justify-items: center; }
.manifesto h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.manifesto h2 em { color: var(--rose); }
.manifesto p { color: var(--ash); max-width: 62ch; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); counter-reset: step; }
.steps li { list-style: none; display: grid; gap: 10px; border-top: 1px solid var(--bone); padding-top: 18px; counter-increment: step; }
.steps li::before { content: "Step " counter(step); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--rose); }
.steps h3 { font-size: 1.5rem; }
.steps p { color: var(--ash); font-size: .95rem; }
.steps ol, ol.steps { padding: 0; margin: 0; }
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.contact div { display: grid; gap: 6px; }
.contact .v { font-family: var(--f-display); font-size: 1.3rem; word-break: break-word; user-select: all; }
@media (max-width: 760px) { .story, .steps, .contact { grid-template-columns: 1fr; } }

/* Bag drawer */
.overlay { position: fixed; inset: 0; background: var(--scrim); z-index: 40; opacity: 0; transition: opacity .3s; }
.overlay.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 41;
  background: var(--ink); border-left: 1px solid var(--concrete);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  transform: translateX(100%); transition: transform .35s ease;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer.show { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--concrete); }
.drawer-head h2 { font-size: 1.6rem; }
.x { background: none; border: 0; cursor: pointer; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ash); }
.x:hover { color: var(--bone); }
.drawer-body { overflow-y: auto; padding: 8px 24px; }
.drawer-foot { border-top: 1px solid var(--concrete); padding: 20px 24px; display: grid; gap: 14px; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--concrete); align-items: start; }
.line .thumb { aspect-ratio: 3/4; overflow: hidden; background: var(--stone); }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.line .thumb .ph { padding: 6px; }
.line .thumb .ph-name { font-size: .7rem; }
.line .thumb .ph-note { display: none; }
.line h3 { font-size: 1.05rem; }
.line .sub { font-size: .8rem; color: var(--ash); }
.line .ctrls { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.line .qty { height: 34px; }
.line .qty button { width: 30px; }
.totals { display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; color: var(--ash); }
.totals .grand { color: var(--bone); font-size: 1.05rem; padding-top: 10px; border-top: 1px solid var(--concrete); }
.empty { display: grid; gap: 16px; justify-items: start; padding: 32px 0; color: var(--ash); }

/* Checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(24px, 4vw, 56px); align-items: start; }
.checkout h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 8px; }
.form { display: grid; gap: 30px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
legend { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bone); padding: 0 0 6px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .8rem; color: var(--ash); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 1px solid var(--concrete); color: var(--bone);
  padding: 12px 14px; font: inherit; font-size: .95rem; border-radius: 0;
}
.field select { background: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bone); }
.field input:user-invalid { border-color: var(--rose); }
.pay-option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; border: 1px solid var(--bone); padding: 18px; }
.pay-option input { accent-color: var(--rose); margin-top: 5px; }
.pay-option strong { font-weight: 500; display: block; margin-bottom: 4px; }
.pay-option p { color: var(--ash); font-size: .88rem; }
.pay-option.soon { border-color: var(--concrete); opacity: .55; }
.summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); background: var(--stone); padding: clamp(20px, 3vw, 32px); display: grid; gap: 8px; }
.summary h2 { font-size: 1.5rem; margin-bottom: 4px; }
@media (max-width: 860px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .fields { grid-template-columns: 1fr; }
}

/* Confirmation */
.confirm { max-width: 720px; margin-inline: auto; padding-block: clamp(40px, 7vw, 96px); display: grid; gap: 24px; text-align: center; justify-items: center; }
.confirm h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.confirm .ord { font-variant-numeric: tabular-nums; letter-spacing: .2em; color: var(--rose); }
.confirm p { color: var(--ash); max-width: 52ch; }
.confirm .box { width: 100%; text-align: left; background: var(--stone); padding: 24px; display: grid; gap: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: var(--scrim); }
.modal .panel { background: var(--ink); border: 1px solid var(--concrete); width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; }
.modal h2 { font-size: 1.8rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--concrete); font-size: .9rem; }
th { font-weight: 400; color: var(--ash); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--bone); color: var(--ink); padding: 12px 22px; font-size: .85rem; opacity: 0; transition: opacity .3s, transform .3s; z-index: 60; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.site-footer { border-top: 1px solid var(--concrete); padding-block: 40px; margin-top: 24px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; align-items: center; font-size: .82rem; color: var(--ash); }
.site-footer .logo { color: var(--bone); }
.site-footer .logo img { height: 30px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--bone); }

/* Policy pages */
.legal { max-width: 760px; margin-inline: auto; padding-block: clamp(40px, 6vw, 88px); }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 10px 0 24px; }
.legal h2 { font-family: var(--f-body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bone); font-weight: 500; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ash); max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 8px; }
.legal strong { color: var(--bone); font-weight: 400; }
.legal a { color: var(--bone); text-underline-offset: 3px; }
.legal mark.todo { background: rgba(210, 166, 140, .18); color: var(--rose); padding: 0 4px; }
.legal-draft { border: 1px solid var(--rose); color: var(--rose) !important; padding: 10px 14px; font-size: .88rem; margin-bottom: 8px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--concrete); font-size: .85rem; }
.hint.agree a { color: var(--bone); }

.fade-in { animation: fade .5s ease both; }
@keyframes fade { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
