/* HOJA DE VIDA design system: base
   Fonts, reset, body defaults, type roles and the page shell.
   The font files are the site's own Adobe Fonts files, copied into fonts/
   from the addresses the live site loads (use.typekit.net/af/855c4b, 36c3c6,
   d4ce21, 050822, 62d21a), so the site no longer depends on the old host. */

@font-face {
  font-family: "aktiv-grotesk";
  src: url("/design-system/fonts/aktiv-grotesk-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "aktiv-grotesk";
  src: url("/design-system/fonts/aktiv-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "pragmatica-extended";
  src: url("/design-system/fonts/pragmatica-extended-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "courier-std";
  src: url("/design-system/fonts/courier-std-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "courier-std";
  src: url("/design-system/fonts/courier-std-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* body defaults: courier on the white ground, ink text */
body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--color-text);
  background: var(--color-ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
strong, b { font-weight: var(--weight-bold); }

/* focus: a 2 px ring in ink, white on dark grounds; never removed */
:focus-visible { outline: var(--stroke) solid var(--color-focus); outline-offset: 3px; }
.tone-dark :focus-visible { outline-color: var(--color-focus-on-dark); }

/* type roles */
.t-display, .t-lead, .t-fit {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  text-transform: uppercase;
  color: var(--color-heading);
}
/* lead heading: the hero claim and the ingredient list */
.t-lead { font-size: var(--size-lead); line-height: var(--leading-heading); }
/* display: the moving strip words */
.t-display { font-size: var(--size-marquee); line-height: var(--leading-marquee); }
/* fitted word: one word set to fill its column, line height 1 */
.t-fit { line-height: var(--leading-tight); white-space: nowrap; }
/* body copy: courier, bold for the brand name */
.t-body { font-family: var(--font-body); font-size: var(--size-body); line-height: var(--leading-body); }
/* nav: aktiv grotesk, uppercase */
.t-nav {
  font-family: var(--font-ui);
  font-size: var(--size-nav);
  line-height: var(--leading-nav);
  letter-spacing: var(--tracking-ui);
  text-transform: uppercase;
}

/* page shell */
.shell { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.band { position: relative; }
.tone-paper { background: var(--color-ground-raised); color: var(--color-text); }
.tone-white { background: var(--color-ground); color: var(--color-text); }
.tone-dark  { background: var(--color-ground-dark); color: var(--color-text-on-dark); }
.tone-dark .t-fit, .tone-dark .t-lead { color: var(--hoja-paper); }

/* hidden from the eye, read aloud */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* skip link: shown on focus, a black pill like the live one */
.skip-link {
  position: fixed; top: var(--space-m); left: 50%; transform: translate(-50%, -200%);
  z-index: 100; padding: var(--space-s) var(--space-l);
  background: var(--hoja-ink); color: var(--hoja-paper);
  font-family: var(--font-ui); font-size: 1rem; letter-spacing: var(--tracking-ui);
  border-radius: var(--radius-pill);
}
.skip-link:focus { transform: translate(-50%, 0); }
