/* =============================================================
   PROVES.IO — 02. BASE
   Reset, document defaults and the typographic scale.
   ============================================================= */

html,
body {
  background: var(--bg);
  transition: background-color 0.35s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
}

/* The homepage used to pull these element defaults from the Tailwind CDN
   script, which ran in the browser on every visit just to supply a reset.
   The three sub-pages already declared them by hand; now all four share
   one copy and the CDN round-trip is gone.
   Note: no `ul { list-style: none }` here — the privacy notice relies on
   real bullets, and the lists that want none turn it off themselves. */
a {
  color: inherit;
  text-decoration: none;
}

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

img {
  height: auto;
}

button {
  font: inherit;
  cursor: pointer;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@keyframes breathe {
  0% { transform: scale(0.95) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.05) translate(2%, 2%); opacity: 1; }
}

.bg-glow {
  animation: breathe 10s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* These headings used to be filled with a gradient through
   background-clip:text, fading from #060606 down to 78% opacity. That is
   one of the reliable signatures of a generated layout, and all it ever
   did visually was make the type look slightly washed out. Solid ink now. */
.t-display,
.t-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.15;
  padding-bottom: 0.12em;
}

.t-h2 {
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2vw, 2.125rem);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.t-body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
}

.t-small {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-secondary);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.js-ready .reveal.visible,
.reveal.visible {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: 0.08s;
}

.d2 {
  transition-delay: 0.18s;
}

.d3 {
  transition-delay: 0.28s;
}

.d4 {
  transition-delay: 0.38s;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

html {
  font-optical-sizing: auto;
}

@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;
  }

  .reveal,
  .js-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
