/* ============================================================================
   MONO — a storefront built to the Vercel Brand Guidelines (vercel.com/design.md).

   That system is deliberately at odds with the rest of this repo's themes, so
   this sheet is not a recolour of one. Its rules, and what each one costs here:

   - "Design in monochrome. Use colour only when it adds significant meaning to
     state, action, or data, and pair it with a non-colour cue." So there is no
     brand accent. The only colour on the page is error and success, and both
     also carry words.
   - No decorative gradients, glows, glass, textures or shadows. `--shadow` is
     none; depth is a hairline and a surface step, never a blur.
   - No all-caps eyebrows, no pills for ordinary metadata. Labels are sentence
     case; the classic sheet's pill nav and badges are squared off.
   - "Default to stillness." Card hover-lift, the grid's view transition and the
     price ticker are all switched off, not merely shortened.
   - Restrained, consistent radii; prose held near 60–68 characters.
   - Light and dark are both first class and follow the system, with no visible
     switcher. That is why this file carries a prefers-color-scheme block rather
     than a second theme.

   Loaded after styles.css, which supplies the structure for everything the
   storefront script builds. No DOM hook changes.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* surfaces */
  --mo-surface: #ffffff;
  --mo-surface-2: #fafafa;
  --mo-contrast: #171717;

  /* text */
  --mo-text: #171717;
  /* #595959 rather than a lighter grey: secondary text still has to be read,
     and this clears AA on both surfaces (7.0:1 / 6.7:1). */
  --mo-text-2: #595959;
  --mo-on-contrast: #ffffff;

  /* borders — the only hierarchy device this system allows besides space */
  --mo-border-subtle: #ebebeb;
  --mo-border: #e0e0e0;
  --mo-border-strong: #a1a1a1;

  /* state only, and never carried alone */
  --mo-error: #c11414;
  --mo-success: #0a7c42;

  /* re-point the classic tokens */
  --ink: var(--mo-text);
  --muted: var(--mo-text-2);
  --line: var(--mo-border);
  --line-strong: var(--mo-border-strong);
  --paper: var(--mo-surface);
  --panel: var(--mo-surface);
  --wash: var(--mo-surface-2);
  --accent: var(--mo-contrast);
  --pop: var(--mo-error);
  --ok: var(--mo-success);
  --brand: var(--mo-contrast);
  --bg: var(--mo-surface);

  --radius: 6px;
  --radius-sm: 4px;
  /* Shadows are a hard reject in this system. */
  --shadow: none;
  --shadow-soft: none;
  --header-h: 64px;

  --mo-sans: Geist, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mo-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --mo-prose: 64ch; /* the 60–68 character band */
}

@media (prefers-color-scheme: dark) {
  :root {
    --mo-surface: #000000;
    --mo-surface-2: #0a0a0a;
    --mo-contrast: #ededed;
    --mo-text: #ededed;
    --mo-text-2: #a1a1a1;
    --mo-on-contrast: #000000;
    --mo-border-subtle: #1a1a1a;
    --mo-border: #2e2e2e;
    --mo-border-strong: #6b6b6b;
    --mo-error: #ff6369;
    --mo-success: #3ecf8e;
  }
}

.mono {
  background: var(--mo-surface);
  color: var(--mo-text);
  font-family: var(--mo-sans);
  letter-spacing: 0;
}
.mono ::selection { background: var(--mo-text); color: var(--mo-surface); }
/* A focus ring that is always visible, on both schemes. */
.mono :focus-visible { outline: 2px solid var(--mo-text); outline-offset: 2px; border-radius: 2px; }
.mono .skip-link { background: var(--mo-contrast); color: var(--mo-on-contrast); border-radius: var(--radius-sm); }

/* ---------- Header ---------- */
/* The classic header washes a camo tile behind itself. Texture is a hard reject
   here, so the tile goes and a hairline does the separating. */
.mono .topbar {
  background: var(--mo-surface);
  border-bottom: 1px solid var(--mo-border);
  backdrop-filter: none;
  padding: 0 var(--mo-gutter, clamp(16px, 4vw, 40px));
  gap: clamp(16px, 3vw, 40px);
}
.mono .brand { gap: 8px; }
.mono .brand-mark {
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  background: var(--mo-contrast); color: var(--mo-on-contrast);
}
.mono .brand-glyph { width: 16px; height: 16px; }
.mono .brand-word { font-size: 15px; font-weight: 600; letter-spacing: 0; }

