@import "./tokens.css";

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(10, 107, 120, 0.12),
      transparent 30%
    ),
    linear-gradient(135deg, #f7fbf9 0%, var(--bg) 46%, #edf4f6 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.wrap {
  width: min(var(--wrap-max), calc(100% - 40px));
  margin: 0 auto;
}

.wrap-narrow {
  width: min(var(--wrap-narrow), calc(100% - 40px));
  margin: 0 auto;
}

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

.t-display {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 850;
  line-height: 0.91;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.t-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.t-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.t-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}

.t-muted {
  color: var(--muted);
}

.prose-muted,
.prose-muted p,
.prose-muted li {
  color: var(--muted);
  line-height: 1.65;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.62s var(--ease-out),
    transform 0.62s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 540px) {
  .wrap,
  .wrap-narrow {
    width: min(calc(100% - 28px), var(--wrap-max));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
