/* ============================================================
   SUBTWO BASE STYLES
   Reset + semantic element defaults from type scale
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: #FFFFFF;
}

/* ── Headings — Space Grotesk ── */

h1 {
  font-family: var(--font-primary);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

h2 {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

h3 {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

h4 {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

h5 {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

h6 {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

/* ── Body Text ── */

.body-editorial {
  font-family: var(--font-editorial);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.80;
}

.body-standard {
  font-family: var(--font-editorial);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
}

.body-ui {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

/* ── Labels ── */

.label {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.eyebrow {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.caption {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* ── Data Text ── */

.data-xl {
  font-family: var(--font-data);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -1px;
}

.data-l {
  font-family: var(--font-data);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.data-m {
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.data-s {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* ── Links ── */

a {
  color: var(--color-primary-mid);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-enter);
}

a:hover {
  color: var(--color-primary);
}

/* ── Focus ── */

:focus-visible {
  outline: 2px solid var(--color-primary-mid);
  outline-offset: 2px;
}

/* ── Selection ── */

::selection {
  background: var(--color-surface);
  color: var(--color-primary);
}

/* ── Images ── */

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

/* ── Lists ── */

ul, ol {
  list-style: none;
}

/* ── Button reset ── */

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Input reset ── */

input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ── Layout containers ── */

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

.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

/* ── Responsive containers ── */

@media (max-width: 1199px) {
  .container {
    padding: 0 var(--space-8);
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 var(--space-4);
  }

  h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  h2 {
    font-size: 28px;
    letter-spacing: -0.5px;
  }

  h3 {
    font-size: 20px;
  }

  .section {
    padding: var(--space-16) 0;
  }
}

/* ── Reduced motion ── */

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

  html {
    scroll-behavior: auto;
  }
}
