/* =========================================================================
   Portland Futures Bureau — placeholder site
   Wordmark: Pally (Fontshare, self-hosted variable font)
   Body & headings: Satoshi (Fontshare)
   Built for a bright, optimistic future while staying WCAG 2.1 AA:
   reading text always clears 4.5:1; large display text clears 3:1; color
   is carried by backgrounds, shapes and highlights — never the only signal.
   ========================================================================= */

/* ----- Design tokens ----------------------------------------------------- */
:root {
  /* Surfaces */
  --cream:        #fef7ee; /* warm near-white page */
  --cream-deep:   #fbeede;
  --ink:          #1c1330; /* primary reading text — ~14:1 on cream */
  --ink-soft:     #433a57; /* secondary text — ~8:1 on cream */

  /* Bright, optimistic accents (sunrise → aurora) */
  --marigold:     #ffb300;
  --coral:        #ff5a5f;
  --magenta:      #ff2e93;
  --violet:       #5b3df5;
  --teal:         #00bfa6;

  /* Accent tuned for AA text contrast on cream (used sparingly) */
  --violet-text:  #4b27d6; /* ~6.4:1 on cream */

  /* Deep field for the inverted statement panel */
  --deep:         #160c33;
  --deep-2:       #2a1163;

  --maxw: 68rem;
  --pad: clamp(1.5rem, 5vw, 5rem);
  --radius: 1.25rem;

  --font-body: "Cabinet Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mark: "Kola", "Cabinet Grotesk", system-ui, sans-serif;
}

/* ----- Reset / base ------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, p { margin: 0; }
strong { font-weight: 900; }

/* ----- Skip link (keyboard / screen-reader users) ------------------------ */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 1rem; }

/* ----- Visible focus for everyone who tabs ------------------------------- */
:focus-visible {
  outline: 3px solid var(--violet-text);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

/* ----- Decorative aurora field ------------------------------------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
  will-change: transform;
  animation: drift 32s ease-in-out infinite alternate;
}
.blob--marigold { background: var(--marigold); top: -18vmax; left: -10vmax; animation-delay: 0s; }
.blob--coral    { background: var(--coral);    top: -10vmax; right: -16vmax; animation-delay: -8s; opacity: 0.16; }
.blob--teal     { background: var(--teal);     bottom: -20vmax; right: 2vmax; animation-delay: -4s; opacity: 0.18; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vmax, 3vmax, 0) scale(1.12); }
}

/* ----- Layout shell ------------------------------------------------------ */
.site-header,
main,
.site-footer {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ----- Header / wordmark ------------------------------------------------- */
.site-header { padding-top: clamp(2rem, 6vw, 4rem); }

.wordmark {
  display: inline-block;
  font-family: var(--font-mark);
  font-weight: 400; /* Kola ships a single heavy weight — avoid faux bold */
  font-size: clamp(2.2rem, 6.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark:hover { opacity: 0.85; }

/* Highlighter mark behind key words — dark ink stays on a bright wash,
   so the contrast is preserved while the color does the talking. */
.hl {
  position: relative;
  white-space: nowrap;
  padding: 0 0.12em;
  color: var(--ink);
  isolation: isolate;
}
.hl::before {
  content: "";
  position: absolute;
  inset: 0.08em -0.06em 0.04em;
  z-index: -1;
  border-radius: 0.3em;
  transform: rotate(-1.2deg);
}
.hl--marigold::before { background: var(--marigold); }
.hl--coral::before    { background: #ffd2a8; } /* lighter coral wash keeps dark text AA */

/* ----- Statement --------------------------------------------------------- */
.statement {
  padding-block: clamp(3rem, 9vw, 6rem);
}

.statement__line {
  font-weight: 900;
  font-size: clamp(2.1rem, 5.6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

/* keyword accents — large display text, each color clears AA on cream */
.kw { color: #d2451e; }            /* imagine — warm orange-red */
.kw:nth-of-type(2) { color: #0a7d6b; }  /* build  — deep teal   */
.kw:nth-of-type(3) { color: #cc1f74; }  /* fund   — deep magenta */
.kw:nth-of-type(4) { color: var(--violet-text); } /* support — violet */

.statement__question {
  margin-top: 1.75rem;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40ch;
}

/* ----- Footer ------------------------------------------------------------ */
.site-footer {
  padding-block: 0 clamp(2rem, 5vw, 3.5rem);
}
.footer__contact {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--ink-soft);
}
.footer__email {
  font-weight: 700;
  color: var(--violet-text);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.footer__email:hover { color: #cc1f74; } /* deeper magenta — keeps AA on cream */

.footer__meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ----- Respect reduced-motion preferences -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  * { scroll-behavior: auto; }
}

/* ----- High-contrast / forced-colors safety net -------------------------- */
@media (forced-colors: active) {
  .wordmark { color: CanvasText; -webkit-text-fill-color: CanvasText; }
  .hl::before { background: Highlight; }
}
