/* LINK A base — reset, typography, a11y */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  top: -80px;
  left: var(--space-4);
  z-index: 120;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-card);
  font-weight: 700;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: var(--space-2);
  box-shadow: var(--shadow-card);
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-brand-strong);
}

.section-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 900;
}

.page-title {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 900;
}

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

.text-small {
  font-size: 13px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-title { font-size: 32px; }
  .page-title { font-size: 40px; }
  .eyebrow { font-size: 13px; }
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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