:root {
  color-scheme: light;
  --background: #fbfaf7;
  --text: #2a2926;
  --muted: #5d5a54;
  --hairline: #e3e0d8;
  --page-gutter: 56px;
  --intro-title: 58px;
  --intro-width: 760px;
  --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;
  gap: 28px;
  line-height: 1;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
}

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

.intro {
  padding: 40px 0 16px;
}

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

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

.blogs {
  padding: 40px 0 76px;
}

.blog-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bloglist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog {
  border-top: 1px solid var(--hairline);
}

.blog:last-child {
  border-bottom: 1px solid var(--hairline);
}

.blog-link {
  display: block;
  padding: 26px 0;
  transition: opacity 0.15s ease;
}

.blog-link:hover {
  opacity: 0.62;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
}

.blog-date {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.blog-heading {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.blog-excerpt {
  margin: 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.66;
}

.pager {
  display: none;
}

.pager:has(.pager-link) {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 30px;
}

.pager-link {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.15s ease;
}

.pager-link:hover {
  color: var(--text);
}

.pager-link--older {
  margin-left: auto;
}

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

.post-article {
  padding: 20px 0 80px;
}

.post-back {
  display: inline-block;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.post-back:hover {
  color: var(--text);
}

.post-article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}

.post-article-title {
  margin: 0 0 30px;
  color: var(--text);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.post-section {
  margin: 44px 0 16px;
  color: var(--text);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

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

.post-article p:last-child {
  margin-bottom: 0;
}

.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;
    --intro-title: 46px;
    --intro-width: 640px;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 32px;
    --intro-title: 38px;
    --intro-width: 460px;
  }

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

  .intro {
    padding: 28px 0 8px;
  }

  .blogs {
    padding: 32px 0 60px;
  }

  .blog-link {
    padding: 22px 0;
  }

  .blog-heading {
    font-size: 23px;
  }

  .post-article-title {
    font-size: 32px;
  }

  .post-section {
    margin: 36px 0 14px;
    font-size: 23px;
  }

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

@media (max-width: 420px) {
  :root {
    --page-gutter: 24px;
    --intro-title: 32px;
    --intro-width: 320px;
  }

  .site-header {
    gap: 16px;
  }

  .site-nav {
    gap: 18px;
  }

  .intro p {
    font-size: 19px;
  }

  .blog-heading {
    font-size: 21px;
  }

  .blog-excerpt {
    font-size: 16px;
  }
}

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

  .intro {
    padding: 24px 0 8px;
  }
}
