/* Layout concept: clippings pinned on a white wall. Light by choice. */
:root {
  --card: #ffffff;        /* page: white */
  --card-raised: #f1f0f3; /* behind images while they load */
  --rule: #e3e1e7;        /* hairlines */
  --paper: #16141a;       /* main text: near-black ink */
  --muted: #625d6b;       /* secondary text */
  --aura: #5b3fc4;        /* accent: the violet of the skies, deepened to read on white */

  --f-display: "Syne", "Arial Black", "Helvetica Neue", sans-serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-3: clamp(2.4rem, 1.6rem + 4vw, 5.2rem);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1320px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* anything marked hidden stays hidden, whatever its layout */
html { background: var(--card); }
body {
  margin: 0;
  background: var(--card);
  color: var(--paper);
  font: 400 var(--step-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.clip img, .lb-stage img {
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; /* stops the 'Save image' menu on iPhone long-press */
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--aura); outline-offset: 3px; }
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--card);
}
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.mark {
  display: flex; flex-direction: column; gap: 3px;
  text-decoration: none; line-height: 1;
}
.mark-top {
  font: 500 0.66rem/1 var(--f-data);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--aura);
}
.mark-main {
  font: 800 clamp(1.15rem, 1rem + 0.8vw, 1.5rem)/1 var(--f-display);
  letter-spacing: -0.02em; text-transform: uppercase;
}
.nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.nav a {
  font: 600 var(--step--1)/1 var(--f-body);
  text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none; color: var(--muted);
  padding-block: 10px; /* comfortable tap target */
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--aura); }

/* Page intro */
.intro { padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 44px); }
.intro h1 {
  font: 800 var(--step-3)/0.92 var(--f-display);
  letter-spacing: -0.035em; margin: 0 0 18px;
  text-wrap: balance;
}
.intro p { max-width: 58ch; margin: 0; color: var(--muted); font-size: var(--step-1); line-height: 1.45; }
.intro p a { color: var(--paper); text-underline-offset: 3px; }
.kicker {
  font: 500 var(--step--1)/1 var(--f-data);
  color: var(--aura); letter-spacing: 0.04em; margin: 0 0 16px;
}

/* Collage wall: masonry by CSS columns so every piece keeps its shape */
.wall { columns: 1; column-gap: clamp(12px, 2vw, 22px); padding-bottom: 72px; }
@media (min-width: 560px) { .wall { columns: 2; } }
@media (min-width: 900px) { .wall { columns: 3; } }
@media (min-width: 1240px) { .wall { columns: 4; } }
.clip {
  display: block; width: 100%; padding: 0; border: 0; background: var(--card-raised);
  margin: 0 0 clamp(12px, 2vw, 22px); break-inside: avoid; cursor: zoom-in;
  transition: box-shadow .25s ease;
}
.clip img { width: 100%; height: auto; }
.clip:hover { box-shadow: 0 14px 30px -12px rgba(22,20,26,.35); }

