﻿/* Newsletter: page-scoped styles. Layout descends from the Partner With Us
   comp (mockup image9, slide 24, 1672px comp) - same hero band, twin panels,
   Together strip, and warm tagline band - with the contact form replaced by
   a single email signup that posts to MailerLite (see js/main.js). */

/* ---------- Hero ----------------------------------------------------------
   Comp photo band is y88-690; the band is opened to 700px so both panels fit.
   The photograph is laid in at its natural size across the top and faded into
   the page colour behind the panels rather than blown up by `cover`.
   2026-08: the pale daylight hero-partner strip was replaced by a twilight
   field-documentary frame (hero-newsletter-dusk.jpg, 1672x941) to match the
   dark theme; only its top ~330px is visible before the fade. */
.nl-hero {
  position: relative;
  /* flow-root (not just relative): without a block-formatting context here,
     .panels's margin-top collapses through .nl-hero instead of growing it,
     so the hero stays at exactly min-height regardless of how tall the
     panels really render - flow-root fixes that without clipping content */
  display: flow-root;
  /* pulled up 88px behind the transparent nav (owner request, 2026-08) so the
     twilight photo floats through the bar; the absolute intro and the panels'
     margin below both carry the +88px offset, as do the fade stops */
  margin-top: -88px;
  min-height: 788px;
  overflow: visible;
  /* hero-newsletter-shore.jpg (owner request, 2026-09): the owner's 2:1
     ChatGPT coastline (1759x894) - the right shape for this ~1672x850
     section, so cover renders it sharp at a mild downscale with nearly the
     whole frame visible. Earlier versions (hero-newsletter-coast/-sea/
     -final/-hills/-dusk.jpg) kept on disk. */
  background:
    url("../../assets/img/hero-newsletter-shore.jpg") top center / cover no-repeat,
    var(--page);
}

/* NO scrim at all (owner request, 2026-09: the photo shows its true colours)
   - the intro copy carries a layered text halo below instead, and the panels
   sit on their own opaque surfaces */

/* faint top-anchored shadow behind the title + lede (owner request,
   2026-10): deepest behind the headline, gone by the panels - paints under
   the z-1 intro copy so the text brightens against it */
.nl-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 460px;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(25, 22, 19, .50) 0,
    rgba(25, 22, 19, .42) 30%,
    rgba(25, 22, 19, .30) 55%,
    rgba(25, 22, 19, .17) 75%,
    rgba(25, 22, 19, .07) 90%,
    rgba(25, 22, 19, 0) 100%);
}
.nl-hero > * {
  position: relative;
  z-index: 1;
}

.nl-intro {
  position: absolute;
  left: 50%;
  top: 110px;   /* comp's 22px plus the hero's 88px pull-up */
  width: 1000px;
  /* back to -500 (owner request, 2026-09: centering pass): the panels are
     equal widths now, so the seam between them IS the page centre - the
     intro sits on both at once */
  margin-left: -500px;
  text-align: center;
  /* the raw photo shows behind the intro now (no scrim), so the text wears
     the layered warm-dark halo the other boxless pages use */
  text-shadow:
    0 0 3px rgba(25, 22, 19, .9),
    0 1px 3px rgba(25, 22, 19, .85),
    0 2px 10px rgba(25, 22, 19, .6),
    0 4px 20px rgba(25, 22, 19, .4);
}

/* the halo inherits into the gold buttons' dark ink and reads as a smudged
   emboss there (same lesson as the Download PDF button) - keep them clean */
.nl-intro .btn-gold { text-shadow: none; }

.nl-hero h1 {
  font-family: var(--f-smallcaps);
  /* raised from 58px (owner request, 2026-10: more presence) */
  font-size: 66px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--head);
}

.nl-lede {
  width: 860px;
  margin: 26px auto 0;
  /* bold, white, a step bigger, matching the watch lede (owner, 2026-10) */
  font-size: 20px;
  font-weight: 700;
  line-height: 1.44;
  color: #FFFFFF;
  text-shadow:
    0 0 4px rgba(25, 22, 19, .95),
    0 1px 4px rgba(25, 22, 19, .9),
    0 2px 12px rgba(25, 22, 19, .75),
    0 5px 24px rgba(25, 22, 19, .55);
}

/* ---------- Hero signup: button that unfolds into the live form ---------- */
/* min-height pins the slot so the button-to-form swap happens in place
   without the panels below shifting; the flex column centres the button and
   the revealed form explicitly rather than leaning on inherited text-align */
