:root {
  --teal-700: #3f9e9c;
  --teal-600: #57b2b0;
  --teal-500: #69b9b6;
  --teal-300: #a7dad7;
  --cream-100: #fbf6c8;
  --cream-200: #fff1b9;
  --sand-100: #fffbee;
  --ink-900: #1f3a3a;
  --ink-700: #305353;
  --ink-500: #557474;
  --white: #ffffff;
  --shadow-soft: 0 24px 50px rgba(57, 127, 124, 0.14);
  --shadow-card: 0 18px 35px rgba(38, 95, 94, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --page-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at top left, rgba(255, 241, 185, 0.85), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(105, 185, 182, 0.25), transparent 22%),
    linear-gradient(180deg, #fffef8 0%, #f6fbfb 48%, #fffef9 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
iframe {
  max-width: 100%;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(6px);
}

.site-shell::before {
  top: -110px;
  right: -100px;
  background: rgba(105, 185, 182, 0.22);
}

.site-shell::after {
  bottom: -160px;
  left: -120px;
  background: rgba(255, 241, 185, 0.66);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(87, 178, 176, 0.95);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(40, 95, 94, 0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 800;
  color: var(--white);
}

.brand-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(145deg, #fff9de, #ffd978 92%);
  color: var(--teal-700);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42);
}

.brand-text strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-link.active {
  background: rgba(255, 248, 222, 0.95);
  color: var(--teal-700);
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  font-weight: 800;
}

.hero {
  padding: 2.6rem 0 1.3rem;
}

.hero-grid,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
}

.hero-card,
.panel,
.category-card,
.video-card,
.story-card,
.upload-card,
.metric-card,
.guideline-card,
.resource-callout {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(105, 185, 182, 0.17);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 241, 185, 0.8), rgba(255, 241, 185, 0));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 241, 185, 0.72);
  color: var(--teal-700);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.35rem;
}

.hero-card p,
.page-hero-copy p,
.section-intro p,
.panel p,
.story-card p,
.upload-card p,
.metric-card p,
.video-copy p,
.community-copy p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.65;
  font-size: 1.03rem;
}

.hero-card p {
  margin-top: 1rem;
  max-width: 58ch;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(52, 122, 121, 0.28);
}

.button-secondary {
  background: rgba(255, 241, 185, 0.86);
  color: var(--ink-900);
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.button:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible {
  transform: translateY(-2px);
}

.hero-visual,
.page-hero-visual {
  position: relative;
  min-height: 390px;
}

.hero-playfield {
  position: relative;
  height: 100%;
  min-height: 390px;
}

.blob {
  position: absolute;
  border-radius: 38% 62% 62% 38% / 43% 41% 59% 57%;
  background: linear-gradient(145deg, rgba(105, 185, 182, 0.92), rgba(167, 218, 215, 0.9));
  box-shadow: var(--shadow-card);
}

.blob.blob-main {
  inset: 1.4rem 3.8rem 4.2rem 1rem;
}

.blob.blob-small {
  width: 150px;
  height: 150px;
  right: 0.4rem;
  top: 0.25rem;
  background: linear-gradient(145deg, rgba(255, 241, 185, 0.98), rgba(255, 251, 238, 1));
}

.hero-note,
.hero-mini-card,
.safety-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(87, 178, 176, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.hero-note {
  top: 1.4rem;
  left: 2rem;
  width: 220px;
  padding: 1rem;
}

.hero-note strong,
.hero-mini-card strong,
.stat-badge strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.hero-mini-card {
  width: 210px;
  padding: 1rem;
  bottom: 1.7rem;
}

.hero-mini-card:nth-of-type(4) {
  left: 0;
}

.hero-mini-card:nth-of-type(5) {
  right: 1.2rem;
}

.mini-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 241, 185, 0.92);
  color: var(--teal-700);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.section {
  padding: 1.2rem 0 4rem;
}

.section-header,
.section-intro {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.section-header p,
.section-intro p {
  max-width: 55ch;
}

.cards-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -20px -32px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 241, 185, 0.75), rgba(255, 241, 185, 0));
}

.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.55rem;
  background: rgba(105, 185, 182, 0.13);
  color: var(--teal-700);
  margin-bottom: 1rem;
}

.pill-list,
.safety-list,
.guideline-list,
.resource-list,
.fact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.pill-list li,
.safety-list li,
.guideline-list li,
.resource-list li,
.fact-list li {
  display: flex;
  gap: 0.7rem;
  align-items: start;
  color: var(--ink-700);
  line-height: 1.45;
}

.pill-list li::before,
.safety-list li::before,
.guideline-list li::before,
.resource-list li::before,
.fact-list li::before {
  content: "•";
  color: var(--teal-700);
  font-size: 1.2rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.card-link {
  display: inline-flex;
  margin-top: 1.1rem;
  font-weight: 800;
  color: var(--teal-700);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.4rem;
}

.panel {
  padding: 1.5rem;
}

.stats-graphic {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
}

.stat-board {
  display: grid;
  gap: 1rem;
}

.stat-chart {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(87, 178, 176, 0.1), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(87, 178, 176, 0.15);
}

.bar-group {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 800;
  font-size: 0.95rem;
}

.bar-track {
  width: 100%;
  height: 16px;
  background: rgba(105, 185, 182, 0.14);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.45rem;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
}

.bar-fill.yellow {
  background: linear-gradient(90deg, #ffdf70, #f6c342);
}

.stat-side {
  display: grid;
  gap: 1rem;
}

.stat-badge,
.metric-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 241, 185, 0.72);
  box-shadow: var(--shadow-card);
}

