/* Jackson Plant Ltd - base styles. Every value comes from jpl-tokens.css.
   No colours, fonts, radii or spacing are introduced outside that file. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--jpl-color-offwhite);
  color: var(--jpl-color-ink);
  font-family: var(--jpl-font);
  font-size: var(--jpl-body-size);
  font-weight: var(--jpl-body-weight);
  line-height: var(--jpl-body-leading);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
::selection { background: var(--jpl-color-tint); color: var(--jpl-color-navy); }

h1, h2, h3 { margin: 0; font-family: var(--jpl-font); text-wrap: balance; }
h1 {
  font-size: var(--jpl-h1-size); font-weight: var(--jpl-h1-weight);
  font-stretch: var(--jpl-h1-stretch); line-height: var(--jpl-h1-leading); letter-spacing: var(--jpl-h1-tracking);
}
h2 {
  font-size: var(--jpl-h2-size); font-weight: var(--jpl-h2-weight);
  font-stretch: var(--jpl-h2-stretch); line-height: var(--jpl-h2-leading); letter-spacing: var(--jpl-h2-tracking);
}
h3 {
  font-size: var(--jpl-h3-size); font-weight: var(--jpl-h3-weight);
  font-stretch: var(--jpl-h3-stretch); line-height: var(--jpl-h3-leading);
}

p { margin: 0; max-width: var(--jpl-reading-max); }
a { color: inherit; }

.label {
  font-size: var(--jpl-label-size); font-weight: var(--jpl-label-weight);
  letter-spacing: var(--jpl-label-tracking); text-transform: uppercase;
  color: var(--jpl-color-brand);
}
.tone-dark .label { color: var(--jpl-color-tint); }

small, .small { font-size: var(--jpl-small-size); font-weight: var(--jpl-small-weight); line-height: var(--jpl-small-leading); font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--jpl-color-brand); outline-offset: 2px; }
.tone-dark :focus-visible { outline-color: var(--jpl-color-tint); }

.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; left: var(--jpl-space-4); top: -60px;
  background: var(--jpl-color-navy); color: #fff;
  padding: var(--jpl-space-3) var(--jpl-space-4);
  z-index: 1000; transition: top var(--jpl-motion-standard) var(--jpl-ease);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--jpl-space-4); }

.wrap { max-width: var(--jpl-content-max); margin-inline: auto; padding-inline: var(--jpl-page-margin); }
/* Section rhythm: the locked --jpl-section-space token (128px / 64px mobile) is
   the Brand Lock's own maximum; most sections read better at ~70% of it, so we
   scale it down here rather than editing the locked token itself. Individual
   sections still override this where a tighter or looser gap is intentional
   (e.g. the navy hero removes it entirely; it supplies its own internal rhythm). */
section { padding-block: calc(var(--jpl-section-space) * 0.7); }

.hairline { border: none; border-top: var(--jpl-hairline) solid var(--jpl-color-border); margin: 0; }
.tone-dark .hairline { border-top-color: var(--jpl-color-navy-line); }

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