/* Shop */
.grid {
  display: grid; gap: clamp(20px, 3vw, 36px) clamp(14px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.item { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.item .frame { position: relative; aspect-ratio: 1 / 1; background: var(--card-raised); overflow: hidden; }
/* The square stays square; the image is scaled to fit entirely inside it,
   with the light background showing around it, so nothing is cropped. */
.item .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.item h3 { font: 700 var(--step-1)/1.15 var(--f-display); margin: 0; letter-spacing: -0.01em; }
.item h3.untitled { color: var(--muted); font-weight: 600; }
.meta { font: 400 var(--step--1)/1.5 var(--f-data); color: var(--muted); margin: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.price { font: 500 var(--step-0)/1 var(--f-data); font-variant-numeric: tabular-nums; }
.card-action { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 var(--step--1)/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 18px; border-radius: 2px;
  background: var(--aura); color: #ffffff; border: 1px solid var(--aura);
}
.btn:hover { background: var(--paper); border-color: var(--paper); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-wide { width: 100%; }
.added { font: 600 var(--step--1)/1.2 var(--f-body); color: var(--aura); }
.link-small {
  font: 600 var(--step--1)/1.2 var(--f-body); color: var(--muted);
  background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link-small:hover { color: var(--paper); }
.tag {
  font: 500 0.7rem/1 var(--f-data); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--rule); padding: 6px 8px; border-radius: 2px;
}
.item.is-sold .frame img { opacity: .5; filter: grayscale(.4); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--rule); margin-top: 64px; padding-top: 20px; margin-bottom: 24px;
}
.section-head h2 { font: 800 var(--step-1)/1 var(--f-display); margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.shop-note { color: var(--muted); font-size: var(--step--1); margin: 40px 0 72px; max-width: 70ch; }

/* Shop categories */
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font: 600 var(--step--1)/1 var(--f-body); letter-spacing: 0.02em;
  padding: 11px 16px; border-radius: 999px; color: var(--paper); border: 1px solid var(--rule);
}
.chip:hover { border-color: var(--paper); }
.chip .n { font: 400 0.78em/1 var(--f-data); color: var(--muted); }
.category { scroll-margin-top: 90px; padding-top: 8px; margin-bottom: 64px; }
.category-head { border-top: 1px solid var(--rule); padding-top: 22px; margin-bottom: 26px; max-width: 70ch; }
.category-head h2 { font: 800 var(--step-2, clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem))/1 var(--f-display); letter-spacing: -0.02em; margin: 0 0 8px; }
.category-head p { margin: 0; color: var(--muted); }
.coming-soon {
  margin: 0; padding: 28px 24px; background: var(--card-raised); color: var(--muted);
  font-size: var(--step-1); text-align: center;
}
.sold-head { font: 700 var(--step-0)/1 var(--f-display); color: var(--muted); margin: 40px 0 18px; }
.opt-select {
  font: inherit; font-size: var(--step--1); color: var(--paper); background: var(--card);
  border: 1px solid #c9c5cf; border-radius: 2px; padding: 11px 10px;
}
.added.warn { color: #b42318; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-family: var(--f-data); }
.qty-btn {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font: 600 1rem/1 var(--f-body);
  color: var(--paper); background: var(--card); border: 1px solid var(--rule);
}
.qty-btn:hover:not(:disabled) { border-color: var(--paper); }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Basket and order request */
.checkout { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 72px; }
@media (min-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.basket-col { min-width: 0; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.line {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center;
  padding-block: 14px; border-bottom: 1px solid var(--rule);
}
.line .thumb { width: 64px; height: 64px; object-fit: contain; background: var(--card-raised); grid-row: span 2; }
.line-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line .link-small { grid-column: 3; justify-self: end; }
.totals { display: flex; flex-direction: column; gap: 8px; padding-block: 16px 8px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted); }
.summary-row span:last-child { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.summary-row.total { color: var(--paper); font-size: var(--step-1); border-top: 1px solid var(--rule); padding-top: 10px; }
.summary-row.total strong { font-family: var(--f-data); font-weight: 500; }
.empty { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.empty a { color: var(--paper); }

.order { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.callout { background: var(--card-raised); border-left: 3px solid var(--aura); padding: 18px 20px; }
.callout h2 { font: 800 var(--step-0)/1.2 var(--f-display); margin: 0 0 6px; }
.callout p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
legend { font: 800 var(--step-1)/1.2 var(--f-display); padding: 0; margin-bottom: 4px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 2px; padding: 14px 16px;
}
.choice:hover { border-color: var(--muted); }
.choice:has(input:checked) { border-color: var(--aura); box-shadow: inset 0 0 0 1px var(--aura); }
.choice input { margin: 3px 0 0; accent-color: var(--aura); width: 18px; height: 18px; flex: none; }
.choice > span { display: flex; flex-direction: column; gap: 3px; font-weight: 600; }
.choice small { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.order label:not(.choice) { font-weight: 600; font-size: var(--step--1); margin-top: 4px; }
.opt { font-weight: 400; color: var(--muted); }
.order input:not([type=radio]), .order select, .order textarea {
  font: inherit; color: var(--paper); background: var(--card);
  border: 1px solid #c9c5cf; border-radius: 2px; padding: 11px 12px; width: 100%;
}
.order input:focus, .order select:focus, .order textarea:focus { outline: 2px solid var(--aura); outline-offset: 1px; border-color: var(--aura); }
.address { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 0 2px; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.two > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.form-error { color: #b42318; font-weight: 600; margin: 0; }

.confirmation { max-width: 62ch; padding-block: clamp(40px, 7vw, 88px) 72px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.confirmation h2 { font: 800 var(--step-3)/0.95 var(--f-display); letter-spacing: -0.03em; margin: 0; outline: none; }
.confirmation p { margin: 0; font-size: var(--step-1); line-height: 1.45; }
.confirmation dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; margin: 8px 0; }
.confirmation dt { font: 500 var(--step--1)/1.6 var(--f-data); color: var(--muted); }
.confirmation dd { margin: 0; }
.preview-note { background: #fff7e0; border: 1px solid #e8d48a; padding: 12px 14px; font-size: var(--step--1) !important; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100%; height: 100%; background: rgba(255, 255, 255, .98); color: var(--paper);
}
.lightbox::backdrop { background: rgba(255, 255, 255, .98); }
.lb-inner {
  height: 100%; display: grid; grid-template-rows: auto 1fr auto;
  padding: max(12px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter);
}
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb-count { font: 400 var(--step--1)/1 var(--f-data); color: var(--muted); }
.lb-stage { min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-block: 12px; }
.lb-stage img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lb-bottom { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--paper); border: 1px solid var(--rule); font: 400 1.3rem/1 var(--f-body);
}
.icon-btn:hover { border-color: var(--paper); }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px));
  color: var(--muted); font-size: var(--step--1);
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
