:root {
  --palm-purple: #8112fe;
  --palm-purple-deep: #4d0f9e;
  --palm-coral: #f54955;
  --palm-yellow: #ffbf0c;
  --palm-ink: #1c1522;
  --palm-white: #ffffff;
  --primary: #8112fe;
  --primary-invert: #ffffff;
  --link: #8112fe;
  --link-hover: #6709d1;
  --link-focus: #8112fe;
  --link-active: #6709d1;
  --title-color: #1c1522;
  --body-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Bulma 1.x paints html from --bulma-scheme-main (goes dark under OS dark mode);
     pin both html and body to the brand field. */
  background: var(--palm-purple-deep);
}

body {
  /* No-white rule: every surface sits on the deep purple field.
     White is reserved for type and for floating paper cards (.pf-paper). */
  background: var(--palm-purple-deep);
}

.pf-404 {
  min-height: 50vh;
}

.pf-404-code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--palm-purple);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pf-404-text {
  font-size: 1.15rem;
  color: var(--palm-ink);
  margin-bottom: 1.75rem;
}

.pf-header {
  background: var(--palm-purple-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 56px;
}

.pf-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}

.pf-wordmark-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--palm-white);
}

.pf-wordmark-sub {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--palm-white);
  opacity: 0.65;
}

.pf-wordmark:hover .pf-wordmark-name {
  color: var(--palm-yellow);
}

.pf-lang {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.pf-lang a {
  display: inline-block;
  min-height: 2.4em;
  line-height: 2.4em;
  padding: 0 0.7em;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--palm-white);
  text-decoration: none;
  border-radius: 999px;
}

.pf-lang a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.pf-lang a.is-active {
  background: var(--palm-white);
  color: var(--palm-purple-deep);
}

.pf-hero {
  background: var(--palm-purple);
}

.pf-hero .container {
  padding: 2.25rem 1.25rem 2.5rem;
  text-align: center;
}

.pf-logo {
  display: inline-block;
  width: 100%;
  max-width: 600px;
  height: auto;
}

.pf-trim {
  height: 12px;
  background: var(--palm-coral);
  box-shadow: 0 8px 0 0 var(--palm-yellow);
}

/* Quote card: the one-line message as a pull-quote from Noah.
   White paper card (no-white rule) with a screenprint quote mark. */
.pf-quote {
  max-width: 44rem;
  margin: 0 auto;
  background: var(--palm-white);
  border-radius: 12px;
  padding: 2rem clamp(1.5rem, 6vw, 3rem) 2.1rem;
  box-shadow: 12px 12px 0 rgba(16, 4, 40, 0.45);
  color: var(--palm-ink);
}

.pf-quote-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.75rem;
  font-weight: 700;
  line-height: 0.55;
  color: var(--palm-coral);
  margin-bottom: 1.15rem;
}

.pf-quote-text {
  margin: 0;
  font-size: clamp(1.25rem, 1.05rem + 1.1vw, 1.65rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--palm-ink);
}

.pf-quote-attr {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--palm-ink);
}

.pf-attr-bar {
  width: 2.25rem;
  height: 6px;
  border-radius: 2px;
  background: var(--palm-yellow);
  flex-shrink: 0;
}

.pf-mark {
  box-shadow: inset 0 -0.22em 0 0 var(--palm-coral);
}

/* Pillars section head: uppercase, letter-spaced, two-tone rule beneath. */
.pf-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2.1rem;
  text-align: center;
}

.pf-section-head-text {
  font-size: clamp(1.3rem, 1rem + 1.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--palm-white);
}

.pf-section-head-bars {
  display: flex;
  width: 76px;
  height: 6px;
  border-radius: 2px;
  overflow: hidden;
}

.pf-section-head-bars::before {
  content: "";
  flex: 1;
  background: var(--palm-coral);
}

.pf-section-head-bars::after {
  content: "";
  flex: 1;
  background: var(--palm-yellow);
}

/* Pillar cards: white paper placards on the purple field.
   Colored top bar + hard offset shadow read as screenprinted print, not buttons. */
.pf-card {
  background: var(--palm-white);
  border-top: 6px solid var(--c, var(--palm-purple));
  border-radius: 10px;
  padding: 1.4rem 1rem 1.3rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  box-shadow: 8px 8px 0 rgba(16, 4, 40, 0.45);
}

/* Card accents (2026-08-30 client direction): alternate coral/yellow, no purple.
   Order is assigned in layouts/index.html: coral, yellow, coral, yellow. */
.pf-card-coral { --c: var(--palm-coral); }
.pf-card-yellow { --c: var(--palm-yellow); }

.pf-card-icon {
  color: var(--c, var(--palm-purple));
  line-height: 0;
}

.pf-card-icon svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
}

.pf-card-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--palm-ink);
}

.pf-card-sub {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #4c4c56;
}

