/* imdUSD Shop, Drop 001. Bone and black, condensed display type, photos first. */
@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --bone: #f1eee6;
  --paper: #faf8f3;
  --ink: #0e0e0e;
  --grey: #6b6a66;
  --line: #d9d4c8;
  --green: #14b85a; /* the seal's centre mark */
  --danger: #b3261e;
  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --fast: 160ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --pad: 16px;
  color-scheme: light;
}
@media (min-width: 760px) { :root { --pad: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 14px/1.55 var(--mono); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
a { color: inherit; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.92; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bone); padding: 6px 10px; z-index: 30; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.kicker, .label, .crumb, .fine { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--bone); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--pad); height: 52px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 16px; width: auto; }
.brand-shop { font-family: var(--display); font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; padding-left: 12px; border-left: 1px solid #3a3a3a; line-height: 1; }
.top-nav { display: flex; align-items: center; gap: 20px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { text-decoration: underline; }
.top-nav .hide-sm { display: none; }
@media (min-width: 760px) { .top-nav .hide-sm { display: inline; } }
.bag-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.bag-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; background: var(--bone); color: var(--ink); font-size: 11px; }

/* ---- hero ---- */
.hero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-end; background: var(--ink); color: var(--bone); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0) 55%); }
/* No hero photo yet: the seal itself, huge, cropped off the edge. */
.hero:not(.has-photo)::before { content: ""; position: absolute; right: -18vmin; top: 50%; width: 92vmin; height: 92vmin; transform: translateY(-50%); background: url("/assets/seal-ivory.svg") center / contain no-repeat; opacity: 0.9; }
.hero-copy { position: relative; z-index: 1; padding: 0 var(--pad) clamp(28px, 6vw, 64px); width: 100%; max-width: 1280px; margin: 0 auto; }
.hero h1 { font-size: clamp(84px, 19vw, 260px); line-height: 0.84; margin: 14px 0 18px; }
.hero h1 span { display: block; }
.hero-sub { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 22px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid var(--ink); background: var(--ink); color: var(--bone); text-decoration: none; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; cursor: pointer; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.btn:hover { background: transparent; color: var(--ink); }
.btn.big { min-height: 58px; padding: 0 34px; font-size: 13px; }
.hero .btn { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.hero .btn:hover { background: transparent; color: var(--bone); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bone); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 4px 0; min-height: 32px; font-size: 12px; text-decoration: underline; cursor: pointer; color: var(--grey); }

/* ---- marquee ---- */
.marquee { background: var(--green); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); }
.marquee-run { display: flex; width: max-content; animation: run 38s linear infinite; }
.marquee span { font-family: var(--display); text-transform: uppercase; font-size: 22px; padding: 10px 0; white-space: nowrap; }
.marquee span::after { content: "✦"; font-family: var(--mono); font-size: 14px; margin: 0 22px; vertical-align: 3px; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---- drop grid ---- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 40px var(--pad) 18px; max-width: 1280px; margin: 0 auto; }
.section-head h2 { font-size: clamp(44px, 8vw, 96px); }
.section-head p { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--grey); }
.tiles { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--ink); border-block: 1px solid var(--ink); }
@media (min-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { display: block; text-decoration: none; background: var(--bone); }
.tile-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.tile-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 300ms var(--ease), transform 600ms var(--ease); }
.tile-img .alt { opacity: 0; }
.tile:hover .tile-img .alt { opacity: 1; }
.tile:hover .tile-img > img:first-child { transform: scale(1.02); }
.tag { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 11px; letter-spacing: 0.14em; background: var(--ink); color: var(--bone); padding: 4px 8px; }
.tile-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 16px var(--pad) 22px; }
.tile-meta h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 6px; }
.tile-right { display: grid; justify-items: end; gap: 8px; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dots { display: flex; gap: 5px; }
.dots i { display: block; width: 12px; height: 12px; border: 1px solid var(--ink); }

/* a redacted price (pre-launch): braille filler, as on imdusd.com's docs */
.redacted { color: color-mix(in srgb, var(--ink) 72%, transparent); font-size: 1.15em; user-select: none; -webkit-user-select: none; white-space: nowrap; letter-spacing: 0.04em; }
.redacted .unit { color: var(--ink); letter-spacing: 0; }

/* placeholder until a photo exists: the product's own mark on bone */
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper); }
.ph img { width: 46%; height: auto; opacity: 0.92; }
.ph span { position: absolute; bottom: 14px; right: 14px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.ph.big { position: relative; aspect-ratio: 4 / 5; }
.thumb .ph img { width: 60%; }
.thumb .ph span { display: none; }

/* ---- lookbook ---- */
.lookbook { padding-bottom: 8px; }
.strip { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--ink); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; flex: 0 0 80vw; scroll-snap-align: start; aspect-ratio: 4 / 5; }
@media (min-width: 760px) { .strip figure { flex-basis: 38vw; } }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---- pillars ---- */
.pillars { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); margin-top: 40px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillars > div { padding: 28px var(--pad); border-bottom: 1px solid var(--ink); }
@media (min-width: 760px) { .pillars > div { border-bottom: 0; } .pillars > div + div { border-left: 1px solid var(--ink); } }
.pillars h3 { font-size: 32px; margin-bottom: 10px; }
.pillars p { color: var(--grey); max-width: 36ch; }

