/* ============================================================
   Separation & Reconnection — October into November
   The page crosses from first-frost daylight (top) to November
   dusk (bottom). Backgrounds step darker at section boundaries.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* palette */
  --frost: #F4F2ED;
  --pale-grass: #ECE5D6;
  --dry-grass: #B99B6B;
  --ponderosa: #4A3B2A;
  --river: #3E5C58;
  --river-deep: #33504C;
  --dusk: #1F262B;
  --dusk-2: #262F35;
  --dusk-3: #191F23;
  --light: #F1EDE4;
  --light-muted: #C4C9C2;
  --dark-muted: #75674F;

  /* week-by-week ink — the year darkening.
     Darkened so the week-one date clears AA contrast on the pale-grass ground. */
  --wk1: #6F5D3B;
  --wk2: #665738;
  --wk3: #5D5136;
  --wk4: #524B36;
  --wk5: #454334;
  --wk6: #363A32;
  --wk7: #24292C;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 34rem;
  --pad-x: 1.25rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ponderosa);
  background: var(--frost);
  -webkit-font-smoothing: antialiased;
}

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

/* ── layout ─────────────────────────────────────────────────── */

.section { padding: 4.5rem var(--pad-x); }
.measure { max-width: var(--measure); margin: 0 auto; }

.section--frost { background: var(--frost); color: var(--ponderosa); }
.section--grass { background: var(--pale-grass); color: var(--ponderosa); }
.section--river { background: var(--river-deep); color: var(--light); }
.section--dusk2 { background: var(--dusk-2); color: var(--light); }
.section--dusk  { background: var(--dusk); color: var(--light); }

h2 {
  font-family: var(--display);
  font-weight: 450;
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.section-lede { margin: 0 0 2.5rem; color: var(--dark-muted); }
.section-lede--light { color: var(--light-muted); }

/* ── hero ───────────────────────────────────────────────────── */

.hero { padding-top: 5.5rem; padding-bottom: 5rem; }

.hero-kicker {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wk1);
  margin: 0 0 1.75rem;
}

.hero-title {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(2.5rem, 9vw, 3.75rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: var(--display);
  font-style: normal;
  font-weight: 340;
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--river);
  margin: 0 0 1.5rem;
}

.hero-orientation { margin: 0 0 0.5rem; }

.hero-meta {
  margin: 0 0 2.25rem;
  color: var(--dark-muted);
  font-size: 0.9375rem;
}
.dot-sep { margin: 0 0.4em; }

/* ── artwork ────────────────────────────────────────────────── */

.hero-art { margin: 3.5rem 0 0; }

.hero-art img {
  width: 100%;
  max-width: 24rem;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(31, 38, 43, 0.14);
}

.hero-art figcaption {
  font-size: 0.8125rem;
  color: var(--dark-muted);
  margin-top: 0.75rem;
}

.art-band {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 0 3rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

/* ── buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
}

.btn--primary {
  background: var(--river);
  color: var(--light);
}
.btn--primary:hover { background: #34504c; }

:focus-visible {
  outline: 2px solid var(--dry-grass);
  outline-offset: 3px;
}

/* ── invitation ─────────────────────────────────────────────── */

.invitation { padding-top: 1rem; }

.invitation-copy {
  border-top: 1px solid var(--dry-grass);
  padding-top: 2.75rem;
}

.invitation-copy p {
  font-family: var(--display);
  font-weight: 360;
  font-size: 1.3125rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

.invitation-close { color: var(--river); }

/* ── sessions — the spine ───────────────────────────────────── */

.spine {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* the single line the seven weeks hang on */
.spine::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--wk1), var(--wk7));
}

.spine-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}
.spine-item:last-child { padding-bottom: 0; }

/* the week's node — ink deepens as the season turns */
.spine-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
}

.spine-date {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.spine-title {
  font-family: var(--display);
  font-weight: 450;
  font-size: 1.375rem;
  line-height: 1.25;
  margin: 0 0 0.375rem;
}

.spine-desc { margin: 0; }

/* ── for / not for — equal weight, by design ────────────────── */

.forwho-panel { padding: 0; }
.forwho-panel + .forwho-panel {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(241, 237, 228, 0.25);
}

.forwho-panel h3 {
  font-family: var(--display);
  font-weight: 450;
  font-size: 1.375rem;
  margin: 0 0 0.75rem;
}

.forwho-panel p { margin: 0; }

/* ── facilitators ───────────────────────────────────────────── */

.facilitator-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 600px) {
  .facilitator-grid { grid-template-columns: 1fr 1fr; }
}

.facilitator img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  border-radius: 2px;
}

.facilitator h3 {
  font-family: var(--display);
  font-weight: 450;
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
}

.facilitator-role {
  margin: -0.25rem 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dry-grass);
}

.bio-placeholder,
.facilitator .bio {
  margin: 0;
  color: var(--light-muted);
  font-size: 0.9375rem;
}

/* ── practical details ──────────────────────────────────────── */

.details-list { margin: 2rem 0 0; }

.details-list > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(241, 237, 228, 0.14);
}
.details-list > div:first-child { border-top: 1px solid rgba(241, 237, 228, 0.14); }

.details-list dt {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dry-grass);
  padding-top: 0.2em;
}

.details-list dd { margin: 0; }

@media (max-width: 480px) {
  .details-list > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ── the form ───────────────────────────────────────────────── */

.conversation { padding-bottom: 6rem; }

.field { margin-bottom: 1.5rem; }

.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.optional { font-weight: 350; color: var(--light-muted); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--light);
  background: var(--dusk-2);
  border: 1px solid rgba(241, 237, 228, 0.25);
  border-radius: 2px;
  padding: 0.75rem 0.875rem;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--dry-grass);
  outline: none;
}

.field--checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}
.field--checkbox input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.25rem;
  accent-color: var(--river);
}
.field--checkbox label { margin: 0; font-weight: 350; }

.form-error { color: #E5B8A6; }

.confirmation h3 {
  font-family: var(--display);
  font-weight: 450;
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}
.confirmation p { margin: 0; }

/* ── footer ─────────────────────────────────────────────────── */

.site-footer {
  background: var(--dusk-3);
  color: var(--light-muted);
  padding: 2.5rem var(--pad-x) 3rem;
  font-size: 0.9375rem;
}
.site-footer p { margin: 0 0 0.5rem; }
.footer-note { font-size: 0.8125rem; }

/* ── sticky CTA ─────────────────────────────────────────────── */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem var(--pad-x) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(25, 31, 35, 0.94);
  backdrop-filter: blur(6px);
  text-align: center;
  z-index: 10;
}
.sticky-cta .btn { width: 100%; max-width: var(--measure); }

@media (min-width: 700px) {
  .sticky-cta { text-align: right; padding-right: 2rem; }
  .sticky-cta .btn { width: auto; }
}

/* ── reveal on scroll (JS adds .js; reduced motion opts out) ── */

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── a11y utilities ─────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--dusk);
  color: var(--light);
  padding: 0.5rem 1rem;
  z-index: 20;
}
.skip-link:focus { left: 0; }
