/* The Forty-Eight pre-order page (I-0599). The White Mountains page's look (cream paper, dark ink,
   maple red; copied from the shops page so neither page links the other's files), plus the terms box,
   the counter and the buy row. */

body.fe-page { background: #F3ECDC; }

.fe {
  --paper: #F3ECDC;
  --paper-2: #EAE0CB;
  --paper-3: #DFD2B8;
  --ink: #1E2626;
  --ink-2: #3E4644;
  --ink-3: #5E6461;
  --line: rgba(30, 38, 38, 0.16);
  --card: #FBF7EE;
  --accent: #A32C24;
  --accent-press: #8A241D;
  --accent-ink: #FFFFFF;
  --maple: #A32C24;
  color: var(--ink);
}
@media (min-width: 1024px) { .fe { --page: 1180px; } }
.fe a:not(.btn) { color: inherit; }

/* --- Hero ------------------------------------------------------------------------------ */
.m-hero { padding: var(--s5) 0 var(--s6); max-width: 46rem; }
.m-kicker {
  margin: 0 0 var(--s3); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--maple);
}
.m-title {
  margin: 0 0 var(--s4); font-family: var(--font-display); font-weight: 600; font-size: 2rem;
  line-height: 1.08; letter-spacing: 0.01em; text-wrap: balance;
}
.m-pitch { margin: 0 0 var(--s4); font-size: var(--text-l); line-height: 1.5; color: var(--ink-2); }
.m-glance {
  margin: 0 0 var(--s5); padding: var(--s3) var(--s4); border-left: 3px solid var(--maple);
  background: var(--paper-2); border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: var(--text-s); line-height: 1.5;
}
.m-glance b { font-weight: 700; }
.m-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin: 0; }

/* --- The four decks together ------------------------------------------------------------ */
.m-four { display: grid; gap: var(--s6); padding-bottom: var(--s6); }
.m-tile { display: block; text-decoration: none; }
.m-tile picture img { display: block; width: 100%; height: auto; border-radius: var(--radius-m);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.m-tile b { display: block; margin: var(--s3) 0 var(--s1); font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-l); line-height: 1.25; }
.m-tile span { display: block; color: var(--ink-2); line-height: 1.5; }
.m-tile:hover b { color: var(--maple); }

/* --- Sections -------------------------------------------------------------------------- */
.m-block { padding: var(--s8) 0 var(--s4); border-top: 1px solid var(--line); }
.m-hero + .m-block { border-top: 0; }
.m-h2 {
  margin: 0 0 var(--s4); font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl);
  letter-spacing: 0.02em;
}
.m-h2::after { content: ""; display: block; width: 44px; height: 2px; margin-top: var(--s2); background: var(--maple); }
.m-h3 {
  margin: var(--s8) 0 var(--s3); font-family: var(--font-display); font-weight: 600; font-size: var(--text-l);
}
.m-sub { margin: 0; color: var(--ink-2); }
.m-sub a { font-weight: 600; color: var(--maple) !important; text-decoration: underline; text-underline-offset: 3px; }
.m-note { margin: var(--s4) 0 0; color: var(--ink-2); }



/* Every card: three across on a phone */
/* --- One deck ------------------------------------------------------------------------------ */
.m-lede { max-width: 46rem; margin: 0 0 var(--s5); font-size: var(--text-l); line-height: 1.5; color: var(--ink-2); }
.m-main { display: grid; gap: var(--s5); }
.m-product { margin: 0; }
.m-product img { display: block; width: 100%; height: auto; border-radius: var(--radius-m);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.m-specs { margin: 0; padding: 0 0 0 1.2em; line-height: 1.5; }
.m-specs li { margin-bottom: var(--s2); }
.m-specs li::marker { color: var(--maple); }
.m-layout { margin: var(--s8) 0 0; }
.m-layout img { display: block; width: 100%; height: auto; border-radius: var(--radius-s);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.m-layout figcaption { margin-top: var(--s2); font-size: var(--text-s); color: var(--ink-2); }
.m-game { max-width: 46rem; margin-top: var(--s6); padding: var(--s4) var(--s5); background: var(--paper-2);
  border-radius: var(--radius-s); line-height: 1.5; }
.m-game p { margin: 0 0 var(--s3); }
.m-game p:last-child { margin-bottom: 0; }
.m-hook { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--maple); }
.m-trick { font-size: var(--text-s); color: var(--ink-2); }
.m-signs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.m-signs li { display: flex; gap: var(--s4); align-items: flex-start; }
.m-signs img { flex: none; width: 52px; height: 52px; object-fit: contain; }
.m-signs b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-l); }
.m-signs span { color: var(--ink-2); line-height: 1.5; }
.m-h3 + .m-sub { margin-bottom: var(--s4); }

.m-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4) var(--s3); }
.m-cards li { min-width: 0; }
.m-cards a { display: block; border-radius: 4.7%/3.4%; }
.m-cards img {
  display: block; width: 100%; height: auto; border-radius: 4.7%/3.4%;
  box-shadow: 0 1px 2px rgba(40, 30, 10, 0.12), 0 6px 14px rgba(40, 30, 10, 0.16);
  transition: transform var(--dur-1) var(--ease-out);
}
.m-cards a:hover img { transform: translateY(-3px); }
.m-cards span { display: block; margin-top: var(--s2); font-size: var(--text-xs); line-height: 1.3; color: var(--ink-2); }


