/* ==========================================================================
   TUNE — base.css
   Design tokens, reset, typography primitives, buttons
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #0a0a0a;
  --ink-2: #27272a;
  --grey-700: #3f3f46;
  --grey-500: #71717a;
  --grey-400: #a1a1aa;
  --line: #e4e4e7;
  --paper: #ffffff;
  --surface: #f4f4f5;
  --surface-2: #fafafa;

  --danger: #dc2626;

  --radius-lg: 20px;
  --radius-md: 12px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 12px 32px -8px rgba(10, 10, 10, 0.16);
  --shadow-lg: 0 24px 64px -16px rgba(10, 10, 10, 0.24);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --on-dark-muted: #a1a1aa;
  --on-dark-line: #26262b;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

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

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

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--pill);
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   3. Layout & typography primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.section {
  padding-block: clamp(72px, 10vw, 136px);
}

.section-alt {
  background: var(--surface-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(44px, 6vw, 76px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.h-display {
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.h-display-sm {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
}

.h-section {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.lede {
  margin-top: 20px;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--grey-500);
}

.u-outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
}

@supports not (-webkit-text-stroke: 1px black) {
  .u-outline {
    color: inherit;
  }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--pill);
  border: 1.5px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
}

.btn-light:hover {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}

.btn-sm {
  padding: 11px 22px;
  font-size: 0.88rem;
}