.pf-video-wrap {
  max-width: 46rem;
}

.pf-video-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--palm-white);
  margin-bottom: 0.9rem;
}

.pf-video-label {
  color: var(--palm-yellow);
}

.pf-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #120b18;
  border-radius: 10px;
  overflow: hidden;
}

.pf-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pf-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease;
}

.pf-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 14px;
  background: var(--palm-coral);
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.3s ease;
}

.pf-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.pf-play-glyph {
  display: block;
  width: 0;
  height: 0;
  margin-top: 4px;
  border-style: solid;
  border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent var(--palm-white);
}

.pf-sound-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background: var(--palm-purple);
  color: var(--palm-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45em 0.9em;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(18, 11, 24, 0.45);
}

.pf-sound-pill .pf-pill-off {
  display: none;
}

.pf-sound-pill.pf-unmuted {
  background: #120b18;
}

.pf-sound-pill.pf-unmuted .pf-pill-on {
  display: none;
}

.pf-sound-pill.pf-unmuted .pf-pill-off {
  display: inline;
}

.pf-playing .pf-video-poster {
  opacity: 0;
  pointer-events: none;
}

.pf-playing .pf-play {
  opacity: 0;
  pointer-events: none;
}

@keyframes pf-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

.pf-sound-pill.pf-attention {
  animation: pf-pulse 1.6s ease-in-out 3;
}

.pf-video-channel {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.pf-video-channel a {
  color: var(--palm-yellow);
  font-weight: 700;
}

.pf-cta {
  padding: 0;
  background: var(--palm-purple);
}

.pf-cta .container {
  padding: 3rem 1.25rem 3.25rem;
  text-align: center;
}

.pf-cta-title {
  color: var(--palm-white);
  font-weight: 800;
  font-size: 1.8rem;
}

.pf-cta-intro {
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
  margin: 0.75rem auto 1.5rem;
  line-height: 1.6;
}

.pf-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pf-btn-release {
  background: var(--palm-white);
  color: var(--palm-purple);
  border: 0;
  font-weight: 800;
  width: 100%;
}

@media (min-width: 769px) {
  .pf-btn-release {
    width: auto;
  }
}

.pf-btn-release:hover {
  background: #f3ebfe;
  color: var(--palm-purple-deep);
}

.pf-pdf-link {
  display: inline-block;
  color: var(--palm-white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -0.2em 0 0 var(--palm-yellow);
}

.pf-footer {
  background: var(--palm-purple-deep);
  color: var(--palm-white);
  padding: 1.75rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
}

.pf-footer-name {
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.pf-footer-tagline {
  opacity: 0.8;
  font-size: 0.9rem;
  margin: 0;
}

.pf-back-row {
  margin-bottom: 1.25rem;
}

.pf-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--palm-white);
  text-decoration: none;
}

.pf-back:hover {
  color: var(--palm-yellow);
}

.pf-date {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--palm-ink);
  opacity: 0.65;
  margin-bottom: 1.25rem;
}

.pf-prose-wrap {
  max-width: 46rem;
}

/* Paper card: the only surface that may be white. Floats on the purple field. */
.pf-paper {
  background: var(--palm-white);
  border-radius: 12px;
  padding: 2.5rem clamp(1.5rem, 6vw, 3.25rem) 2.75rem;
  box-shadow: 14px 14px 0 rgba(16, 4, 40, 0.45);
  color: var(--palm-ink);
}

/* 404 paper */
.pf-404-card {
  max-width: 26rem;
  margin: 2.5rem auto;
  text-align: center;
  box-shadow: 12px 12px 0 rgba(16, 4, 40, 0.45);
}

.pf-btn-primary {
  background: var(--palm-purple);
  color: var(--palm-white);
  border: 0;
  font-weight: 800;
}

.pf-btn-primary:hover {
  background: var(--palm-purple-deep);
  color: var(--palm-white);
}

.pf-release {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--palm-ink);
}

.pf-release p {
  margin-bottom: 1.25rem;
}

.pf-btn-pdf {
  background: var(--palm-purple);
  color: var(--palm-white);
  border: 0;
  font-weight: 700;
}

.pf-btn-pdf:hover {
  background: var(--palm-purple-deep);
  color: var(--palm-white);
}

.pf-pdf-row {
  margin: 1.5rem 0;
}

.pf-pdf-row-end {
  margin-top: 2.5rem;
  text-align: center;
}

.pf-lang a:focus-visible,
.pf-pdf-link:focus-visible,
.pf-back:focus-visible,
.pf-wordmark:focus-visible,
.pf-play:focus-visible,
.pf-sound-pill:focus-visible,
.pf-btn-pdf:focus-visible {
  outline: 3px solid var(--palm-yellow);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .pf-sound-pill.pf-attention {
    animation: none;
  }
  .pf-play:hover {
    transform: translate(-50%, -50%);
  }
}