/* --- Terms and ordering ----------------------------------------------------------------- */
.m-facts { margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 34rem; }
.m-facts div { display: flex; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.m-facts dt { flex: 0 0 9.5rem; color: var(--ink-3); }
.m-facts dd { margin: 0; font-weight: 600; }
.m-run { max-width: 34rem; margin: var(--s5) 0 0; line-height: 1.5; }
.m-order p { max-width: 34rem; margin: 0; font-size: var(--text-l); line-height: 1.5; }
.m-order a { font-weight: 600; color: var(--maple) !important; text-decoration: underline; text-underline-offset: 3px;
  overflow-wrap: anywhere; }
.m-pdf { margin-top: var(--s4) !important; font-size: var(--text-m) !important; }
.m-made p { max-width: 34rem; margin: 0; font-size: var(--text-s); line-height: 1.5; color: var(--ink-3); }

/* --- The card viewer --------------------------------------------------------------------- */
.m-viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 24, 24, 0.92); color: #F3ECDC;
}
.m-viewer[open] { display: flex; align-items: center; justify-content: center; }
.m-viewer::backdrop { background: transparent; }
.m-viewer figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.m-viewer img { display: block; max-width: min(88vw, 520px); max-height: calc(100dvh - 120px); width: auto; height: auto;
  border-radius: 4.7%/3.4%; }
.m-viewer figcaption { font-family: var(--font-display); font-size: var(--text-l); text-align: center; padding: 0 var(--s4); }
.m-viewer button {
  position: absolute; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%;
  background: rgba(243, 236, 220, 0.12); color: #F3ECDC; font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.m-close { top: calc(var(--s3) + var(--safe-top)); right: var(--s3); }
.m-prev, .m-next { top: 50%; transform: translateY(-50%); }
.m-prev { left: var(--s2); }
.m-next { right: var(--s2); }

@media (min-width: 560px) {
  .m-four { grid-template-columns: repeat(2, 1fr); gap: var(--s8) var(--s5); }
  .m-cards { grid-template-columns: repeat(5, 1fr); }
  .m-cards span { font-size: var(--text-s); }
}
@media (min-width: 1024px) {
  .m-hero { padding: var(--s10) 0 var(--s8); }
  .m-title { font-size: var(--text-3xl); }
  .m-four { gap: var(--s10) var(--s8); }
  .m-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s10); align-items: center; }
  .m-signs { grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s8); }
  .m-h2 { font-size: var(--text-2xl); }
  .m-cards { grid-template-columns: repeat(7, 1fr); gap: var(--s6) var(--s5); }
  .m-block { padding: var(--s10) 0 var(--s6); }
  /* terms and how to order side by side */
  .m-deal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s12);
    border-top: 1px solid var(--line); }
  .m-deal > .m-block { border-top: 0; }
  .m-prev { left: var(--s8); }
  .m-next { right: var(--s8); }
}

/* --- Pre-order: price, counter, button, terms ------------------------------------------- */
.p-price { margin: 0 0 var(--s3); display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.p-price .display { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); }
.p-price-note { color: var(--ink-2); }
.p-count { margin: 0 0 var(--s3); font-weight: 600; color: var(--maple); }
.p-count[hidden] { display: none; }
.p-buy { min-height: 52px; display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s4); }
.p-buy .buy-row { max-width: 26rem; }
.p-closed { margin: 0; font-weight: 600; }
.p-terms {
  max-width: 34rem; margin: 0 0 var(--s4); padding: var(--s4) var(--s5); border: 2px solid var(--maple);
  border-radius: var(--radius-s); background: var(--card); line-height: 1.5;
}
.p-terms h2 { margin: 0 0 var(--s2); font-family: var(--font-display); font-weight: 600; font-size: var(--text-l); }
.p-terms ul { margin: 0; padding: 0 0 0 1.2em; }
.p-terms li { margin-bottom: var(--s1); }
.p-terms li::marker { color: var(--maple); }
.p-thanks {
  max-width: 34rem; margin: 0 0 var(--s4); padding: var(--s4); border-radius: var(--radius-s);
  background: var(--paper-2); border-left: 3px solid var(--maple);
}
.p-thanks strong { display: block; font-family: var(--font-display); font-size: var(--text-l); margin-bottom: var(--s1); }
.p-thanks p { margin: var(--s1) 0 0; font-size: var(--text-s); color: var(--ink-2); }
.p-hero-img { margin: 0 0 var(--s5); }
.p-hero-img img { display: block; width: 100%; height: auto; border-radius: var(--radius-m);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.p-drawer-terms { margin: 0 0 var(--s3); font-size: var(--text-s); color: var(--ink-2); line-height: 1.45; }
@media (min-width: 1024px) {
  .p-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s10); align-items: start;
    padding: var(--s8) 0; }
  .p-top .m-hero { padding: 0; }
  .p-hero-img { margin: 0; }
}
/* one price at any quantity: the drawer's price-break tiles would show a single "$30 1+" */
body.fe-page .buy-sheet .qp-breaks { display: none; }
/* "The Forty-Eight" on one line: never broken at its hyphen */
.p-top .m-title { white-space: nowrap; }
@media (min-width: 1024px) { .p-top .m-title { font-size: var(--text-2xl); } }
