/* ── labas.app — the handshake ────────────────────────────────────
   Two faces, two species: Newsreader is carbon (the hero word, the
   body), IBM Plex Mono is silicon (the wordmark, the exchange, the
   colophon). One warm ground, one ink, and a single yellow: the
   state change. Black type on #FFD400 is 13.06:1. No JS.         */

@font-face {
  font-family: "Newsreader";
  src: url("assets/newsreader-roman.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/newsreader-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  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;
}

:root {
  color-scheme: light dark;
  --paper: #fcfbf8;
  --ink: #1b1a17;
  --muted: #6e6a61;
  --pop: #FFD400;
  --pop-ink: #14120f;
  --measure: 30em;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131211;
    --ink: #e7e3db;
    --muted: #9a958b;
    --pop: #FFD400;
    --pop-ink: #14120f;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1.5rem 3.5rem;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.62;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-variant-numeric: oldstyle-nums;
  hanging-punctuation: allow-end;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

main,
.wordmark,
.colophon {
  max-width: var(--measure);
  margin-inline: auto;
}

/* ── The wordmark: silicon speaks first ─────────────── */

.wordmark {
  padding-block: 3rem 0;
  margin-bottom: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ── The hero word: carbon ──────────────────────────── */

h1 {
  margin: 4.5rem 0 0;
  font-size: clamp(4.2rem, 2.6rem + 8vw, 8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.lede {
  margin: 1.1rem 0 0;
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  font-weight: 500;
  color: var(--muted);
}

/* ── The exchange ───────────────────────────────────── */

.exchange {
  margin: 4rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1rem, 0.94rem + 0.4vw, 1.2rem);
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 2.1;
}

.exchange p {
  margin: 0;
}

mark {
  background: var(--pop);
  color: var(--pop-ink);
  padding: 0.08em 0.22em;
  margin-inline: -0.06em;
  border-radius: 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ── The body: carbon again ─────────────────────────── */

.body {
  margin: 4rem 0 0;
}

/* ── Colophon: the quiet handshake onward ───────────── */

.colophon {
  margin-block: 5rem 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.colophon p {
  margin: 0;
}

.colophon a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(27, 26, 23, 0.35);
  border-radius: 0.14em;
  padding: 0.1em 0.15em;
  margin-inline: -0.15em;
  transition: color 120ms ease;
}
@media (prefers-color-scheme: dark) {
  .colophon a {
    text-decoration-color: rgba(231, 227, 219, 0.4);
  }
}

.colophon a:hover,
.colophon a:focus-visible {
  color: var(--ink);
}
.colophon a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

::selection {
  background: var(--pop);
  color: var(--pop-ink);
}

@media (max-width: 30em) {
  .wordmark {
    padding-block: 2.25rem 0;
  }
  h1 {
    margin-top: 3.25rem;
  }
  .exchange {
    margin-top: 3rem;
  }
  .body {
    margin-top: 3rem;
  }
  .colophon {
    margin-block: 3.5rem 0;
  }
}

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

@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  mark {
    background: none;
    color: #000;
    padding: 0;
    font-weight: 600;
  }
  .colophon {
    display: none;
  }
}