/* ==========================================================================
   Thinkori landing — reset & base typography.
   Components read ONLY theme tokens (see css/themes/). No hard-coded hues.
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    linear-gradient(var(--canvas-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--canvas-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* Author display rules beat the UA [hidden] default — keep hiding honest. */
[hidden] {
  display: none !important;
}

::selection {
  background: var(--highlight);
  color: var(--ink);
}

/* Anti-flash: while a saved non-default language is being applied, keep the
   body invisible so the baked-in English never flashes first. boot.js sets
   the class; i18n.js removes it, and a hard timeout in boot.js reveals the
   page even if i18n fails. */
html.i18n-pending body {
  visibility: hidden;
}

/* A11y helpers */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: var(--space-3) var(--space-4);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus-visible {
  left: var(--space-4);
  top: var(--space-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Layout primitives */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-8);
}

.section--tight {
  padding-block: var(--space-7);
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-6);
}

.section-head h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.section-head p {
  color: var(--muted);
  font-size: var(--fs-md);
}

/* the eyebrow is a <p> — keep its dark-on-yellow ink */
.section-head p.eyebrow {
  color: var(--on-highlight);
  font-size: var(--fs-xs);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-highlight);
  background: var(--highlight);
  border: var(--border-w) solid var(--line);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-card);
}
