@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   FortPolkConnect.com Design Tokens — Warm Archival Editorial (Ivory & Espresso)
   Shared with DesktopLab.org design system.
   Colors use space-separated RGB triplets so Tailwind opacity modifiers work.
   ========================================================================== */

:root {
  /* Core semantic tokens */
  --bg-page: 253 250 241;        /* #FDFAF1 - warm archival ivory */
  --bg-surface: 255 255 255;     /* #FFFFFF - crisp white workspace panel */
  --text-ink: 38 31 29;          /* #261F1D - deep espresso primary ink */
  --text-muted: 92 83 78;        /* #5C534E - muted warm brown-gray ink */
  --accent: 154 52 18;           /* #9A3412 - burnt sienna accent */
  --border-hairline: 229 222 201;/* #E5DEC9 - 1px warm hairline border */

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Surface & border scale (mapped for Tailwind utilities) */
  --navy-950: 246 241 228;       /* #F6F1E4 - recessed warm cream */
  --navy-900: var(--bg-page);    /* #FDFAF1 */
  --navy-850: 250 246 235;       /* #FAF6EB */
  --navy-800: var(--bg-surface); /* #FFFFFF */
  --navy-700: var(--border-hairline); /* #E5DEC9 */
  --navy-600: 210 201 178;       /* #D2C9B2 */

  /* Accent scale (burnt sienna / terracotta) */
  --mint-100: 254 242 232;       /* #FEF2E8 */
  --mint-400: var(--accent);     /* #9A3412 */
  --mint-500: var(--accent);     /* #9A3412 */
  --mint-600: 124 45 18;         /* #7C2D12 */
  --mint-900: 254 242 232;       /* #FEF2E8 */

  /* Brand & dark scales */
  --brand-50: 254 242 232;
  --brand-400: var(--accent);
  --brand-500: var(--accent);
  --brand-600: 124 45 18;
  --brand-900: 254 242 232;

  --dark-800: var(--bg-surface);
  --dark-850: 250 246 235;
  --dark-900: var(--bg-page);
  --dark-950: 246 241 228;

  /* Specialty accents */
  --amber-400: 180 83 9;
  --amber-500: 154 52 18;
  --amber-950: 254 242 232;
  --pizza-red: 154 52 18;
  --pizza-crust: 180 83 9;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  background-color: rgb(var(--bg-page));
  color: rgb(var(--text-ink));
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

code, pre, kbd, .font-mono {
  font-family: var(--font-mono);
}

/* 65ch (~660px) prose cap for readability */
.prose-archival,
article p,
main section > p {
  max-width: 65ch;
  font-size: 17px;
  line-height: 1.65;
}

/* Quiet tool chrome: crisp 4px corners, 1px warm hairlines, no drop shadows */
.tool-panel {
  background-color: rgb(var(--bg-surface));
  border: 1px solid rgb(var(--border-hairline));
  border-radius: 4px;
  box-shadow: none;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgb(var(--border-hairline));
  border-radius: 3px;
}
