/* GLIDE design system: base
   Fonts, reset, body defaults, type roles as classes, and the page shell.
   Needs tokens.css first. Font files are served from this site (out/assets), copied from
   the live site's own files (cdn.ploy.ai .../larsseit-*.woff2, latin-400-italic, latin-500-normal). */

/* ---------- Fonts: only the faces the home page paints ---------- */
@font-face {
  font-family: "Larsseit";
  src: url("/assets/larsseit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Larsseit";
  src: url("/assets/larsseit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Larsseit";
  src: url("/assets/larsseit-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; background: transparent; border-radius: 0; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
address { font-style: normal; }
[hidden] { display: none !important; }

/* ---------- Body ---------- */
body {
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Focus: always visible, ink on light, lime on dark tones */
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tone-dark :focus-visible, .tone-accent-on-dark :focus-visible { outline-color: var(--color-focus-inverse); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Type roles ---------- */
/* Display: the hero headline and the closing question. */
.t-display {
  font-family: var(--font-sans); font-weight: var(--weight-bold);
  font-size: var(--size-display); line-height: var(--leading-display);
  letter-spacing: var(--tracking-display); text-wrap: balance;
}
/* Section heading. */
.t-h2 {
  font-family: var(--font-sans); font-weight: var(--weight-bold);
  font-size: var(--size-h2); line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2); text-wrap: balance;
}
/* Footer statement: same voice as a section heading, its own size. */
.t-statement {
  font-family: var(--font-sans); font-weight: var(--weight-bold);
  font-size: var(--size-statement); line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2); text-wrap: balance;
}
/* The signature: one word of a heading turns to serif italic, a touch larger. */
.t-turn {
  font-family: var(--font-serif); font-style: italic; font-weight: var(--weight-regular);
  font-size: var(--size-serif-turn); letter-spacing: var(--tracking-serif-turn);
  font-synthesis: none;
}
.t-h3 {
  font-family: var(--font-sans); font-weight: var(--weight-bold);
  font-size: var(--size-h3); line-height: 1; letter-spacing: var(--tracking-title);
}
.t-h4 {
  font-family: var(--font-sans); font-weight: var(--weight-bold);
  font-size: var(--size-h4); line-height: var(--leading-tight); letter-spacing: var(--tracking-title);
}
.t-lead { font-size: var(--size-lead); line-height: var(--leading-lead); }
.t-pov { font-size: var(--size-pov); line-height: var(--leading-pov); }
.t-intro { font-size: var(--size-intro); line-height: var(--leading-intro); }
.t-body { font-size: var(--size-menu-item); line-height: var(--leading-body); }
.t-small { font-size: var(--size-body); line-height: var(--leading-body); }
.t-legal { font-size: var(--size-legal); line-height: 1.125rem; }

/* Mono eyebrow: the small uppercase label above every section heading. */
.t-eyebrow {
  font-family: var(--font-mono); font-weight: var(--weight-medium);
  font-size: var(--size-eyebrow); line-height: 1; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
/* Mono index: 01, 02, 03. */
.t-index {
  font-family: var(--font-mono); font-weight: var(--weight-medium);
  font-size: var(--size-index); letter-spacing: var(--tracking-index);
  font-variant-numeric: tabular-nums;
}

/* Text colors by role */
.c-text { color: var(--color-text); }
.c-80 { color: var(--color-text-80); }
.c-75 { color: var(--color-text-75); }
.c-70 { color: var(--color-text-70); }
.c-60 { color: var(--color-text-60); }
.c-50 { color: var(--color-text-50); }
.tone-dark .c-75 { color: var(--color-text-inverse-75); }
.tone-dark .c-70 { color: var(--color-text-inverse-70); }
.tone-dark .c-60 { color: var(--color-text-inverse-60); }
.tone-dark .c-50 { color: var(--color-text-inverse-50); }

/* ---------- Page shell ---------- */
/* Band tones. Allowed next to each other: paper and paper-2, paper and dark, paper-2 and dark.
   Two dark bands may meet only where the closing call to action runs into the footer. */
.tone-paper { background: var(--color-paper); color: var(--color-text); }
.tone-paper-2 { background: var(--color-paper-2); color: var(--color-text); }
.tone-dark { background: var(--color-ink); color: var(--color-text-inverse); }

/* Container: 20 px gutters on phones, 32 px from 768 px, content 1520 px at most. */
.container {
  width: 100%;
  max-width: var(--container-max-sm);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) {
  .container { max-width: var(--container-max); padding-inline: var(--gutter-md); }
}

/* Band spacing: 96 px top and bottom on phones, 160 px from 768 px. */
.band { padding-block: var(--band-pad); }
.band-top { padding-top: var(--band-pad); }
.band-bottom { padding-bottom: var(--band-pad); }

/* 12-column grid from 768 px. */
.grid-12 { display: grid; gap: var(--space-8); }
@media (min-width: 768px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}
