/* STILL UP storefront. One night-world theme: ink sky, bone type, sodium-streetlight orange. */
:root {
  --ink: #111113;
  --ink-2: #18181b;
  --line: #2d2c31;
  --stage: #4a4742;           /* product photo backdrop: separates black and ivory garments alike */
  --bone: #efe9dd;
  --dim: #a39d91;
  --sodium: #ff6a13;
  --on-sodium: #141416;
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --bar-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 120px; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--display); font-stretch: 100%; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--sodium); color: var(--on-sodium); padding: 8px 14px; border-radius: 99px; z-index: 50; }
.skip:focus { left: 16px; }

/* header */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(17, 17, 19, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar-in { height: var(--bar-h); display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg { width: 38px; }
.logo span { font-weight: 900; font-stretch: 125%; font-size: 19px; letter-spacing: -.01em; }
.nav { display: flex; gap: 22px; }
.nav a { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-decoration: none; }
.nav a:hover { color: var(--bone); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cart-btn:hover { border-color: var(--bone); }
.count { min-width: 22px; height: 22px; border-radius: 99px; background: var(--line); display: inline-grid; place-items: center; font-size: 11px; padding: 0 6px; }
.count.has { background: var(--sodium); color: var(--on-sodium); }
@media (max-width: 560px) { .nav { display: none; } }

.status { border-top: 1px solid var(--line); }
.status-in { height: 34px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.status.live .dot { background: var(--sodium); box-shadow: 0 0 0 0 rgba(255, 106, 19, .6); animation: pulse 2s infinite; }
.status.live #statusText b { color: var(--sodium); }
#statusText b { color: var(--bone); font-weight: 700; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 106, 19, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 19, 0); } }

/* hero: the 5 AM horizon */
.hero { position: relative; overflow: hidden; padding-bottom: clamp(48px, 8vw, 96px); }
.hero .glow { position: absolute; left: 50%; top: clamp(140px, 30vw, 380px); width: min(1300px, 170vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 106, 19, .34), rgba(255, 106, 19, .1) 52%, transparent 74%); pointer-events: none; }
.sky { --lh: clamp(4px, .55vw, 7px); --gap: clamp(5px, .7vw, 9px); position: relative; height: clamp(150px, 26vw, 330px); }
.sky .clip { position: absolute; left: 0; right: 0; top: 0; bottom: calc(var(--lh) + var(--gap)); overflow: hidden; }
.sun { position: absolute; left: 50%; bottom: 0; width: clamp(200px, 34vw, 460px); aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: var(--sodium); transform: translate(-50%, 36%); animation: rise 2.6s cubic-bezier(.16, .8, .2, 1) both; }
@keyframes rise { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 36%); } }
.sky .line { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: 0; height: var(--lh); border-radius: 99px; background: var(--bone); }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 2vw, 22px); padding-top: clamp(18px, 3vw, 34px); }
.wordmark { font-weight: 900; font-stretch: 125%; font-size: clamp(46px, 14.2vw, 196px); line-height: .86; letter-spacing: -.02em; }
.tag { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 4.4vw, 54px); line-height: 1.05; }
.hero-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 10px; }
.hero-row .meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--sodium); color: var(--on-sodium); border: 0; border-radius: 99px; padding: 16px 28px; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn[disabled] { background: var(--line); color: var(--dim); cursor: not-allowed; filter: none; }
.btn.ghost { background: none; color: var(--bone); border: 1px solid var(--bone); }
.btn.wide { width: 100%; }

