

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-body);
  background: var(--surface-base);
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

section {
  flex: 1 1 auto;
  background: var(--surface-base);
}


section:nth-child(odd) {
  padding: 3rem 1rem 5rem;
}
section:nth-child(even) {
  padding: 5rem 1rem 3rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-strong);
}
h1 {
  font-size: 2.35rem;
  line-height: 1.12;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}
h4 {
  font-size: 1.05rem;
  line-height: 1.35;
}

p {
  font-size: 1rem;
  line-height: 1.7;
}

strong, b {
  font-weight: 600;
  color: var(--ink-strong);
}

a {
  color: var(--action-primary);
  text-decoration: none;
  transition: color var(--tap);
}
a:hover {
  color: var(--action-hover);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 0.1875rem solid var(--ember);
  outline-offset: 0.125rem;
}

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


button {
  font-family: inherit;
  transition: all 0.2s ease;
}
button:active {
  transform: scale(0.95);
}
input:focus {
  box-shadow: 0 0 0 3px rgba(90, 74, 209, 0.28);
}
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.4rem; }
  section:nth-child(odd) { padding: 4rem 1.5rem 6rem; }
  section:nth-child(even) { padding: 6rem 1.5rem 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button, a, input { transition: none !important; }
  button:active { transform: none; }
}
