@import 'variables.css';
@import 'reset.css';
@import 'layout.css';
@import 'components.css';

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: 1.125rem;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3, h4 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text);
}

/* Fluid typography scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.75rem, 1.3rem + 2.25vw, 2.75rem);
  --text-4xl: clamp(2rem, 1.4rem + 3vw, 3.75rem);
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-xl);
}

p {
  color: var(--color-text-light);
  max-width: 65ch;
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.7;
}

blockquote,
.quote {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-style: italic;
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.5;
  color: var(--color-secondary);
}

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

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

.section--dark {
  background: var(--gradient-cta);
  color: var(--color-text-on-primary);
}

.section--dark h2,
.section--dark p {
  color: var(--color-text-on-primary);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__header p {
  margin: var(--space-md) auto 0;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  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;
  top: -100%;
  left: var(--space-sm);
  z-index: 10000;
  padding: var(--space-xs) var(--space-sm);
  background: var(--honey-bronze);
  color: var(--prussian-blue);
  border-radius: var(--radius-sm);
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: var(--space-sm);
}

.separator {
  width: 60px;
  height: 2px;
  background: var(--honey-bronze);
  margin: var(--space-lg) auto;
  border: none;
}

.page-hero {
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-xl);
  background: var(--gradient-hero);
  text-align: center;
}

.page-hero__subtitle {
  margin: var(--space-md) auto 0;
  max-width: 55ch;
}
