/* Rivie brand foundation shared by every page; pages add their own layout
   on top. */

/* Colors and type from rivie-design's tokens (tokens/rivie-theme.css). The
   names are this site's: paper is Page, surface Card, raised Tint, line Rule,
   muted Muted, body Body, and ink and accent Graphite. */
:root {
  --paper: #f3f3f0;      /* Page */
  --surface: #ffffff;    /* Card */
  --raised: #eae9e5;     /* Tint */
  --line: #e3e2dd;       /* Rule */
  --muted: #6b6a65;      /* Muted */
  --body: #45443f;       /* Body */
  --ink: #1a1a19;        /* Graphite */
  --accent: #1a1a19;     /* Graphite: primary buttons, focus and selection */
  --accent-ink: #ffffff;
  /* Hover and pressed layers are palette colors at reduced opacity. */
  --state-on-light: rgb(26 26 25 / 0.06);
  --state-on-fill: rgb(255 255 255 / 0.14);
  --on-dark-muted: rgb(243 243 240 / 0.72);
  --font-text: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-heading: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-serif: Newsreader, ui-serif, Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-optical-sizing: auto;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

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

button, input, a { font: inherit; }

a { color: inherit; }

code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; }

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

/* The logo: rivie-design's beside lockup. */
.brand { display: block; }
.brand img { display: block; width: 124px; height: auto; }

.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;
}
