/* MRMCK. — The Stack (/stack/, formerly the Shop) page additions. Loaded after style.css; does not override it
   except where noted. Mobile-first; desktop uses the same u(n) scale as style.css. */

/* Utilities (.visually-hidden, .skip-link, focus ring, nav current page) moved to style.css. */

/* ---------- Hero ---------- */
.shop-hero {
  padding: 40px 20px 32px;
  border-bottom: 2px solid var(--black);
}
.shop-hero__title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 21vw;
  line-height: 0.93;
  letter-spacing: -0.019em;
  margin-top: 18px;
}
.shop-hero__body {
  font-size: 17px;
  line-height: 1.5;
  margin-top: 24px;
  max-width: 40em;
}

/* ---------- Grid ---------- */
.shop { padding: 40px 20px 64px; }
.shop-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.shop-card { display: flex; flex-direction: column; }
.shop-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--black);
}
/* Video course: a 16:9 slot (the YouTube thumbnail, 1280x720, drops in as images/shop/video-course.jpg).
   It sits at the top of its row cell; the titles below still line up with the square cards. */
.shop-card__img--wide { aspect-ratio: 16 / 9; align-self: start; }
.shop-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 14px;
}
/* Metadata: Inter Medium 500, 12px / 1.4, uppercase, " / " separators, set under the title
   (Typography guidelines §17; card pattern in WEB PROTOTYPE / WEBSITE WIREFRAME). */
.shop-card__type {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--grey);
  margin-top: 8px;
}
.shop-card__name {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}
/* Body Medium: Inter 400, 16px / 1.5 (Typography guidelines §9-10). */
.shop-card__desc {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 12px;
}
/* Price sits above a full-width button so long labels ("PAY WHAT YOU WANT") never squeeze
   the button, and margin-top: auto pins every foot to the card bottom so rows align. */
.shop-card__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 2px solid var(--black);
}
.shop-card__desc { margin-bottom: 20px; }
.shop-card__price {
  font-family: "Anton", sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
}
/* Currency tag after an amount ("$79 CAD"): same Anton, half size, sits on the baseline. */
.shop-card__currency {
  font-size: 0.5em;
  letter-spacing: 0.04em;
}
/* Buttons: Inter Medium 500, label + arrow (Typography guidelines §18; "READ THE BOOK →" /
   "LATEST THINKING →" buttons in WEB PROTOTYPE and MOOD BOARD).
   Paper on black (#0B0B0B): 17.9:1. Hover swaps to black on orange: 5.9:1. */
.shop-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  background: var(--black);
  color: var(--paper);
  border: 2px solid var(--black);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: left;
  padding-block: 10px;
  transition: background-color .15s, color .15s;
}
.shop-card__btn:hover { background: var(--orange); color: var(--black); }
.shop-card__arrow { flex: none; font-size: 1.15em; line-height: 1; }
.shop-note {
  margin-top: 48px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey);
}
.shop-note a { color: var(--black); text-decoration: underline; text-underline-offset: 0.2em; }

@media (prefers-reduced-motion: reduce) {
  .shop-card__btn { transition: none; }
}

/* Vault card: typographic tile instead of a product image (no Vault image exists yet). */
.shop-card .tile { width: 100%; }
.shop-card .tile__big { font-size: 64px; font-size: 19cqi; }

/* Quiet "Book a call" line under each item's button. */
.shop-card__call { font-size: 14px; margin-top: 2px; }

/* ---------- Brief Builder (coming soon) + beehiiv sign-up slot. The box and slot styles come from signup.css. ---------- */
.bb { margin-bottom: 64px; }
.bb__label { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--concrete); margin-bottom: 12px; }

/* ---------- Two columns ---------- */
@media (min-width: 600px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); column-gap: 24px; row-gap: 56px; }
}

/* ---------- Desktop (matches style.css breakpoint and u(n) scale) ---------- */
@media (min-width: 821px) {
  .shop-hero {
    margin-left: var(--margin);
    padding: calc(var(--u) * 26) var(--margin) calc(var(--u) * 64) 0;
  }
  .shop-hero__title {
    font-size: calc(var(--u) * 131);
    line-height: calc(var(--u) * 121);
    margin-top: calc(var(--u) * 33);
    margin-left: calc(var(--u) * 3);
  }
  .shop-hero__body {
    font-size: calc(var(--u) * 20.4);
    line-height: calc(var(--u) * 29);
    margin-top: calc(var(--u) * 40);
    margin-left: calc(var(--u) * 3);
    max-width: none;
  }
  .shop { padding: calc(var(--u) * 80) var(--margin) calc(var(--u) * 110); }
  .shop-grid { column-gap: calc(var(--u) * 36); }
  .shop-card__body { padding-top: calc(var(--u) * 15); }
  .shop-card__name { font-size: max(22px, calc(var(--u) * 26.5)); }
  .shop-card__desc { margin-bottom: calc(var(--u) * 24); }
  .shop-card__foot { padding-top: calc(var(--u) * 16); gap: calc(var(--u) * 14); }
  .shop-card__price { font-size: max(22px, calc(var(--u) * 26.5)); }
  .shop-card__btn { font-size: max(14px, calc(var(--u) * 15)); min-height: max(44px, calc(var(--u) * 50)); padding: 10px calc(var(--u) * 20); }
  .shop-note { margin-top: calc(var(--u) * 64); font-size: max(14px, calc(var(--u) * 16)); }
  .shop-card__call { font-size: max(13px, calc(var(--u) * 14)); }
  .bb { margin-bottom: calc(var(--u) * 110); }
}

/* ---------- 4 across from 1024px (2x2 between 600 and 1023), like the THINKING card row ---------- */
@media (min-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Row alignment: titles, metadata, descriptions and price/button rules line up across a row,
   even when a button label wraps. Falls back to the flex layout above without subgrid. ---------- */
@supports (grid-template-rows: subgrid) {
  .shop-card {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  /* Parent row gaps would be inherited between every subgrid row, so the space between
     cards moves onto the last row instead. */
  .shop-grid { row-gap: 0; }
  .shop-card__body { display: contents; }
  .shop-card__name { margin-top: 14px; }
  .shop-card__foot { margin-top: 0; margin-bottom: 48px; align-self: start; }
  .shop-note { margin-top: 0; }
}
@media (min-width: 600px) {
  @supports (grid-template-rows: subgrid) {
    .shop-grid { row-gap: 0; }
    .shop-card__foot { margin-bottom: 56px; }
  }
}
@media (min-width: 821px) {
  @supports (grid-template-rows: subgrid) {
    .shop-card__name { margin-top: calc(var(--u) * 15); }
  }
}
