/* The Sunday Kids — static rebuild */
:root {
  --sun: #f6c445;
  --sun-deep: #e8a317;
  --sky: #5ec8e8;
  --sky-deep: #2a9fc4;
  --ink: #1f2a32;
  --muted: #5a6a75;
  --cream: #fff8ee;
  --sand: #f3e6d4;
  --card: #ffffff;
  --coral: #e87a5a;
  --green: #6faf6a;
  --shadow: 0 10px 30px rgba(31, 42, 50, 0.08);
  --radius: 16px;
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(246, 196, 69, 0.28), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(94, 200, 232, 0.22), transparent 55%),
    var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); }
a:hover { color: var(--coral); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 248, 238, 0.92);
  border-bottom: 1px solid rgba(31, 42, 50, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.logo img {
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sky);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
}
.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: rgba(246, 196, 69, 0.35);
  color: var(--ink);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

.logo.logo-lockup img {
  width: auto;
  height: 54px;
  max-width: min(240px, 58vw);
  object-fit: contain;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.footer-logo-full {
  width: auto;
  height: 48px;
  max-width: 260px;
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(246, 196, 69, 0.45), transparent 60%),
    radial-gradient(800px 380px at 90% 10%, rgba(94, 200, 232, 0.4), transparent 55%),
    linear-gradient(180deg, #cfeef8 0%, #fff8ee 78%);
  color: var(--ink);
  text-align: center;
}
.hero-band-inner {
  padding: 1.25rem 0 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}
.hero-band .hero-lede {
  margin: 0 auto 0.5rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-band .cta-row {
  justify-content: center;
  margin-top: 0.5rem;
}
.section {
  padding: 3rem 0;
}
.section-tight { padding: 2rem 0 3rem; }
.section h1, .section h2 {
  margin-top: 0;
  letter-spacing: 0.01em;
}
.lead {
  font-size: 1.15rem;
  max-width: 46rem;
  color: var(--muted);
}
.mission-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 720px;
  margin: 0.5rem auto 0;
  position: relative;
  z-index: 2;
  text-align: center;
  border: 1px solid rgba(31,42,50,0.06);
}
.mission-card h2 {
  margin: 0 0 0.75rem;
  color: var(--sky-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.mission-card p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.55;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--sun), var(--sun-deep));
  color: #1a1a1a;
}
.btn-primary:hover { color: #1a1a1a; }
.btn-secondary {
  background: #fff;
  border-color: var(--sky);
  color: var(--sky-deep);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(31,42,50,0.2);
  color: var(--ink);
}

.story-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid rgba(31,42,50,0.06);
}
.card h2, .card h3 { margin-top: 0; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral);
  margin: 0 0 0.35rem;
}

.project-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31,42,50,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(31,42,50,0.12);
  color: inherit;
}
.project-card .thumb {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: var(--sand);
}
.project-card .body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.project-card h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}
.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.project-card .more {
  font-weight: 700;
  color: var(--sky-deep);
  font-size: 0.9rem;
}

.gallery-header {
  padding: 2.25rem 0 1rem;
}
.gallery-header .back {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
.gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  padding-bottom: 3rem;
}
.gallery-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-grid a:hover img { transform: scale(1.03); }

.involve-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.involve-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--sun);
}
.involve-card.follow { border-top-color: var(--sky); }
.involve-card h2 { margin-top: 0; }
.social-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: var(--sand);
  color: var(--ink);
}
.social-list a:hover { background: rgba(94,200,232,0.25); }

.site-footer {
  margin-top: 2rem;
  background: #1f2a32;
  color: #f5f7f8;
  padding: 2.25rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.footer-brand img { border-radius: 50%; }
.footer-brand p { margin: 0.15rem 0 0; color: #b7c2c9; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .social { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.footer-contact p { margin: 0.25rem 0; }

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: rgba(255,248,238,0.98);
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid rgba(31,42,50,0.08);
  }
  .site-nav.is-open { display: flex; }
  .header-inner { position: relative; }
  .mission-card { margin-top: 0.25rem; }
}

/* Live brand mark and home project carousel */
.logo img {
  border-radius: 0;
  box-shadow: none;
}
.logo .site-logo {
  width: auto;
  height: 54px;
  max-width: min(240px, 58vw);
  object-fit: contain;
  flex: 0 0 auto;
}
.footer-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-logo {
  width: auto;
  height: 44px;
  max-width: 200px;
  object-fit: contain;
}

