:root {
  color-scheme: light;
  --background: #fbfaf7;
  --text: #2a2926;
  --muted: #5d5a54;
  --page-gutter: 56px;
  --hero-title: 64px;
  --hero-heading-width: 680px;
  --nav-size: 22px;
  --footer-size: 13px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.site-header,
.site-footer {
  width: min(1120px, calc(100% - var(--page-gutter)));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
}

.brand,
.site-nav a {
  font-size: var(--nav-size);
  font-weight: 500;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  line-height: 1;
}

.home {
  display: grid;
  place-items: center;
  width: min(1120px, calc(100% - var(--page-gutter)));
  margin: 0 auto;
  text-align: center;
}

.hero {
  padding: 32px 0 72px;
  width: min(100%, 860px);
}

.hero h1 {
  inline-size: min(100%, var(--hero-heading-width));
  margin: 0 auto 23px;
  color: var(--text);
  font-size: var(--hero-title);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.6;
}

.about-page {
  width: min(800px, calc(100% - var(--page-gutter)));
  margin: 0 auto;
}

.about-article {
  padding: 38px 0 76px;
}

.about-article h2 {
  margin: 0 0 32px;
  color: var(--text);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
}

.about-article p {
  margin: 0 0 21px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.78;
  text-align: left;
}

.signature {
  display: flex;
  justify-content: flex-end;
  margin: 34px 0 0;
}

.signature img {
  display: block;
  width: 150px;
  height: auto;
}

.site-footer {
  padding: 24px 0 32px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: var(--footer-size);
}

@media (max-width: 1024px) {
  :root {
    --page-gutter: 44px;
    --hero-title: 56px;
    --hero-heading-width: 590px;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 32px;
    --hero-title: 42px;
    --hero-heading-width: 445px;
  }

  .site-header {
    padding: 26px 0;
  }

  .hero {
    padding: 32px 0 56px;
  }

  .about-article {
    padding: 24px 0 60px;
  }

  .about-article h2 {
    margin-bottom: 28px;
    font-size: 28px;
  }

  .about-article p {
    font-size: 17px;
    line-height: 1.72;
  }
}

@media (max-width: 420px) {
  :root {
    --page-gutter: 24px;
    --hero-title: 36px;
    --hero-heading-width: 370px;
    --footer-size: 13px;
  }

  .site-header {
    gap: 16px;
  }

  .about-article h2 {
    font-size: 26px;
  }

  .about-article p {
    font-size: 16px;
  }
}

@media (max-height: 560px) {
  .site-header {
    padding: 20px 0;
  }

  .hero {
    padding: 28px 0 44px;
  }
}
