/* ============================================================
   ONTARIO LABS — BASE STYLESHEET
   Shared across all pages. Defines design tokens, reset,
   typography, and reusable layout utilities.
   ============================================================ */

/* ─────────────────────────────────────────────────
   FONT DECLARATIONS
   Font files expected in /fonts/ChakraPro/
   ───────────────────────────────────────────────── */

@font-face {
  font-family: 'ChakraPro';
  src: url('/fonts/ChakraPro/ChakraPro-Regular.woff2') format('woff2'),
       url('/fonts/ChakraPro/ChakraPro-Regular.woff')  format('woff');
  font-weight: 400;
  font-style:  normal;
  font-display: swap;
}

@font-face {
  font-family: 'ChakraPro';
  src: url('/fonts/ChakraPro/ChakraPro-Medium.woff2') format('woff2'),
       url('/fonts/ChakraPro/ChakraPro-Medium.woff')  format('woff');
  font-weight: 500;
  font-style:  normal;
  font-display: swap;
}

@font-face {
  font-family: 'ChakraPro';
  src: url('/fonts/ChakraPro/ChakraPro-Bold.woff2') format('woff2'),
       url('/fonts/ChakraPro/ChakraPro-Bold.woff')  format('woff');
  font-weight: 700;
  font-style:  normal;
  font-display: swap;
}

/* ─────────────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────────────── */

:root {
  /* Colour */
  --yellow:           #FFD600;
  --yellow-bright:    #FFE033;
  --yellow-dim:       #C9AA00;
  --yellow-glow:      rgba(255, 214, 0, 0.25);
  --yellow-faint:     rgba(255, 214, 0, 0.08);

  --bg:               #07070A;
  --bg-surface:       rgba(7, 7, 10, 0.72);
  --bg-surface-solid: #0D0D12;

  --text:             #FFFFFF;
  --text-muted:       rgba(255, 255, 255, 0.55);
  --text-subtle:      rgba(255, 255, 255, 0.28);

  --border:           rgba(255, 214, 0, 0.14);
  --border-strong:    rgba(255, 214, 0, 0.35);

  /* Typography */
  --font-display: 'ChakraPro', 'Chakra Petch', 'Arial Black', sans-serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  4rem;
  --space-2xl: 8rem;

  /* Borders */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --duration:  240ms;
}

/* ─────────────────────────────────────────────────
   RESET
   ───────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family:      var(--font-body);
  background-color: var(--bg);
  color:            var(--text);
  line-height:      1.6;
  overflow-x:       hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--yellow);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--yellow-bright);
}

/* ─────────────────────────────────────────────────
   TYPOGRAPHY — SHARED
   ───────────────────────────────────────────────── */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* ─────────────────────────────────────────────────
   SITE NAVIGATION (shared across pages)
   ───────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  transition: background var(--duration) var(--ease-out);
}

.site-nav.scrolled {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
}

.site-nav__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.site-nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease-out);
}

.site-nav__links a:hover {
  color: var(--yellow);
}

/* ─────────────────────────────────────────────────
   SITE FOOTER (shared across pages)
   ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.yellow { color: var(--yellow); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* ─────────────────────────────────────────────────
   INNER PAGE LAYOUT
   Applied via .page class on <body> for non-landing pages
   ───────────────────────────────────────────────── */

body.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
}

body.page .page-content {
  padding-top: 5rem;   /* clear fixed nav */
}
