@layer reset, base, components;

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

  body,
  h1,
  h2,
  p {
    margin: 0;
  }
}

@layer base {
  :root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
      "Segoe UI", sans-serif;
    background: #f8fafc;
    color: #0f172a;
  }

  body {
    min-block-size: 100dvb;
    display: grid;
    grid-template-rows: 1fr auto;
    line-height: 1.5;
  }
}

@layer components {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: #000;
    background: #fff;
  }

  .site-title {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .site-title a {
    color: inherit;
    text-decoration: none;
  }

  .site-header nav ul {
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
  }

.hero {
  display: grid;
  place-items: center;
  min-block-size: min(72dvb, 46rem);
  padding: clamp(3rem, 8vw, 7rem) 1rem;
  text-align: center;
  color: #f8fafc;
  background:
  linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.66)),
  url("../images/home.jpg") center / cover no-repeat;
}

  .hero__content {
    max-inline-size: 70rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
    text-wrap: balance;
  }

  .content {
    padding: clamp(3rem, 7vw, 6rem) 1rem;
    background: #f8fafc;
  }

  .content__inner {
    font-size: clamp(1rem, 1rem + 0.25vw, 1.125rem);
    max-inline-size: 100ch;
    margin-inline: auto;
    text-align: start;
  }

  .content h2 {
    margin-block: 2.5rem 1.25rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
  }

  .content__inner > :first-child {
    margin-block-start: 0;
  }

  .content p {
    color: #334155;
  }

  .content p + p {
    margin-block-start: 1rem;
  }

  .site-footer {
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #475569;
    background: #f8fafc;
  }
}
