/* ── IBM Plex Mono, self-hosted (SIL OFL 1.1) ─────────────────────────────
   Latin + Latin Extended only. The site never renders Cyrillic, Greek or
   Vietnamese, so those subsets are deliberately not shipped.             */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ───────────────────────────────────────────────────────────── */

:root {
  --ink:    #111112;  /* background                     */
  --paper:  #F6F6F3;  /* "not", hover states            */
  --accent: #D6FF3D;  /* "bad"                          */
  --muted:  #C4C4BD;  /* the line                       */
  --dim:    #8A8A83;  /* eyebrow + footer rules         */
  --stone:  #7C7C76;  /* "holdings", links at rest      */

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad-y: clamp(28px, 6vw, 56px);
  --pad-x: clamp(24px, 7vw, 64px);
}

/* ── Reset ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1, p { margin: 0; }

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

/* ── Shell ────────────────────────────────────────────────────────────── */

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.frame {
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(40px, 8vw, 64px);
}

/* The uppercase micro-type at the top and bottom edges. */
.rule {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── Wordmark ─────────────────────────────────────────────────────────── */

/* Every row is tracked out to the same measure, so "not", "bad" and
   "holdings" stack into one flush-edged block. All metrics derive from
   --measure to keep the original 198px proportions while scaling down. */
.wordmark {
  --measure: clamp(158px, 46vw, 198px);
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

.row {
  width: var(--measure);
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1;
}

.row--lg {
  height:    calc(var(--measure) * 0.374);
  font-size: calc(var(--measure) * 0.313);
  color: var(--paper);
}

.row--accent { color: var(--accent); }

.row--sm {
  height:     calc(var(--measure) * 0.192);
  font-size:  calc(var(--measure) * 0.131);
  margin-top: calc(var(--measure) * 0.040);
  color: var(--stone);
}

/* ── Stage ────────────────────────────────────────────────────────────── */

.stage {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 7vw, 52px);
  max-width: 640px;
}

.line {
  max-width: 520px;
  font-size: clamp(15px, 1.1vw + 12px, 17px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

/* ── Links ────────────────────────────────────────────────────────────── */

a {
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid rgb(124 124 118 / 0.35);
  transition: color 120ms ease, border-color 120ms ease;
}

a:hover { color: var(--paper); border-bottom-color: var(--paper); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-bottom-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}
