/* The hidden attribute always wins over a component's own display rule. */
[hidden] { display: none !important; }

:root {
  --ink: #1B2430;
  --paper: #EFE6D8;
  --paper-card: #FFFDF8;
  --marigold: #E8A33D;
  /* --marigold itself stays bright for fills (buttons, active dots, tags,
     borders) — those pair it with dark ink text on top, which is fine.
     But used AS text color against --paper/--paper-card, --marigold only
     computes to ~1.8:1 contrast, well under WCAG AA's 4.5:1 minimum. This
     darker variant is for every case where marigold IS the text/glyph
     color: the ribbon-tag label on every page, review stars, pick-card
     headings. ~4.75:1 against --paper, ~5.8:1 against the lighter
     --paper-card — both clear the 4.5:1 minimum. */
  --marigold-text: #8B5A16;
  --blush: #E4626F;
  --forest: #2F5D50;
  --line: #d8cdb5;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Fun/bright accents — scoped to the hero's contest+prize announcement
     only, so the rest of the site keeps its calmer editorial palette. */
  --font-fun: 'Baloo 2', var(--font-display);
  --candy-pink: #FF5D8F;
  --candy-yellow: #FFC93C;
  --candy-teal: #17C3B2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* No background color here on purpose — #siteBackdrop's scrim (below)
     paints the same --paper tone plus a faint shared photo texture behind
     every page. A section with its own opaque background (the hero,
     card-style boxes) simply paints over it as normal. */
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* One shared background-photo slideshow, behind every page — same admin-
   managed photos as the homepage hero previously used alone (see
   background_slides in db.js), cross-faded slowly and heavily muted so it
   reads as a soft, cohesive texture rather than competing with page
   content. Empty (no photos uploaded) means this is simply never
   populated and the page looks exactly as if it didn't exist — same
   honest-empty-state rule as everywhere else. */
#siteBackdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
#siteBackdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.2s ease;
}
#siteBackdrop img.active { opacity: 1; }
#siteBackdrop .scrim { position: absolute; inset: 0; background: rgba(239,230,216,0.87); }
@media (prefers-reduced-motion: reduce) {
  #siteBackdrop img { transition: none; }
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.4em;
  font-weight: 600;
  line-height: 1.15;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: #d9922e; }
.btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
/* .btn-ghost is drawn white for the dark hero. The footer sign-up reuses it
   against the light page background, where white on cream is invisible and
   fails contrast outright — restate it in the footer's own colours. */
.site-footer .btn-ghost { border-color: #6b6552; color: #3d3928; }
.site-footer .btn-ghost:hover { background: rgba(0,0,0,0.06); }

.ribbon-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--marigold-text);
  font-size: 1.05rem;
  margin: 0 0 0.5em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: rgba(239,230,216,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
}
.brand span { color: var(--blush); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--blush); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 9px 16px;
  border-radius: 3px;
}
.nav-cta:hover { background: #2c384a; color: var(--paper) !important; }

/* Hidden on desktop — .site-nav shows inline there. Only appears once the
   media query below turns it on, at the same breakpoint that hides the
   inline nav. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(1.2);
  transition: opacity 1.4s ease;
}
.hero-slides img.active { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,36,48,0.55) 0%, rgba(27,36,48,0.75) 55%, rgba(27,36,48,0.92) 100%);
}
.hero-content {
  position: relative;
  max-width: 720px;
  padding: 0 36px;
  margin: 0 auto;
  text-align: left;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: #fff;
}
.ribbon-fun {
  font-family: var(--font-fun);
  font-style: normal;
  font-weight: 600;
  color: var(--candy-yellow);
  letter-spacing: 0.02em;
}
.hero-fun-headline {
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.08;
  color: #fff;
  text-shadow: 3px 3px 0 var(--candy-pink);
}
.hero-prize-callout {
  display: inline-block;
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--ink);
  background: var(--candy-teal);
  padding: 8px 16px;
  border-radius: 8px;
  margin: 6px 0 18px;
  transform: rotate(-1.5deg);
}
.hero-prize-callout a { text-decoration: underline; text-decoration-thickness: 2px; }
.hero-sub {
  max-width: 46ch;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.85);
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 36px;
  z-index: 2;
}
#heroPause {
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.hero-dots span.active { background: var(--marigold); }
.promo-starburst {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  width: 128px;
  height: 128px;
  background: var(--marigold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-starburst::before,
.promo-starburst::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
}
.promo-starburst::before { transform: rotate(30deg); }
.promo-starburst::after { transform: rotate(-30deg); }
.promo-starburst span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 76%;
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
}
@media (max-width: 640px) {
  .promo-starburst { width: 96px; height: 96px; top: 12px; right: 12px; }
  .promo-starburst span { font-size: 0.66rem; }
}

/* ---------- generic section ---------- */
.section { padding: 90px 36px; max-width: 1080px; margin: 0 auto; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-sub { max-width: 58ch; color: #55503f; margin-top: -8px; }

/* ---------- rolodex (horizontal card carousel) ----------
   Shared by the vote page's cat cards and the homepage's product cards —
   one flippable row instead of a wrapping grid. Cards keep their own
   natural width/height (set per use site); this just handles the
   scrolling/snapping/arrows. */
.rolodex-wrap { position: relative; }
.rolodex {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.rolodex::-webkit-scrollbar { display: none; }
.rolodex:empty { display: none; }
.rolodex > * { scroll-snap-align: start; flex: 0 0 auto; }
.rolodex-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(27,36,48,0.18);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  z-index: 2;
}
.rolodex-nav:hover { border-color: var(--marigold); }
.rolodex-nav.prev { left: -6px; }
.rolodex-nav.next { right: -6px; }
@media (max-width: 700px) {
  /* Touch scrolling/swiping already works — the on-screen arrows just
     crowd a narrow layout and duplicate what a thumb already does. */
  .rolodex-nav { display: none; }
  .rolodex { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
}

/* ---------- how it works ---------- */
.steps {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--blush);
  display: block;
  margin-bottom: 6px;
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: #4a4536; font-size: 0.96rem; }

/* ---------- current winner ---------- */
.current { background: var(--paper); }
.current-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.current-photo { background: var(--ink); min-height: 320px; position: relative; }
.current-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
/* Before any round has closed, winnerPhoto has no src yet — hide the
   broken-image box and show a plain placeholder instead. */
.current-photo img[src=""] { display: none; }
.current-photo:has(img[src=""])::after {
  content: "🐾";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; opacity: 0.5;
}
.current-vote-cta { margin-top: 22px; align-self: flex-start; }
.contest-status {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--forest);
  font-weight: 600;
}

/* Teaser strip of this round's entries — shown only before any round has
   closed (see renderIndexHtml/loadStatus). No vote counts, no ranking by
   vote — just who's entered, same principle as the vote page. */
.current-teaser {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.current-teaser:empty { display: none; }
.teaser-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-card);
  transition: transform 0.15s ease;
}
.teaser-card:hover { transform: translateY(-2px); }
.teaser-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.teaser-card span { padding: 6px 8px; font-size: 0.82rem; font-weight: 500; }

/* ---------- shop ----------
   .product-card/.price-row/.price below are only used by the dormant
   calendar.html template (see CALENDAR_CHECKOUT_ENABLED in server.js) —
   kept for that reason. .shop-grid and .product-badge were part of the
   same old layout but nothing references them anymore, dormant template
   included, so those two are gone rather than kept unused. */
.product-card {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}
.price-row { display: flex; gap: 30px; margin: 20px 0 24px; }
.price { font-family: var(--font-display); font-size: 1.9rem; display: block; }
.price-alt { color: var(--forest); }
.price-note { font-size: 0.8rem; color: #6b6552; }
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-form label { font-size: 0.85rem; font-weight: 500; color: #4a4536; display: flex; flex-direction: column; gap: 6px; }
.checkout-form input {
  font-family: var(--font-body);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 16px;
  background: #fff;
}
.form-note { font-size: 0.85rem; min-height: 1.2em; color: var(--forest); }
.form-note.order-terms { color: #6b6552; font-size: 0.8rem; margin-top: 4px; }
.form-note.error { color: var(--blush); }

/* ---------- trust badges ---------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #4a4536;
}

/* ---------- reviews ---------- */
.reviews { background: var(--paper); }
.reviews-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.review-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}
.review-card .stars { color: var(--marigold-text); font-size: 1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-card p.body { font-size: 0.95rem; color: #33301f; margin-bottom: 12px; }
.review-card .who { font-size: 0.82rem; color: #6b6552; font-weight: 600; }
.review-card .verified {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--forest);
  font-weight: 700;
  margin-left: 6px;
}
.reviews-empty {
  margin-top: 30px;
  background: var(--paper-card);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 34px;
  max-width: 560px;
}
.reviews-empty h3 { font-size: 1.1rem; }
.reviews-empty p { color: #55503f; font-size: 0.95rem; }

.originals-empty {
  margin-top: 24px;
  background: var(--paper-card);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 34px;
  max-width: 560px;
}
.originals-empty h3 { font-size: 1.1rem; }
.originals-empty p { color: #55503f; font-size: 0.95rem; }
.section.originals .current-teaser { margin-top: 24px; margin-bottom: 24px; }

/* ---------- live painting sessions ---------- */
.live-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin-top: 26px; align-items: start; }
.live-screen {
  aspect-ratio: 16/9;
  background: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.live-offline { text-align: center; padding: 24px; color: var(--paper); }
.live-offline p { font-size: 0.95rem; opacity: 0.8; margin: 0; }
.live-offline-next, .live-offline-last { margin-top: 10px !important; font-size: 0.85rem !important; }
.live-offline-last a { color: var(--paper); }
.live-offline-ctas { margin-top: 18px !important; opacity: 1 !important; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.live-offline-ctas .btn { padding: 9px 16px; font-size: 0.85rem; }
.live-sessions-list h3 { font-size: 1rem; margin-bottom: 12px; }
.live-sessions-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.live-sessions-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.88rem;
}
.live-sessions-list li a { font-weight: 600; }
.live-sessions-list .session-date { color: #6b6552; font-size: 0.8rem; white-space: nowrap; }
.live-sessions-list .empty { color: #6b6552; font-size: 0.88rem; margin: 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 4px; }
@media (max-width: 800px) {
  .live-wrap { grid-template-columns: 1fr; }
}

/* ---------- custom pet product shop ---------- */
.custom-grid { margin-top: 26px; }
.custom-card {
  width: 280px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.custom-card.selected { border-color: var(--marigold); box-shadow: 0 0 0 2px rgba(232,163,61,0.35) inset; }
.custom-card.premium { border-color: var(--ink); background: var(--paper-card); }
.custom-card.premium.selected { border-color: var(--marigold); }
.tier-badge {
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-fun);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
}
.custom-card-photo {
  width: calc(100% + 52px);
  margin: -26px -26px 4px;
  display: block;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}
.custom-card h3 { font-size: 1.15rem; margin-bottom: 0; }
.custom-card h3 a, .custom-card h4 a { color: inherit; text-decoration: none; }
.custom-card h3 a:hover, .custom-card h4 a:hover { text-decoration: underline; }
.custom-card p { font-size: 0.92rem; color: #55503f; flex: 1; margin: 0; }
.custom-card .price { font-family: var(--font-display); font-size: 1.4rem; }
.custom-order-form {
  margin: 34px auto 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.custom-order-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.custom-order-form label { font-size: 0.85rem; font-weight: 500; display: flex; flex-direction: column; gap: 6px; }
.custom-order-form input[type=text],
.custom-order-form input[type=email],
.custom-order-form input[type=number],
.custom-order-form select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 16px;
  background: #fff;
}
.upload-preview { margin-top: 8px; }
.upload-preview img { max-height: 160px; border-radius: 4px; border: 1px solid var(--line); }

/* ---------- affiliate picks ---------- */
.picks { background: var(--ink); color: var(--paper); }
.picks h2 { color: #fff; }
.picks .section-sub { color: rgba(239,230,216,0.75); }
.picks-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.pick-card {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(239,230,216,0.25);
  border-radius: 5px;
  padding: 20px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pick-card:hover { border-color: var(--marigold); background: rgba(232,163,61,0.08); }
.pick-card h4 { font-size: 1rem; color: var(--marigold-text); margin-bottom: 6px; }
.pick-card p { font-size: 0.88rem; color: rgba(239,230,216,0.75); margin: 0; }

/* ---------- entry form ---------- */

.enter { background: var(--forest); color: #fff; }
.enter-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}
.enter h2 { color: #fff; }
.enter-copy p { color: rgba(255,255,255,0.82); max-width: 42ch; }
.entry-form {
  background: var(--paper-card);
  color: var(--ink);
  padding: 30px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.entry-form label { font-size: 0.85rem; font-weight: 500; display: flex; flex-direction: column; gap: 6px; }
.entry-form input[type=text],
.entry-form input[type=email],
.entry-form input[type=tel] {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 16px;
}
.file-label input { font-size: 0.85rem; }
.field-hint { font-size: 0.78rem; font-weight: 400; color: #6b6552; }
.consent-label {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 0.8rem !important;
  line-height: 1.4;
}
.consent-label input { margin-top: 3px; flex-shrink: 0; }

/* ---------- post-entry mockup + discount ---------- */
.entry-mockup {
  margin-top: 18px;
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  color: var(--ink);
}
.entry-mockup-frame {
  display: inline-block;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  margin-bottom: 14px;
}
.entry-mockup-frame img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 2px;
}
.entry-mockup-frame .caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 8px;
  color: #6b6552;
}
.entry-share {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.entry-share p { font-size: 0.85rem; margin: 0 0 10px; word-break: break-all; }
.entry-discount {
  background: var(--paper);
  border: 1px dashed var(--marigold);
  border-radius: 6px;
  padding: 14px;
}
.entry-discount .pct { font-family: var(--font-display); font-size: 1.4rem; color: var(--blush); }
.entry-discount .countdown { font-size: 0.8rem; color: #6b6552; margin: 4px 0 12px; }
.low-res-warning {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #8a5a00;
  background: #fff6e0;
  border: 1px solid #e8c877;
  border-radius: 4px;
  padding: 8px 12px;
}

/* ---------- feature blocks (middle-of-page image+text promos) ---------- */
.feature-blocks { display: grid; gap: 28px; }
.feature-block {
  display: flex;
  align-items: stretch;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-height: 220px;
}
.feature-block img { flex: 1 1 45%; width: 100%; object-fit: cover; }
.feature-block p { flex: 1 1 55%; margin: 0; padding: 24px 32px; font-size: 1.05rem; align-self: center; }
#featureBlock2 { flex-direction: row-reverse; }
@media (max-width: 720px) {
  .feature-block, #featureBlock2 { flex-direction: column; min-height: 0; }
  .feature-block img { flex: none; height: 200px; }
  .feature-block p { padding: 18px 20px; }
}

/* ---------- footer photo wall ---------- */
.footer-strip { display: flex; flex-direction: column; }
.footer-strip-row { display: flex; width: 100%; }
.footer-strip-row img { flex: 1 1 0; width: 100%; min-width: 0; height: 90px; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .footer-strip-row img { height: 56px; }
}

/* ---------- footer ---------- */
.site-footer {
  padding: 28px 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6b6552;
  border-top: 1px solid var(--line);
}
.footer-links a { text-decoration: none; }
.footer-signup {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-signup input[type="email"] {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.85rem;
  width: 200px;
  max-width: 100%;
}
.footer-signup .btn {
  padding: 8px 14px;
  font-size: 0.8rem;
}
.footer-signup-note {
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 4px 20px 14px;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 13px 4px;
    border-top: 1px solid var(--line);
    font-size: 1rem;
  }
  .site-nav .nav-cta { text-align: center; margin-top: 10px; border-top: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .current-card { grid-template-columns: minmax(0, 1fr); }
  .enter-wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides img { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- blog ---------- */
/* Server-rendered by blog.js, which reuses this file's existing chrome
   (.site-header, .site-nav, .site-footer, .btn*, .ribbon-tag) and adds only
   the reading-column styles below. Same variables as everywhere else — no
   new colors, and --marigold-text rather than --marigold anywhere marigold
   is the text color (see the contrast note on :root). */

.blog-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 36px 90px;
}
.blog-wrap > h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
}
.blog-wrap .ribbon-tag a {
  color: var(--marigold-text);
  text-decoration: none;
}
.blog-wrap .ribbon-tag a:hover { text-decoration: underline; }

/* ---------- blog index ---------- */
.blog-list {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}
.blog-card {
  display: block;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(27, 36, 48, 0.1);
}
.blog-card-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-card-body { padding: 22px 24px 24px; }
.blog-card-date {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b6553;
  margin-bottom: 8px;
}
.blog-card-body h2 { font-size: 1.35rem; margin-bottom: 0.35em; }
.blog-card-body p { margin: 0; color: #55503f; font-size: 0.95rem; }
.blog-card-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--marigold-text);
}
.blog-empty {
  background: var(--paper-card);
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 34px 24px;
  text-align: center;
  color: #55503f;
}

/* ---------- blog post ---------- */
.blog-post-meta {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b6553;
  margin: -0.2em 0 1.6em;
}
.blog-post-photo {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--line);
  margin-bottom: 30px;
}
/* Only ever rendered on a draft preview (see renderPostPage) — loud on
   purpose, so a draft can't be mistaken for a live post. */
.blog-draft-flag {
  background: var(--blush);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 3px;
  padding: 9px 14px;
  margin-bottom: 24px;
}

.blog-body { font-size: 1.04rem; }
.blog-body p, .blog-body li { color: #33301f; }
.blog-body h2 {
  font-size: 1.42rem;
  margin-top: 2.1em;
  padding-top: 0.9em;
  border-top: 1px solid var(--line);
}
.blog-body h3 { font-size: 1.12rem; margin-top: 1.8em; }
.blog-body ul, .blog-body ol { padding-left: 1.3em; }
.blog-body li { margin-bottom: 0.5em; }
.blog-body a {
  color: var(--marigold-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-body a:hover { color: var(--ink); }
.blog-body strong { font-weight: 600; }
.blog-body blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--marigold);
  color: #55503f;
  font-style: italic;
}
.blog-body img {
  border-radius: 4px;
  border: 1px solid var(--line);
  margin: 1.6em 0;
}
.blog-body code {
  font-size: 0.9em;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
}
.blog-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}

/* Amazon Associates / FTC disclosure. Rendered above the post body, before
   the first affiliate link, on any post that contains one — so keep it
   visible rather than styling it down into fine print. */
.blog-disclosure {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--marigold);
  border-radius: 3px;
  padding: 15px 18px;
  font-size: 0.89rem;
  color: #55503f;
  margin: 0 0 32px;
}

/* ---------- per-post call to action ---------- */
.blog-cta {
  margin-top: 56px;
  background: var(--forest);
  color: var(--paper);
  border-radius: 5px;
  padding: 38px 34px 34px;
  text-align: center;
}
.blog-cta h2 { color: #fff; font-size: 1.7rem; }
.blog-cta p { color: rgba(239, 230, 216, 0.85); }
/* The body paragraph only — a measure this narrow would also force the
   two-button row below to wrap, and the fine print reads better full
   width. */
.blog-cta > p:not(.ribbon-tag):not(.blog-cta-fine):not(.blog-cta-actions) {
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}
/* .ribbon-tag's --marigold-text is tuned for the light --paper background;
   on this dark panel bright --marigold is both legible and correct. */
.blog-cta .ribbon-tag { color: var(--marigold); }
.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 26px 0 0;
}
.blog-cta-fine {
  font-size: 0.83rem;
  margin: 22px 0 0;
  color: rgba(239, 230, 216, 0.7) !important;
}
.blog-cta-fine a { color: var(--paper); }

@media (max-width: 640px) {
  .blog-wrap { padding: 34px 20px 70px; }
  .blog-card-body { padding: 18px 18px 20px; }
  .blog-cta { padding: 30px 20px 26px; }
  .blog-cta-actions .btn { width: 100%; }
}

/* Visible to screen readers, not on screen. For labels that a sighted user
   doesn't need because the control's purpose is obvious from context, but
   which a screen reader has no other way to announce. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- post-checkout banner ---------- */
.order-banner {
  background: var(--forest);
  color: #fff;
  padding: 14px 24px;
  font-size: 0.95rem;
  text-align: center;
}

/* Halloween decorations — injected by halloween.js, October only. */
.hw { position: absolute; pointer-events: none; z-index: 1; }
.hw svg { display: block; width: 100%; height: 100%; }
.hw-web { top: 0; width: clamp(110px, 18vw, 230px); aspect-ratio: 1; color: rgba(255,255,255,0.55); filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5)); }
.hw-web-left { left: 0; }
.hw-web-right { right: 0; transform: scaleX(-1); }
.hw-spider {
  top: 0; left: clamp(70px, 11vw, 140px);
  width: 28px; height: clamp(84px, 13vw, 120px);
  color: rgba(255,255,255,0.6);
  transform-origin: top center;
  animation: hw-dangle 4s ease-in-out infinite;
}
.hw-cat {
  right: clamp(12px, 4vw, 56px); bottom: 56px;
  width: clamp(96px, 13vw, 160px); aspect-ratio: 160 / 200;
  filter: drop-shadow(0 0 14px rgba(232,163,61,0.35));
}
@keyframes hw-dangle {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(14px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) { .hw-spider { animation: none; } }
/* On a phone the hero text runs edge to edge: keep the webs small and in
   the very corners, drop the spider, and tuck the cat beside the buttons. */
@media (max-width: 600px) {
  .hw-web { width: 64px; }
  .hw-spider { display: none; }
  .hw-cat { width: 72px; bottom: 16px; right: 8px; }
}