.nl-join {
  /* 17, not 20 (owner request, 2026-09): with the two-line lede the button
     sat 23px under the text but 17px above the panels - this centres it in
     that space at 20/20 */
  /* 14 (2026-10): recentres the button at 17/17 with the taller lede */
  margin-top: 10px;  /* 13/13 with the 66px title (2026-10) */
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nl-join-btn {
  font-size: 19px;
  padding: 12px 40px;
  transition: opacity .18s ease, transform .18s ease;
}

/* leaving state: the button fades and shrinks before the form takes the slot */
.nl-join-btn.leaving {
  opacity: 0;
  transform: scale(.94);
}

/* [hidden] must be restated for both: the author display values (btn-gold's
   inline-flex, the form's flex) outweigh the browser's built-in
   [hidden]{display:none}, which would leave them painted despite the
   attribute - the form visible on load, the spent button still holding
   its slot after the swap */
.nl-form[hidden],
.nl-join-btn[hidden] { display: none; }

/* entering state: the form starts faded and slightly low, then rises in;
   .pre is removed a beat after unhiding so the transition actually runs */
.nl-form {
  transition: opacity .22s ease, transform .22s ease;
}

.nl-form.pre {
  opacity: 0;
  transform: translateY(6px) scale(.98);
}

/* email + subscribe side by side; the error line wraps below them */
.nl-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.nl-form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 10px 14px;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--head);
  background: #262320;
  border: 1px solid #5A5348;
  border-radius: 3px;
}

