/* Bump & Grind shared styles: design tokens + components used on more than one page.
   Page-specific layout stays in each page's own <style> block, which loads after this. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  /* Palette */
  --white: #ffffff;
  --off-white: #fdf8f7;
  --blush-light: #fceee9;
  --blush: #f0b3a0;
  --blush-deep: #b8543a;
  --blush-deep-text: #ac4c34;   /* blush-deep nudged darker for AA text on light */
  --light-gray: #eee9e7;
  --mid-gray: #6b6b6b;
  --dark: #181412;
  --error: #c0392b;
  --error-on-dark: #f2b8b0;

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Bebas Neue', 'Outfit', system-ui, sans-serif;   /* caps-only UI type */
  --body: 'Outfit', system-ui, sans-serif;                 /* sentence-case reading type */
  --display: 'Bebas Neue', sans-serif;
  --display-fat: 'Anton', 'Bebas Neue', Impact, sans-serif;

  /* Shape + layout */
  --radius-card: 14px;
  --radius-thumb: 10px;         /* small images inside a card */
  --radius-pill: 999px;
  --shell-max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--dark);
  font-family: var(--sans);
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
h1, h2 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blush-deep); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── NAV (over the dark hero) ── */
nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
}
.nav-logo { height: 40px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--off-white);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* ── HERO: blurred crowd photo, blush colour tint, warm scrim ── */
#hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  padding-top: 64px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('IMAGES/HERO-BACKGROUND.jpg') center / cover no-repeat;
  filter: blur(3px) grayscale(0.5) contrast(1.06) brightness(0.82) saturate(1.1);
  transform: scale(1.06);
}
.hero-tint { position: absolute; inset: 0; z-index: 1; background: var(--blush-deep); mix-blend-mode: color; opacity: 0.55; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(120% 95% at 72% 4%, rgba(30,12,9,0.25), rgba(28,14,11,0.72) 62%),
    linear-gradient(180deg, rgba(120,44,30,0.42), rgba(34,16,12,0.82));
}
.hero-inner {
  position: relative; z-index: 3;
  max-width: var(--shell-max); margin: 0 auto;
  padding: clamp(32px, 7vw, 72px) var(--gutter) clamp(48px, 8vw, 88px);
}
.hero-inner .eyebrow { display: block; margin-bottom: 18px; font-family: var(--display); font-size: 20px; letter-spacing: 0.06em; color: var(--off-white); }
.hero-inner .eyebrow span { color: var(--blush); }
.hero-lede {
  font-family: var(--body); font-weight: 300;
  font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5;
  color: rgba(253,248,247,0.88);
  max-width: 52ch; margin-top: 20px;
}

/* ── SECTIONS ── */
.shell { max-width: var(--shell-max); margin: 0 auto; padding: clamp(56px, 9vw, 104px) var(--gutter); }
.eyebrow { font-family: var(--sans); font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blush-deep-text); }
.section-title {
  font-family: var(--display);
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 400; line-height: 0.95;
  letter-spacing: 0.02em; text-transform: uppercase;
}

/* ── BUTTONS ── */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 14px 30px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--blush-deep);
  background: var(--blush-deep); color: var(--white);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { background: var(--blush); border-color: var(--blush); color: var(--dark); }
.btn-ghost { background: transparent; color: var(--dark); border-color: var(--blush); }
.btn-ghost:hover { background: var(--white); }
.on-dark .btn-ghost { color: var(--off-white); border-color: rgba(255,255,255,0.5); }
.on-dark .btn-ghost:hover { color: var(--dark); }
@media (max-width: 560px) { .btn { padding: 14px 24px; } }

/* ── PILL (status chips: "Sold out", "Selling fast") ── */
.pill-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blush-deep-text); background: var(--blush-light);
  border: 1px solid var(--blush); padding: 6px 12px; border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ── SUBPAGE FOOTER ── */
