/* Direction: Clinical Navy — an FDA regulatory consultancy's writing room:
   cool paper, harbor-blue authority, editorial serif headlines, mono dockets. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f3f6f9;
  --surface: #ffffff;
  --surface-2: #e7ecf3;
  --border: #d3dbe6;
  --border-strong: #abb0b3;
  --ink: #0f1b2b;
  --muted: #53647a;
  --accent: #14557a;
  --accent-hover: #114868;
  --accent-ink: #ffffff;
  --accent-text: #0e4763;
  --accent-strong: #0a3b55;
  --accent-soft: #dceaf3;
  --accent-border: #8faec0;
  --success: #1d6b4f;
  --success-ink: #ffffff;
  --success-soft: #d9e5e5;
  --success-strong: #1d6b4f;
  --warning: #8a5a12;
  --warning-ink: #ffffff;
  --warning-soft: #e6e3dd;
  --warning-strong: #8a5a12;
  --danger: #a33327;
  --danger-ink: #ffffff;
  --danger-soft: #e9dfe0;
  --danger-strong: #a33327;
  --chart-1: #14557a;
  --chart-2: #7454a8;
  --chart-3: #81254b;
  --chart-4: #905111;
  --chart-5: #47540b;
  --chart-6: #0d8a79;

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 500;
  --display-tracking: -0.02em;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --card-pad: 1.5rem;
  --x-deep: #0a1a28;
  --x-deep-2: #12293c;
  --x-on-photo: #ffffff;
  --x-signal: #b3542b;
  --x-signal-soft: #f6e5da;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #030c11;
  --surface: #1c2429;
  --surface-2: #10181d;
  --border: #262e32;
  --border-strong: #4f5558;
  --ink: #f3f6f9;
  --muted: #93989c;
  --accent: #14557a;
  --accent-hover: #376f8e;
  --accent-ink: #ffffff;
  --accent-text: #6490a8;
  --accent-strong: #6490a8;
  --accent-soft: #071c28;
  --accent-border: #0b2d40;
  --success: #1d6b4f;
  --success-ink: #ffffff;
  --success-soft: #09211f;
  --success-strong: #5d9581;
  --warning: #8a5a12;
  --warning-ink: #ffffff;
  --warning-soft: #211d11;
  --warning-strong: #a47e46;
  --danger: #a33327;
  --danger-ink: #ffffff;
  --danger-soft: #261516;
  --danger-strong: #bd6d64;
  --chart-1: #357299;
  --chart-2: #9272c8;
  --chart-3: #bd5b7e;
  --chart-4: #b86a1d;
  --chart-5: #788b1e;
  --chart-6: #069885;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rule-grid {
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px);
  background-size: 7.5rem 100%;
}

.draft-area {
  min-height: 21rem;
  line-height: 1.65;
  resize: vertical;
}

.post-body {
  white-space: pre-line;
  line-height: 1.65;
}

.inview-rise {
  transform: translateY(14px);
  transition: transform 620ms cubic-bezier(0.22, 0.75, 0.3, 1);
}

.inview-rise.is-in {
  transform: translateY(0);
}

html.reduced-motion .inview-rise,
html.reduced-motion .inview-rise.is-in {
  transform: none;
  transition: none;
}