.nl-form input[type="email"]::placeholder { color: #8A8478; }

.nl-subscribe {
  flex: 0 0 auto;
  font-size: 15px;
  padding: 9px 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nl-subscribe:disabled {
  cursor: default;
  filter: saturate(.55) brightness(1.02);
}

/* ---------- Panels --------------------------------------------------------
   Comp panels sit at y325-685, x225-800 and x815-1440. They start at y232,
   which is where the photograph is fading out, so they read as cards laid on
   the page rather than boxes floating on sky. */
.panels {
  /* flow-positioned (not absolute) so its real rendered height pushes
     .nl-hero's min-height taller instead of getting clipped by it -
     .nl-intro stays absolute above it, out of flow, so this is the only
     in-flow child sizing the section */
  position: relative;
  /* comp's 232 + 68 signup + 88 pull-up gave 388; trimmed to 353 when the
     lede shortened (owner request, 2026-08) so the button-to-panels gap
     matches the 40px below the panels */
  /* 221, not the comp's 218 (owner request, 2026-09: centering pass): with
     1230px of cards on a 1672px page, 221 each side is symmetric */
  margin: 353px 0 40px 221px;
  display: grid;
  /* EQUAL columns, not the comp's 582/633 (owner request, 2026-09): unequal
     panels put their seam 28px off the page's centre, and every centred
     element above and below picked a different line - equal panels collapse
     the seam, the group centre and the page centre into ONE axis */
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 1230px;
}

.panel {
  position: relative;
  min-height: 436px;
  padding: 26px 34px 30px;
  /* translucent, not opaque (owner request, 2026-09, per their mockup): the
     coastline photograph shows through the cards as dark glass; the alpha is
     tuned so the white copy still clears the bright water behind it */
  background: rgba(28, 24, 20, .87);  /* 50% darker (owner, 2026-10) */
  border: 1px solid rgba(210, 162, 76, .34);
}

/* the comp draws a second hairline just inside the frame; it is what keeps
   these reading as printed cards rather than plain boxes */
.panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(210, 162, 76, .16);
  pointer-events: none;
}

.panel > * {
  position: relative;
}

.panel h2 {
  font-size: 26px;
  text-align: center;
}

/* each panel's rule pinned to its own heading's width (owner choice,
   2026-09: title-width motif); auto margins centre them */
.panel .ornament-center { margin: 12px auto 0; }
.panel-support .ornament-center { width: 262px; }
.panel-connect .ornament-center { width: 241px; }

/* and the page title's, pinned to the 368px "Get Involved" */
.nl-intro .ornament-center { width: 419px; }  /* 66px title (2026-10) */

/* ---------- Left panel: Support Our Work ---------- */
/* top-aligned, not centred (owner request, 2026-08): both panels' headings
   sit on the same line of sight; the donate button drops to the panel's foot
   to mirror the Connect panel's send-button rhythm */
.panel-support {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

/* the button is PINNED 90px off the panel foot (its position from the
   accepted 2026-09 pass); .support-mid above takes all remaining space and
   centres the paragraph in it, so text centring never moves the button */
.panel-support .donate { margin: 0 0 90px; }

.support-mid {
  flex: 1 1 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* (the flourish glyph above Support Our Work came off - owner request,
   2026-08) */

.panel-support p {
  width: 420px;
  margin-top: 0;
  /* raised from 16.5px (owner request, 2026-08: readability pass) */
  font-size: 18px;
  line-height: 1.44;
  color: var(--text);
}

.donate {
  margin-top: 36px;
  /* sized to match the other two gold buttons on the page (owner request,
     2026-09): 19px face, 12px vertical padding; the heart icon is capped at
     20px so it cannot inflate the line box past it */
  padding: 12px 34px;
  font-size: 19px;
  /* normal, not the panel's inherited 1.5 - the taller line box was the last
     5px keeping it above the Send Message button's height */
  line-height: normal;
}

.donate svg { flex: 0 0 auto; width: 20px; height: 20px; }

/* ---------- Right panel: Connect With Us ---------- */
/* visual-only contact form (owner decision, 2026-08): email + message, no
   endpoint yet - js/main.js answers submits with the honest stub note */
.panel-connect {
  display: flex;
  flex-direction: column;
  /* flex-start, matching the Support panel, so the two headings align */
  justify-content: flex-start;
}

.panel-note {
  width: 470px;
  margin: 14px auto 0;
  text-align: center;
  /* raised from 15.5px (owner request, 2026-08: readability pass) - kept a
     step below the Support panel's copy, preserving the existing hierarchy */
  font-size: 17px;
  line-height: 1.36;
  /* --text, not --muted (owner request, 2026-08): side by side with the
     Support panel's paragraph, the greyer tone read as a mismatch */
  color: var(--text);
}

.connect-form {
  /* 470, not 490: the Connect panel narrowed ~26px when the two panels
     equalised (2026-09 centering pass), and the -56px row shift needs the
     labels to stay clear of the card's left frame */
  width: min(470px, 100%);
  margin: 20px auto 0;
}

/* label left, field right, as the comp draws its form rows */
.field {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 16px;
  /* half the label column (96px + 16 gap), on the ROWS ONLY (owner request,
     2026-09): the input boxes centre under the body text while the labels
     hang left - the Send Message button and everything else stay centred */
  transform: translateX(-56px);
}

.field + .field { margin-top: 10px; }

.field label {
  font-family: var(--f-smallcaps);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--gold-role);
  /* right-aligned in the label column (owner request, 2026-09) so the words
     sit snug against their input boxes rather than floating far left */
  text-align: right;
}

.field input,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--head);
  background: #262320;
  border: 1px solid #5A5348;
  border-radius: 2px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8A8478;
}

.field-message { align-items: start; }
.field-message label { padding-top: 9px; }

.field textarea {
  height: 108px;
  resize: vertical;
  line-height: 1.35;
}

/* honeypot: parked far off-canvas rather than display:none, which some bots
   are smart enough to skip; aria-hidden + tabindex=-1 keep it away from
   real visitors entirely */
.nl-trap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nl-error {
  /* full-width row under the email + subscribe pair */
  flex: 1 0 100%;
  font-family: var(--f-body);
  font-style: italic;
  font-size: 15px;
  color: #E58C74;
  text-align: center;
  margin-top: 2px;
}

/* replaces the form after a successful signup */
.nl-done {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--gold-bright);
  text-align: center;
  margin: 26px auto 0;
}

.form-actions {
  margin-top: 16px;
  text-align: center;
}

.form-actions .btn-gold {
  /* 19px, no uppercase/tracking override (owner request, 2026-09): the same
     small-caps face and size as the Join Our Newsletter and Donate buttons */
  font-size: 19px;
  padding: 12px 34px;
}

.form-actions .btn-gold:disabled {
  cursor: default;
  filter: saturate(.55) brightness(1.02);
}

