/*
 * Design tokens — Likeroot design system.
 *
 * Palette note: --color-accent is pulled directly from the real logo
 * (images/mainlogo.png) — sampled pixel colors: icon mark #5EA9DD,
 * "root" wordmark #2A2A28, "Server Technologies" tagline #3B5998. The
 * tagline blue is used as --color-accent (better contrast on white
 * than the lighter icon blue, which is kept as --color-accent-light
 * for decorative use); --color-ink stays close to the wordmark's near
 * -black rather than a colder pure black.
 */

/*
 * Self-hosted brand fonts (Plex Sans / Plex Mono). Paths are relative
 * to this file (assets/css/tokens.css -> assets/fonts/), so no PHP
 * templating needed here. font-display: swap avoids an invisible-text
 * flash while these load.
 */
@font-face {
  font-family: 'Plex Sans';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/plex-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Sans';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/plex-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Sans';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/plex-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Mono';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/plex-mono-600.woff2') format('woff2');
}

:root {
  /* ---- Color: neutral base ---- */
  --color-bg: #FFFFFF;
  --color-bg-subtle: #F4F6F9;
  --color-bg-inverse: #0B0E14;
  --color-ink: #0B0E14;
  --color-ink-muted: #545B67;
  --color-ink-on-inverse: #E7E9EE;
  --color-ink-muted-on-inverse: #9AA1AD;
  --color-border: #E2E5EA;
  --color-border-on-inverse: #232833;

  /* ---- Color: accent (sampled from the real logo — see note above) ---- */
  --color-accent: #3B5998;
  --color-accent-hover: #2E4677;
  --color-accent-ink: #FFFFFF;
  --color-accent-subtle: #EAEEF6;
  --color-accent-light: #5EA9DD;

  /* ---- Color: status (used sparingly — monitoring/uptime motif) ---- */
  --color-status-positive: #16A34A;
  --color-status-positive-subtle: #EAF8EF;
  --color-status-warning: #C2760A;
  --color-status-warning-subtle: #FBF1E2;

  /* ---- Type ---- */
  --font-sans: 'Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --font-display: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3rem;
  --text-5xl: 3.75rem;

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.65;

  --tracking-wide: 0.06em;

  /* ---- Spacing (4px base unit) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* ---- Layout ---- */
  --container-max: 1240px;
  --container-narrow: 760px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --border-width: 1px;

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 260ms;

  /* ---- Shadow (subtle only — no heavy drop shadows / glows) ---- */
  --shadow-sm: 0 1px 2px rgba(11, 14, 20, 0.06);
  --shadow-md: 0 6px 20px rgba(11, 14, 20, 0.08);

  /* ---- Blueprint/grid texture (used behind hero + section dividers) ---- */
  --grid-texture: linear-gradient(rgba(11, 14, 20, 0.045) 1px, transparent 1px),
                  linear-gradient(90deg, rgba(11, 14, 20, 0.045) 1px, transparent 1px);
  --grid-texture-size: 32px 32px;
}
