/* ============================================================
   Worx | base.css
   Design tokens, reset, typography and shared utilities.
   Edit the :root variables to re-theme the whole site.
   ============================================================ */

:root {
  /* Brand palette (static/assets/Starting Color Palette.png) */
  --brand-cocoa: #421d0f;
  --brand-ember: #c04527;
  --brand-orange: #e57d23;
  --brand-amber: #faa719;
  --brand-cream: #feeecf;
  --brand-blush: #f0e7e6;

  /* Dark surfaces, derived from the cocoa brown */
  --ink: #150905;            /* page background */
  --surface: #211009;        /* cards, panels */
  --surface-2: #2c160c;      /* hover / raised panels */
  --panel: var(--brand-cocoa); /* strong panels: CTA band, nav on mobile */
  --line: rgba(254, 238, 207, 0.1);
  --line-strong: rgba(254, 238, 207, 0.2);

  --text: var(--brand-cream);
  --muted: #c4ab94;

  --accent: var(--brand-orange);
  --accent-2: var(--brand-amber);
  --accent-deep: var(--brand-ember);
  --gradient: linear-gradient(100deg, var(--brand-ember) 0%, var(--brand-orange) 55%, var(--brand-amber) 100%);
  --on-accent: #1a0a04;      /* text on orange / amber */

  /* Typography, Jost echoes the geometric wordmark in the logo */
  --font-display: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --container: 1180px;
  --section-pad: clamp(72px, 10vw, 140px);
  --radius: 20px;
  --radius-sm: 12px;
}

/* ---- Reset ------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  /* Soft warm glow at the top of every page */
  background-image:
    radial-gradient(900px 520px at 85% -10%, rgba(229, 125, 35, 0.16), transparent 70%),
    radial-gradient(700px 420px at 0% 0%, rgba(192, 69, 39, 0.12), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---- Typography ------------------------------------------- */

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

h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p {
  color: var(--muted);
}

p strong {
  color: var(--text);
}

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

/* ---- Utilities -------------------------------------------- */

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Small uppercase label above section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}

/* Code-style brand tag: <like/magic> */
.tag-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head p {
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ---- Accessibility ---------------------------------------- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

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

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