/* Patrick's Mobile Mechanic Service: design tokens. Direction "Night Call":
   blue-hour asphalt, one white work light, brand blue for action, brand red for warnings. */
@font-face { font-family: 'Big Shoulders'; src: url('../fonts/big-shoulders-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url('../fonts/martian-mono-var.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --blue: #2f7bff;          /* client colour 1 */
  --red: #e0312f;           /* client colour 2 */
  --red-btn: #d42a28;       /* a touch deeper so white button text passes contrast */
  --amber: #ffb224;         /* status lamps only */
  --night: #090b10;

  --f-display: 'Big Shoulders', 'Arial Narrow', Impact, sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --gut: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --frame: 1760px;
  --header-h: 72px;
  --sec: clamp(72px, 10vw, 150px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
:root[data-layout="full"] { --maxw: 1600px; --frame: none; }

:root[data-theme="night"] {
  --bg: #090b10; --bg-2: #0f131b; --bg-3: #171c27;
  --ink: #eef2f8; --ink-2: #a9b3c5; --ink-3: #717c91;
  --line: rgba(190, 205, 235, .14); --line-2: rgba(190, 205, 235, .28);
  --blue-ink: #76aaff; --red-ink: #ff6f6b;
  --rail: #040508;
  color-scheme: dark;
}
:root[data-theme="day"] {
  --bg: #f3f5f8; --bg-2: #e9ecf1; --bg-3: #dde2e9;
  --ink: #0b0f16; --ink-2: #434d60; --ink-3: #667085;
  --line: rgba(11, 15, 22, .13); --line-2: rgba(11, 15, 22, .3);
  --blue-ink: #1554d1; --red-ink: #c1201e;
  --rail: #dde2e9;
  color-scheme: light;
}
/* Photo-backed sections stay dark in both themes. */
:root .on-dark {
  --bg: #090b10; --bg-2: #0f131b; --bg-3: #171c27;
  --ink: #eef2f8; --ink-2: #b4bdcd; --ink-3: #7d889c;
  --line: rgba(190, 205, 235, .16); --line-2: rgba(190, 205, 235, .3);
  --blue-ink: #76aaff; --red-ink: #ff6f6b;
  color: var(--ink);
  color-scheme: dark;
}
