/* Talon Global — design tokens
 * Light palette only at v1 (per brief §4). Dark palette tokens included
 * for future use but not applied. Inter only. Solid fills only.
 */

:root {
  /* Light palette */
  --ink: #0A0A0A;
  --paper: #F8F8F6;
  --graphite: #5C5C5C;
  --stone: #B8B5AC;

  /* Dark palette (reserved, not used at v1) */
  --paper-dark: #F4F4F4;
  --graphite-dark: #0F1115;
  --steel: #5B7A99;
  --slate: #8FA4B8;

  /* Type — Inter only, all weights */
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type scale (px). Editorial. */
  --t-display: 84px;
  --t-h1: 56px;
  --t-h2: 36px;
  --t-h3: 24px;
  --t-lede: 20px;
  --t-body: 16px;
  --t-small: 13px;
  --t-micro: 11px;

  /* Letter-spacing */
  --tr-tight: -0.025em;
  --tr-wider: 0.18em;

  /* Layout */
  --rule: 0.5px;
  --rule-bold: 1px;
  --container: 1280px;
  --container-narrow: 960px;
  --read: 640px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 96px;
  --space-16: 128px;
  --space-20: 160px;

  /* Mark size — driven by Tweaks */
  --mark-hero: 180px;
  --hairline-density: 1; /* multiplier for rule visibility (0.6–1.4) */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11"; /* Inter humanist alts */
}

body {
  background: var(--paper);
  color: var(--ink);
}

/* Reset */
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--paper); }

/* Type utilities */
.t-display { font-size: var(--t-display); line-height: 0.98; letter-spacing: var(--tr-tight); font-weight: 700; }
.t-h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: var(--tr-tight); font-weight: 700; }
.t-h2 { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -0.015em; font-weight: 700; }
.t-h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.t-lede { font-size: var(--t-lede); line-height: 1.45; font-weight: 400; }
.t-body { font-size: var(--t-body); line-height: 1.55; font-weight: 400; }
.t-small { font-size: var(--t-small); line-height: 1.5; }
.t-micro { font-size: var(--t-micro); line-height: 1.4; letter-spacing: var(--tr-wider); text-transform: uppercase; font-weight: 500; }

.muted { color: var(--graphite); }
.read { max-width: var(--read); }

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.container.narrow { max-width: var(--container-narrow); }
@media (max-width: 720px) {
  .container { padding: 0 var(--space-5); }
}

/* Hairlines */
.rule {
  height: 0;
  border: 0;
  border-top: var(--rule) solid var(--stone);
  opacity: var(--hairline-density);
}
.rule-bold {
  border-top-width: var(--rule-bold);
}
.rule-ink {
  border-top: var(--rule-bold) solid var(--ink);
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow {
  display: inline-block;
  transition: transform 160ms ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Link with arrow */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  font-weight: 500;
  transition: opacity 120ms ease;
}
.link .arrow { transition: transform 160ms ease; }
.link:hover .arrow { transform: translateX(3px); }

/* Tag / eyebrow */
.eyebrow {
  font-size: var(--t-micro);
  letter-spacing: var(--tr-wider);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--graphite);
}

/* Focus rings */
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }

/* Subtle hover for cards */
.card-hover { transition: transform 200ms ease, border-color 200ms ease; }
.card-hover:hover { border-color: var(--ink); }

/* Page wrapper */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive type */
@media (max-width: 1100px) {
  :root {
    --t-display: 64px;
    --t-h1: 44px;
    --t-h2: 30px;
    --t-h3: 22px;
    --t-lede: 18px;
    --space-16: 96px;
    --space-12: 72px;
  }
}
@media (max-width: 720px) {
  :root {
    --t-display: 44px;
    --t-h1: 34px;
    --t-h2: 24px;
    --t-h3: 19px;
    --t-lede: 17px;
    --t-body: 16px;
    --space-20: 96px;
    --space-16: 72px;
    --space-12: 56px;
    --space-10: 48px;
    --space-8: 32px;
  }
}
