/* ============================================================================
   OwnYourPDF -- design tokens + self-hosted IBM Plex font faces
   Zero external CDNs. Zero build steps. Plain CSS.
   ============================================================================ */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/IBMPlexSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/IBMPlexSans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/IBMPlexMono-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
}

:root {
  /* surfaces (dark + stark; near-black, never pure #000) */
  --bg:           #0a0a0a;
  --bg-soft:      #111;
  --fg:           #e8e8e8;
  --fg-2:         #9a9a9a;
  --fg-3:         #555;
  --fg-muted:     #8a8a8a;
  --rule:         #1c1c1c;
  --rule-strong:  #2a2a2a;

  /* canonical teal accent */
  --accent:       #15a79f;
  --accent-hover: #12958e;
  --accent-soft:  rgba(21, 167, 159, 0.15);
  --accent-wash:  rgba(21, 167, 159, 0.06);

  /* semantic data labels only */
  --ok:           #10b981;
  --warn:         #f59e0b;
  --err:          #ef4444;

  /* self-hosted IBM Plex + system fallbacks */
  --font-sans:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  /* layout */
  --measure:      68ch;
  --width:        760px;
  --width-wide:   960px;
  --width-narrow: 620px;
  --pad:          clamp(1.25rem, 4vw, 2rem);
}
