/* ==========================================================================
   Homepage only (index.html)
   Uses tokens only. No raw colors, font sizes, or spacing in this file.
   Figma: "Portfolio website 2.0" > Design v2.5 > Homepage (1280px frame).
   The file has no tablet or mobile homepage frame, so those sizes follow the
   tablet and mobile variants of Company overview and Project.
   ========================================================================== */

/* ---- Banner: header and hero share the Blue / 100 surface ----------------- */

.home .site-header {
  padding: var(--space-64) var(--gutter-wide) 0;
  background-color: var(--color-background-hero);
}

.hero {
  padding: var(--space-44) var(--gutter-wide) var(--space-64);
  background-color: var(--color-background-hero);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-44);
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-32);
}

.hero__title {
  max-width: var(--width-hero-title);
  line-height: var(--line-height-display);
}

/* ---- Intro --------------------------------------------------------------- */

.intro {
  padding: var(--space-64) var(--gutter-page) var(--space-80);
  background-color: var(--color-background-quiet);
}

.intro__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.intro__title {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-heading-300);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-body-200);
}

.intro__text {
  font-size: var(--font-size-body-200);
  line-height: var(--line-height-body-200);
}

@media (min-width: 40rem) {
  .intro__title {
    font-size: var(--font-size-heading-200);
    line-height: var(--line-height-body-100);
  }

  .intro__text {
    font-size: var(--font-size-body-100);
    line-height: var(--line-height-intro);
  }
}

/* ---- Past work ----------------------------------------------------------- */

.section-heading {
  padding: 0 var(--gutter-page) var(--space-64);
  background-color: var(--color-background-quiet);
}

@media (min-width: 40rem) {
  .section-heading {
    padding-top: var(--space-64);
  }
}

/* Company cards alternate between Cream / 200 and Cream / 50 */
.past-work > article:nth-of-type(even) {
  background-color: var(--color-background-quiet);
}

/* ---- Articles ------------------------------------------------------------ */

.articles {
  padding: var(--space-64) var(--gutter-page) var(--space-80);
  background-color: var(--color-background-inverse);
  color: var(--color-text-inverse);
}

.articles__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-64);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.articles__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  width: 100%;
  text-align: center;
}

.articles__title {
  color: var(--color-text-inverse);
}
