:root {
  --bg: #f7f1e8;
  --surface: #fffaf2;
  --surface-alt: #efe5d6;
  --border: #dccab4;
  --ink: #2b2118;
  --muted: #665444;
  --brand: #b83b2a;
  --brand-dark: #942c1e;
  --accent: #8a5612;
  --pine: #246342;
  --white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  flex-wrap: wrap;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}
.brand-seal {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 4px;
}
.main-nav a:hover { color: var(--brand); }

/* Page Shell & Typography */
.page-shell {
  padding: 24px 0 64px;
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

.hero-head {
  margin-bottom: 24px;
}
.kicker-stamp {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--brand);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}
.lead-summary {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 70ch;
}

/* Harmonized Golden Ad Slots (silent when empty, blended when active) */
.gfs-ad-slot:empty, .gfs-ad-slot-wrap:empty, .ad-third-party:empty {
  display: none;
}
.gfs-ad-slot, .gfs-ad-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}
.gfs-ad-slot-top {
  padding: 8px 12px;
  margin-bottom: 16px;
}

/* Tool Stage */
.tool-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 24px;
}

/* Buttons */
.btn-primary, .btn-pine, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
  border: 1px solid var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
}
.btn-pine {
  background: var(--pine);
  color: var(--white);
  border: 1px solid var(--pine);
}
.btn-pine:hover {
  opacity: 0.92;
  color: var(--white);
}
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface-alt);
  border-color: var(--muted);
}
.btn-primary:focus-visible, .btn-pine:focus-visible, .btn-outline:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Engage Bar */
.engage-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.engage-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.engage-bar [data-gf-like][aria-pressed="true"],
.engage-bar [data-gf-like].is-liked {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}
.share-feedback {
  font-size: 14px;
  font-weight: 600;
  color: var(--pine);
}

/* Guide Cards Strip */
.guide-section {
  margin-bottom: 48px;
}
.section-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
}
.guide-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: var(--surface-alt);
}
.guide-card-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.guide-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}
.guide-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.guide-card h3 a:hover { color: var(--brand); }
.guide-card p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

/* Prose Article */
.prose-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}
.hero-banner-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  background: var(--surface-alt);
}
.prose {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.prose h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin: 48px 0 16px;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 24px 0 12px;
  color: var(--ink);
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--surface-alt);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
}
.prose figure {
  margin: 24px 0;
}
.prose figure img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.prose figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}
.prose th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--ink);
}

/* FAQ & Comments */
.faq-section, .comments-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
}
.faq-section h2, .comments-box h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 24px;
}
.faq-item {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item:first-of-type { border-top: none; padding-top: 0; }
.faq-item h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}
.comments-sub {
  font-size: 14px;
  color: var(--muted);
  margin: -16px 0 24px;
}
.comment-form {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 24px;
}
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
}
.comment-list[data-gf-empty]::before {
  content: "Sharing an advent box with your group chat this December? Tell us your favorite prompt or door theme below.";
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
}
.comment-card {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.comment-card[data-gf-owner] {
  background: var(--surface-alt);
  padding: 16px;
  border-radius: var(--radius);
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}
.owner-badge {
  background: var(--brand);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  margin: 0 0 12px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .container, .header-inner { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 28px; }
  .prose h2, .section-heading, .faq-section h2, .comments-box h2 { font-size: 22px; }
  .tool-stage, .prose-wrap, .faq-section, .comments-box { padding: 16px; }
  .guide-strip, .footer-grid { grid-template-columns: 1fr; }
  .engage-actions .btn-outline { width: 100%; }
}
