/* The Open Forum: a botanical folio with live, accessible page content. */
.open-forum {
  --forum-paper: #101b15;
  --forum-ink: #edf3e8;
  --forum-sage: #bbcca7;
  --forum-muted: #c2cebf;
  --forum-rule: #52694e;
  --forum-button: #bbcca7;
  --forum-button-ink: #152819;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 7rem 1.25rem 1.25rem;
  border-top: 1px solid var(--forum-rule);
  border-bottom: 1px solid var(--forum-rule);
  background: var(--forum-paper);
  color: var(--forum-ink);
}

html[data-theme="light"] .open-forum {
  --forum-paper: #f7f9f1;
  --forum-ink: #102f23;
  --forum-sage: #52694b;
  --forum-muted: #375044;
  --forum-rule: #a6b29d;
  --forum-button: #52694b;
  --forum-button-ink: #fff;
}

.open-forum::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .25;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23889980' opacity='.1' filter='url(%23paper)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  pointer-events: none;
}

.open-forum__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  text-align: center;
}

.open-forum__wordmark {
  margin-bottom: 1.5rem;
  font: 600 3rem/1 var(--font-display);
  letter-spacing: -.055em;
}

.open-forum__wordmark span { color: var(--forum-sage); font-style: italic; }

.open-forum__eyebrow {
  margin: 0 0 1.35rem;
  font: 600 .875rem/1.5 var(--font-body);
  letter-spacing: .23em;
  text-transform: uppercase;
}

.open-forum h1 {
  margin: 0 auto;
  max-width: 64rem;
  color: var(--forum-ink);
  font: 600 clamp(3rem, 8vw, 6.5rem)/1.02 var(--font-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.open-forum h1 em {
  display: block;
  color: var(--forum-sage);
  font-weight: 500;
}

.open-forum__lede {
  max-width: 43rem;
  margin: 1.65rem auto 0;
  color: var(--forum-muted);
  font: 400 1.0625rem/1.65 var(--font-body);
  text-wrap: pretty;
}

.open-forum__actions {
  display: grid;
  gap: .75rem;
  max-width: 22rem;
  margin: 2rem auto 0;
}

.open-forum__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .85rem 1.5rem;
  border: 1px solid var(--forum-sage);
  border-radius: .4rem;
  color: var(--forum-ink);
  background: transparent;
  font: 500 1.0625rem/1.35 var(--font-body);
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.open-forum__button--primary { color: var(--forum-button-ink); background: var(--forum-button); }
.open-forum__button--primary:hover { color: var(--forum-button-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--forum-ink) 22%, transparent); }
.open-forum__button--secondary:hover { color: var(--forum-ink); background: color-mix(in srgb, var(--forum-sage) 10%, transparent); }
.open-forum__button:focus-visible { outline: 2px solid var(--forum-ink); outline-offset: 5px; }

.open-forum__benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem 1.6rem;
  margin: 2.4rem auto 0;
  padding: 0;
  list-style: none;
}

.open-forum__benefits li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--forum-ink);
  font: 400 1rem/1.4 var(--font-body);
}

.open-forum__benefits svg { flex-shrink: 0; width: 1.7rem; height: 1.7rem; }
.open-forum__botanicals { position: absolute; z-index: 0; inset: 0; pointer-events: none; user-select: none; }
.open-forum__plant { position: absolute; bottom: -7rem; width: 8rem; opacity: .16; }
.open-forum__plant--tomato { left: -2rem; }
.open-forum__plant--brassica { right: -2rem; }
.open-forum__plant img { display: block; width: 100%; height: auto; filter: brightness(1.6) saturate(.6); }
html[data-theme="light"] .open-forum__plant img { filter: none; }
.open-forum__orbit { display: none; position: absolute; width: 16rem; height: 38rem; color: var(--forum-sage); opacity: .6; }

#membership-application { scroll-margin-top: 7rem; }
#membership-application:focus { outline: none; }

@media (min-width: 640px) {
  .open-forum { padding: 8rem 2rem 4rem; }
  .open-forum__wordmark { font-size: 3.75rem; margin-bottom: 2rem; }
  .open-forum__actions { display: flex; justify-content: center; gap: 1.25rem; max-width: none; }
  .open-forum__button { min-width: 15.5rem; }
  .open-forum__benefits { flex-wrap: nowrap; gap: 0; margin-top: 3rem; }
  .open-forum__benefits li { padding-inline: 1.5rem; min-height: 3.3rem; }
  .open-forum__benefits li + li { border-left: 1px solid var(--forum-rule); }
  .open-forum__plant { bottom: -8rem; width: 11rem; opacity: .22; }
}

