/* ========================================================================
   LANDING PAGES - product cards
   Loaded ONLY by landing pages (templates/landing.html), after the shared
   /styles.css, and every rule is scoped under body.lp-page, so nothing here
   can reach the article pages even if this file were loaded by one.

   Everything above the cards is NOT styled here. The container ladder
   (728 / 610 / 820 / 970), kicker, h1, dek, byline row, hero, credit and the
   disclaimer box are the article pages' own markup and their own rules in
   styles.css.

   The card (.lp-card) reproduces the approved mock-up's .prod card
   (petite-fall-fashion-amazon2.html) value for value: 220px square photo box
   with a "% off" badge 10px in from the top-left, 22px gap, 24px vertical
   padding, number + Editor's Pick row, 21px name, 17px / 1.55 description,
   price row (22px price, struck list price, "Save $X"), 46px buy button
   reading "$X at Amazon", photo full-width under 560px. The card also uses
   the mock-up's own families and weights: Archivo (700-900) for the number,
   pick tag, name, price and button, and Source Serif 4 for the description
   (the user's call, 2026-11-18: the condensed --display face read too small
   and narrow next to the mock-up). Only the colour is the replica's: the
   mock-up's red #D4001F becomes --accent, so the cards match the masthead.

   Both fonts are served locally like every other font here (no Google
   Fonts hotlink): the latin subsets of the variable fonts, one file each,
   SIL OFL 1.1 (assets/fonts/OFL-Archivo.txt, OFL-SourceSerif4.txt). The
   url()s are relative to THIS file, which build.sh keeps at the dist root
   and checks resolves. Only the cards use them; the h2, intro and the rest
   of the page keep the article's own type.
   ======================================================================== */

@font-face {
  font-display: swap;
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  src: url(assets/fonts/Archivo-Variable-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-display: swap;
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  src: url(assets/fonts/SourceSerif4-Variable-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

.lp-page {
  --lp-line: #e1e1e1;          /* the replica header's hairline colour */
  --lp-accent-dark: #b8005c;   /* --accent (#e70074), darkened for hover */
  --lp-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lp-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --lp-copy: #333;             /* the mock-up's description grey */
  --lp-mut: #595959;           /* the mock-up's muted grey (struck price) */
}

/* The disclaimer box keeps the article's .disclaimer rules; here it opens the
   column, so its top margin would double the 30px .content-head already
   leaves under the byline. */
.lp-page .lp-disclaimer { margin-top: 0; }

/* Mirrors .article-content: the body copy scale. */
.lp-page .lp-body {
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

.lp-page .lp-body > p {
  margin: 0 0 var(--body-space);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--body-size);
  font-weight: 300;
  line-height: var(--body-leading);
}
.lp-page .lp-body > p a {
  color: var(--accent);
  font-weight: 300;
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* Jump-to pills: rendered only when the article has subheads to jump to. */
.lp-page .lp-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--body-space);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
}
.lp-page .lp-toc b {
  color: var(--meta);
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lp-page .lp-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}
.lp-page .lp-toc a:hover { background: var(--ink); color: var(--page); }

/* --- section heading: the article h2, verbatim values ------------------ */

/* The mock-up's section rule: a 3px ink line under the heading, so the list
   opens with a line, then the date stamp under it, then the cards. */
.lp-page .lp-section__title {
  margin: 32px 0 0;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ink);
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--h2-size);
  font-weight: 700;
  line-height: var(--h2-leading);
  letter-spacing: 0.3px;
  text-align: center;
}

/* "Product prices and availability are accurate as of <date>" - the date
   stamp, under the section rule, only when the page shows prices. */
.lp-page .lp-asof {
  margin: 12px 0 0;
  color: var(--meta);
  font-family: var(--text);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
}

/* --- product cards: the mock-up's .prod ------------------------------- */

.lp-page .lp-card {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--lp-line);
}

/* .ph: a 220px square. The photos are full-length shots on white, so they
   are contained, never cropped, and multiplied onto the soft box so their
   white background disappears into it instead of showing as a white
   rectangle. */
.lp-page .lp-card__media {
  position: relative;
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--disc-bg);
  text-decoration: none;
}
.lp-page .lp-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
/* .phl */
.lp-page .lp-card__placeholder {
  color: var(--lp-mut);
  font-family: var(--lp-sans);
  font-size: 13px;
  font-weight: 400;
}
.lp-page .lp-card__media--empty:hover .lp-card__placeholder { color: var(--accent); }

/* .badge */
.lp-page .lp-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 9px;
  background: var(--accent);
  color: var(--page);
  font-family: var(--lp-sans);
  font-size: 13px;
  font-weight: 800;
  line-height: normal;
}

/* .pb */
.lp-page .lp-card__body {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* .meta / .num / .pick */
.lp-page .lp-card__meta { display: flex; align-items: center; gap: 10px; }
.lp-page .lp-card__num {
  color: var(--accent);
  font-family: var(--lp-sans);
  font-size: 15px;
  font-weight: 900;
  line-height: normal;
}
.lp-page .lp-card__pick {
  padding: 4px 8px;
  background: var(--ink);
  color: var(--page);
  font-family: var(--lp-sans);
  font-size: 11px;
  font-weight: 800;
  line-height: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* .pb h3 */
.lp-page .lp-card__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--lp-sans);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

/* .pb p */
.lp-page .lp-card__desc {
  margin: 0;
  color: var(--lp-copy);
  font-family: var(--lp-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

/* .price / .save */
.lp-page .lp-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  color: var(--ink);
  font-family: var(--lp-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
}
.lp-page .lp-card__price strong { font-size: 22px; font-weight: 800; }
.lp-page .lp-card__price s { color: var(--lp-mut); }
.lp-page .lp-card__save { color: var(--accent); font-size: 14px; font-weight: 700; }

/* .buy */
.lp-page .lp-card__buy {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 4px;
  padding: 0 22px;
  background: var(--accent);
  color: var(--page);
  font-family: var(--lp-sans);
  font-size: 15px;
  font-weight: 800;
  line-height: normal;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}
.lp-page .lp-card__buy:hover { background: var(--lp-accent-dark); color: var(--page); }

.lp-page .lp-body > p.lp-end { margin: 30px 0 0; }

/* --- narrow screens --------------------------------------------------- */

/* The mock-up's own breakpoint: the photo box takes the full card width. */
@media (max-width: 560px) {
  .lp-page .lp-card__media { flex-basis: 100%; }
}
