/* YuletideMail — plain CSS, no build step.
   Edit colors in :root. Layout is grouped by section comments. */

:root {
  --christmas-red: #b8312f;
  --christmas-red-dark: #9a2422;
  --christmas-green: #2f5233;
  --holly-green: #1b4332;
  --cream: #f5f1e8;
  --warm-cream: #f0ebd8;
  --gold: #f59e0b;
  --gold-light: #fcd34d;
  --gold-pale: #fef3c7;
  --text: #1b4332;
  --muted: #3d5a45;
  --white: #fff;
  --line: rgba(47, 82, 51, 0.15);
  --shadow: 0 18px 40px rgba(27, 67, 50, 0.12);
  --radius: 18px;
  --max: 1180px;
  --font-sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script: "Dancing Script", "Brush Script MT", cursive;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, var(--warm-cream), var(--cream) 40%, #fff);
  color: var(--text);
  line-height: 1.65;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--christmas-red);
}

a:hover {
  color: var(--christmas-red-dark);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--christmas-red);
  color: var(--cream);
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Light CSS snow — decorative only, ignores clicks */
.snow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.snow span {
  position: absolute;
  top: -12px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.65;
  box-shadow: 0 0 6px #fff;
  animation: snowfall linear infinite;
}

.snow span:nth-child(1) { left: 4%; animation-duration: 14s; animation-delay: 0s; width: 4px; height: 4px; }
.snow span:nth-child(2) { left: 12%; animation-duration: 18s; animation-delay: 2s; }
.snow span:nth-child(3) { left: 22%; animation-duration: 16s; animation-delay: 5s; width: 8px; height: 8px; }
.snow span:nth-child(4) { left: 31%; animation-duration: 20s; animation-delay: 1s; }
.snow span:nth-child(5) { left: 44%; animation-duration: 15s; animation-delay: 7s; width: 5px; height: 5px; }
.snow span:nth-child(6) { left: 53%; animation-duration: 22s; animation-delay: 3s; }
.snow span:nth-child(7) { left: 61%; animation-duration: 17s; animation-delay: 8s; width: 7px; height: 7px; }
.snow span:nth-child(8) { left: 72%; animation-duration: 19s; animation-delay: 4s; }
.snow span:nth-child(9) { left: 81%; animation-duration: 13s; animation-delay: 6s; width: 4px; height: 4px; }
.snow span:nth-child(10) { left: 90%; animation-duration: 21s; animation-delay: 1.5s; }
.snow span:nth-child(11) { left: 96%; animation-duration: 16s; animation-delay: 9s; }
.snow span:nth-child(12) { left: 38%; animation-duration: 24s; animation-delay: 11s; width: 3px; height: 3px; }

@keyframes snowfall {
  0% { transform: translateY(-10px) translateX(0); }
  100% { transform: translateY(110vh) translateX(40px); }
}

@keyframes holly-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.holly {
  display: inline-block;
  width: 48px;
  height: 48px;
  animation: holly-sway 3s ease-in-out infinite;
}

.holly svg {
  width: 100%;
  height: 100%;
  display: block;
}

.holly-sm { width: 32px; height: 32px; }
.holly-lg { width: 64px; height: 64px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 241, 232, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--christmas-red);
  box-shadow: 0 8px 24px rgba(184, 49, 47, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--christmas-red);
}

.brand:hover {
  color: var(--holly-green);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-script);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.brand-tld {
  display: block;
  font-size: 0.72rem;
  color: var(--holly-green);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  border: 2px solid var(--holly-green);
  background: var(--cream);
  color: var(--holly-green);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--holly-green);
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--christmas-red);
}

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--christmas-red);
  padding-bottom: 2px;
}

.site-nav a.nav-cta[aria-current="page"] {
  border-bottom: 0;
  color: var(--cream);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(180deg, #d03a37, var(--christmas-red));
  color: var(--cream);
  border: 2px solid var(--gold);
  box-shadow: 0 10px 22px rgba(184, 49, 47, 0.28);
}

.btn-primary:hover {
  color: var(--cream);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--cream);
  color: var(--christmas-red);
  border: 2px solid var(--christmas-red);
}

.btn-secondary:hover {
  background: #fff;
  color: var(--christmas-red-dark);
}

