/* ==========================================================================
   base.css — design tokens, resets, global typography
   ========================================================================== */

:root {
  /* Ink (shell / navigation) */
  --ink-900: #0f1626;
  --ink-800: #16203a;
  --ink-700: #1f2c4a;
  --ink-600: #2b3a5c;
  --ink-line: rgba(255, 255, 255, 0.08);

  /* Paper (content surfaces) */
  --paper-50: #fbfaf7;
  --paper-100: #f4f2ec;
  --paper-card: #ffffff;
  --paper-line: #e7e3d8;

  /* Text on paper */
  --text-900: #1b2333;
  --text-600: #5b6274;
  --text-400: #8a90a1;

  /* Accents */
  --gold-600: #a9761f;
  --gold-500: #c9972b;
  --gold-100: #f6ead0;
  --moss-600: #3f5c43;
  --moss-100: #e2ead9;
  --rust-500: #b5533c;

  /* Status palette — pastel bg + darker text per hue, used by status-pill-select */
  --status-graphite-bg: #eef0f3;
  --status-graphite-text: #4b5568;
  --status-gold-bg: #f6ead0;
  --status-gold-text: #a9761f;
  --status-blue-bg: #e3ecf8;
  --status-blue-text: #2f5586;
  --status-violet-bg: #efe9f7;
  --status-violet-text: #6a4f96;
  --status-amber-bg: #f7ead2;
  --status-amber-text: #a3641a;
  --status-moss-bg: #e2ead9;
  --status-moss-text: #3f5c43;
  --status-rust-bg: #f6e2dd;
  --status-rust-text: #b5533c;
  --status-taupe-bg: #ece5da;
  --status-taupe-text: #7a6449;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --shadow-card: 0 1px 2px rgba(15, 22, 38, 0.04), 0 12px 32px -16px rgba(15, 22, 38, 0.16);
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper-50);
  color: var(--text-900);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  font-optical-sizing: auto;
  margin: 0;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--gold-100);
  color: var(--ink-900);
}

/* Custom scrollbar — subtle, not the browser default */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(27, 35, 51, 0.16);
  border-radius: 999px;
  border: 2px solid var(--paper-50);
}

/* Accessible focus ring, visible only for keyboard users */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 6px;
}

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