/* Base — reset, typography, layout */

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed .tp-nav bar is 62px — clear first section when not using .lp-hero / .lp-hero-inner (see home.css).
   On mobile, --tp-nav-fixed-offset is 0 because nav is in normal flow. */
section:first-of-type {
  padding-block-start: var(--tp-nav-fixed-offset);
}

button,
input,
textarea,
select,
optgroup {
  font-family: var(--font-sans);
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: var(--leading-tight);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); margin-top: var(--space-12); margin-bottom: var(--space-6); }
h3 { font-size: var(--text-h3); margin-top: var(--space-8); margin-bottom: var(--space-4); }

p {
  margin: 0 0 var(--space-4);
  color: var(--text-secondary);
}
p:last-child { margin-bottom: 0; }

ul, ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
  color: var(--text-secondary);
}

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

.main {
  width: 100%;
  overflow-x: clip;
}

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