/* sections */
.sec { padding-block: clamp(56px, 9vw, 112px); border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 4vw, 44px); }
.sec-head h2 { font-weight: 900; font-stretch: 125%; font-size: clamp(36px, 6.4vw, 76px); line-height: .92; }
.sec-head p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 28px); color: var(--bone); max-width: 30ch; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; min-width: 0; }
.shot { position: relative; aspect-ratio: 4 / 5; background: var(--stage); border-radius: 16px; overflow: hidden; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: opacity .35s ease, transform .5s ease; }
.shot img.alt { opacity: 0; }
a.card:hover .shot img.alt { opacity: 1; }
a.card:hover .shot img:not(.alt):not(:only-of-type) { opacity: 0; }
a.card:hover .shot img:only-of-type { transform: scale(1.03); }
.badge { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--bone); padding: 5px 9px; border-radius: 99px; }
.card-info { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-info h3 { font-weight: 800; font-stretch: 112%; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.2; min-width: 0; }
.price { font-family: var(--mono); font-weight: 700; color: var(--sodium); font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.teaser-note { margin-top: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); }
.teaser-note p { max-width: 60ch; }

/* product page */
.pdp { padding-block: clamp(20px, 4vw, 48px) clamp(56px, 9vw, 112px); }
.back { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-decoration: none; margin-bottom: 20px; }
.back:hover { color: var(--bone); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .pdp-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .buy { position: sticky; top: calc(var(--bar-h) + 56px); } }
.gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.main-shot { position: relative; aspect-ratio: 4 / 5; background: var(--stage); border-radius: 18px; overflow: hidden; }
.main-shot img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 auto; width: 76px; aspect-ratio: 4 / 5; background: var(--stage); border: 2px solid transparent; border-radius: 10px; padding: 4px; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--bone); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.buy h1 { font-weight: 900; font-stretch: 125%; font-size: clamp(30px, 4.2vw, 50px); line-height: .98; }
.buy .price { font-size: 22px; }
.opt { display: flex; flex-direction: column; gap: 10px; }
.opt .label b { color: var(--bone); }
.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch-row button { width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); cursor: pointer; outline-offset: 3px; }
.swatch-row button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 2px var(--ink), 0 0 0 4px var(--sodium); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.sizes button { height: 48px; border: 1px solid var(--line); background: none; border-radius: 10px; cursor: pointer; font-family: var(--mono); font-weight: 700; font-size: 14px; }
.sizes button:hover { border-color: var(--bone); }
.sizes button[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.sizes button:disabled { color: var(--dim); text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
.fine { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--dim); line-height: 1.7; }
.desc { white-space: pre-line; color: var(--bone); max-width: 60ch; border-top: 1px solid var(--line); padding-top: 20px; }
.size-guide { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.about-grid .big { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 4vw, 48px); line-height: 1.08; }
.about-copy { display: flex; flex-direction: column; gap: 16px; font-size: 17px; max-width: 62ch; color: var(--bone); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: clamp(32px, 5vw, 56px); }
.facts > div { background: var(--ink); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.facts b { font-family: var(--mono); font-size: 18px; font-variant-numeric: tabular-nums; }

/* states */
.notice { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.skeleton .shot { background: linear-gradient(100deg, var(--stage) 30%, #55524c 50%, var(--stage) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite linear; }
.skeleton .card-info span { display: block; height: 14px; width: 60%; border-radius: 6px; background: var(--line); }
@keyframes shimmer { to { background-position: -150% 0; } }

/* cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 40; background: var(--ink-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-weight: 900; font-stretch: 125%; font-size: 22px; }
.icon-btn { background: none; border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.line-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item .thumb { aspect-ratio: 4 / 5; background: var(--stage); border-radius: 10px; overflow: hidden; }
.line-item .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.li-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.li-meta { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; margin-top: 10px; }
.qty button { width: 34px; height: 34px; background: none; border: 0; cursor: pointer; font-size: 16px; }
.qty span { min-width: 24px; text-align: center; font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.li-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.drawer-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.empty { padding: 48px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty .serif { font-size: 26px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: var(--bone); color: var(--ink); padding: 12px 18px; border-radius: 99px; font-family: var(--mono); font-size: 13px; font-weight: 700; z-index: 60; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-direction: column; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand svg { width: 64px; }
.foot-brand .serif { font-size: 26px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 8px; color: var(--dim); font-size: 14.5px; }
.foot-cols a { color: var(--bone); }
.foot-line { color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  .sun { animation: none; }
  .status.live .dot { animation: none; }
  .drawer, .toast, .shot img { transition: none; }
  .skeleton .shot { animation: none; }
}