/* The pill nav becomes plain controls: no capsule, no fill, no badge bubble. */
.mono .pillnav {
  background: none; border: 0; box-shadow: none;
  border-radius: 0; padding: 0; gap: 4px; margin-left: auto;
}
.mono .pill {
  min-height: 34px; padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 400;
  color: var(--mo-text-2);
  transition: color 0.12s ease, background 0.12s ease;
}
.mono .pill:hover { background: var(--mo-surface-2); color: var(--mo-text); }
/* Current page is stated by aria-current and by weight, not only by a fill. */
.mono .pill.is-active { background: none; color: var(--mo-text); font-weight: 500; }
.mono .pill.is-active:hover { background: var(--mo-surface-2); }
.mono .pill-cart { padding-right: 10px; }
/* The classic badge is a grid so its digit centres in a circle. Here it is
   plain text in parentheses, and it has to stop being a grid or each
   parenthesis lands on its own row. */
.mono .cart-badge {
  display: inline; min-width: auto; height: auto; padding: 0;
  border-radius: 0; background: none;
  color: var(--mo-text); font-family: var(--mo-mono); font-size: 13px; font-weight: 400;
}
.mono .cart-badge::before { content: "("; }
.mono .cart-badge::after { content: ")"; }
.mono .pill.is-active .cart-badge { background: none; color: var(--mo-text); }

/* ---------- Opening ---------- */
/* A claim, its proof and its context, left aligned on the reading measure. Not
   a centred hero. */
.mono .mo-opening {
  padding: clamp(40px, 7vw, 88px) var(--mo-gutter, clamp(16px, 4vw, 40px)) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--mo-border-subtle);
}
/* Plain production metadata. */
.mono .mo-now {
  display: block;
  margin-bottom: 18px;
  color: var(--mo-text-2);
  font-size: 14px;
}
.mono .mo-now-text { display: inline-block; min-width: min(24em, 100%); }
.mono .mo-now .cfx { color: var(--mo-text); font-weight: 500; }

.mono .mo-claim {
  max-width: 20ch;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.mono .mo-lede {
  max-width: var(--mo-prose);
  margin-top: 16px;
  color: var(--mo-text-2);
  font-size: 16px;
  line-height: 1.6;
}
.mono .mo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mono .mo-actions .btn { min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm); font-size: 14px; }

/* Facts as a definition list on one baseline, not repeated metric boxes. */
.mono .mo-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px 28px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--mo-border-subtle);
}
.mono .mo-facts > div { display: grid; gap: 4px; align-content: start; min-width: 0; }
.mono .mo-facts dt { color: var(--mo-text-2); font-size: 13px; }
.mono .mo-facts dd {
  margin: 0;
  font-size: 15px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---------- Section + toolbar ---------- */
.mono main { padding-top: clamp(28px, 4vw, 44px); }
.mono .mo-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 0 var(--mo-gutter, clamp(16px, 4vw, 40px));
}
.mono .mo-section-head h2 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.mono .mo-section-head p { margin-top: 6px; color: var(--mo-text-2); font-size: 14px; max-width: var(--mo-prose); }

.mono .toolbar { padding: 22px var(--mo-gutter, clamp(16px, 4vw, 40px)) 14px; gap: 12px; }
.mono .search {
  border: 1px solid var(--mo-border); border-radius: var(--radius-sm);
  background: var(--mo-surface); color: var(--mo-text-2);
  max-width: 320px; padding: 0 12px;
}
.mono .search:focus-within { border-color: var(--mo-border-strong); }
.mono .search input { min-height: 38px; font-size: 14px; }
.mono .search input::placeholder { color: var(--mo-text-2); }
.mono .search-clear { border-radius: var(--radius-sm); }
.mono .search-clear:hover { background: var(--mo-surface-2); color: var(--mo-text); }
.mono .count { font-size: 14px; color: var(--mo-text-2); font-variant-numeric: tabular-nums; }
.mono .count strong { font-weight: 500; }
.mono .density input[type="range"] { accent-color: var(--mo-text); }

/* ---------- Product grid ---------- */
/* Peer objects on a shared grid. One hairline each, no card chrome stacked on
   top of the panel that already contains them. */