.page-footer { text-align: center; padding: 36px 20px 44px; background: var(--off-white); }
.page-footer a { font-family: var(--sans); font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark); text-decoration: none; }
.page-footer a:hover { color: var(--blush-deep); }
.page-footer p { font-family: var(--body); font-weight: 300; font-size: 14px; color: var(--mid-gray); margin-top: 10px; }

/* ── NYE SALES METER ──
   Filled in by /nye-sales.js from its `sold` count. Default is for dark/photo
   backgrounds; add .meter--light on white or blush sections, .meter--compact
   inside list rows. */
.meter { max-width: 760px; margin-top: 22px; }
.meter[hidden] { display: none; }
.meter-label { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-family: var(--sans); font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--off-white); }
.meter-label b { font-weight: 400; color: var(--blush); }
.meter-sub { font-family: var(--body); font-weight: 300; font-size: 14px; letter-spacing: 0.02em; text-transform: none; color: rgba(253,248,247,0.7); }
.meter-track { height: 10px; margin-top: 10px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.16); overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blush-deep), var(--blush)); transition: width 1.2s ease; }
.meter--light .meter-label { color: var(--dark); }
.meter--light .meter-label b { color: var(--blush-deep-text); }
.meter--light .meter-sub { color: var(--mid-gray); }
.meter--light .meter-track { background: var(--light-gray); }
.meter--compact { max-width: 420px; margin-top: 12px; }
.meter--compact .meter-label { font-size: 16px; }
.meter--compact .meter-track { height: 6px; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .meter-fill { transition: none; } }

/* ── REWIND CARDS ──
   Built by _newsletter-src/build.py for the homepage strip and /rewind/.
   .rw-feature: big story card, image on top. .rw-row: thumbnail + one line. */
.rw-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; margin-top: 32px; }
.rw-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.rw-rows { display: flex; flex-direction: column; gap: 14px; }
.rw-kicker { font-family: var(--sans); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blush-deep-text); }
.rw-feature {
  display: block; border-radius: var(--radius-card); overflow: hidden;
  background: var(--dark); color: var(--off-white); text-decoration: none;
}
.rw-feature-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark); }
.rw-feature-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.rw-feature:hover .rw-feature-img img { transform: scale(1.03); }
.rw-feature-body { display: block; padding: 22px 24px 26px; }
.rw-feature .rw-kicker { color: var(--blush); }
.rw-feature h2, .rw-feature h3 {
  font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1; letter-spacing: 0.02em; margin: 8px 0 10px; color: var(--white);
}
.rw-feature p { font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.55; letter-spacing: normal; color: rgba(253,248,247,0.85); }
.rw-more { display: inline-block; margin-top: 16px; font-family: var(--sans); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blush); }
.rw-row {
  display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center;
  padding: 12px; border-radius: var(--radius-card); background: var(--blush-light);
  color: var(--dark); text-decoration: none;
}
.rw-row img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-thumb); background: var(--light-gray); }
.rw-row .rw-kicker { font-size: 14px; }
.rw-row h2, .rw-row h3 { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.05; letter-spacing: 0.02em; margin-top: 4px; transition: color 0.2s; }
.rw-row :is(h2, h3) i, .rw-feature :is(h2, h3) i { font-style: normal; }
.rw-row:hover :is(h2, h3) { color: var(--blush-deep-text); }
.rw-row p {
  font-family: var(--body); font-weight: 300; font-size: 14px; line-height: 1.4; letter-spacing: normal;
  color: var(--mid-gray); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 880px) {
  .rw-grid, .rw-list { grid-template-columns: 1fr; }
  .rw-grid .rw-row:nth-child(n+4) { display: none; }   /* phones: feature + 3 rows */
}
@media (max-width: 560px) {
  .rw-row { grid-template-columns: 104px 1fr; gap: 12px; padding: 10px; }
  .rw-row h2, .rw-row h3 { font-size: 20px; }
  .rw-feature-body { padding: 18px 18px 22px; }
}