.hero-band .hero-lede {
  margin: 0.35rem auto 0.15rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-band .cta-row {
  justify-content: center;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}

/* Modest rotating photo strip — similar size to earlier collage frame */
.project-carousel {
  width: min(560px, 100%);
  margin: 0.75rem auto 0;
  outline: none;
}
.carousel-frame {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  border: 6px solid rgba(255,255,255,0.9);
  border-radius: 18px;
  background: var(--sand);
  box-shadow: 0 12px 28px rgba(31,42,50,0.12);
}
.carousel-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.carousel-image.is-changing {
  opacity: 0.18;
  transform: scale(1.015);
}
.carousel-caption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(31,42,50,0.74);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.6rem;
}
.carousel-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.carousel-button {
  min-width: 2.35rem;
  min-height: 2.15rem;
  border: 1px solid rgba(31,42,50,0.2);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: rgba(255,255,255,0.88);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.carousel-button:first-child,
.carousel-button:last-child {
  padding: 0.05rem 0.7rem 0.3rem;
  font-size: 1.4rem;
  line-height: 1;
}
.carousel-button:hover {
  background: var(--sun);
}
@media (max-width: 760px) {
  .hero-band-inner { padding-top: 1rem; padding-bottom: 2rem; }
  .project-carousel { width: min(100%, 480px); }
  .carousel-frame,
  .carousel-image { max-height: 280px; }
  .carousel-toolbar { flex-wrap: wrap; }
}

/* ryan-logo-fix */
.site-header .header-inner {
  min-height: 112px;
  align-items: center;
}
.logo.logo-lockup {
  display: inline-flex;
  align-items: center;
}
.logo.logo-lockup img,
.logo .site-logo {
  width: auto !important;
  height: 96px !important;
  max-width: min(200px, 55vw);
  object-fit: contain;
  object-position: left center;
}
.footer-logo-lockup img,
.footer-logo {
  width: auto !important;
  height: 64px !important;
  max-width: 140px;
  object-fit: contain;
}
.hero-band-inner {
  padding-top: 1rem !important;
  padding-bottom: 1.75rem !important;
  gap: 0.75rem;
}
.hero-band .hero-lede {
  margin-top: 0;
}


/* Friendly, high-contrast refresh */
:root {
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Fredoka", "Nunito", sans-serif;
  --deep-teal: #0b5663;
}

body { font-family: var(--font); }
h1, h2, h3, h4, h5, h6, .site-nav a, .btn {
  font-family: var(--heading-font);
}
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 600;
}
.site-nav a { font-weight: 500; }

/* Give section labels and titles a more substantial, kid-friendly hierarchy. */
.kicker {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
}
.page-title {
  font-size: clamp(2.55rem, 6vw, 4rem);
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.site-footer {
  background: var(--deep-teal);
}
.footer-logo-lockup img,
.footer-logo {
  height: 52px !important;
  max-width: 96px;
}

/* Controls are intentionally absent; the carousel pauses on hover/focus. */
.carousel-toolbar,
.carousel-caption { display: none; }

@media (max-width: 760px) {
  .page-title { font-size: clamp(2.35rem, 11vw, 3.2rem); }
  .footer-logo-lockup img,
  .footer-logo { height: 46px !important; }
}

/* Page-title and home hero hierarchy refresh */
.page-title {
  font-family: var(--heading-font);
  font-size: clamp(2.8rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero-band-inner {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-band .hero-lede {
  align-self: center;
  max-width: 52rem;
  margin: 0.6rem auto 0.4rem;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-band .cta-row,
.hero-band .project-carousel {
  align-self: center;
}
.hero-band .project-carousel {
  margin-left: auto;
  margin-right: auto;
}

/* page-title-center */
.page-title {
  text-align: center;
  width: 100%;
}
.section > .container > .lead {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* button-equal-center */
.hero .container {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.hero-band-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}
.hero-band .hero-lede {
  text-align: center;
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-band .cta-row {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch;
  gap: 0.85rem;
  width: auto;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero-band .cta-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  width: 11.5rem;
  box-sizing: border-box;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
}
.hero-band .project-carousel,
.hero-band .project-carousel-modest {
  display: block !important;
  width: min(560px, 92vw) !important;
  max-width: 560px;
  margin: 0.75rem auto 0 !important;
  align-self: center !important;
  float: none !important;
  position: relative;
  left: auto;
  right: auto;
}
.hero-band .carousel-frame,
.hero-band .carousel-image {
  display: block;
  width: 100%;
  margin: 0 auto;
}

/* Get Involved: equal Join / Follow buttons on a shared baseline */
.involve-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.involve-card > p:not(.involve-action) {
  flex: 1 0 auto;
}
.involve-card > .involve-action {
  flex: 0 0 auto;
  margin: auto 0 0;
  padding-top: 1.25rem;
}
.involve-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  box-sizing: border-box;
  text-align: center;
  text-wrap: balance;
}
