@import url('tokens/fonts.css');
@import url('tokens/colors.css');
@import url('tokens/typography.css');
@import url('components.css');

/*
  Base and layout.
  Sections are full-bleed bands; a .container inside each one holds the content
  to a common measure and gutter, so every band lines up down the page.
*/

:root {
  --container-max: 1360px;
  --gutter: 40px;
  --section-y: 120px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  --tap-min: 44px;
  --tap-lg: 52px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line-height);
  -webkit-font-smoothing: antialiased;
}

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

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

:is(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

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

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

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

/* ---- section bands ---- */

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

.section--ruled {
  border-bottom: 1px solid var(--border-default);
}

.section--figure {
  position: relative;
  overflow: hidden;
}

.container {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

/* ---- stacks and splits: the three arrangements every band uses ---- */

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack--loose {
  gap: 48px;
}

.stack--looser {
  gap: 56px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: 64px;
  align-items: center;
}

.split--top {
  align-items: stretch;
}

.split--end {
  align-items: end;
  gap: 56px;
}

/* A heading and its supporting paragraph, set apart on one line until the
   measure runs out. */

.band-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.band-head--ruled {
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 32px;
}

.band-head p {
  color: var(--text-body);
  max-width: 420px;
}

.measure {
  max-width: 600px;
}

.measure--narrow {
  max-width: 540px;
}

.measure--wide {
  max-width: 760px;
}

.lede {
  color: var(--text-body);
  text-wrap: pretty;
}

.eyebrow {
  color: var(--text-muted);
}

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

@media (max-width: 760px) {
  :root {
    --gutter: 24px;
    --section-y: 80px;
  }

  .split,
  .split--end {
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