@media (min-width: 768px) {
  .open-forum { padding-inline: 5rem; }
  .open-forum__lede { font-size: 1.2rem; }
  .open-forum__eyebrow { font-size: .9375rem; letter-spacing: .32em; }
  .open-forum__plant { top: 13rem; bottom: auto; width: 12.5rem; opacity: .3; }
  .open-forum__plant--tomato { left: -5.5rem; }
  .open-forum__plant--brassica { right: -5.5rem; }
  .open-forum__plant--brassica { bottom: -2rem; height: calc(100% - 11rem); }
  .open-forum__plant--brassica img { height: 100%; object-fit: cover; object-position: left top; }
}

@media (min-width: 1024px) {
  /* Size against both dimensions: a wide, short laptop must not inherit the
     same vertical composition as a tall desktop. Minimums preserve readability
     at browser zoom; the section can grow naturally instead of clipping text. */
  .open-forum {
    --forum-plant-top: clamp(7rem, 18svh, 11.5rem);
    padding: clamp(6.5rem, 12svh, 9rem) 2rem clamp(1.5rem, 5svh, 5rem);
  }
  .open-forum__wordmark { margin-bottom: clamp(.75rem, 3svh, 2.25rem); font-size: clamp(2.75rem, 6svh, 3.75rem); }
  .open-forum__eyebrow { margin-bottom: clamp(.75rem, 2svh, 1.6rem); }
  .open-forum h1 { font-size: clamp(3.25rem, min(6.3vw, 10.8svh), 6.5rem); }
  .open-forum__lede { max-width: 43rem; margin-top: clamp(1rem, 3.5svh, 2rem); font-size: clamp(1.0625rem, 2.2svh, 1.3rem); line-height: 1.6; }
  .open-forum__actions { margin-top: clamp(1.25rem, 4svh, 2.75rem); gap: 1.8rem; }
  .open-forum__button { min-height: clamp(3.25rem, 7svh, 3.75rem); min-width: 17.5rem; font-size: clamp(1.0625rem, 2.2svh, 1.2rem); }
  .open-forum__benefits { margin-top: clamp(1.25rem, 4svh, 3.5rem); }
  .open-forum__benefits li { gap: 1rem; padding-inline: 2.6rem; min-height: clamp(2.75rem, 6svh, 3.3rem); font-size: clamp(1.0625rem, 2.2svh, 1.2rem); }
  .open-forum__benefits svg { width: clamp(2rem, 4svh, 2.5rem); height: clamp(2rem, 4svh, 2.5rem); }
  .open-forum__plant { top: var(--forum-plant-top); bottom: -2rem; height: calc(100% - var(--forum-plant-top) + 2rem); width: clamp(10rem, min(17vw, 31svh), 21rem); opacity: .7; }
  .open-forum__plant img { height: 100%; object-fit: cover; object-position: left top; }
  .open-forum__plant--tomato { left: -3.5rem; mask-image: linear-gradient(to right, #000 65%, transparent); }
  .open-forum__plant--brassica { right: -3.5rem; mask-image: linear-gradient(to left, #000 65%, transparent); }
  .open-forum__plant--brassica { bottom: -2rem; height: calc(100% - var(--forum-plant-top) + 2rem); }
  .open-forum__plant--brassica img { object-position: right top; }
  .open-forum__orbit { display: block; top: var(--forum-plant-top); height: min(38rem, 74svh); }
  .open-forum__orbit--left { left: -3rem; }
  .open-forum__orbit--right { right: -3rem; }
}

@media (min-width: 1536px) {
  .open-forum__plant { opacity: .85; }
  .open-forum__plant--tomato { left: -1rem; }
  .open-forum__plant--brassica { right: -1rem; }
  .open-forum__orbit--left { left: 0; }
  .open-forum__orbit--right { right: 0; }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .open-forum { padding-top: 6.25rem; padding-bottom: 1.25rem; }
  .open-forum__wordmark { font-size: 2.5rem; margin-bottom: .75rem; }
  .open-forum h1 { font-size: clamp(3rem, min(6.3vw, 9svh), 4rem); }
  .open-forum__lede { margin-top: 1rem; }
  .open-forum__actions,
  .open-forum__benefits { margin-top: 1.25rem; }
  .open-forum__button { min-height: 3rem; padding-block: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .open-forum__button { transition: none; }
}
