/* ==========================================================================
   4Leaderz — base: reset, typography, browser surfaces, layout primitives
   ========================================================================== */

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--blue-deep) var(--paper-2);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--clay);
}

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

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

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

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

/* --- Browser surfaces ---------------------------------------------------- */

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

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--paper-2);
}

::-webkit-resizer {
  background: linear-gradient(135deg, transparent 55%, var(--blue-signal) 55% 62%, transparent 62% 72%, var(--blue-signal) 72% 79%, transparent 79%);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-deep);
  border: 3px solid var(--paper-2);
  border-radius: 12px;
}

:focus-visible {
  outline: 2px solid var(--blue-signal);
  outline-offset: 3px;
  border-radius: 2px;
}

::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 600;
  text-wrap: balance;
  font-kerning: normal;
}

h1 {
  font-size: var(--step-6);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.032em;
}

h2 {
  font-size: var(--step-4);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

h3 {
  font-size: var(--step-2);
  font-weight: 580;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
  text-wrap: pretty;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 48ch;
}

.text-center {
  text-align: center;
}

.text-center .lede,
.text-center p {
  margin-left: auto;
  margin-right: auto;
}

/* Small uppercase-free label used for contact blocks and meta lines */
.label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  margin-bottom: var(--space-2xs);
}

/* --- Layout primitives --------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

section {
  padding: var(--space-2xl) 0;
}

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

/* --- Motion preferences -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
