/* QJIH brand tokens, from the story panel's docs/02-brand.md. Monochrome only. */
@font-face { font-family: 'Geist'; font-weight: 400; font-display: swap; src: url('/fonts/Geist-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-display: swap; src: url('/fonts/Geist-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-display: swap; src: url('/fonts/Geist-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-display: swap; src: url('/fonts/GeistMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 500; font-display: swap; src: url('/fonts/GeistMono-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-display: swap; src: url('/fonts/InstrumentSerif-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; src: url('/fonts/InstrumentSerif-Italic.woff2') format('woff2'); }

:root {
  --ink: #000000;
  --night: #0b0b0c;
  --coal: #141416;
  --ash: #2a2a2d;
  --smoke: #6e6e73;
  --steel: #8e8e93; /* smoke lifted to pass AA for small text on night */
  --fog: #a8a8ad;
  --paper: #f2f2f2;
  --white: #ffffff;

  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
  --radius-small: 10px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.glyph { width: 1.15em; height: 1.15em; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: none;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.16s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform 0.25s var(--ease-out); }
.btn:hover .icon { transform: translate(2px, -2px); }

.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: var(--white); }
.btn--line { border-color: var(--smoke); background: rgb(11 11 12 / 0.6); }
.btn--line:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}
