/* ==========================================================================
   QUICK TURN AUTO KEYS — GLOBAL BASE STYLES
   Reset, typography, base elements, layout primitives.
   ========================================================================== */

*,
*::before,
*::after {
  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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  margin: 0;
  color: var(--text-primary);
}

h1 {
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
  line-height: var(--h1-line);
  letter-spacing: -0.01em;
}

.h2-style {
  font-family: var(--font-heading);
  margin: 0;
  color: var(--text-primary);
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: var(--h2-line);
  letter-spacing: -0.005em;
}

h2 {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: var(--h2-line);
  letter-spacing: -0.005em;
}

p {
  margin: 0;
  color: var(--text-muted);
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

@media (max-width: 1080px) {
  .container {
    padding: 0 var(--pad-1080);
  }
}
@media (max-width: 680px) {
  .container {
    padding: 0 var(--pad-680);
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 var(--pad-480);
  }
}

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

@media (max-width: 780px) {
  .section {
    padding: var(--section-pad-mobile) 0;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--small-size);
  font-weight: var(--small-weight);
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head p {
  margin-top: 14px;
  font-size: 15.5px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.accent-word {
  color: var(--accent);
}

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

/* Focus states -- accessibility, never removed */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Utility Classes */
.hero--padded {
  padding-top: 24px;
  padding-bottom: 56px;
}
.max-w-720 {
  max-width: 720px;
}
.max-w-600 {
  max-width: 600px;
}
.pt-0 {
  padding-top: 0;
}
.inline-link-mt {
  display: inline-block;
  margin-top: 10px;
}
.center-mt-28 {
  text-align: center;
  margin-top: 28px;
}
.section--surface-bordered {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--surface-top-border {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.text-accent {
  color: var(--accent);
}
.aspect-square {
  aspect-ratio: 1 / 1;
}
.aspect-4-5 {
  aspect-ratio: 4/5;
}
.text-primary-override {
  color: var(--text-primary);
}