.metric-card strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--teal-700);
}

.metric-card .metric-trend {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(255, 241, 185, 0.66);
}

.metric-card .metric-trend.up {
  background: rgba(255, 207, 99, 0.3);
  color: #946400;
}

.metric-card .metric-trend.down {
  background: rgba(105, 185, 182, 0.16);
  color: var(--teal-700);
}

.source-note {
  margin-top: 1rem;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.source-note a {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.resource-callout {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.stories-preview {
  display: grid;
  gap: 1rem;
}

.story-card {
  padding: 1.35rem;
}

.story-card header,
.upload-item header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.9rem;
}

.story-meta,
.upload-meta {
  color: var(--ink-500);
  font-size: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tag,
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.tag {
  background: rgba(105, 185, 182, 0.12);
  color: var(--teal-700);
}

.status-badge {
  background: rgba(255, 241, 185, 0.8);
  color: var(--ink-900);
}

.page-hero {
  padding: 2.2rem 0 1.2rem;
}

.page-hero-copy,
.page-hero-visual {
  min-height: 100%;
}

.page-hero-copy {
  padding: 1.9rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(87, 178, 176, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.page-hero-visual {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.topic-orbit {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 241, 185, 0.95), rgba(255, 241, 185, 0.4) 24%, transparent 30%),
    linear-gradient(145deg, rgba(105, 185, 182, 0.95), rgba(87, 178, 176, 0.78));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.topic-core,
.topic-pill,
.quote-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.topic-core {
  inset: 3.4rem auto auto 2rem;
  width: 210px;
  padding: 1.2rem;
}

.topic-pill {
  padding: 0.9rem 1rem;
  font-weight: 800;
}

.topic-pill.one {
  right: 1.2rem;
  top: 2rem;
}

.topic-pill.two {
  right: 2rem;
  bottom: 2.2rem;
}

.quote-card {
  left: 2.4rem;
  bottom: 1.7rem;
  width: 240px;
  padding: 1rem;
}

.feature-grid,
.video-grid,
.community-grid,
.resource-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.guideline-card,
.upload-card,
.video-card,
.upload-item {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(105, 185, 182, 0.18);
  box-shadow: var(--shadow-card);
}

.video-frame {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #d4eceb;
  margin-bottom: 1rem;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-copy small,
.upload-meta small {
  color: var(--ink-500);
}

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

.field {
  display: grid;
  gap: 0.4rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 800;
  color: var(--ink-900);
}

input[type="text"],
input[type="password"],
input[type="file"],
select,
textarea {
  width: 100%;
  border: 1px solid rgba(87, 178, 176, 0.24);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: #fffefb;
  color: var(--ink-900);
  font: inherit;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 241, 185, 0.9);
  border-color: var(--teal-600);
}

.helper-text {
  color: var(--ink-500);
  font-size: 0.92rem;
  line-height: 1.5;
}

.status-text {
  margin-top: 1rem;
  min-height: 1.6rem;
  font-weight: 700;
  color: var(--ink-700);
}

.status-text.error {
  color: #a84426;
}

.status-text.success {
  color: #2f7e54;
}

.empty-state {
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 238, 0.92);
  border: 1px dashed rgba(87, 178, 176, 0.35);
  color: var(--ink-700);
}

.upload-list,
.post-list {
  display: grid;
  gap: 1rem;
}

.upload-item a {
  color: var(--teal-700);
  font-weight: 800;
}

.footer {
  margin-top: 1rem;
  padding: 1.4rem 0 3rem;
}

.footer-card {
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, rgba(87, 178, 176, 0.95), rgba(60, 145, 143, 0.95));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 0.7fr;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-links a {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .page-hero,
  .split-grid,
  .stats-graphic,
  .footer-grid,
  .resource-callout {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .feature-grid,
  .video-grid,
  .community-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .page-hero-visual {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 78px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(63, 158, 156, 0.98);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

  .hero-card,
  .page-hero-copy,
  .panel,
  .feature-card,
  .story-card,
  .upload-card,
  .guideline-card,
  .resource-callout,
  .metric-card {
    padding: 1.15rem;
  }

  .hero-note {
    position: relative;
    width: auto;
    left: auto;
    top: auto;
    margin: 1rem 1rem 0;
  }

  .hero-mini-card,
  .topic-core,
  .topic-pill,
  .quote-card {
    position: static;
    width: auto;
  }

  .hero-playfield,
  .topic-orbit {
    display: grid;
    gap: 1rem;
    min-height: unset;
    padding: 1rem;
  }

  .blob.blob-main,
  .blob.blob-small {
    display: none;
  }

  .section-header,
  .section-intro {
    align-items: start;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