.mono .grid { padding: 8px var(--mo-gutter, clamp(16px, 4vw, 40px)) 56px; gap: clamp(12px, 1.4vw, 18px); }
.mono .card {
  background: var(--mo-surface);
  border: 1px solid var(--mo-border-subtle);
  border-radius: var(--radius);
  padding: 0 0 12px;
  overflow: hidden;
}
.mono .card:hover {
  /* Stillness: the border states the hover, nothing moves. */
  transform: none;
  box-shadow: none;
  border-color: var(--mo-border-strong);
}
.mono .card-img { border-radius: 0; background: var(--mo-surface-2); border-bottom: 1px solid var(--mo-border-subtle); }
.mono .card-add {
  width: 30px; height: 30px;
  right: 8px; bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--mo-contrast); color: var(--mo-on-contrast);
  box-shadow: none;
  /* Shown at rest rather than revealed on hover: an action that only exists
     while the pointer is over it cannot be found by anyone else. */
  opacity: 1; transform: none;
}
.mono .card-add:hover { background: var(--mo-text); }
.mono .card-add.added { background: var(--mo-success); color: var(--mo-surface); }
.mono .card-foot { padding: 10px 12px 0; align-items: baseline; }
.mono .card-name { font-size: 14px; font-weight: 500; letter-spacing: 0; }
.mono .card-price { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mono .empty-grid { color: var(--mo-text-2); }

.mono .dot { background: var(--mo-surface); box-shadow: 0 0 0 1px var(--mo-border-strong); }
.mono .dot.is-active { background: var(--mo-text); }
.mono .carousel-arrow { background: var(--mo-surface); border: 1px solid var(--mo-border); color: var(--mo-text); box-shadow: none; }
.mono .mute-btn { background: var(--mo-contrast); color: var(--mo-on-contrast); }

/* ---------- Footer ---------- */
.mono .footer { border-top: 1px solid var(--mo-border); margin-top: 0; }
/* The giant wordmark is ornament, and this system rejects ornament. */
.mono .footer-wordmark { display: none; }
.mono .footer-bar {
  padding: 22px var(--mo-gutter, clamp(16px, 4vw, 40px)) 32px;
  font-size: 13px; color: var(--mo-text-2);
}
.mono .footer-bar nav { gap: 16px; flex-wrap: wrap; }
.mono .link-btn { color: var(--mo-text-2); font-weight: 400; }
.mono .link-btn:hover, .mono .footer-bar a:hover { color: var(--mo-text); text-decoration: underline; }

/* ---------- Controls ---------- */
.mono .btn { border-radius: var(--radius-sm); font-weight: 500; }
.mono .btn-primary { background: var(--mo-contrast); color: var(--mo-on-contrast); }
.mono .btn-primary:hover { background: var(--mo-text); }
.mono .btn-ghost { background: var(--mo-surface); border-color: var(--mo-border); color: var(--mo-text); }
.mono .btn-ghost:hover { background: var(--mo-surface-2); }
.mono .btn-primary.loading::before { border-color: rgba(255, 255, 255, 0.4); border-top-color: var(--mo-on-contrast); }
.mono .icon-btn { border-radius: var(--radius-sm); background: var(--mo-surface); border-color: var(--mo-border); }
.mono .icon-btn:hover { background: var(--mo-surface-2); }

/* ---------- Overlays ---------- */
.mono .overlay-scrim { background: rgba(0, 0, 0, 0.5); }
.mono .drawer, .mono .modal {
  background: var(--mo-surface);
  border: 1px solid var(--mo-border);
  border-radius: var(--radius);
  box-shadow: none;
}
.mono .drawer { border-radius: 0; border-right: 0; }
.mono .drawer-head, .mono .modal-head { border-bottom-color: var(--mo-border-subtle); }
.mono .drawer-foot { border-top-color: var(--mo-border-subtle); }
.mono .drawer-head h2, .mono .modal-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.mono .cart-item { border-color: var(--mo-border-subtle); border-radius: var(--radius-sm); background: var(--mo-surface); }
.mono .cart-item img { background: var(--mo-surface-2); border-radius: var(--radius-sm); }
.mono .qty-btn, .mono .remove-btn { border-radius: var(--radius-sm); background: var(--mo-surface); border-color: var(--mo-border); }
.mono .qty-btn:hover, .mono .remove-btn:hover { background: var(--mo-surface-2); }

/* ---------- Forms ---------- */
/* Native controls, visible labels, helpers only where they earn their place. */
.mono .checkout-form label { font-weight: 500; font-size: 13px; }
.mono .checkout-form input:not([type="radio"]):not([type="checkbox"]),
.mono .checkout-form textarea,
.mono .qty-select select,
.mono .artwork-input,
.mono .personalize-field input[type="text"] {
  background: var(--mo-surface);
  border: 1px solid var(--mo-border);
  border-radius: var(--radius-sm);
  color: var(--mo-text);
  font-size: 14px;
}
.mono .checkout-form input::placeholder, .mono .checkout-form textarea::placeholder { color: var(--mo-text-2); }
.mono .checkout-form input:not([type="radio"]):not([type="checkbox"]):focus,
.mono .checkout-form textarea:focus {
  outline: none;
  border-color: var(--mo-text);
  box-shadow: 0 0 0 1px var(--mo-text);
}
/* An invalid field is marked by its border AND by the message underneath it,
   which the classic sheet already renders. Colour is never the only signal. */
.mono .checkout-form input[aria-invalid="true"], .mono .checkout-form textarea[aria-invalid="true"] {
  border-color: var(--mo-error);
}
.mono .checkout-form input[aria-invalid="true"]:focus, .mono .checkout-form textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 1px var(--mo-error);
}
.mono .field-err { color: var(--mo-error); font-weight: 400; }
.mono .field-note.ok { color: var(--mo-success); }
.mono .field-note.error { color: var(--mo-error); }
.mono .shipping-field { border-color: var(--mo-border-subtle); border-radius: var(--radius-sm); }
.mono .shipping-field legend { font-weight: 500; text-transform: none; letter-spacing: 0; }
.mono .shipping-option { background: var(--mo-surface); border-color: var(--mo-border); border-radius: var(--radius-sm); }
.mono .shipping-option:has(input:checked) { border-color: var(--mo-text); box-shadow: inset 0 0 0 1px var(--mo-text); background: var(--mo-surface-2); }
.mono .shipping-option input { accent-color: var(--mo-text); }
.mono .summary { background: var(--mo-surface-2); border-color: var(--mo-border-subtle); border-radius: var(--radius-sm); }
.mono .line-total { border-top-color: var(--mo-border); }
.mono .checkout-form .btn-primary { border-radius: var(--radius-sm); }
.mono .secure-note { color: var(--mo-text-2); }
.mono .form-msg.error { color: var(--mo-error); }
.mono .form-msg.ok { color: var(--mo-success); }

