:root {
  --bg: #fff6ea;
  --bg-soft: #faecd8;
  --surface: #ffffff;
  --text: #361f14;
  --muted: #69493a;
  --primary: #1a4d33;
  --primary-dark: #123824;
  --berry: #c81e37;
  --berry-dark: #9e1429;
  --accent: #f4b63f;
  --border: #e6cdb0;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-sans: "Nunito", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 0 #e6cdb0;
  --shadow-md: 0 8px 0 #e6cdb0, 0 18px 36px rgba(92, 48, 24, 0.11);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 16% 8%, rgba(244, 182, 63, 0.24), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(200, 30, 55, 0.09), transparent 32%),
    radial-gradient(#e6cdb0 1.4px, transparent 1.4px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  overflow-x: clip;
}

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

a {
  color: var(--primary);
  font-weight: 700;
  text-underline-offset: 4px;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

a:hover {
  color: var(--berry);
}

:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

code {
  padding: 4px 10px;
  border-radius: 10px;
  background-color: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: var(--radius);
  background-color: var(--primary);
  color: var(--surface);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Festive Pine Header & Twinkling String Lights Garland */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--primary);
  color: var(--surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--surface);
}

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

.gf-site-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.13);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--surface);
}

.site-nav a:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--surface);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  background-color: var(--primary-dark);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle:hover {
  background-color: var(--berry);
}

.garland-trim {
  line-height: 0;
  pointer-events: none;
}

.garland-svg {
  display: block;
  width: 100%;
  height: 36px;
}

@keyframes awfBulbGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.52; }
}

.bulb-a { animation: awfBulbGlow 2.2s infinite ease-in-out; }
.bulb-b { animation: awfBulbGlow 2.2s infinite ease-in-out 0.7s; }
.bulb-c { animation: awfBulbGlow 2.2s infinite ease-in-out 1.4s; }

/* Tactile Holiday Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 2px solid var(--berry);
  border-radius: var(--radius);
  background-color: var(--berry);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--berry-dark);
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.btn:hover {
  background-color: var(--berry-dark);
  border-color: var(--berry-dark);
  color: var(--surface);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: var(--surface);
  border: 2px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background-color: var(--bg-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero & Sections */
.hero-section {
  padding: 20px 0 32px;
}

.hero-section-home {
  padding: 10px 0 28px;
}

.hero-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px;
}

.hero-head-home {
  max-width: 860px;
  margin: 0 auto 10px;
}

.hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

.hero-head-home h1 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 36px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--berry);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 0 var(--berry-dark);
}

.eyebrow-compact {
  margin-bottom: 0;
  padding: 4px 12px;
  font-size: 13px;
  box-shadow: 0 3px 0 var(--berry-dark);
}

.hero-accent {
  color: var(--berry);
}

.lede {
  margin: 0 auto;
  max-width: 60ch;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.lede-compact {
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.4;
}

.tool-mount {
  margin: 0 auto;
}

.engage-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease;
}

.pill-btn:hover {
  transform: translateY(-2px);
  border-color: var(--berry);
}

.pill-btn[data-gf-liked] {
  background-color: var(--berry);
  border-color: var(--berry);
  color: var(--surface);
  box-shadow: 0 4px 0 var(--berry-dark);
}

.engage-status {
  font-size: 14px;
  color: var(--primary);
  font-weight: 800;
}

.section-block {
  padding: 48px 0;
}

.section-alt {
  background-color: var(--bg-soft);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.section-header {
  max-width: 70ch;
  margin-bottom: 32px;
}

.section-lede {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

/* 4-Step Grid & 6-Highlight Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card,
.highlight-card {
  padding: 24px;
  border: 2.5px solid var(--border);
  border-radius: 20px;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: var(--radius-pill);
  background-color: var(--accent);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.step-card h3,
.highlight-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.step-card p,
.highlight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.highlight-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-soft);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

/* Editorial Prose & Inner Pages */
.page-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  margin-bottom: 24px;
  border: 2.5px solid var(--border);
  border-radius: 20px;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.prose-card {
  padding: 32px;
  border: 2.5px solid var(--border);
  border-radius: 24px;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 28px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 22px;
}

.prose p,
.prose li {
  font-size: 16px;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--berry);
  border-radius: var(--radius);
  background-color: var(--bg);
}

/* Copyable Note Ideas Library */
.notes-library {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

.note-cat-card {
  padding: 24px;
  border: 2.5px solid var(--border);
  border-radius: 24px;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.note-cat-blurb {
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 16px;
}

.note-items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.note-snippet {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg);
}

.note-snippet p {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.note-snippet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.note-char-hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.copy-note-btn {
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background-color: var(--surface);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.copy-note-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
}

.copy-note-btn[data-copied="1"] {
  background-color: var(--berry);
  border-color: var(--berry);
  color: var(--surface);
}

/* Guide Links Strip & CTA Banner */
.guide-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.guide-link-card {
  display: block;
  padding: 24px;
  border: 2.5px solid var(--border);
  border-radius: 20px;
  background-color: var(--surface);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, border-color 150ms ease;
}

.guide-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--berry);
  color: var(--text);
}

.guide-link-card h3 {
  color: var(--berry);
  margin-bottom: 8px;
}

.guide-link-card p {
  margin: 0;
  color: var(--muted);
}

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 24px 32px;
  border: 2.5px solid var(--border);
  border-radius: 24px;
  background-color: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}

.cta-banner h2 {
  margin-bottom: 4px;
  font-size: 28px;
}

.cta-banner p {
  margin: 0;
  color: var(--text);
  max-width: 60ch;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-card {
  padding: 24px;
  border: 2.5px solid var(--border);
  border-radius: 20px;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Comments */
.comment-box {
  max-width: 760px;
}

.comment-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 2.5px solid var(--border);
  border-radius: 24px;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.comment-form label {
  display: grid;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background-color: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
}

.comment-reply-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  color: var(--primary);
}

.link-btn {
  min-height: 44px;
  padding: 4px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background-color: var(--surface);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.link-btn:hover {
  background-color: var(--bg-soft);
}

.comment-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  padding: 16px 24px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background-color: var(--surface);
}

.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.comment-head time {
  color: var(--muted);
  font-size: 12px;
}

.comment-owner-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.comment-replies {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-left: 16px;
  border-left: 3px solid var(--border);
}

/* Code Lookup Page Card */
.code-lookup-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  border: 3px solid var(--border);
  border-radius: 24px;
  background-color: var(--surface);
  box-shadow: var(--shadow-md);
}

.code-form {
  display: grid;
  gap: 16px;
}

.code-form label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.code-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2.5px solid var(--border);
  border-radius: 14px;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.code-feedback {
  padding: 16px;
  border: 2px dashed var(--berry);
  border-radius: var(--radius);
  background-color: var(--bg-soft);
  color: var(--text);
}

.code-feedback p {
  margin: 0 0 12px;
}

.code-feedback p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 48px 0;
  border-top: 3px solid var(--border);
  background-color: var(--surface);
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-disclaimer {
  max-width: 70ch;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-grid,
  .note-items-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 22px;
  }
  h3 {
    font-size: 18px;
  }
  .lede,
  .section-lede {
    font-size: 16px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    background-color: var(--primary);
    border-bottom: 3px solid var(--primary-dark);
  }
  .site-nav[data-open="1"] {
    display: flex;
  }
  .steps-grid,
  .highlights-grid,
  .guide-links-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .prose-card,
  .code-lookup-card,
  .cta-banner {
    padding: 24px 16px;
  }
  .page-top-bar {
    padding: 12px 16px;
  }
}
