/* ==========================================================================
   Gleaming — base: reset, body defaults, typography, container, utilities
   DO NOT EDIT from page-builder agents. Page overrides go in css/pages/<page>.css
   ========================================================================== */

/* ---- Minimal modern reset ------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--color-text-primary);
  background-color: var(--color-page-bg);
  -webkit-font-smoothing: antialiased;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

ul[class],
ol[class] {
  list-style: none;
}

/* ---- Typography (matches Figma text styles) ------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400; /* Cabinet Grotesk Regular is the default heading weight */
  color: inherit;
}

h1 {
  font-size: var(--text-h1);      /* 56px */
  line-height: var(--leading-tight);
}

h2 {
  font-size: 48px;                /* interpolated — verify per page vs Figma */
  line-height: var(--leading-tight);
}

h3 {
  font-size: 40px;                /* interpolated — verify per page vs Figma */
  line-height: var(--leading-tight);
}

h4 {
  font-size: var(--text-h4);      /* 32px */
  line-height: var(--leading-h4);
}

/* Hero display headline: Cabinet Grotesk Medium 68px / 1.0 (mobile 44px) */
.u-display {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: 500;
  line-height: var(--leading-none);
}

/* Body copy in Figma is 18px Inter for lead paragraphs */
.u-text-lg {
  font-size: var(--text-md);
  line-height: var(--leading-body);
}

/* Small print (footer credits etc.) */
.u-text-sm {
  font-size: var(--text-sm);
  line-height: var(--leading-body);
}

@media (max-width: 767px) {
  h1 {
    font-size: var(--text-h1-mobile); /* 32px (footer heading); hero uses .u-display */
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 28px;
  }

  .u-display {
    font-size: var(--text-display-mobile); /* 44px */
  }

  .u-text-lg {
    font-size: var(--text-base); /* 18 -> 16 on mobile */
  }
}

/* ---- Container ------------------------------------------------------------
   1280px content column. 80px side padding at 1440 so content = 1280.
   max-width includes padding so the column never exceeds 1280 of content.  */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--page-pad));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

@media (max-width: 1023px) {
  .container {
    padding-inline: var(--page-pad-tablet);
    max-width: calc(var(--container-max) + 2 * var(--page-pad-tablet));
  }
}

@media (max-width: 767px) {
  .container {
    padding-inline: var(--page-pad-mobile);
    max-width: calc(var(--container-max) + 2 * var(--page-pad-mobile));
  }
}

/* ---- Section rhythm ------------------------------------------------------ */
.section {
  padding-block: var(--section-pad);
}

.section--flush-top {
  padding-top: 0;
}

.section--flush-bottom {
  padding-bottom: 0;
}

@media (max-width: 767px) {
  .section {
    padding-block: var(--space-12); /* 48px on mobile */
  }
}

/* ---- Focus / accessibility ------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--color-primary-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-footer :focus-visible,
.btn--primary:focus-visible {
  outline-color: var(--color-white);
}

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

[hidden] {
  display: none !important;
}