.btn-ghost {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-ghost.is-on {
  background: var(--christmas-red);
  color: var(--cream);
  border-color: var(--christmas-red);
}

.nav-cta {
  padding: 10px 18px;
  font-size: 0.95rem;
}

main {
  position: relative;
  z-index: 1;
}

/* Hero */

.hero {
  position: relative;
  padding: 72px 0 56px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245, 241, 232, 0.88), rgba(240, 235, 216, 0.92)),
    url("/blog-images/home_bg2.png") center / cover no-repeat;
}

.hero h1 {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--holly-green);
}

.hero h1 em {
  font-style: normal;
  color: var(--christmas-red);
}

.lede {
  font-size: 1.2rem;
  max-width: 40rem;
  margin: 0 auto 28px;
  color: var(--holly-green);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.hero-deco {
  position: absolute;
  opacity: 0.18;
  pointer-events: none;
}

.hero-deco.left { top: 24px; left: 24px; }
.hero-deco.right { top: 24px; right: 24px; }

/* Countdown */

.countdown {
  background: linear-gradient(90deg, var(--christmas-red), var(--christmas-green));
  color: var(--cream);
  border: 4px solid var(--gold);
  border-radius: 22px;
  padding: 22px 18px 18px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  position: relative;
}

.countdown h2 {
  font-family: var(--font-script);
  font-size: 1.8rem;
  margin: 0 0 14px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown-cell {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 10px 4px;
}

.countdown-value {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-pale);
  font-weight: 800;
}

.countdown p {
  margin: 14px 0 0;
  color: var(--gold-pale);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Sections */

.section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 8px 0 10px;
  color: var(--holly-green);
}

.section-head p {
  max-width: 38rem;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--muted);
}

.page-head {
  text-align: center;
  padding: 48px 0 12px;
}

.page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 12px;
  color: #222;
}

.page-head p {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.15rem;
  color: #555;
}

/* Service cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--cream);
  border: 2px solid var(--christmas-green);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--christmas-red);
}

.service-card-top {
  background: linear-gradient(90deg, var(--christmas-red), var(--christmas-green));
  color: var(--cream);
  padding: 18px 18px 16px;
  position: relative;
}

.badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 10px;
  position: absolute;
  top: -10px;
  right: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.service-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--christmas-green);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 4px 0 4px 16px;
  position: relative;
}

.feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--christmas-green);
  position: absolute;
  left: 0;
  top: 0.7em;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.editorial-note {
  font-size: 0.78rem;
  color: #6b6b6b;
  margin: 0;
}

.stars {
  color: var(--gold-light);
  letter-spacing: 1px;
}

.more-link {
  display: block;
  text-align: center;
  margin-top: 32px;
  font-weight: 800;
  text-decoration: none;
}

.cta-band {
  background: linear-gradient(90deg, var(--christmas-red), var(--christmas-green));
  color: var(--cream);
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 12px;
}

.cta-band p {
  max-width: 38rem;
  margin: 0 auto 22px;
  color: var(--gold-pale);
  font-size: 1.15rem;
}

.cta-band .btn-secondary {
  background: var(--cream);
}

.disclosure-inline {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 46rem;
  margin: 28px auto 0;
  text-align: center;
}

/* Compare table */

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 28px;
}

.compare-table-wrap {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid #f3f3f3;
}

.compare-table-wrap h2 {
  margin: 0;
  padding: 18px;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, var(--christmas-red), var(--christmas-green));
  font-size: 1.4rem;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
}

table.compare th,
table.compare td {
  text-align: left;
  padding: 18px 20px;
  vertical-align: top;
  border-top: 1px solid #eee;
}

table.compare th {
  background: #f7f7f5;
  color: #222;
}

table.compare tr.is-recommended {
  background: #fff5f5;
}

.reco {
  display: inline-block;
  background: var(--christmas-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 8px;
  margin: 6px 0;
}

.flag-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #555;
}

.check,
.cross {
  font-weight: 800;
  margin-right: 4px;
}

