/* ============================================================
   Linaxcode — Design Tokens & Reset
   "Warm Graphite Terminal" — warm near-black + amber/copper
   ============================================================ */

:root {
  /* --- Color: warm graphite, not slate --- */
  --bg:           #0B0B0D;   /* near-black, slightly warm */
  --surface:      #141416;   /* cards / raised panels */
  --surface-2:    #1C1C20;   /* inputs, hover */
  --border:       #2A2A2E;   /* hairline dividers */
  --text:         #ECEAE6;   /* warm off-white */
  --text-muted:   #9C9A94;   /* secondary text — 4.7:1 on --bg */
  --text-faint:   #6B6A66;   /* gutter line-numbers (decorative only) */
  --accent:       #E8A23D;   /* amber/copper signal accent */
  --accent-hover: #F2B45A;
  --accent-ink:   #1A1206;   /* text ON amber surfaces */
  --success:      #6FBF8B;
  --danger:       #E06C6C;

  --accent-glow:  rgba(232, 162, 61, 0.14);

  /* --- Type --- */
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-eyebrow: 0.8125rem;   /* 13px */
  --fs-body:    1.0625rem;   /* 17px */
  --fs-lead:    1.25rem;
  --fs-h3:      clamp(1.35rem, 2vw, 1.75rem);
  --fs-h2:      clamp(2rem, 5vw, 3.25rem);
  --fs-hero:    clamp(2.75rem, 9vw, 6rem);

  /* --- Layout & shape --- */
  --radius:     14px;
  --radius-sm:  8px;
  --maxw:       1200px;
  --gutter-w:   56px;
  --nav-h:      72px;
  --section-y:  clamp(5rem, 12vw, 9rem);
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: clip;
}

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;   /* clip (not hidden) so position:sticky keeps working */
}

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: none; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

ul { list-style: none; padding: 0; }

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

/* ---------------------------------------------------------------
   Focus — always visible, amber, never removed
   --------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

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

/* ---------------------------------------------------------------
   Utility helpers
   --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.mono { font-family: var(--font-mono); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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