/* World Embrace base: fonts, reset, body defaults, type roles, page shell.
   The font files are the live site's own Avenir cuts, copied into ../fonts so the site serves them itself. */

/* Fonts. Each family has a Latin file and an extended Latin file, split by unicode-range exactly as the live site does. */
@font-face {
  font-family: "avenir-lt-w01_35-light1475496";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/avenir-light-ext.woff2") format("woff2");
  unicode-range: U+0100-024F;
}
@font-face {
  font-family: "avenir-lt-w01_35-light1475496";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/avenir-light.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "avenir-lt-w01_85-heavy1475544";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/avenir-heavy-ext.woff2") format("woff2");
  unicode-range: U+0100-024F;
}
@font-face {
  font-family: "avenir-lt-w01_85-heavy1475544";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/avenir-heavy.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* Body defaults */
body {
  background: var(--color-paper);
  color: var(--color-gray);
  font-family: var(--font-light);
  font-size: var(--size-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
}

/* Focus: one visible ring on every tone (deep red, 15.4:1 on white, 6.6:1 on teal). */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* Skip link: hidden until a keyboard user reaches it. */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--color-paper);
  color: var(--color-deep-red);
  font-family: var(--font-heavy);
}
.skip-link:focus { top: var(--space-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Type roles. Each replaces one measured style; sizes are the live site's. */
.t-display {   /* replaces Avenir Heavy 48 / 67.2, tracking 9.6 */
  font-family: var(--font-heavy);
  font-weight: var(--weight-regular);
  font-size: var(--size-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}
.t-title {     /* replaces Avenir Heavy 34 / 47.6, tracking 3.4 */
  font-family: var(--font-heavy);
  font-weight: var(--weight-regular);
  font-size: var(--size-title);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-title);
}
.t-title-sm {  /* replaces Avenir Heavy 32 / 44.8, tracking 6.4 */
  font-family: var(--font-heavy);
  font-weight: var(--weight-regular);
  font-size: var(--size-title-sm);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}
.t-lead {      /* replaces Avenir Heavy 22 / 30.8, tracking 2.2 */
  font-family: var(--font-heavy);
  font-weight: var(--weight-regular);
  font-size: var(--size-lead);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-title);
}
.t-intro {     /* replaces Avenir Light 18, tracking 0.9 */
  font-family: var(--font-light);
  font-size: var(--size-intro);
  line-height: var(--leading-intro);
  letter-spacing: var(--tracking-body);
}
.t-body {      /* replaces Avenir Light 16 in gray, no tracking */
  font-family: var(--font-light);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  color: var(--color-gray);
}
.t-body-spaced { /* replaces Avenir Light 16 in deep red, tracking 0.8 */
  font-family: var(--font-light);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--color-deep-red);
}
.t-small {     /* replaces Avenir Light 14 in light gray */
  font-family: var(--font-light);
  font-size: var(--size-small);
  line-height: var(--leading-tight);
  color: var(--color-gray-light);
}

/* Color helpers for type roles */
.t-accent { color: var(--color-teal); }
.t-on-accent { color: var(--color-paper); }

/* Page shell: the live site's 980 px column, centered. */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}
@media (max-width: 1000px) {
  .container { padding-inline: var(--gutter); }
}

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