/* Your PT Hub — reset + base typography. Loaded on every page after tokens.css (AR-2.1). */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  /* Reserve the scrollbar track permanently. Opening the mobile menu sets
     body.no-scroll (overflow:hidden), which otherwise removes the
     scrollbar and widens the viewport — shifting the logo and every other
     centred element sideways as the panel opens and back when it closes. */
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  margin: 0;
}
h1 {
  /* Fluid so long/short headings never overflow a 320px viewport (FR-2.4)
     while still reaching the full --text-5xl token on wide screens. */
  font-size: clamp(2.25rem, 6vw + 1.2rem, var(--text-5xl));
}
h2 {
  font-size: clamp(1.75rem, 4vw + 1rem, var(--text-3xl));
}
h3 {
  font-size: var(--text-xl);
}
h4 {
  font-size: var(--text-md);
}
p {
  margin: 0;
  overflow-wrap: break-word;
}
a {
  overflow-wrap: break-word;
}
a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
img {
  max-width: 100%;
  display: block;
}
ul,
ol {
  margin: 0;
}

/* FR-4.5: skip link — visually hidden until focused */
.skip-link {
  position: absolute;
  left: 0;
  top: -100%;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: var(--space-2) var(--space-3);
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* Respect reduced motion globally (FR-3.1/FR-3.2) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
