/* inkuy.studio storefront
   Quiet-luxury layout after the conventions of houses like The Row and Khaite:
   centred mark, small type, edge-to-edge photographs. The page itself is black,
   white and the satin grey of the curtain in every photo; colour comes from the clothes. */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --muted: #5f6066;
  --line: #e4e4e6;
  --mist: #f5f5f6;
  --satin: #46474d;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 2.8vw, 40px);
  --head: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p, ol, ul, dl, dd, figure { margin: 0; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: 13px;
}
.skip:focus { top: 12px; }

.u-link, .text-link, .crumbs a:hover, .top-nav a:hover, .foot-col a:hover, .foot-col button:hover {
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}

/* ---------- notice + header ---------- */
.notice { background: var(--ink); color: var(--paper); text-align: center; padding: 9px var(--gutter); font-size: 12px; letter-spacing: .01em; }

.top {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--head); padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .4s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top-nav { display: flex; gap: 28px; font-size: 13px; }
.brand { line-height: 0; }
.brand img { height: 30px; width: auto; }
.top-end { justify-self: end; }
.bag-btn { font-size: 13px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.bag-btn:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

@media (max-width: 640px) {
  :root { --head: 56px; }
  .brand img { height: 25px; }
  .hide-sm { display: none; }
}

/* ---------- cover ---------- */
.hero { position: relative; background: var(--satin); }
.hero-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px;
  height: clamp(520px, calc(100svh - var(--head)), 1000px);
}
.hero-panel { position: relative; overflow: hidden; display: block; }
.hero-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }

/* The single orchestrated moment: the three cover panels settle in on load. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-panel img { opacity: 0; transform: scale(1.035); }
  .js .hero.is-in .hero-panel img {
    opacity: 1; transform: none;
    transition: opacity 1.2s ease, transform 2s var(--ease);
    transition-delay: calc(var(--i) * 140ms);
  }
}

@media (max-width: 760px) {
  .hero-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    height: min(78svh, 680px);
  }
  .hero-track::-webkit-scrollbar { display: none; }
  .hero-panel { flex: 0 0 88vw; scroll-snap-align: start; }
}

/* ---------- photo frame ---------- */
.frame { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background: var(--satin); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.frame .alt { opacity: 0; transition: opacity .7s ease; }
@media (hover: hover) {
  .item a:hover .frame.has-alt .alt { opacity: 1; }
}

/* ---------- catalogue ---------- */
.catalog { padding-top: clamp(64px, 8vw, 120px); }
.catalog-head {
  display: grid; grid-template-columns: 1fr minmax(0, 28rem); align-items: end; gap: 16px 48px;
  padding: 0 var(--gutter);
}
.catalog-head h1, .service h2, .more h2 { font-family: var(--serif); font-style: italic; line-height: 1; letter-spacing: -.005em; }
.catalog-head h1 { font-size: clamp(40px, 4.6vw, 64px); }
.catalog-intro { color: var(--muted); justify-self: end; }
@media (max-width: 760px) {
  .catalog-head { grid-template-columns: 1fr; }
  .catalog-intro { justify-self: start; }
}

.filters {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: clamp(28px, 3vw, 40px) var(--gutter) 20px;
}
.no-js .filters { display: none; }
.tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 0 0 auto; font-size: 13px; color: var(--muted); padding: 2px 0; transition: color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.filters-end { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.count { color: var(--muted); font-variant-numeric: tabular-nums; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.toggle::before { content: ""; width: 11px; height: 11px; border: 1px solid var(--ink); transition: background-color .2s; }
.toggle[aria-pressed="true"]::before { background: var(--ink); }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2px; row-gap: 32px;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }

.item a { display: block; }
.item-info { display: grid; gap: 3px; padding: 12px 12px 0; }
.item-name { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; line-height: 1.45; }
.item-price { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.item-note { display: block; padding: 3px 12px 0; font-size: 12.5px; color: var(--muted); }
.item a:hover .item-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.item[hidden] { display: none; }
.is-sold .frame img { opacity: .42; }
.is-sold .item-name, .is-sold .item-price { color: var(--muted); }
@media (max-width: 700px) {
  .item-info { justify-items: center; text-align: center; gap: 2px; padding: 10px 8px 0; }
  .item-note { text-align: center; }
}
.grid-empty { padding: 40px var(--gutter); color: var(--muted); }

/* ---------- how to order ---------- */
.service {
  margin-top: clamp(96px, 11vw, 168px);
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.service-img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--satin); overflow: hidden; }
.service-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.service-body { align-self: center; padding: clamp(40px, 6vw, 112px) clamp(24px, 6vw, 112px); max-width: 40rem; }
.service h2 { font-size: clamp(34px, 3.6vw, 52px); margin-bottom: clamp(24px, 3vw, 40px); }
.steps { list-style: none; padding: 0; counter-reset: step; border-bottom: 1px solid var(--line); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 0;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--serif); font-size: 18px; line-height: 1.3; }
.steps h3 { font-size: 14px; font-weight: 500; }
.steps p { color: var(--muted); }
.text-link { display: inline-block; margin-top: 28px; font-size: 13px; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service-body { padding: 40px var(--gutter) 0; }
}

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.gallery { min-width: 0; }
.gallery-track { display: grid; gap: 2px; }
.shot { position: relative; aspect-ratio: 3 / 4; background: var(--satin); overflow: hidden; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.gallery-bar { display: none; }

.info {
  position: sticky; top: var(--head);
  min-height: calc(100svh - var(--head));
  display: flex; align-items: center; justify-content: center;
  padding: clamp(32px, 5vw, 80px) clamp(24px, 5vw, 96px);
}
.info-inner { width: 100%; max-width: 420px; }
.crumbs { display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
.info h1 { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 34px); line-height: 1.14; margin-top: 16px; text-wrap: balance; }
.info-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.price { font-size: 14px; font-variant-numeric: tabular-nums; }
.status { font-size: 13px; color: var(--muted); text-align: right; }
.desc { display: grid; gap: 10px; margin-top: 22px; color: var(--ink); }
.actions { display: grid; gap: 8px; margin-top: 28px; }

.acc { margin-top: 32px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-size: 13px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 16px; line-height: 1; font-weight: 300; }
.acc details[open] summary::after { content: "\2212"; }
.specs { padding-bottom: 14px; }
.specs div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 5px 0; font-size: 13px; }
.specs dt { color: var(--muted); }
.acc-body { display: grid; gap: 8px; padding-bottom: 16px; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .gallery-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0;
  }
  .gallery-track::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 100%; scroll-snap-align: start; }
  .gallery-bar { display: block; height: 2px; background: var(--line); }
  .gallery-bar span { display: block; height: 100%; background: var(--ink); transition: transform .35s var(--ease); }
  .info { position: static; min-height: 0; display: block; padding: 28px var(--gutter) 0; }
  .info-inner { max-width: none; }
}

