html, body { background: var(--surface-0); }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--surface-0);
  transition: background var(--dur-slow) var(--ease-in-out),
              color var(--dur-slow) var(--ease-in-out);
  overflow-x: hidden;
}

html.theme-resolving body { visibility: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--fs-h1); font-weight: 600; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p { color: var(--text-secondary); }

.lede { font-size: var(--fs-body-lg); color: var(--text-secondary); line-height: var(--lh-snug); max-width: 60ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--accent);
  flex: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--pad-x-desktop);
}

.section { padding-block: var(--section-pad-y); position: relative; }
.section--tight { padding-block: calc(var(--section-pad-y) * 0.6); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--grid-gap);
}

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

.skip-link {
  position: absolute;
  left: 20px; top: -60px;
  background: var(--accent);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-xs);
  font-weight: 600;
  z-index: 999;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 20px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.btn {
  --btn-pad-y: 16px;
  --btn-pad-x: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body-sm);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.96); }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(var(--coral-rgb), 0.5);
}
.btn--primary:hover {
  box-shadow: 0 0 0 8px rgba(var(--coral-rgb), 0.16);
  background: var(--coral-dim);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm { --btn-pad-y: 12px; --btn-pad-x: 22px; font-size: 0.875rem; }

.btn--icon-only {
  padding: 0;
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-subtle);
}

.text-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(var(--coral-rgb), 0.4);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.text-link:hover { border-color: var(--accent); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 16px; max-width: 62ch; }

.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center p { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

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