/* ---- product page ---- */
.pd { display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) { .pd { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.gallery { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--ink); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 5; background: var(--paper); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .ph.big { flex: 0 0 100%; }
.gallery .ph img { width: 46%; height: auto; object-fit: contain; }
@media (min-width: 960px) { .gallery { flex-direction: column; overflow: visible; } .gallery figure, .gallery .ph.big { flex: none; } }
@media (min-width: 960px) { .buy { position: sticky; top: 52px; border-left: 1px solid var(--ink); min-height: calc(100vh - 52px); } }
.buy-inner { padding: 24px var(--pad) 40px; max-width: 560px; }
.crumb { color: var(--grey); }
.crumb a { color: inherit; }
.buy h1 { font-size: clamp(52px, 7vw, 92px); margin: 12px 0 10px; }
.pd-price { font-size: 18px; font-variant-numeric: tabular-nums; }
.pd-blurb { margin-top: 14px; color: var(--grey); max-width: 46ch; }
.opt { margin-top: 24px; }
.label { color: var(--grey); margin-bottom: 10px; }
.label span { color: var(--ink); }
.opts { display: flex; gap: 10px; }
.swatch-btn { width: 44px; height: 44px; padding: 4px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.swatch-btn i { display: block; width: 100%; height: 100%; border: 1px solid rgba(0,0,0,0.25); }
.swatch-btn[aria-pressed="true"] { border: 2px solid var(--ink); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.size { min-height: 48px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; transition: border-color var(--fast) var(--ease); }
.size:hover { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.size[disabled] { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.qty-row { display: flex; align-items: center; justify-content: space-between; }
.qty-row .label { margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--paper); }
.qty button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty output { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.buy .btn.big { margin-top: 24px; }
.fine { color: var(--grey); margin-top: 12px; }
.acc { border-top: 1px solid var(--ink); }
.buy .acc:first-of-type { margin-top: 28px; }
.acc:last-of-type { border-bottom: 1px solid var(--ink); }
.acc summary { cursor: pointer; list-style: none; padding: 14px 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 16px; line-height: 1; }
.acc[open] summary::after { content: "−"; }
.acc ul, .acc p { margin: 0 0 16px; color: var(--grey); padding-left: 0; list-style: none; }
.acc li { padding: 2px 0; }
.err { color: var(--danger); font-size: 13px; margin-top: 10px; }

/* ---- bag, order, info pages ---- */
.page { padding-top: 32px; padding-bottom: 64px; }
.page h1 { font-size: clamp(56px, 10vw, 120px); }
.cols { display: grid; gap: 32px; margin-top: 28px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; } }
@media (max-width: 899px) { .cols > .side { order: -1; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.thumb > img { width: 100%; height: 100%; object-fit: cover; }
.line-title { font-family: var(--display); text-transform: uppercase; font-size: 24px; line-height: 1; }
.line .meta { font-size: 12px; color: var(--grey); margin-top: 6px; }
.line-edit { display: flex; gap: 14px; margin-top: 6px; }
.summary, .panel { background: var(--paper); border: 1px solid var(--ink); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.summary h2, .panel h2 { font-size: 34px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.sum-row.total { border-top: 1px solid var(--ink); margin-top: 8px; padding-top: 12px; font-weight: 700; }
.form { display: grid; gap: 12px; margin-top: 20px; }
.form .two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form .f { display: grid; gap: 4px; }
.form label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey); }
.form input, .form select { font: inherit; font-size: 16px; color: var(--ink); background: var(--bone); border: 1px solid var(--line); border-radius: 0; min-height: 46px; padding: 8px 10px; width: 100%; }
.form input:focus, .form select:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.note { font-size: 12px; color: var(--grey); margin-top: 12px; }
.note a { color: inherit; }
.empty { padding: 48px 0; color: var(--grey); }
.amount { font-family: var(--display); font-size: clamp(44px, 7vw, 64px); line-height: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 12px; margin-top: 14px; }
.kv dt { color: var(--grey); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.status { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; padding: 4px 8px; background: var(--ink); color: var(--bone); }
.status.ok { background: var(--green); color: var(--ink); }
.status.bad { background: var(--danger); color: #fff; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.steps li { display: flex; gap: 12px; color: var(--grey); }
.steps li::before { content: ""; width: 10px; height: 10px; margin-top: 4px; border: 1px solid currentColor; flex: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--green); border-color: var(--ink); }
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now::before { background: var(--ink); }
.wallets { display: grid; gap: 8px; margin-top: 14px; }
.wallets .btn { justify-content: flex-start; }
.wallets img { width: 22px; height: 22px; }
.callout { padding: 12px 14px; font-size: 13px; margin-top: 14px; background: #efe4c8; border-left: 3px solid var(--ink); }
.callout.ok { background: #d8efe0; border-left-color: var(--green); }
.mono-s { font-size: 12px; overflow-wrap: anywhere; color: var(--grey); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 40px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--grey); }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 1.2em; }

/* ---- footer ---- */
.foot { background: var(--ink); color: var(--bone); }
.foot-big { font-family: var(--display); text-transform: uppercase; font-size: clamp(56px, 15vw, 210px); line-height: 0.84; padding: 36px var(--pad) 0; white-space: nowrap; overflow: hidden; }
.foot-grid { display: grid; gap: 8px; padding: 24px var(--pad) 28px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: #b9b5aa; max-width: 1280px; margin: 0 auto; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr auto; } }
.foot a { color: var(--bone); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bone); padding: 12px 18px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; max-width: calc(100vw - 32px); transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease); z-index: 40; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* Phone: the seal sits above the headline instead of under it. */
@media (max-width: 759px) { .hero:not(.has-photo)::before { top: 30%; right: -30vmin; width: 100vmin; height: 100vmin; opacity: 0.55; } }