.more { padding-top: clamp(88px, 10vw, 152px); }
.more h2 { font-size: clamp(30px, 3vw, 44px); padding: 0 var(--gutter); margin-bottom: 28px; }

.lost { padding: clamp(80px, 14vw, 200px) var(--gutter); display: grid; gap: 18px; justify-items: start; max-width: 40rem; }
.lost h1 { font-family: var(--serif); font-style: italic; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; }
.lost p { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; width: 100%;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  border: 1px solid var(--ink); border-radius: 0;
  transition: background-color .25s, color .25s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #2b2b2e; border-color: #2b2b2e; }
.btn-line { background: var(--paper); color: var(--ink); }
.btn-line:hover { background: var(--mist); }
.lost .btn { width: auto; }
.text-btn { font-size: 13px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(104px, 11vw, 176px); border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) var(--gutter) 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px 24px; }
.foot-brand img { height: 26px; width: auto; }
.foot-brand p { margin-top: 18px; max-width: 24rem; color: var(--muted); font-size: 13px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; }
.foot-col h2 { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.foot-col button { font-size: 13px; }
.foot-legal { margin-top: clamp(48px, 6vw, 88px); font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ---------- bag ---------- */
.bag { position: fixed; inset: 0; z-index: 60; }
.bag[hidden] { display: none; }
.bag-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); opacity: 0; transition: opacity .35s; }
.bag-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: var(--paper);
  transform: translateX(100%); transition: transform .5s var(--ease); outline: none;
}
.bag.is-open .bag-backdrop { opacity: 1; }
.bag.is-open .bag-panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .bag-panel, .bag-backdrop { transition: none; } }

.bag-head { display: flex; align-items: center; justify-content: space-between; height: var(--head); padding: 0 24px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-family: var(--serif); font-style: italic; font-size: 24px; }
.bag-body { flex: 1; overflow-y: auto; padding: 0 24px 16px; }
.bag-list { list-style: none; padding: 0; }
.bag-list li { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bag-list .frame { aspect-ratio: 3 / 4; }
.bag-item-name { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; line-height: 1.45; }
.bag-item-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.bag-item-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bag-remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.bag-remove:hover { color: var(--ink); }
.bag-empty { padding: 28px 0; color: var(--muted); }
.bag-notice { margin-top: 16px; padding: 12px 14px; background: var(--mist); font-size: 13px; }

.bag-foot { display: grid; gap: 14px; min-width: 0; padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.bag-foot[hidden] { display: none; }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.bag-total [data-bag-total] { font-size: 14px; font-variant-numeric: tabular-nums; }
.bag-hint, .bag-fine { font-size: 12px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 2px; min-width: 0; font-size: 12px; color: var(--muted); }
.field input {
  width: 100%; min-width: 0; height: 38px; padding: 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  font-size: 14px; color: var(--ink);
}
.field input:focus { outline: none; border-bottom-color: var(--ink); }
.field input::placeholder { color: #a5a6ab; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 13px 20px; font-size: 13px; max-width: calc(100vw - 32px);
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; margin-left: 14px; }
