:root {
  --ink: #18202a;
  --muted: #5b6573;
  --line: #dce2e8;
  --paper: #ffffff;
  --soft: #f6f8f5;
  --teal: #116b68;
  --teal-dark: #0b4b49;
  --coral: #d8674a;
  --gold: #b9832f;
  --sage: #678765;
  --violet: #65558f;
  --sky: #dbeef0;
  --shadow: 0 18px 45px rgba(24, 32, 42, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

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

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 226, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  min-width: max-content;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: conic-gradient(from 180deg, var(--teal), var(--coral), var(--gold), var(--sage), var(--teal));
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 9px 11px;
  border-radius: 6px;
  color: #334052;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #edf4f3;
  color: var(--teal-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.menu-button span {
  top: 20px;
}

.menu-button::before {
  top: 13px;
}

.menu-button::after {
  top: 27px;
}

.button,
button.button {
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover,
button.button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 107, 104, 0.22);
}

.button.secondary {
  background: #fff;
  color: var(--teal-dark);
  border: 1px solid rgba(17, 107, 104, 0.28);
}

.button.secondary:hover {
  background: #edf4f3;
  box-shadow: none;
}

.button.coral {
  background: var(--coral);
}

.button.coral:hover {
  background: #bf5238;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(15, 25, 30, 0.76) 0%, rgba(15, 25, 30, 0.5) 46%, rgba(15, 25, 30, 0.1) 100%),
    url("community-hero.png") center / cover no-repeat;
  color: #fff;
}

.hero-content {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 76px 22px 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 850;
  font-size: 13px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bde9e5;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  margin: 14px 0 14px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.section-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin-top: 42px;
}

.hero-stat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
}

.hero-stat strong {
  display: block;
  font-size: 22px;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.section {
  padding: 72px 22px;
}

.section.alt {
  background: var(--soft);
}

.section.band {
  background: #102a2d;
  color: #fff;
}

.section.band .section-intro p,
.section.band .muted {
  color: rgba(255, 255, 255, 0.74);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-intro h2,
.content-block h2,
.policy h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-intro p,
.content-block p {
  max-width: 680px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card,
.feed-card,
.event-card,
.form-panel,
.policy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 0 rgba(24, 32, 42, 0.02);
}

.card {
  padding: 22px;
}

.card h3,
.feed-card h3,
.event-card h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.card p,
.feed-card p,
.event-card p,
.small,
.muted {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #edf4f3;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.tag.coral {
  background: #fff0eb;
  color: #a8482e;
}

.tag.gold {
  background: #fff6e6;
  color: #775111;
}

.tag.sage {
  background: #edf5ec;
  color: #496b47;
}

.tag.violet {
  background: #f0eef8;
  color: #4b3f73;
}

.topic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topic-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.topic-icon.business {
  background: var(--teal);
}

.topic-icon.relationships {
  background: var(--coral);
}

.topic-icon.parenting {
  background: var(--sage);
}

.topic-icon.events {
  background: var(--gold);
}

.feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: #334052;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.feed-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: start;
}

.feed-list {
  display: grid;
  gap: 14px;
}

.feed-card {
  padding: 20px;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

.avatar-row {
  display: flex;
  align-items: center;
  margin-top: 16px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  background: #dbeef0;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

.feed-side {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.profile-card {
  padding: 22px;
  background: #102a2d;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-card p {
  color: rgba(255, 255, 255, 0.74);
}

.progress {
  height: 9px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 8px;
}

.progress span {
  display: block;
  height: 100%;
  width: 72%;
  background: #8edbd4;
}

.list {
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
}

.list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.page-hero {
  background: linear-gradient(120deg, #f3faf8 0%, #fff8f2 55%, #f3f1fb 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 38px;
  align-items: center;
}

.page-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}

.hero-panel {
  border: 1px solid rgba(17, 107, 104, 0.14);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel-image {
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(16, 42, 45, 0.1), rgba(16, 42, 45, 0.58)),
    url("community-hero.png") center / cover no-repeat;
}

.hero-panel-body {
  padding: 20px;
}

.hero-panel-body h3 {
  margin: 0 0 8px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.mini-stat {
  padding: 12px;
  border-radius: var(--radius);
  background: #f6f8f5;
}

.mini-stat strong {
  display: block;
  font-size: 20px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}

.content-block {
  display: grid;
  gap: 18px;
}

.resource-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.resource-table th,
.resource-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.resource-table th {
  background: #edf4f3;
  color: var(--teal-dark);
  font-size: 13px;
}

.resource-table tr:last-child td {
  border-bottom: 0;
}

.event-card {
  overflow: hidden;
}

.event-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #102a2d;
  color: #fff;
}

.event-date strong {
  font-size: 28px;
}

.event-body {
  padding: 18px;
}

.event-details {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.form-panel {
  padding: 24px;
}

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

.field {
  display: grid;
  gap: 7px;
}

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

label {
  font-weight: 800;
  color: #2d3847;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd5dd;
  border-radius: 7px;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(17, 107, 104, 0.18);
  border-color: var(--teal);
}

.notice {
  display: none;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: #edf5ec;
  color: #31552f;
  font-weight: 700;
}

.notice.visible {
  display: block;
}

.contact-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-card h3 {
  margin: 0 0 12px;
}

.contact-card + .contact-card {
  margin-top: 14px;
}

.policy {
  padding: 28px;
}

.policy h2 {
  margin-top: 30px;
  font-size: 27px;
}

.policy h2:first-child {
  margin-top: 0;
}

.policy p,
.policy li {
  color: var(--muted);
}

.policy ul {
  padding-left: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #101820;
  color: #fff;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 22px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(140px, 1fr));
  gap: 24px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 22px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  font-size: 14px;
}

.hide {
  display: none !important;
}

@media (max-width: 920px) {
  .nav-links,
  .nav-actions .button {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.open .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 66px;
    display: grid;
    justify-content: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-header.open .nav-links a {
    padding: 12px;
  }

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

  .grid.three,
  .feed-grid,
  .page-hero-inner,
  .split,
  .form-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feed-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    padding: 12px 16px;
  }

  .brand {
    font-size: 15px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content,
  .page-hero-inner,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .section-intro {
    display: grid;
  }

  .hero-strip,
  .grid.two,
  .grid.three,
  .grid.four,
  .stat-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .resource-table {
    display: block;
    overflow-x: auto;
  }

  .button,
  button.button {
    width: 100%;
  }
}
