:root {
  --bg: #ffffff;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.52);
  --line: rgba(23, 23, 26, 0.1);
  --accent: #2f5bff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
  overflow: hidden;
}

.cm { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: min(292px, 100%); }
.cm__card { display: block; padding: 6px 6px 10px; border: 0; border-radius: 18px; background: #f5f4f1; color: inherit; font: inherit; text-align: left; cursor: pointer; outline: none; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 #ffffff, 0 16px 24px -18px rgba(23, 23, 26, 0.45); transition: box-shadow 0.3s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cm__card:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
@media (hover: hover) { .cm__card:hover { box-shadow: inset 0 0 0 1px rgba(23, 23, 26, 0.2), inset 0 1px 0 #ffffff, 0 22px 28px -18px rgba(23, 23, 26, 0.55); } }

/* the print: flat shapes in two or three inks */
.cm__art { position: relative; display: block; height: min(112px, 28vh); border-radius: 13px; overflow: hidden; }
.cm__art i { position: absolute; display: block; }
.cm__art--tide { background: #f3ead9; }
.cm__art--tide i:nth-child(1) { left: -20%; right: -20%; bottom: -62%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.cm__art--tide i:nth-child(2) { left: 6%; right: -46%; bottom: -78%; aspect-ratio: 1; border-radius: 50%; background: #17171a; opacity: 0.9; }
.cm__art--tide i:nth-child(3) { right: 16%; top: 14%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #ff6b4a; }
.cm__art--dune { background: #f6dcc4; }
.cm__art--dune i:nth-child(1) { left: -30%; right: 20%; bottom: -74%; aspect-ratio: 1; border-radius: 50%; background: #e2703a; }
.cm__art--dune i:nth-child(2) { left: 24%; right: -40%; bottom: -84%; aspect-ratio: 1; border-radius: 50%; background: #7a3b1e; }
.cm__art--dune i:nth-child(3) { left: 14%; top: 16%; width: 30%; height: 3px; border-radius: 2px; background: #17171a; box-shadow: 0 7px 0 #17171a, 0 14px 0 #17171a; }
.cm__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 9px; padding: 0 5px; }
.cm__meta b { font-size: 13.500px; line-height: 18px; font-weight: 700; letter-spacing: -0.006em; white-space: nowrap; }
.cm__meta span { font-size: 13px; font-weight: 560; color: var(--soft); font-variant-numeric: tabular-nums; }

.cm__dim { position: absolute; inset: 0; background: rgba(23, 23, 26, 0.5); opacity: 0; pointer-events: none; z-index: 3; }
.cm__dim.is-on { pointer-events: auto; cursor: pointer; }
/* the window: it starts on top of the card, with the card's own look */
.cm__modal { position: absolute; left: 0; top: 0; z-index: 4; padding: 6px; border-radius: 18px; background: #ffffff; box-shadow: inset 0 0 0 1px var(--line), 0 34px 50px -22px rgba(23, 23, 26, 0.6); overflow: hidden; }
.cm__modal[hidden] { display: none; }
.cm__modal .cm__art { height: 112px; }
.cm__close { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.86); color: var(--ink); cursor: pointer; outline: none; box-shadow: 0 2px 6px -2px rgba(23, 23, 26, 0.4); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cm__close:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
.cm__close svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; }
.cm__body { display: block; }
.cm__modal .cm__meta { margin-top: 9px; padding: 0 5px; }
.cm__text { margin-top: 8px; padding: 0 5px; font-size: 13px; line-height: 18px; color: var(--soft); }
.cm__sizes { display: flex; gap: 6px; margin-top: 12px; padding: 0 5px; }
.cm__sizes button { height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: #f1f0ed; color: var(--soft); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; outline: none; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cm__sizes button[aria-checked="true"] { background: var(--ink); color: #ffffff; box-shadow: none; }
.cm__sizes button:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
.cm__buy { display: block; width: calc(100% - 10px); height: 44px; margin: 12px 5px 5px; border: 0; border-radius: 14px; background: var(--accent); color: #ffffff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 18px -12px var(--accent); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cm__buy:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #17171a; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); z-index: 6; }
