/* ---------------------------------------------------------------
   A&D Growth Foundry — base layer
   Reset, document defaults, and the primitives reused across
   sections (container, section head, eyebrow, buttons, marks).

   Design tokens are the source of truth for every value here.
   Never hard-code a hex or a radius — reach for a var().
--------------------------------------------------------------- */

@import "tokens/colors.css";
@import "tokens/fonts.css";
@import "tokens/typography.css";
@import "tokens/spacing.css";

/* ---- Reset / document ---- */

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

html {
  scroll-behavior: smooth;
  /* Sticky header is 68px tall; keep anchored sections clear of it. */
  scroll-padding-top: 68px;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: var(--text-link);
  text-decoration: none;
}

a:hover {
  color: var(--text-link-hover);
}

::selection {
  background: var(--copper-200);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

@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;
  }
}

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

.section {
  padding: 104px 48px;
}

.container {
  max-width: 1104px;
  margin-inline: auto;
}

.container--wide {
  max-width: var(--container-max);
  margin-inline: auto;
}

/* Dark sections flip the text tokens rather than restating colors
   on every child. Anything inside .section--dark inherits paper text. */
.section--dark {
  background: var(--ink-950);
  color: var(--paper-000);
}

.section--alt {
  background: var(--surface-alt);
}

.section--page {
  background: var(--surface-page);
}

/* ---- Section head ---- */

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--copper-600);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

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

.eyebrow__glyph {
  display: block;
  flex-shrink: 0;
}

.section-title {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: var(--weight-semibold);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
}

.section--dark .section-title {
  color: var(--paper-000);
}

.section-sub {
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
}

.section--dark .section-sub {
  color: var(--slate-300);
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 14px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--weight-medium);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.btn--primary {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

.btn--primary:hover {
  background: var(--brand-primary-hover);
  color: var(--brand-on-primary);
}

.btn--primary:active {
  background: var(--brand-primary-active);
}

/* Outlined secondary. Sits on the dark hero, so it reads in paper. */
.btn--ghost {
  background: transparent;
  border: 1px solid var(--slate-500);
  color: var(--paper-000);
}

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

.btn--sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

.btn--lg {
  padding: 15px 28px;
  font-size: 16px;
}

.btn--block {
  display: block;
  width: 100%;
}

/* ---- Marks / wordmark ---- */

.mark {
  display: inline-block;
  flex-shrink: 0;
  line-height: 0;
}

.mark > svg {
  display: block;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.wordmark__text {
  color: var(--paper-000);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
}

.wordmark__amp {
  color: var(--copper-400);
}

/* ---- Utility ---- */

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

/* ---- Responsive ----
   The design reference is fixed-width with no breakpoints. These are
   an addition, not a port — see CLAUDE.md "Deviations from the
   reference". Layout collapses are chosen to preserve reading order. */

@media (max-width: 900px) {
  .section {
    padding: 72px 24px;
  }

  .section-title {
    font-size: 34px;
  }

  .section-sub {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 56px 20px;
  }

  .section-title {
    font-size: 29px;
  }
}