.check { color: #15803d; }
.cross { color: #b91c1c; }

.mobile-cards {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.disclosure-box,
.help-box {
  border-radius: 22px;
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  margin-top: 40px;
}

.disclosure-box {
  background: linear-gradient(90deg, var(--christmas-red), var(--christmas-green));
}

.help-box {
  background: linear-gradient(90deg, #dc2626, var(--christmas-green));
}

.disclosure-box h2,
.help-box h2 {
  font-family: var(--font-serif);
  margin: 0 0 10px;
}

.disclosure-box p,
.help-box p {
  max-width: 48rem;
  margin: 0 auto 18px;
  color: var(--gold-pale);
}

.help-box .btn-secondary {
  background: #fff;
}

/* Blog */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-grid.featured {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 48px;
}

.article-card {
  background: #fff;
  border: 2px solid #f0f0f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: #f5c2c0;
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.featured .article-card img {
  height: 260px;
}

.thumb-wrap {
  position: relative;
}

.cat-pill,
.feat-pill {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.cat-pill { left: 12px; background: var(--christmas-red); }
.feat-pill { right: 12px; background: var(--gold); }

.article-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.article-card h2,
.article-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #222;
}

.featured .article-card h2,
.featured .article-card h3 {
  font-size: 1.3rem;
}

.read-time {
  font-size: 0.82rem;
  color: #777;
}

.article-card p {
  margin: 0;
  color: #555;
  flex: 1;
}

.read-more {
  font-weight: 800;
  text-decoration: none;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  color: #222;
  margin: 0 0 18px;
}

/* Article / legal */

.article,
.legal-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid #f0f0f0;
}

.hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.article-body,
.legal-card {
  padding: 36px 32px 44px;
}

.article-body h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 8px 0 20px;
  color: #222;
  line-height: 1.25;
}

.article-body h2 {
  font-size: 1.35rem;
  color: #222;
  margin: 28px 0 10px;
}

.article-body h3 {
  font-size: 1.1rem;
  color: #333;
  margin: 18px 0 8px;
}

.article-body p,
.article-body li {
  color: #444;
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}

.callout {
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0;
}

.callout-red { background: #fef2f2; border: 1px solid #fecaca; }
.callout-green { background: #f0fdf4; border: 1px solid #bbf7d0; }
.callout-gold { background: #fffbeb; border: 1px solid #fde68a; }

.lyrics {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px 18px;
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
}

.ref-table th,
.ref-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e8e8e8;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
  margin: 28px 0 18px;
}

.related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0 64px;
}

.related a {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}

.related a:hover h3 {
  color: var(--christmas-red);
}

.related h3 {
  margin: 0 0 6px;
}

.related p {
  margin: 0;
  color: #666;
  font-size: 0.92rem;
}

.legal-card h2 {
  color: #222;
  margin: 28px 0 10px;
}

.legal-card ul {
  padding-left: 1.3rem;
}

.heart-note {
  background: #fef2f2;
  border-left: 4px solid var(--christmas-red);
  border-radius: 12px;
  padding: 18px;
  margin: 22px 0;
}

.updated {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
  padding-top: 16px;
  margin-top: 28px;
}

/* Footer */

.site-footer {
  background: linear-gradient(180deg, var(--holly-green), var(--christmas-green));
  color: var(--cream);
  position: relative;
  z-index: 1;
}

.footer-stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--christmas-red), var(--gold), var(--christmas-red));
}

.footer-inner {
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-script);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-brand svg {
  width: 32px;
  height: 32px;
}

.site-footer p {
  color: var(--gold-pale);
  max-width: 32rem;
}

.site-footer h2 {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 8px 0;
}

.site-footer a {
  color: var(--gold-pale);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
}

.footer-legal {
  text-align: right;
}

.footer-legal a {
  color: var(--gold-pale);
}

.sep {
  margin: 0 8px;
  color: var(--gold-light);
}

/* Hidden helper for JS filters */
.is-hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .card-grid,
  .blog-grid,
  .blog-grid.featured,
  .related,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .compare-table-wrap {
    display: none;
  }

  .mobile-cards {
    display: flex;
  }

  .hero-img {
    height: 220px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 2px solid var(--christmas-green);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 8px;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 10px 8px;
  }

  .site-nav a[aria-current="page"] {
    background: var(--warm-cream);
    border-bottom: 0;
    border-radius: 10px;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .article-body,
  .legal-card {
    padding: 22px 18px 32px;
  }

  .footer-legal,
  .footer-bottom {
    text-align: center;
    justify-content: center;
  }

  .hero {
    padding: 48px 0 40px;
  }
}
