/* Bluebonnet Girls — site styles */

:root {
  --blue-900: #18224d;
  --blue-700: #2b3f91;
  --blue-600: #3552b8;
  --blue-500: #4a6ad6;
  --blue-100: #e6ebfb;
  --lavender: #f1eefb;
  --cream: #fcfaf5;
  --white: #ffffff;
  --green: #3f7d4e;
  --paintbrush: #d9583a;
  --sun: #f4b63f;
  --ink: #1d2433;
  --muted: #5a6275;
  --line: #dfe3ee;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(24, 34, 77, 0.25);
  --max: 1120px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--blue-900); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--blue-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-900);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 245, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue-900);
}
.brand svg { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.nav-links a:hover { background: var(--blue-100); color: var(--blue-900); }
.nav-links a[aria-current="page"] { background: var(--blue-700); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--blue-700);
  color: var(--blue-700);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .no-js .nav-links { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; }
  .no-js .nav-toggle { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--blue-900); color: var(--white); }
.btn-ghost { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn-ghost:hover { background: var(--blue-100); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1000px 400px at 85% 10%, var(--blue-100), transparent 60%),
    radial-gradient(700px 300px at 0% 100%, var(--lavender), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paintbrush);
  margin-bottom: 0.75rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-art { width: 100%; max-width: 360px; margin-inline: auto; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 220px; order: -1; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 42em; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); }

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  background: linear-gradient(180deg, var(--blue-100), var(--cream));
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--blue-100);
  margin-bottom: 1rem;
}
.card a.more { font-weight: 800; text-decoration: none; }
.card a.more::after { content: " →"; }

.track {
  border-top: 6px solid var(--blue-600);
}
.track.teen { border-top-color: var(--paintbrush); }
.track ul { padding-left: 1.2rem; margin: 0.5rem 0 0; }
.track li { margin-bottom: 0.35rem; }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--blue-700);
  margin: 0 0.3rem 0.3rem 0;
}
.tag.age { background: #fde9e3; color: #9c3a22; }

/* ---------- Callout ---------- */
.callout {
  background: var(--blue-900);
  color: var(--blue-100);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.callout h2 { color: var(--white); margin-bottom: 0.25em; }
.callout p { margin: 0; }
.callout .btn-primary { background: var(--sun); color: var(--blue-900); }
.callout .btn-primary:hover { background: var(--white); }
@media (max-width: 700px) { .callout { grid-template-columns: 1fr; } }

/* ---------- Resource filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}
.filter-group { border: 0; padding: 0; margin: 0; }
.filter-group legend {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.chip:hover { border-color: var(--blue-500); }
.chip[aria-pressed="true"] { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.no-js .filters { display: none; }

.resource-count { color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.resource[hidden] { display: none; }
.resource h3 a { text-decoration: none; color: var(--blue-900); }
.resource h3 a:hover { text-decoration: underline; }
.resource .ext { font-size: 0.85rem; color: var(--muted); }

/* ---------- Prose ---------- */
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }

.note {
  background: #fff7e6;
  border-left: 5px solid var(--sun);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: #c9d1ef;
  padding: 3rem 0 2rem;
  margin-top: 0;
  font-size: 0.95rem;
}
.site-footer a { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h2 {
  color: var(--white);
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 800;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
