/* spark-landing — reset + typography baseline. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.spk-body {
  margin: 0;
  font-family: var(--spk-font-body);
  font-weight: 400;
  font-size: var(--spk-fs-body);
  line-height: var(--spk-lh-body);
  color: var(--spk-ink);
  background: var(--spk-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* Display typography — spark uses weight 500 (medium) on all headings. */
.spk-h1 {
  font-family: var(--spk-font-display);
  font-size: var(--spk-fs-h1);
  line-height: var(--spk-lh-h1);
  letter-spacing: var(--spk-ls-h1);
  font-weight: 500;
  color: inherit;
}
.spk-h2 {
  font-family: var(--spk-font-display);
  font-size: var(--spk-fs-h2);
  line-height: var(--spk-lh-h2);
  letter-spacing: var(--spk-ls-h2);
  font-weight: 500;
  color: inherit;
}
/* Medium H2 — statement / one-home / resources tier */
.spk-h2--md {
  font-size: var(--spk-fs-h2md);
  line-height: var(--spk-lh-h2md);
  letter-spacing: var(--spk-ls-h2md);
}
.spk-h3 {
  font-family: var(--spk-font-display);
  font-size: var(--spk-fs-h3);
  line-height: var(--spk-lh-h3);
  letter-spacing: var(--spk-ls-h3);
  font-weight: 500;
  color: inherit;
}

/* Highlight word — orange→yellow gradient text (background-clip), weight 600. */
.spk-accent {
  background: var(--spk-accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600;
}

/* Centered heading + sub helpers */
.spk-heading-center { text-align: center; }
.spk-sub-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--spk-ink-muted);
  font-size: var(--spk-fs-large);
  line-height: var(--spk-lh-large);
}
.spk-section--dark .spk-sub-center { color: var(--spk-ink-on-dark-muted); }

:focus-visible {
  outline: 2px solid var(--spk-orange);
  outline-offset: 3px;
}
::selection { background: var(--spk-orange); color: #fff; }

/* Reveal-on-scroll baseline — JS-only hide (progressive enhancement). */
.js [data-spk-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 640ms var(--spk-ease), transform 640ms var(--spk-ease);
}
/* settle to transform:none (no leftover stacking context) so cross-section
   overlaps like the statement card can layer above the next dark section */
.js [data-spk-reveal].is-spk-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-spk-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Wireframe placeholder block — Phase 1, replaced in Phase 2 by real media. */
.spk-wf-block {
  width: 100%;
  background:
    repeating-linear-gradient(45deg,
      rgba(17,33,111,0.05) 0,
      rgba(17,33,111,0.05) 7px,
      rgba(17,33,111,0.09) 7px,
      rgba(17,33,111,0.09) 14px);
  border: 1px dashed var(--spk-line);
  border-radius: var(--spk-radius);
  color: var(--spk-ink-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spk-s-16);
  font-family: var(--spk-font-mono);
  font-size: 13px;
  letter-spacing: 0.4px;
  min-height: 120px;
}
.spk-wf-block--fill { height: 100%; min-height: 0; }
