:root {
  color-scheme: light;
  --trust-black: #1C252B;
  --white: #FFFFFF;
  --fresh-green: #CFFC54;
  --friendly-purple: #D6DAF3;
  --honest-green: #DAE4D7;
  --expert-green: #597A77;
  --bold-orange: #FF5C00;
  --system-light: #F1EEEE;
  --ink: var(--trust-black);
  --muted: rgba(28, 37, 43, .68);
  --soft-muted: rgba(28, 37, 43, .52);
  --line: rgba(28, 37, 43, .14);
  --line-strong: rgba(28, 37, 43, .24);
  --shadow: 0 24px 70px rgba(28, 37, 43, .13);
  --soft-shadow: 0 12px 30px rgba(28, 37, 43, .08);
  font-family: "Circular Pro", "Circular Std", "Circular-pro-book", "CircularPro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--white) 0, var(--honest-green) 42rem, var(--white) 100%);
  color: var(--ink);
  letter-spacing: -.01em;
}

a { color: inherit; }
.site-header, .site-footer, main { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--trust-black);
  color: var(--fresh-green);
  font-weight: 900;
  letter-spacing: -.08em;
  box-shadow: var(--soft-shadow);
}
.brand strong { display: block; font-size: 1.03rem; letter-spacing: -.03em; }
.brand small { display: block; color: var(--muted); margin-top: 2px; }

nav { display: flex; gap: 10px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); backdrop-filter: blur(14px); }
nav a { text-decoration: none; padding: 10px 15px; border-radius: 999px; color: var(--muted); font-weight: 700; }
nav a[aria-current="page"], nav a:hover { background: var(--trust-black); color: var(--white); }

.search-panel, .page-hero, .help-cta {
  background: var(--trust-black);
  color: var(--white);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
  margin: 14px 0 38px;
}
.hero-inner { max-width: 760px; }
.search-panel h1, .page-hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: .95;
  margin: 10px 0 18px;
  letter-spacing: -.04em;
  max-width: 820px;
}
.search-panel p, .page-hero p, .help-cta p { color: rgba(255,255,255,.82); max-width: 720px; line-height: 1.62; }

.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .76rem; font-weight: 850; color: var(--fresh-green) !important; margin: 0; }
.search-box { display: flex; gap: 10px; margin-top: 28px; max-width: 810px; position: relative; z-index: 2; }
.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 20px;
  padding: 18px 19px;
  font: inherit;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.44), 0 18px 34px rgba(0,0,0,.16);
  outline: none;
}
.search-box input:focus { box-shadow: inset 0 0 0 3px var(--fresh-green), 0 18px 34px rgba(0,0,0,.16); }
button, .button {
  border: 0;
  border-radius: 20px;
  padding: 0 22px;
  min-height: 56px;
  font: inherit;
  font-weight: 850;
  background: var(--fresh-green);
  color: var(--trust-black);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(207,252,84,.18);
}
button:hover, .button:hover { transform: translateY(-1px); }

