/* ============================================
   Qualifyer — design tokens
   ============================================ */

:root {
  /* Color */
  --charcoal: #262322;
  --charcoal-light: #3a3532;
  --charcoal-border: #4a443f;
  --amber: #d98e36;
  --amber-dark: #b8732a;
  --cream: #f7f3ee;
  --white: #ffffff;
  --ink: #2b2b2b;
  --muted: #6b6560;
  --muted-on-dark: #b8b2ab;
  --border-light: #e5ddd2;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Scale */
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: 3.5rem;

  /* Layout */
  --content-width: 68rem;
  --measure: 38rem;
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
  color: inherit;
}

h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, var(--step-4));
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, var(--step-3));
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--step-2);
}

h4 {
  font-size: var(--step-1);
  font-weight: 500;
}

p {
  max-width: var(--measure);
}

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

ul {
  list-style: none;
}

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

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Consistent, visible keyboard focus */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--charcoal);
}

.btn-primary:hover {
  background: var(--amber-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--charcoal-border);
}

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

/* ============================================
   Section rhythm
   ============================================ */

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem;
}

.section-inner {
  max-width: var(--content-width);
  margin-inline: auto;
}

.section--dark {
  background: var(--charcoal);
  color: var(--cream);
}

.section--dark .muted {
  color: var(--muted-on-dark);
}

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

.eyebrow {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.section--dark .eyebrow {
  color: var(--amber);
}