/* ---------- Detail ---------- */
.mono .detail-media { background: var(--mo-surface-2); }
.mono .detail-title { font-weight: 600; letter-spacing: -0.02em; }
.mono .detail-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.mono .detail-desc { max-width: var(--mo-prose); color: var(--mo-text-2); }
.mono .detail-actions .btn { border-radius: var(--radius-sm); }
.mono .detail-add.added { background: var(--mo-success); color: var(--mo-surface); border-color: var(--mo-success); }
.mono .acc { border-top-color: var(--mo-border-subtle); }
.mono .opt-label { font-weight: 500; color: var(--mo-text-2); }
.mono .opt-required { color: var(--mo-error); }
.mono .size-opt, .mono .design-opt {
  background: var(--mo-surface); border-color: var(--mo-border); border-radius: var(--radius-sm);
}
.mono .size-opt:hover, .mono .design-opt:hover { background: var(--mo-surface-2); }
.mono .size-opt.is-selected, .mono .design-opt.is-selected {
  border-color: var(--mo-text); box-shadow: inset 0 0 0 1px var(--mo-text); background: var(--mo-surface-2);
}
.mono .design-thumb { background: var(--mo-surface-2); border-radius: var(--radius-sm); }
.mono .spec li span:first-child { color: var(--mo-text-2); }
.mono .muted-p { max-width: var(--mo-prose); }

/* Mono is for what it is for: identifiers, and figures read against each other. */
.mono .card-price, .mono .detail-price, .mono .size-price,
.mono .summary, .mono .cart-qty strong, .mono .mo-facts dd {
  font-feature-settings: "tnum" 1;
}
.mono .mo-id { font-family: var(--mo-mono); font-size: 12px; color: var(--mo-text-2); }

/* ---------- Toast ---------- */
.mono .toast {
  background: var(--mo-contrast); color: var(--mo-on-contrast);
  border-radius: var(--radius-sm); box-shadow: none; font-weight: 500;
}

/* ---------- Stillness ---------- */
/* The grid density control cross-fades the whole document on the other themes.
   That is spectacle for a layout change nobody asked to watch. */
.mono ::view-transition-old(root), .mono ::view-transition-new(root) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .mono .card, .mono .card-add, .mono .pill { transition: none; }
  .mono .card:hover { transform: none; }
}

@media (max-width: 860px) {
  .mono .search { max-width: none; }
}
@media print {
  .mono .topbar, .mono .toolbar, .mono .overlay, .mono .toast, .mono .mo-actions { display: none !important; }
  .mono { background: #fff; color: #000; }
}
