/*
 * home-polish.css — editorial top-of-page treatment for the homepage.
 * Loaded after the inline <style> block so its rules cascade last on tied specificity.
 * Targets the new sections only: .home-editorial-hero, .home-situation-tiles, .home-top-picks.
 * Does NOT alter or override the dense legacy sections lower down (those keep their own styles).
 */

:root {
  --hp-ink: #0a0a0a;
  --hp-cream: #faf7f2;
  --hp-cream-deep: #f0ece4;
  --hp-paper: #fffdf9;
  --hp-line: #e6e2da;
  --hp-line-strong: #cfc9bf;
  --hp-muted: #5e5b56;
  --hp-soft: #8a8680;
  --hp-accent: #1e5d52;
  --hp-shadow-sm: 0 6px 18px rgba(10, 10, 10, 0.05);
  --hp-shadow-md: 0 14px 38px rgba(10, 10, 10, 0.08);
  --hp-shadow-lg: 0 28px 64px rgba(10, 10, 10, 0.12);
  --hp-radius: 14px;
  --hp-radius-sm: 8px;
}

/* ===== Hero ===== */
.home-editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 2rem 3rem;
  max-width: 1240px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .home-editorial-hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2rem 1.2rem 2rem;
  }
}

.home-editorial-hero-copy {
  max-width: 36ch;
}

.home-editorial-hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--hp-ink);
  margin: 0 0 1.1rem;
}

.home-editorial-hero h1 .he-line {
  display: block;
}

.home-editorial-hero-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--hp-muted);
  margin: 0 0 1.8rem;
  max-width: 38ch;
}

.home-editorial-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.he-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.he-cta--primary {
  background: var(--hp-ink);
  color: var(--hp-cream);
  border: 1px solid var(--hp-ink);
  box-shadow: 4px 4px 0 rgba(10, 10, 10, 0.1);
}
.he-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(10, 10, 10, 0.12);
}

.he-cta--ghost {
  background: transparent;
  color: var(--hp-ink);
  border: 1px solid var(--hp-line-strong);
}
.he-cta--ghost:hover {
  background: var(--hp-ink);
  color: var(--hp-cream);
  border-color: var(--hp-ink);
}

/* Product image collage — 3x3-ish grid with mixed cell sizes for editorial feel */
.home-editorial-hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.6rem;
  aspect-ratio: 4 / 3;
  max-width: 540px;
  margin-left: auto;
  width: 100%;
}

.he-collage-tile {
  background: linear-gradient(135deg, var(--hp-paper), var(--hp-cream));
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--hp-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.he-collage-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow-md);
}
.he-collage-tile img {
  max-width: 78%;
  max-height: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(10, 10, 10, 0.1));
}

/* Mixed cell sizes — make the layout feel like a magazine spread */
.he-collage-tile--lg { grid-column: span 2; grid-row: span 2; }
.he-collage-tile--w  { grid-column: span 2; }
.he-collage-tile--h  { grid-row: span 2; }

@media (max-width: 600px) {
  .home-editorial-hero-collage {
    aspect-ratio: 5 / 4;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(3, 1fr);
  }
  .he-collage-tile--lg,
  .he-collage-tile--w,
  .he-collage-tile--h { grid-column: span 1; grid-row: span 1; }
}

/* ===== Shop by situation (6 tiles) ===== */
.home-situation-tiles-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
}

.home-situation-tiles-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-situation-tiles-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--hp-soft);
}

.home-situation-tiles-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--hp-ink);
  margin: 0;
}

.home-situation-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
}

@media (max-width: 1024px) { .home-situation-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .home-situation-tiles { grid-template-columns: repeat(2, 1fr); } }

.home-situation-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 0.8rem;
  background: var(--hp-paper);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-sm);
  text-decoration: none;
  color: var(--hp-ink);
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.home-situation-tile:hover {
  transform: translateY(-2px);
  border-color: var(--hp-ink);
  box-shadow: var(--hp-shadow-sm);
}

.home-situation-tile-icon {
  width: 28px;
  height: 28px;
  color: var(--hp-ink);
  flex-shrink: 0;
}

.home-situation-tile-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

/* ===== Today's top picks ===== */
.home-top-picks-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 2rem 3rem;
}

.home-top-picks-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--hp-line);
  padding-bottom: 0.85rem;
}

.home-top-picks-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--hp-ink);
  margin: 0;
}

.home-top-picks-all {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.home-top-picks-all:hover { color: var(--hp-accent); }

.home-top-picks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

@media (max-width: 1024px) { .home-top-picks-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .home-top-picks-grid { grid-template-columns: repeat(2, 1fr); } }

.home-top-pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--hp-paper);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--hp-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.home-top-pick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hp-shadow-md);
  border-color: var(--hp-line-strong);
}

.home-top-pick-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  padding: 0.22rem 0.5rem;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--hp-ink);
  color: var(--hp-cream);
  border-radius: 3px;
}

.home-top-pick-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--hp-paper), var(--hp-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.home-top-pick-media img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(10, 10, 10, 0.1));
}

.home-top-pick-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem 0.85rem;
  border-top: 1px solid var(--hp-line);
}
.home-top-pick-name {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.005em;
}
.home-top-pick-cta {
  margin-top: 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hp-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.home-top-pick-card:hover .home-top-pick-cta { color: var(--hp-ink); }
