@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ui: "Karla", "Avenir Next", "Segoe UI", sans-serif;

  --paper: #efe9dc;
  --paper-deep: #e3dac8;
  --surface: #f6f1e7;
  --surface-muted: #eae3d4;

  --ink: #24211b;
  --muted: #625a4d;
  --line: #cec5b4;
  --line-strong: #857a67;

  --accent: #a34a2a;
  --accent-hover: #8a3d21;
  --accent-soft: #ecd7ca;
  --on-accent: #f7f2e8;

  --danger: #8a2b22;
  --danger-hover: #722018;
  --danger-soft: #f0ddd8;
  --success: #3e6448;
  --success-soft: #dfe8dd;

  --focus: #a34a2a;
  --shadow-soft: 0 18px 50px rgba(36, 33, 27, 0.12);

  --lightbox-bg: #12100c;
  --lightbox-surface: #1b1711;
  --lightbox-text: #f0eadf;
  --lightbox-muted: #b9ae9c;
  --lightbox-line: rgba(240, 234, 223, 0.16);
  --lightbox-accent: #e29a72;

  --shell: 1440px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius: 2px;
  --radius-lg: 4px;

  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --speed-fast: 140ms;
  --speed: 220ms;
  --speed-slow: 420ms;

  --header-h: 76px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #17140f;
  --paper-deep: #2a251c;
  --surface: #201c15;
  --surface-muted: #29241b;

  --ink: #ede6d8;
  --muted: #a99d8b;
  --line: #3b342a;
  --line-strong: #766b58;

  --accent: #de9468;
  --accent-hover: #eaa77e;
  --accent-soft: #3a261b;
  --on-accent: #17140f;

  --danger: #e89080;
  --danger-hover: #f0a394;
  --danger-soft: #38201b;
  --success: #8dbf9c;
  --success-soft: #1e2d22;

  --focus: #de9468;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.4);

  --lightbox-bg: #0f0d0a;
  --lightbox-surface: #19150f;
  --lightbox-text: #f0eadf;
  --lightbox-muted: #b9ae9c;
  --lightbox-line: rgba(240, 234, 223, 0.16);
  --lightbox-accent: #e29a72;
}
