/* ============================================
   Base — reset, typography, page shell
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Erica+One&family=Figtree:wght@300;400;500;600;700&display=swap');

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--surface-page);
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

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

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

/* ---------- Typography utilities · match Figma design system ---------- */

/* H1 · Display · Erica One 76 / 53 */
.h1,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: var(--lh-display);
  letter-spacing: 0.01em;
}

/* H2 · Figtree Bold 36 / 43 */
.h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
}

/* H3 · Figtree Bold 30 / 36 */
.h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}

/* H4 · Figtree Bold 28 / 34 */
.h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: var(--lh-heading);
}

/* Body · Figtree 18 / 22 */
.body,
.body-regular {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.body-bold {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.body-light {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* CTA · Figtree Bold 18 / 1 */
.cta-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-cta);
  line-height: var(--lh-cta);
}

.caption {
  font-size: var(--fs-caption);
  color: var(--text-secondary);
}

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

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.stack > * + * {
  margin-top: var(--space-16);
}

.grid {
  display: grid;
  gap: var(--space-24);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
