:root {
  --ink: #172326;
  --muted: #5d6a6c;
  --paper: #fbfaf5;
  --white: #fffef9;
  --lime: #d8ff6b;
  --lime-dark: #a8d72c;
  --teal: #165f5b;
  --teal-soft: #dcefed;
  --coral: #f07a5a;
  --line: #d9dfd9;
  --shadow: 0 18px 50px rgba(23, 35, 38, 0.09);
  --radius: 22px;
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.narrow { max-width: 830px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 250, 245, .94); border-bottom: 1px solid rgba(23,35,38,.1); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 830; letter-spacing: -.025em; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--lime); font-family: Georgia, serif; font-style: italic; }
.site-nav { display: flex; align-items: center; gap: 27px; font-size: .95rem; font-weight: 660; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--teal); }
.nav-cta { padding: 10px 16px; background: var(--teal); color: white !important; border-radius: 999px; }
.nav-toggle { display: none; border: 0; background: transparent; font-weight: 700; }

.hero { position: relative; overflow: hidden; padding: 92px 0 84px; background: radial-gradient(circle at 86% 12%, rgba(216,255,107,.54), transparent 26%), linear-gradient(150deg, #fffef9, #eef6ea); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(22,95,91,.18); border-radius: 50%; left: -100px; bottom: -135px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: center; gap: clamp(50px, 8vw, 110px); }
.eyebrow, .small-caps { margin: 0 0 12px; color: var(--teal); font-size: .77rem; line-height: 1.3; font-weight: 820; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 6vw, 5.8rem); max-width: 850px; }
h1 em { color: var(--teal); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.3rem; }
.hero-lede { max-width: 700px; margin: 0 0 34px; color: #405154; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 12px; color: var(--ink); font-weight: 760; line-height: 1.25; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(23,35,38,.12); }
.button.primary { padding: 14px 20px; background: var(--ink); color: white; }
.button.secondary { padding: 14px 20px; background: transparent; }
.trust-list { display: flex; flex-wrap: wrap; gap: 13px 25px; padding: 0; margin: 30px 0 0; color: var(--muted); font-size: .9rem; list-style: none; }
.trust-list li::before { content: "✓"; margin-right: 8px; color: var(--teal); font-weight: 900; }
.hero-panel { position: relative; padding: 30px; background: var(--ink); color: white; border-radius: 28px; box-shadow: var(--shadow); transform: rotate(1deg); }
.hero-panel::after { content: ""; position: absolute; inset: 11px -12px -12px 11px; z-index: -1; border: 2px solid var(--coral); border-radius: 28px; }
.panel-label { margin: 0 0 20px; color: var(--lime); font-weight: 800; }
.hero-panel ol { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.hero-panel li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.14); }
.hero-panel li > span { color: var(--lime); font-family: Georgia, serif; font-size: 1.2rem; }
.hero-panel strong, .hero-panel small { display: block; }
.hero-panel small { margin-top: 5px; color: #bac8c8; line-height: 1.5; }

.section { padding: 86px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; }
.text-link { color: var(--teal); font-weight: 760; text-decoration-thickness: 1px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.resource-card { display: flex; flex-direction: column; min-height: 100%; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 0 rgba(23,35,38,.02); }
.resource-card:hover { border-color: #aebbb5; box-shadow: 0 16px 38px rgba(23,35,38,.07); }
.resource-card[hidden] { display: none; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.category { padding: 6px 10px; background: var(--teal-soft); color: var(--teal); border-radius: 999px; font-size: .74rem; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }
.cost { color: var(--muted); font-size: .8rem; }
.resource-card h3 { margin-bottom: 10px; }
.resource-card > p { margin: 0 0 16px; color: var(--muted); }
.resource-card .best-for { font-size: .9rem; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 17px; margin-top: auto; padding-top: 10px; }
.resource-link { border-color: var(--teal); background: var(--teal); color: white; font-size: .84rem; }
.resource-link[data-monetized="true"]::after { content: "Ad"; margin-left: 8px; padding: 2px 5px; background: rgba(255,255,255,.18); border-radius: 4px; font-size: .63rem; letter-spacing: .06em; text-transform: uppercase; }
.card-actions .text-link { font-size: .86rem; }
.resource-card.compact { padding: 22px; }
.resource-card.compact .card-topline { margin-bottom: 18px; }
.guide-section { background: var(--teal); color: white; }
.guide-section .eyebrow, .guide-section .text-link { color: var(--lime); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-card { padding: 32px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.guide-card h3 { margin-bottom: 12px; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.guide-card h3 a { text-decoration: none; }
.guide-card > p:not(.eyebrow) { color: #d7e9e7; }
.disclosure-banner { display: grid; grid-template-columns: .8fr 1fr auto; align-items: center; gap: 40px; padding: 38px; background: var(--lime); border: 1px solid #b9df51; border-radius: 26px; }
.disclosure-banner h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.disclosure-banner p { margin: 0; }

.page-hero, .article-hero { padding: 78px 0 64px; background: linear-gradient(135deg, #fffef9, #e9f3e6); border-bottom: 1px solid var(--line); }
.page-hero h1, .article-hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.8rem); }
.page-hero p:last-child { color: var(--muted); font-size: 1.16rem; }
.library-tools { position: sticky; top: 76px; z-index: 20; margin: -28px 0 34px; padding: 22px; background: rgba(255,254,249,.96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.library-tools label { display: block; margin-bottom: 8px; font-weight: 780; }
.library-tools input { width: 100%; padding: 13px 15px; border: 1px solid #b8c3be; border-radius: 12px; background: white; color: var(--ink); }
.library-tools input:focus { outline: 3px solid rgba(22,95,91,.17); border-color: var(--teal); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.filter { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); cursor: pointer; font-size: .84rem; font-weight: 700; }
.filter.active { border-color: var(--teal); background: var(--teal); color: white; }
.library-tools .small { margin: 12px 0 0; color: var(--muted); }
.library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty-state { padding: 50px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.article-shell { max-width: 790px; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--teal); font-weight: 750; }
.article-intro { color: #405154; font-size: 1.22rem; }
.byline { margin: 28px 0 0; color: var(--muted); font-size: .88rem; }
.article-body { padding-top: 60px; padding-bottom: 90px; }
.article-section { margin-bottom: 54px; }
.article-section h2 { margin-bottom: 20px; font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
.article-section p { font-size: 1.04rem; }
.checklist { display: grid; gap: 10px; padding: 20px 24px; background: var(--teal-soft); border-radius: 16px; list-style: none; }
.checklist li::before { content: "✓"; margin-right: 10px; color: var(--teal); font-weight: 900; }
.inline-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.inline-resources .small-caps { grid-column: 1 / -1; }
.article-note { padding: 26px; background: #fff3dd; border-left: 5px solid var(--coral); border-radius: 0 16px 16px 0; }
.article-note p { margin-bottom: 0; }
.prose { max-width: 790px; }
.prose h2 { margin: 50px 0 16px; font-size: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1.06rem; }

.site-footer { padding: 70px 0 24px; background: var(--ink); color: #d6dfde; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 45px; }
.site-footer .brand { color: white; }
.footer-brand { margin-bottom: 14px; }
.site-footer h2 { margin-bottom: 14px; color: var(--lime); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p { color: #aebdbc; }
.site-footer a:not(.brand) { display: block; margin: 8px 0; color: #d6dfde; }
.site-footer .small { font-size: .82rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: #94a6a5; font-size: .8rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 580px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .disclosure-banner { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 28px, 1160px); }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 67px; left: 14px; right: 14px; display: none; align-items: stretch; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 7px 4px; }
  .nav-cta { padding: 10px 13px !important; text-align: center; }
  .hero { padding: 62px 0; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.2rem); }
  .hero-panel { padding: 24px; transform: none; }
  .section { padding: 62px 0; }
  .section-heading { display: block; }
  .section-heading .text-link { display: inline-block; margin-top: 15px; }
  .resource-grid, .library-grid, .guide-grid, .inline-resources { grid-template-columns: 1fr; }
  .library-tools { position: static; margin-top: -18px; }
  .article-hero, .page-hero { padding: 58px 0 50px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
