@charset "utf-8";
/* Font faces live in /assets/fonts/fonts.css and are linked from each page's
   <head>. They used to be pulled in with @import here, which cost an extra
   blocking round trip before any font could even be discovered. */
/* ==========================================================================
   ToolsHub4u — Design system v3 "Instrument"
   Tokens, reset, type, layout primitives, browser surfaces.
   One sheet for every page. Nothing here is tool-specific.
   ========================================================================== */

/* ---------- tokens -------------------------------------------------------- */
:root {
  /* ground: instrument panel, warm-neutral charcoal, never blue-black */
  --ink-900: #0b0d10;
  --ink-800: #0e1013;
  --ink-700: #131619;
  --ink-600: #191d22;
  --ink-500: #21262c;
  --ink-400: #2c333a;
  --ink-300: #3a424b;

  --text-100: #f4f2ee;
  --text-200: #cfcdc6;
  --text-300: #9c9a93;
  --text-400: #8e8c85;

  /* hairline rules: the panel's registration furniture */
  --line-1: rgba(244, 242, 238, 0.08);
  --line-2: rgba(244, 242, 238, 0.14);
  --line-3: rgba(244, 242, 238, 0.24);

  /* silk beams: the one glow, crossing lanes of translucent colour */
  --silk-indigo: 92 106 196;
  --silk-madder: 196 74 96;
  --silk-saffron: 226 164 62;

  /* signal: phosphor for anything live, armed or current */
  --phosphor: #c9f24e;
  --phosphor-dim: #9ec23a;
  --phosphor-ink: #10130a;
  /* phosphor that is safe as SMALL TEXT (AA on every ink ground) */
  --phosphor-text: #c9f24e;

  /* action: one vermilion, used only for the primary act */
  --action: #ef5a3c;
  --action-hover: #ff6f52;
  --action-ink: #150705;

  --focus: #8fb6ff;

  /* category hues: one per family, tuned to read on the panel */
  --cat-calculators: #d9a441;
  --cat-text: #4fbfb0;
  --cat-pdf: #e0695c;
  --cat-seo: #7c94dd;
  --cat-utility: #a98fe0;
  --cat-games: #8cc35a;
  --cat-extension: #df8fb6;

  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --gutter: clamp(18px, 4vw, 44px);
  --shell: 1280px;
  --shell-wide: 1480px;
  --measure: 68ch;

  --header-h: 64px;

  --font-display: "Instrument Display", "Archivo Narrow", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-text: "Instrument Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Instrument Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: clamp(1rem, 0.3vw + 0.94rem, 1.125rem);
  --step-2: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --step-3: clamp(1.6rem, 1.2vw + 1.3rem, 2.125rem);
  --step-4: clamp(2rem, 2.2vw + 1.4rem, 3rem);
  --step-5: clamp(2.6rem, 4.4vw + 1.3rem, 4.5rem);
  --step-6: clamp(3.1rem, 6.6vw + 1rem, 6.25rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.4, 0.5, 1);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.35), 0 14px 40px -12px rgba(0, 0, 0, 0.65);
  --shadow-3: 0 4px 8px rgba(0, 0, 0, 0.3), 0 28px 70px -20px rgba(0, 0, 0, 0.75);

  color-scheme: dark;
}