.nl-secure {
  margin-top: 14px;
  text-align: center;
  /* raised from 14.5px (owner request, 2026-08: readability pass) - still
     the smallest voice on the card, visually secondary by colour and size */
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- Together, we can ---------------------------------------------
   Comp band y690-870: rule-flanked heading, then three icon rows split by
   faint verticals. */
.together {
  padding: 26px 96px 30px;
  background: var(--page);
}

.together > h2 {
  /* raised from 25px (owner request, 2026-08: readability pass) */
  font-size: 26px;
}

/* the shared .rule-heading is a flex row; these are its side rules */
.together > h2::before,
.together > h2::after {
  content: "";
  display: block;
  width: 190px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}

.together > h2::after {
  background: linear-gradient(90deg, var(--gold-deep), transparent);
}

.together-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 24px;
  list-style: none;
}

.together-list li {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  column-gap: 26px;
  padding: 0 30px;
}

.together-list li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(210, 162, 76, .18);
}

.together-list h3 {
  font-family: var(--f-smallcaps);
  /* raised from 19px (owner request, 2026-08: readability pass) */
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .11em;
  color: var(--gold-bright);
}

.together-list p {
  margin-top: 9px;
  /* raised from 15px (owner request, 2026-08: readability pass) */
  font-size: 16px;
  line-height: 1.34;
  color: var(--text);
}

/* (the brown tag-band was replaced by the shared parchment quote-band,
   carrying the site motto - owner request, 2026-08) */

/* ---------- Responsive fallback ---------- */
@media (max-width: 1200px) {
  .nl-hero {
    /* the nav wraps taller than 88px at these widths, so the pull-up
       comes off */
    margin-top: 0;
    height: auto;
    padding: 44px 24px 40px;
    /* full cover here too (2026-08 swap): no fade band, no vw-pinned stops */
    background:
      url("../../assets/img/hero-newsletter-shore.jpg") top center / cover no-repeat,
      var(--page);
  }

  /* relative rather than static: the z-index that lifts these above the scrim
     comes from `.nl-hero > *`, and z-index does nothing on an
     unpositioned box */
  .nl-intro {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    margin-left: 0;
  }
  .nl-hero h1 { font-size: 44px; }
  .nl-lede { width: auto; max-width: 720px; }

  .panels {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    /* the full shorthand, not just margin-top: the comp indent (margin-left
       218px) has to go with it, or the stacked cards start 218px in from the
       left and run off the right edge of a phone */
    margin: 30px 0 0;
  }
  /* a grid column is min-width:auto by default, so any child with a wide
     min-content (the donate button, a long label) pushes the column past the
     viewport instead of wrapping */
  .panels > * { min-width: 0; }
  .panel { min-height: 0; }
  .panel-support p { width: auto; max-width: 460px; }
  .panel-note { width: auto; max-width: 500px; }

  .together { padding: 30px 24px; }
  .together-list { grid-template-columns: 1fr; gap: 24px; }
  .together-list li { padding: 0; }
  .together-list li + li::before { display: none; }
}

@media (max-width: 760px) {
  .nl-hero h1 { font-size: 34px; }
  .together > h2::before,
  .together > h2::after { width: 40px; }

  .field {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  /* labels stack above the inputs here, so the desktop half-label shift
     would just push the rows off-centre - and a right-aligned label above a
     full-width box reads stranded */
  .field { transform: none; }
  .field label { text-align: left; }
  .form-actions .btn-gold { width: 100%; justify-content: center; }

  .together-list li { grid-template-columns: 1fr; row-gap: 12px; }
}

/* ---------- Motion (site-motion variant only) ---------- */
/* The forms page is the most restrained on the site: one quiet hero copy
   sequence, then the two glass panels rising over the coastline (their
   ornaments draw on arrival automatically) - everything else is carried by
   the site-wide micro-interactions. No mSettle here: the photograph is the
   section's own background, not a hero ::before. Every rule is gated behind
   html.motion, so with motion off the page renders exactly as the original.
   The signup swap mechanics (.nl-join-btn / .nl-form / [hidden]) and the
   .field rows (translateX(-56px)) are untouched no-go zones. */

/* Intro sequence: title rises, ornament draws from its centre diamond,
   the lede follows, and the join slot fades in last (mFade only - it wraps
   a gold button that owns its own hover/press transforms). */
.motion .nl-hero h1 {
  animation: mRise var(--m-dur-hero) var(--m-ease-out) .15s both;
}

.motion .nl-intro .ornament-center { --orn-delay: 500ms; }

.motion .nl-lede {
  animation: mRise var(--m-dur-hero) var(--m-ease-out) .65s both;
}

.motion .nl-join {
  animation: mFade var(--m-dur-hero) var(--m-ease-out) .85s both;
}
