:root {
  --green-900: #264a28;
  --green-700: #46723b;
  --green-500: #7ca34c;
  --cream: #fffaf0;
  --peach: #f5b29a;
  --yellow: #f5cf61;
  --blue: #76b9d4;
  --ink: #263028;
  --muted: #667268;
  --white: #ffffff;
  --line: #e3ebdd;
  --shadow: 0 14px 32px rgba(38, 74, 40, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(70, 114, 59, 0.12);
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  font-size: 1.9rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--green-900);
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: var(--green-900);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-block: 64px 56px;
  text-align: left;
}

.hero-copy {
  width: 100%;
  min-width: 0;
}

.hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 34rem;
}

.hero h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  color: var(--green-900);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  margin-top: 4px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--green-700);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(70, 114, 59, 0.22);
  border: 2px solid var(--green-700);
}

.button.outline {
  background: transparent;
  color: var(--green-900);
  box-shadow: none;
}

/* Images */

.feature-image {
  width: 88%;
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: auto;
}

/* Sections */

.section {
  padding-block: 60px;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 30px;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.centered {
  margin-inline: auto;
  text-align: center;
}

.note {
  color: var(--muted);
}

/* Two-column image + text layouts */

.intro-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

/* Programs */

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

.program-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.program-card > span {
  font-size: 1.8rem;
}

.program-card h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 1.05rem;
}

.program-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-meta,
.event-meta {
  color: var(--green-700) !important;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Photo collage */

.photo-collage,
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.collage-item,
.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.collage-item img,
.photo-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Events */

.event-grid,
.event-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.event-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.event-card h3 {
  margin: 0 0 4px;
  color: var(--green-900);
  font-size: 1.15rem;
}

.event-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.event-date {
  margin: 0 0 10px !important;
  color: var(--green-700) !important;
  font-weight: 700;
  font-size: 0.85rem !important;
}

.event-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.event-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  object-fit: contain;
}

/* Why Curious Bloom Lab */

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

.value-card {
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  text-align: center;
}

.value-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.9rem;
}

.value-card h3 {
  margin: 0 0 6px;
  color: var(--green-900);
  font-size: 1.05rem;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-block: 60px;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(245, 207, 97, 0.4), rgba(245, 178, 154, 0.32));
  text-align: center;
}

.contact-card > div {
  width: 100%;
  min-width: 0;
}

.contact-card p {
  max-width: 520px;
  margin-inline: auto;
}

.contact-card a[href^="mailto:"] {
  font-weight: 700;
  color: var(--green-900);
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

footer {
  padding-block: 26px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin: 4px 0;
}

/* Accessibility */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Responsive breakpoints */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding-block: 48px 40px;
  }

  .hero-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .intro-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 24px, 1200px);
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
    min-height: 0;
    padding-block: 14px;
    text-align: center;
  }

  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  nav a {
    font-size: 0.88rem;
  }

  .hero,
  .section {
    padding-block: 40px;
  }

  .feature-image {
    border-width: 5px;
    border-radius: 18px;
  }

  .program-grid,
  .event-grid,
  .event-list,
  .values-grid,
  .photo-collage,
  .photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-card-header {
    align-items: flex-start;
  }

  .contact-card {
    margin-block: 40px;
    padding: 26px 20px;
  }
}

/* Larger, easier-to-read body text (index.html only) */

.text-comfortable {
  font-size: 1.0625rem;
}

.text-comfortable .hero-copy > p:not(.eyebrow) {
  font-size: 1.35rem;
  max-width: 38rem;
}

.text-comfortable .note,
.text-comfortable .program-card p,
.text-comfortable .event-card p,
.text-comfortable .value-card p,
.text-comfortable .contact-card p,
.text-comfortable .intro-grid p,
.text-comfortable .about-grid p {
  font-size: 1.15rem;
}

.text-comfortable .card-meta,
.text-comfortable .event-meta {
  font-size: 0.88rem;
}

.text-comfortable .event-date {
  font-size: 1rem !important;
}

.text-comfortable nav a {
  font-size: 1.02rem;
}

.text-comfortable .brand small {
  font-size: 0.85rem;
}

.text-comfortable footer {
  font-size: 1rem;
}
