@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/bodoni-moda.woff2') format('woff2');
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/bodoni-moda-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/red-hat-text.woff2') format('woff2');
}
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/red-hat-mono.woff2') format('woff2');
}

:root {
  --paper: #f3eee5;
  --paper-hi: #fbf8f2;
  --ink: #0e1b26;
  --ink-2: #46535e;
  --ink-3: #6b7680;
  --gold: #bd9451;
  --gold-deep: #7d5f2c;
  --line: rgba(14, 27, 38, 0.12);
  --line-strong: rgba(14, 27, 38, 0.22);
  --danger: #a3261b;

  --font-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', serif;
  --font-ui: 'Red Hat Text', 'Segoe UI', sans-serif;
  --font-data: 'Red Hat Mono', ui-monospace, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(14, 27, 38, 0.08), 0 10px 28px -8px rgba(14, 27, 38, 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  color-scheme: light;
  accent-color: var(--gold-deep);
  caret-color: var(--gold-deep);
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: rgba(189, 148, 81, 0.32); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

* { scrollbar-width: thin; scrollbar-color: rgba(14, 27, 38, 0.25) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(14, 27, 38, 0.25); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

button { font: inherit; color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
