:root {
  --bg: #f8fbf4;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --ink: #173127;
  --muted: #4f675d;
  --line: rgba(18, 95, 48, 0.12);
  --green: #0b9444;
  --green-dark: #0a7f3b;
  --green-soft: #edf8f0;
  --gold-soft: #f6f2d9;
  --shadow: 0 24px 64px rgba(21, 39, 29, 0.08);
  --radius-lg: 2rem;
  --radius-xl: 2.5rem;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #ecfdf3 0%, #f7faea 48%, #ffffff 100%);
  font-size: 18px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
textarea { resize: vertical; }

.site-shell { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: #fff;
  color: var(--ink);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.brand-button {
  border: 0;
  background: transparent;
  padding: 0;
}
.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #def5e5;
  color: var(--green);
  box-shadow: 0 8px 24px rgba(11, 148, 68, 0.12);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-kicker {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--green);
}
.brand-name {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 700;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  padding: 0.72rem 1rem;
  border-radius: 999px;
}
.site-nav button:hover,
.site-nav button:focus-visible,
.mobile-menu button:hover,
.mobile-menu button:focus-visible,
.brand-button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(11, 148, 68, 0.2);
  outline-offset: 2px;
}
.menu-button {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  margin: 0 auto;
  position: relative;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.mobile-menu {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}
.mobile-menu-inner {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 0 1.2rem;
}
.mobile-menu button {
  text-align: left;
  border: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.95rem 1rem;
  border-radius: 1.25rem;
  font-weight: 600;
}

main { padding-block: 1.25rem 4rem; }
.top-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.6rem;
}
.image-card {
  margin: 0;
  overflow: hidden;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 43, 28, 0.08);
  border: 1px solid var(--line);
}
.image-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.section-surface {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  margin-top: 1.1rem;
  padding: 3rem;
}
.hero-flow::before,
.join-shell::before {
  content: "";
  position: absolute;
  inset: auto auto 0 -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(145, 221, 162, 0.45), transparent 70%);
  pointer-events: none;
}
.hero-flow::after,
.join-shell::after {
  content: "";
  position: absolute;
  inset: -40px -60px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(231, 241, 161, 0.5), transparent 68%);
  pointer-events: none;
}
.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--green);
}
.light { color: #ebfff3; }
.hero-copy, .hero-ribbon-list, .join-copy, .join-form { position: relative; z-index: 1; }
.hero-copy h1 {
  margin: 0.7rem 0 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.lead {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.9;
  color: var(--muted);
  max-width: 42rem;
  margin-top: 1.3rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.hero-ribbon-list {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.ribbon-card,
.panel-soft,
.flow-card,
.calendar-row,
.feed-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(21, 39, 29, 0.06);
}
.ribbon-card {
  padding: 1.5rem;
}
.ribbon-card h2,
.flow-card h3,
.calendar-row h3,
.panel-soft h3,
.feed-card h3,
.join-copy h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
}
.ribbon-card p,
.flow-card p,
.calendar-row p,
.panel-soft p,
.feed-card p,
.join-copy p,
.section-heading p,
.reply-body,
.link-list a,
.status-message,
.feed-meta,
.reply-meta {
  color: var(--muted);
}

.section-block { margin-top: 4.5rem; }
.section-heading h2 {
  margin: 0.5rem 0 0;
  max-width: 54rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
}
.community-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.6rem;
}
.feed-column, .side-column {
  min-width: 0;
}
.search-wrap {
  display: block;
  margin-bottom: 1rem;
}
.search-wrap input,
.stack-form input,
.join-form input,
.stack-form textarea,
.join-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 78, 42, 0.14);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-radius: 999px;
  padding: 1rem 1.15rem;
  font-size: 1rem;
}
.search-wrap input {
  min-height: 3.4rem;
}
.stack-form textarea,
.join-form textarea {
  border-radius: 1.6rem;
  min-height: 150px;
}
.stack-form,
.join-form {
  display: grid;
  gap: 0.9rem;
}
.feed-list { display: grid; gap: 1rem; }
.feed-card {
  padding: 1.3rem;
  position: relative;
}
.feed-card::before,
.flow-card::before,
.calendar-row::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(208, 239, 186, 0.55), transparent 70%);
  right: -40px;
  top: -35px;
  pointer-events: none;
}
.feed-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}
.feed-meta,
.reply-meta {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.feed-title {
  font-size: 1.55rem;
  margin: 0.3rem 0 0;
}
.feed-body,
.reply-body {
  font-size: 1.02rem;
  margin: 0.75rem 0 0;
}
.feed-tag {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.feed-actions button,
.reply-form button,
.edit-actions button {
  border: 0;
}
.replies {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 4px solid rgba(11, 148, 68, 0.12);
}
.reply-card {
  border-radius: 1.35rem;
  background: #f4fbf1;
  padding: 0.85rem 1rem;
}
.reply-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}
.reply-form textarea {
  min-height: 92px;
  border-radius: 1.3rem;
}
.edit-title,
.edit-body {
  width: 100%;
  border: 1px solid rgba(17, 78, 42, 0.14);
  background: #fff;
  color: var(--ink);
}
.edit-title {
  min-height: 3rem;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.35rem;
}
.edit-body {
  border-radius: 1.5rem;
  min-height: 140px;
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 0.9rem;
}
.edit-actions {
  display: flex;
  justify-content: end;
  gap: 0.65rem;
  margin-top: 0.9rem;
}
.panel-soft {
  padding: 1.4rem;
}
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.link-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 1.4rem;
  background: #f4fbf1;
  font-weight: 700;
}
.link-list a::after {
  content: "→";
  color: var(--green);
}
.invite-banner {
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #0b9444, #24a654 55%, #a7d155);
  color: #fff;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.invite-banner h3 {
  margin: 0.55rem 0 0;
  font-size: 1.6rem;
  line-height: 1.3;
}
.invite-link {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.flow-list,
.calendar-list {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
}
.flow-card,
.calendar-row {
  position: relative;
  padding: 1.5rem;
}
.flow-card.alt,
.calendar-row.alt {
  background: rgba(244, 250, 226, 0.96);
}
.calendar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.75fr) minmax(180px, 0.75fr);
  gap: 1rem;
  align-items: center;
}
.calendar-row p { margin: 0; }
.join-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 2rem;
  margin-top: 4.5rem;
  padding: 2.3rem;
}
.join-copy h2 {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.14;
}
.join-copy > p:last-of-type {
  font-size: 1.08rem;
  line-height: 1.85;
}
.join-benefits {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.join-benefits div {
  padding: 1rem 1.1rem;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, rgba(11, 148, 68, 0.08), rgba(226, 241, 178, 0.35));
  font-weight: 700;
}
.check-wrap {
  display: flex;
  gap: 0.8rem;
  align-items: start;
  background: #fff;
  padding: 1rem 1.1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(17, 78, 42, 0.14);
}
.check-wrap input {
  width: 18px;
  height: 18px;
  margin-top: 0.3rem;
  accent-color: var(--green);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1.3rem;
  font-weight: 700;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid {
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 30px rgba(11, 148, 68, 0.22);
}
.btn-solid:hover { background: var(--green-dark); }
.btn-soft {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(17, 78, 42, 0.14);
}
.btn-light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.status-message {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}
.status-message.success { color: #0b6f36; }
.status-message.error { color: #8d2a2a; }
.status-message.light { color: #f1fff7; }
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 980px) {
  .site-nav { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .top-gallery,
  .hero-flow,
  .community-grid,
  .join-shell,
  .calendar-row {
    grid-template-columns: 1fr;
  }
  .hero-flow,
  .join-shell { padding: 1.5rem; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-shell { width: min(calc(100% - 1rem), var(--max)); }
  .image-card img { height: 230px; }
  .brand-name { font-size: 1.4rem; }
  .hero-copy h1 { line-height: 1.02; }
  .feed-card,
  .flow-card,
  .calendar-row,
  .panel-soft,
  .invite-banner { padding: 1.1rem; }
}
