/* Offcut : le hero recréé à la lettre d'après le prompt « Offcut streetwear clothing-rail hero » (§1 à §11),
   puis les pages qui complètent la démo (boutique, fiche, panier, à propos, contact) dans le même vocabulaire. */

@font-face { font-family: 'Inter'; src: url(/fonts/inter.woff2) format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(/fonts/instrument-serif-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'UnifrakturMaguntia'; src: url(/fonts/unifraktur-maguntia.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root { --bg: #0b0b0c; --ink: #f1efec; --mute: #8d8a86; --red: #b3121b; --line: rgba(241, 239, 236, .16); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); }
body { color: var(--ink); font-family: "Inter", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------- §5 shared text styles ---------- */
.ui { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.pill { height: 34px; padding: 0 20px; border: 1px solid rgba(241, 239, 236, .6); border-radius: 40px; display: inline-grid; place-items: center; transition: background .25s, color .25s; }
.pill:hover { background: var(--ink); color: var(--bg); }

/* ======================================================================== HOME: the rail */
html.home, html.home body { height: 100%; overflow: hidden; }
html.home body { -webkit-user-select: none; user-select: none; }

/* The stage keeps the 1500 px artboard from widening the page (phones would zoom out to fit it). */
#stage { position: fixed; inset: 0; overflow: hidden; }
#art { position: absolute; width: 1500px; height: 1000px; transform-origin: 0 0; background: radial-gradient(ellipse 70% 55% at 50% 40%, #18181a, #0b0b0c); }

#logo { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); font: 400 64px/1 "UnifrakturMaguntia", serif; letter-spacing: .01em; color: var(--ink); }

/* About and Contact keep the prompt's places (46 / 46). They sit above the rack here so they can be clicked
   (the demo's own pages); Shop, the language and the bag follow them in the same style. */
#left { position: absolute; left: 46px; top: 46px; display: flex; gap: 28px; }
#right { position: absolute; right: 46px; top: 46px; display: flex; gap: 28px; }
#left a, #right a { transition: color .2s; }
#left a:hover, #right a:hover { color: var(--mute); }

/* §6.2 the chrome rail */
#rail { position: absolute; left: 150px; right: 150px; top: 254px; height: 12px; border-radius: 6px;
  background: linear-gradient(#fafafa 0%, #b9bcc1 28%, #5d6066 55%, #a9adb3 78%, #e6e7e9 100%); box-shadow: 0 10px 18px rgba(0, 0, 0, .45); }
#rail::before, #rail::after { content: ""; position: absolute; top: -9px; width: 16px; height: 30px; border-radius: 5px;
  background: linear-gradient(90deg, #8d9096, #f3f3f4 45%, #7a7d83); }
#rail::before { left: -14px; }
#rail::after { right: -14px; }

/* §6.3 / §9 the garments */
#rack { position: absolute; left: 0; top: 0; width: 1500px; height: 1000px; }
.g { position: absolute; top: 236px; width: 289px; height: 300px; margin-left: -144.5px; perspective: 900px; cursor: pointer;
  transition: left .75s cubic-bezier(.2, .8, .2, 1); }
.g i { position: absolute; inset: 0; background-repeat: no-repeat; transform-origin: 50% 4%; transform: rotateY(-74deg);
  filter: brightness(.82) drop-shadow(0 18px 18px rgba(0, 0, 0, .5)); transition: transform .75s cubic-bezier(.2, .8, .2, 1), filter .75s; }
.g.face i { transform: rotateY(0deg); filter: brightness(1) drop-shadow(0 22px 26px rgba(0, 0, 0, .55)); }

/* §6.4 caption */
#cap { position: absolute; top: 552px; transform: translateX(-50%); text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); white-space: nowrap; pointer-events: none; opacity: 0; transition: left .75s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
#cap b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
#cap.on { opacity: 1; }

/* §6.5 pill */
#avail { position: absolute; left: 50%; top: 790px; transform: translateX(-50%); }

/* §6.6 band */
#band { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: var(--red); overflow: hidden; display: flex; align-items: center; }
.track { display: flex; white-space: nowrap; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--ink); animation: marq 22s linear infinite; }
.track span { padding-right: 22px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* §6.7 the detail layer */
#det { position: absolute; inset: 0; pointer-events: none; }
body.open #det, body.open #det button, body.open #det a { pointer-events: auto; }
.hit { position: absolute; inset: 0; }
#big2, #big { position: absolute; left: 50%; top: 244px; width: 473px; height: 492px; margin-left: -236.5px; background-repeat: no-repeat; opacity: 0; }
#big2 { pointer-events: none; }
#big { transform-origin: 50% 4%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.arr { position: absolute; top: 452px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(241, 239, 236, .5); display: grid; place-items: center;
  opacity: 0; transition: opacity .4s ease .25s, background .2s, color .2s; }
.arr:hover { background: var(--ink); color: var(--bg); }
.arr svg { width: 16px; height: 16px; }
#prev { left: calc(50% - 300px); }
#next { left: calc(50% + 254px); }
#info { position: absolute; left: 50%; top: 770px; transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity .5s ease .25s; }
#num { font-size: 11px; letter-spacing: .16em; color: var(--mute); }
#name { font: italic 400 40px/1.15 "Instrument Serif", serif; color: var(--ink); margin: 8px 0 6px; white-space: nowrap; }
#price { font-size: 13px; letter-spacing: .08em; color: var(--mute); margin-bottom: 18px; }
#close { position: absolute; right: 46px; top: 46px; opacity: 0; transition: opacity .4s ease .25s; }
body.open #info, body.open .arr, body.open #close { opacity: 1; }

/* §7 wash-out: .dim after .pill on purpose (the pill fades with the page, as the prompt notes) */
.dim { transition: opacity .7s cubic-bezier(.2, .8, .2, 1), filter .7s; }
body.open .dim { opacity: .12; filter: blur(2px); }
body.open .dimmer, body.open #cap.on { opacity: 0; pointer-events: none; }

/* ---------- Phone: the rail is panned under a fixed bar (the artboard alone would be 25 % of the width) ---------- */
#pbar, #ppill { display: none; }
body.phone #left, body.phone #right, body.phone #logo, body.phone #close, body.phone #avail { display: none; }
body.phone { touch-action: none; }
body.phone #art { transition: left .75s cubic-bezier(.2, .8, .2, 1); }
body.phone.still #art { transition: none; }
body.phone #pbar { display: flex; position: fixed; left: 0; right: 0; top: 0; height: 64px; padding: 0 16px; align-items: center; justify-content: space-between; z-index: 5; }
#pbar .plogo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); font: 400 36px/1 "UnifrakturMaguntia", serif; text-transform: none; letter-spacing: .01em; }
#pbar nav { display: flex; gap: 16px; font-size: 11px; }
#pbar nav a, #pbar button { min-height: 44px; display: inline-flex; align-items: center; }
#pclose { display: none !important; }
body.phone.open #pclose { display: inline-flex !important; }
body.phone.open #pbar .pr { display: none; }
body.phone #ppill { display: inline-grid; position: fixed; left: 50%; transform: translateX(-50%); z-index: 5; height: 44px; transition: opacity .5s; }
body.phone.open #ppill { opacity: 0; pointer-events: none; }
body.phone #cap { font-size: 18px; letter-spacing: .1em; }
body.phone #cap b { margin-bottom: 6px; }
body.phone #num { font-size: 18px; }
body.phone #name { font-size: 52px; }
body.phone #price { font-size: 20px; }
body.phone #info .pill { height: 64px; padding: 0 34px; font-size: 18px; }
body.phone .arr { width: 76px; height: 76px; top: 437px; }
body.phone .arr svg { width: 24px; height: 24px; }
body.phone #prev { left: calc(50% - 318px); }
body.phone #next { left: calc(50% + 242px); }

/* ======================================================================== PAGES */
.head { position: relative; height: 128px; display: flex; align-items: flex-start; justify-content: space-between; padding: 46px 46px 0; }
.head .wl { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); font: 400 64px/1 "UnifrakturMaguntia", serif; letter-spacing: .01em; text-transform: none; }
.head nav { display: flex; gap: 28px; }
.head nav a { transition: color .2s; }
.head nav a:hover, .head nav a[aria-current] { color: var(--mute); }
.wrap { width: min(100% - 92px, 1240px); margin: 0 auto; }
.kick { font-size: 11px; letter-spacing: .16em; color: var(--mute); text-transform: uppercase; }
.h1 { font: italic 400 clamp(40px, 5vw, 64px)/1.08 "Instrument Serif", serif; }
.lede { color: var(--mute); font-size: 15px; line-height: 1.6; max-width: 46ch; margin-top: 14px; }
main { min-height: calc(100vh - 128px - 46px - 64px); padding-bottom: 96px; }
.foot { text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding: 22px 16px; }
.band { position: relative; height: 46px; background: var(--red); overflow: hidden; display: flex; align-items: center; }

/* Shop: the ten pieces facing you */
.shop-head { padding: 24px 0 48px; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px 18px; }
.card { display: block; text-align: center; }
.card .pic { position: relative; aspect-ratio: 289 / 300; }
.card .pic i { position: absolute; inset: 0; background-repeat: no-repeat; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .pic i, .card:focus-visible .pic i { transform: translateY(-8px); }
.card b { display: block; margin-top: 14px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.card span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .12em; color: var(--mute); }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 8px; }
.pdp .pic { position: relative; width: min(100%, 520px); aspect-ratio: 473 / 492; margin: 0 auto; }
.pdp .pic i { position: absolute; inset: 0; background-repeat: no-repeat; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.pdp .name { font: italic 400 clamp(40px, 4.4vw, 56px)/1.1 "Instrument Serif", serif; margin: 10px 0 8px; }
.pdp .price { font-size: 15px; letter-spacing: .08em; color: var(--mute); }
.pdp .note { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-top: 6px; }
.sizes { border: 0; margin: 28px 0 22px; }
.sizes legend { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.sizes .row { display: flex; gap: 10px; flex-wrap: wrap; }
.sz { position: relative; }
.sz input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sz span { display: inline-grid; place-items: center; min-width: 56px; height: 44px; padding: 0 16px; border: 1px solid rgba(241, 239, 236, .35); border-radius: 40px; font-size: 12px; font-weight: 500; letter-spacing: .12em; transition: background .25s, color .25s, border-color .25s; }
.sz input:hover + span { border-color: var(--ink); }
.sz input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sz input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.big-pill { height: 48px; padding: 0 30px; }
.msg { min-height: 22px; margin-top: 14px; font-size: 13px; color: var(--mute); }
.msg a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.facts { margin-top: 34px; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; font-size: 13px; line-height: 1.55; }
.facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding-top: 2px; }
.facts ul { list-style: none; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); }
.pager a { transition: color .2s; }
.pager a:hover { color: var(--mute); }

/* Bag and checkout */
.bag { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 40px; }
.rows { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line .pic { position: relative; width: 96px; aspect-ratio: 289 / 300; }
.line .pic i { position: absolute; inset: 0; background-repeat: no-repeat; }
.line b { display: block; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.line small { display: block; margin-top: 6px; font-size: 12px; color: var(--mute); letter-spacing: .06em; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; }
.qty button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; }
.qty output { min-width: 28px; text-align: center; font-size: 13px; }
.line .end { text-align: right; font-size: 13px; letter-spacing: .06em; }
.line .end button { display: block; margin: 8px 0 0 auto; min-height: 44px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.sum { display: flex; justify-content: space-between; padding: 20px 0; font-size: 14px; letter-spacing: .06em; }
.empty { padding: 28px 0; color: var(--mute); }
.empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form { display: grid; gap: 18px; }
.form h2 { font: italic 400 34px/1.1 "Instrument Serif", serif; margin-bottom: 4px; }
.field label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(241, 239, 236, .35); padding: 10px 0; font-size: 15px; border-radius: 0; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.pay { border: 0; display: grid; gap: 10px; }
.pay legend { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.pay label { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 40px; font-size: 13px; cursor: pointer; }
.pay input { accent-color: var(--ink); }
.form .pill { height: 48px; justify-self: start; padding: 0 30px; }
.small { font-size: 12px; color: var(--mute); line-height: 1.5; }
.done { font: italic 400 28px/1.2 "Instrument Serif", serif; }

/* About and contact */
.prose { max-width: 680px; margin: 24px auto 0; }
.prose p { color: var(--mute); font-size: 16px; line-height: 1.7; margin-top: 18px; }
.prose p.fine { font-size: 13px; }
.links { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.links .pill { height: 44px; }
.prose .form { margin-top: 36px; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .head { height: 96px; padding: 18px 16px 0; font-size: 11px; }
  .head nav { gap: 14px; }
  .head nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .head .wl { top: 50px; font-size: 40px; }
  .head .hide-sm { display: none; }
  .wrap { width: calc(100% - 32px); }
  main { padding-top: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; }
  .pdp, .bag { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pdp .pic { width: min(100%, 380px); }
  .facts div { grid-template-columns: 1fr; gap: 6px; }
  .line { grid-template-columns: 72px minmax(0, 1fr); }
  .line .pic { width: 72px; }
  .line .end { grid-column: 2; text-align: left; }
  .line .end button { margin: 4px 0 0; }
}
