/* Rivie brand foundation shared by every page. Values and roles come from
   design/brand-guidelines.md; pages add their own layout on top. */

/* Digits render in Chivo Mono inside Inter text, so every number follows the
   guidelines without extra markup. */
@font-face {
  font-family: "Rivie Numerals";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/chivomono/v11/mFT0WbgRxKvF_Z5eQMO9gx8D1WB4m9w.woff2) format("woff2");
  unicode-range: U+0030-0039;
}

:root {
  --paper: #f2f0ea;      /* Light */
  --surface: #ffffff;    /* White */
  --raised: #e0ded6;     /* Light gray */
  --line: #e0ded6;       /* Light gray */
  --muted: #565959;      /* Mid gray */
  --ink: #202124;        /* Dark */
  --accent: #2343af;     /* Blue */
  --accent-ink: #ffffff;
  /* Hover and pressed layers are palette colors at reduced opacity. */
  --state-on-light: rgb(32 33 36 / 0.06);
  --state-on-fill: rgb(32 33 36 / 0.16);
  --on-dark-muted: rgb(242 240 234 / 0.72);
  --font-text: "Rivie Numerals", Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-heading: "Chivo Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
}

button, input, a { font: inherit; }

a { color: inherit; }

code { font-family: var(--font-heading); font-size: 0.88em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The logo, and the animation that turns it into the icon once the page scrolls. */
.brand { display: block; color: var(--ink); }
.brand img,
.brand-morph-svg { display: block; width: 92px; height: auto; overflow: visible; }

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