/* light panel: same instrument grammar, lit room */
[data-theme="light"] {
  --ink-900: #efebe3;
  --ink-800: #f4f1ea;
  --ink-700: #f8f6f1;
  --ink-600: #fdfcf9;
  --ink-500: #e9e4da;
  --ink-400: #dcd6c9;
  --ink-300: #c9c2b3;

  --text-100: #14161a;
  --text-200: #3b3f46;
  --text-300: #5d6067;
  --text-400: #64666a;

  --line-1: rgba(20, 22, 26, 0.09);
  --line-2: rgba(20, 22, 26, 0.15);
  --line-3: rgba(20, 22, 26, 0.26);

  --silk-indigo: 92 106 196;
  --silk-madder: 196 74 96;
  --silk-saffron: 226 164 62;

  --phosphor: #4d7c0f;
  --phosphor-dim: #639c18;
  --phosphor-ink: #ffffff;
  --phosphor-text: #355c0a;

  --action: #c8412a;
  --action-hover: #b23520;
  --action-ink: #fffaf8;

  --focus: #1c4e9c;

  --cat-calculators: #8a6110;
  --cat-text: #0e7a6d;
  --cat-pdf: #b4402f;
  --cat-seo: #3a539b;
  --cat-utility: #6a49a8;
  --cat-games: #4d7a24;
  --cat-extension: #a13a68;

  --shadow-1: 0 1px 2px rgba(38, 32, 20, 0.08), 0 4px 10px -4px rgba(38, 32, 20, 0.12);
  --shadow-2: 0 2px 4px rgba(38, 32, 20, 0.07), 0 14px 34px -12px rgba(38, 32, 20, 0.18);
  --shadow-3: 0 4px 8px rgba(38, 32, 20, 0.06), 0 26px 60px -20px rgba(38, 32, 20, 0.22);

  color-scheme: light;
}

/* ---------- reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-100);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
dialog { border: 0; padding: 0; background: none; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(6, 8, 10, 0.72); backdrop-filter: blur(6px); }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ---------- browser surfaces the design owns ------------------------------ */
::selection { background: var(--phosphor); color: var(--phosphor-ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink-800); }
::-webkit-scrollbar-thumb {
  background: var(--ink-300);
  border: 3px solid var(--ink-800);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-400); }

.caret-native { caret-color: var(--phosphor-text); }
body { caret-color: var(--phosphor-text); }

/* numerals in data are tabular, always */
[data-num], .num, input[type="number"], .readout, time, td.num { font-variant-numeric: tabular-nums; }

/* ---------- accessibility helpers ----------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link,
.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 400;
  transform: translateY(-180%);
  background: var(--phosphor);
  color: var(--phosphor-ink);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  transition: transform 180ms var(--ease-out);
}
.skip-link:focus,
.skip:focus { transform: none; }

/* ---------- layout primitives --------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.shell-wide {
  width: min(100% - (var(--gutter) * 2), var(--shell-wide));
  margin-inline: auto;
}
.shell-narrow {
  width: min(100% - (var(--gutter) * 2), 860px);
  margin-inline: auto;
}

.band { padding-block: clamp(56px, 7vw, 104px); }
.band-tight { padding-block: clamp(36px, 4.5vw, 64px); }
.rule { height: 1px; background: var(--line-1); border: 0; }

/* the grid overlay: registration furniture, used sparingly */
.gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-1) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  opacity: 0.6;
}

/* ---------- type ---------------------------------------------------------- */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-6);
  line-height: 0.92;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.t-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-5);
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.t-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.t-h3 {
  font-family: var(--font-text);
  font-weight: 650;
  font-size: var(--step-2);
  line-height: 1.24;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.t-h4 {
  font-family: var(--font-text);
  font-weight: 650;
  font-size: var(--step-1);
  line-height: 1.32;
  letter-spacing: -0.006em;
}
.t-lede {
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.3125rem);
  line-height: 1.55;
  color: var(--text-200);
  max-width: 46ch;
  text-wrap: pretty;
}
.t-body { font-size: var(--step-1); line-height: 1.66; color: var(--text-200); }
.t-small { font-size: var(--step--1); line-height: 1.5; color: var(--text-300); }
.t-muted { color: var(--text-300); }

/* instrument label: tracked small caps, mono, the panel's silkscreen */
.t-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-200);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.t-label--ink { color: var(--text-100); }
.t-label--signal { color: var(--phosphor-text); }

.t-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
  letter-spacing: -0.01em;
}

.link-underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line-3);
  transition: text-decoration-color 160ms, color 160ms;
}
.link-underline:hover { text-decoration-color: currentColor; }

