/* =========================================================================
   ROOTED EXPANSION — PRELAUNCH THRESHOLD PAGE (rootedexpansion.org)
   One simple gesture: a big welcome banner resting above the doorway like
   a title bar, the doorway itself held below it, a calm cream reading
   area, and a footer that matches the main site's dusk-field footer
   exactly (same tokens, same colors).
   Built on the same design tokens as the main build (see css/tokens.css).

   Palette:
     - warm cream    (--clouded-linen)  primary canvas throughout
     - deep forest   (--rooted-green)   body copy
     - pale sage     (--pale-sage)      the welcome banner only
     - umber         (--deep-umber / --accent)  banner lettering, the
                       invocation, and both buttons — the same umber
                       tokens the main site uses for its buttons
     - night garden  (--bg-deep)        footer, exactly as on the main site
   ========================================================================= */

:root {
  /* A pale tint of the site's sage-wash token, blended toward cream —
     light enough to read as "pale sage," not the medium field tone used
     for whole-section backgrounds elsewhere. Used only for the banner. */
  --pale-sage: #D1D2C3;
}

/* ---- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Base --------------------------------------------------------------*/
body {
  font-family: var(--font-body);
  background: var(--clouded-linen);
  color: var(--rooted-green);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

p { max-width: var(--measure); }
p + p { margin-top: var(--space-3); }

.italic-invocation {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

/* ---- Focus visibility (never remove) ----------------------------------*/
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Skip link ---------------------------------------------------------*/
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -60px;
  background: var(--deep-umber);
  color: var(--clouded-linen);
  padding: var(--space-2) var(--space-4);
  z-index: 200;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  transition: top var(--duration-fast) var(--ease-organic);
}
.skip-link:focus { top: var(--space-3); }

/* ---- Layout helpers ------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 900px) {
  .wrap { padding-inline: var(--space-6); }
}

/* ---- Buttons — the same tokens and treatment as the main site's
   .btn--primary / .btn--ghost, so "Offer a Gift" and "Write to Us" match
   the umber the rest of Rooted Expansion already uses. Real links now:
   Offer a Gift -> Zeffy donation form; Write to Us -> mailto. --------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: 0.9em 1.5em;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: background var(--duration-fast) var(--ease-organic),
              color var(--duration-fast) var(--ease-organic),
              border-color var(--duration-fast) var(--ease-organic),
              transform var(--duration-fast) var(--ease-organic);
  text-decoration: none;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #FDF8EF;
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #FDF8EF; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg-canvas); }

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  align-items: center;
  justify-content: center;
  margin-top: var(--space-6);
}

.contact-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--rooted-green);
}
.contact-note a {
  color: var(--rooted-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.contact-note a:hover { color: var(--deep-umber); }

/* =========================================================================
   THE WELCOME BANNER — a big title bar, full width like a nav bar but
   much thicker, resting above the doorway rather than overlapping it.
   ========================================================================= */
.welcome-banner {
  background: var(--pale-sage);
  padding-block: var(--space-6);
  padding-inline: var(--space-4);
  text-align: center;
  box-shadow: 0 10px 26px -18px rgba(61, 44, 35, 0.4);
}
.welcome-banner__heading { line-height: 1.15; }
.welcome-banner__lead {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.25rem);
  color: var(--deep-umber);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
.welcome-banner__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 3vw, 2.6rem);
  color: var(--deep-umber);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

/* =========================================================================
   THE DOORWAY — the emotional center of the page. Full-bleed now, edge to
   edge like the banner above it, so banner + image read as one continuous
   top rather than a bar sitting over a boxed-in picture.
   ========================================================================= */
.hero-threshold {
  background: var(--clouded-linen);
}

.door-frame__image {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 12px 28px -20px rgba(61, 44, 35, 0.45);

  aspect-ratio: 771 / 941;
  max-height: 85vh;
}
@media (min-width: 640px) {
  .door-frame__image { aspect-ratio: 1672 / 941; }
}
.door-frame__image picture,
.door-frame__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* =========================================================================
   THE READING AREA — one calm cream field. No panel, no border, no
   competing color; just type and space.
   ========================================================================= */
.welcome {
  padding-block: var(--space-7) var(--space-8);
}
.welcome__inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.welcome__inner p {
  margin-inline: auto;
  font-size: var(--text-md);
  color: var(--rooted-green);
  max-width: 56ch;
}
.welcome__divider {
  width: 180px;
  height: 28px;
  margin: var(--space-6) auto;
}
.welcome__invocation {
  font-size: var(--text-xl);
  color: var(--deep-umber);
  margin-block: var(--space-1) var(--space-5);
}
.welcome__status {
  font-size: var(--text-sm);
  color: var(--rooted-green);
  letter-spacing: 0.03em;
  margin-top: var(--space-2);
}

/* ---- Footer — matches the main site's dusk-field footer exactly:
   same background/text tokens (--bg-deep, --ink-on-dark, --ink-on-dark-soft,
   --line-on-dark), just without that footer's multi-column nav grid,
   since this page has nothing to link to yet. ------------------------- */
.site-footer {
  padding-block: var(--space-6) var(--space-4);
  background: var(--bg-deep);
  border-top: 1px solid var(--line-on-dark);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-mark { width: 40px; height: auto; margin-bottom: var(--space-2); }
.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--ink-on-dark);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
.footer-copyright {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--ink-on-dark-soft);
  opacity: 0.85;
}

/* ---- Responsive ---------------------------------------------------------*/
@media (max-width: 640px) {
  .welcome-banner { padding-block: var(--space-5); padding-inline: var(--space-3); }
  .welcome { padding-block: var(--space-6) var(--space-7); }
}