.section { margin: 42px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2, .help-cta h2 { margin: 4px 0 0; font-size: clamp(1.65rem, 3vw, 2.55rem); letter-spacing: -.04em; line-height: 1; }
.section-heading p:not(.eyebrow) { color: var(--muted); }
.category-grid, .article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.category-card, .article-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
  min-height: 190px;
}
.category-card::before, .article-card::before {
  content: "";
  position: absolute;
  width: 8.5rem;
  height: 8.5rem;
  right: -4.5rem;
  top: -4.5rem;
  border-radius: 44% 56% 52% 48%;
  background: var(--honest-green);
  transition: .2s ease;
}
.category-card:nth-child(2n)::before, .article-card:nth-child(2n)::before { background: var(--friendly-purple); }
.category-card:nth-child(3n)::before, .article-card:nth-child(3n)::before { background: rgba(207,252,84,.55); }
.category-card:hover, .article-card:hover { transform: translateY(-3px); border-color: var(--line-strong); transition: .18s ease; }
.category-card:hover::before, .article-card:hover::before { transform: scale(1.25) rotate(-8deg); }
.category-card span, .category-pill { color: var(--expert-green); font-size: .8rem; font-weight: 850; letter-spacing: .02em; }
.category-card h3, .article-card h3 { margin: 10px 0 8px; font-size: 1.22rem; letter-spacing: -.035em; line-height: 1.12; position: relative; }
.category-card p, .article-card p { color: var(--muted); margin-bottom: 0; line-height: 1.58; position: relative; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--fresh-green); text-decoration-thickness: .18em; text-underline-offset: .18em; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; }
.tags span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--trust-black); font-size: .78rem; background: rgba(218,228,215,.72); font-weight: 700; }
.tags span:nth-child(2n) { background: rgba(214,218,243,.74); }
.live-results { margin-top: 18px; display: grid; gap: 10px; max-width: 860px; position: relative; z-index: 2; }
.result-row { display: block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 20px; padding: 17px; text-decoration: none; backdrop-filter: blur(8px); }
.result-row:hover { background: rgba(255,255,255,.18); }
.result-row strong { display: block; color: var(--white); }
.result-row span { color: rgba(255,255,255,.72); }
mark { background: var(--fresh-green); color: var(--trust-black); border-radius: 6px; padding: 0 .12em; }
.no-results { background: rgba(255,255,255,.13); border: 1px dashed rgba(255,255,255,.42); border-radius: 20px; padding: 18px; color: rgba(255,255,255,.86); }
.no-results span { color: rgba(255,255,255,.72); }

.article-layout { max-width: 860px; margin: 22px auto 36px; }
.breadcrumbs { color: var(--muted); margin-bottom: 18px; font-weight: 700; }
.breadcrumbs a { text-decoration-color: var(--fresh-green); text-decoration-thickness: .16em; text-underline-offset: .17em; }
.article-header { background: var(--white); border: 1px solid var(--line); border-radius: 30px; padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.article-header::after { content: ""; position: absolute; right: -4rem; top: -4rem; width: 14rem; height: 14rem; border-radius: 999px; background: var(--honest-green); opacity: .78; }
.article-header > * { position: relative; z-index: 1; }
.article-header h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: .95; letter-spacing: -.052em; margin: 8px 0 15px; }
.article-header > p { color: var(--muted); font-size: 1.12rem; line-height: 1.58; }
dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 0; }
dl div { border: 1px solid var(--line); border-radius: 18px; padding: 13px; background: rgba(241,238,238,.42); }
dt { color: var(--soft-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 850; }
dd { margin: 4px 0 0; font-weight: 850; }
.article-body { font-size: 1.08rem; line-height: 1.78; padding: 30px 4px; color: rgba(28,37,43,.86); }
.article-body p { margin: 0 0 1.1em; }

.help-cta { background: var(--expert-green); margin-top: 44px; }
.help-cta::before { background: var(--friendly-purple); opacity: .85; }
.help-cta::after { background: var(--fresh-green); opacity: .8; }
.button.ghost { background: var(--white); color: var(--trust-black); padding-inline: 20px; margin-top: 10px; box-shadow: none; }
.site-footer { color: var(--muted); border-top: 1px solid var(--line); margin-top: 46px; padding: 24px 0 40px; }
.site-footer strong { color: var(--trust-black); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 860px) {
  .category-grid, .article-grid { grid-template-columns: 1fr 1fr; }
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { align-self: stretch; }
  nav a { flex: 1; text-align: center; }
}
@media (max-width: 590px) {
  .site-header, .site-footer, main { width: min(100% - 20px, 1160px); }
  .search-panel, .page-hero, .help-cta { border-radius: 24px; }
  .search-box { flex-direction: column; }
  button, .button { width: 100%; }
  .category-grid, .article-grid, dl { grid-template-columns: 1fr; }
}
