:root {
  --page: #f6f7f9;
  --paper: #ffffff;
  --ink: #101114;
  --muted: #737985;
  --line: #e5e7ed;
  --blue: #1648d8;
  --green: #2c7c42;
  --soft: #f0f3f7;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, Tahoma, Verdana, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(16, 17, 20, 0.05) calc(50% - 1px), rgba(16, 17, 20, 0.05) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, #eef3f5 0, var(--page) 340px);
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.blog-page-frame {
  width: min(1180px, calc(100% - 32px));
  min-height: 100svh;
  margin: 32px auto;
  padding: 22px 0 64px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 80px rgba(18, 34, 62, 0.12);
}

.blog-shell {
  position: relative;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.blog-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto 82px;
}

.blog-brand {
  display: grid;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}

.blog-brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.blog-brand span {
  color: var(--muted);
  font-size: 12px;
}

.blog-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.blog-actions a {
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.blog-actions a:first-child {
  color: var(--blue);
}

.blog-header {
  margin-bottom: 42px;
  text-align: center;
}

.blog-header h1 {
  max-width: 760px;
  margin: 14px auto 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.blog-description {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.blog-tags span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font-size: 12px;
}

.post-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.post-card {
  display: grid;
  gap: 10px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.post-card h2 {
  max-width: 680px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
}

.post-article {
  position: relative;
}

.post-article > p:first-of-type::first-letter {
  float: left;
  padding: 12px 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 0.72;
}

.post-article h2 {
  margin: 52px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
}

.post-article h3 {
  margin: 34px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.post-article p,
.post-article ul,
.post-article ol,
.post-article blockquote,
.post-article pre {
  margin: 18px 0 0;
}

.post-article ul,
.post-article ol {
  padding-left: 24px;
}

.post-cover {
  margin: 42px 0;
}

.post-cover img {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.post-cover figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.post-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-article code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--soft);
  font-size: 0.92em;
}

.post-article pre {
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  color: #e7f5ff;
  background: #101114;
}

.post-article pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.post-article blockquote {
  width: min(620px, 100%);
  margin: 34px auto 0;
  padding: 28px 30px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-style: italic;
  line-height: 1.32;
  text-align: center;
  background: #f8f9fb;
}

.share-rail {
  position: fixed;
  left: max(24px, calc(50vw - 550px));
  top: 310px;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.share-rail a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #ffffff;
  text-decoration: none;
}

@media (max-width: 820px) {
  body {
    font-size: 15px;
  }

  .blog-page-frame {
    width: 100%;
    margin: 0;
    padding: 18px 0 46px;
    box-shadow: none;
  }

  .blog-nav {
    width: min(100% - 28px, 760px);
    margin-bottom: 54px;
  }

  .blog-shell {
    width: min(100% - 30px, 760px);
  }

  .blog-header h1 {
    font-size: 36px;
  }

  .post-card h2 {
    font-size: 24px;
  }

  .share-rail {
    display: none;
  }

  .post-article blockquote {
    padding: 22px 18px;
    font-size: 20px;
  }
}

@media (max-width: 520px) {
  .blog-nav,
  .blog-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-actions {
    gap: 8px;
  }

  .blog-header {
    text-align: left;
  }

  .blog-header h1,
  .blog-description {
    margin-left: 0;
    margin-right: 0;
  }

  .blog-meta,
  .blog-tags {
    justify-content: flex-start;
  }

  .post-card h2,
  .post-card p {
    margin-left: 0;
    text-align: left;
  }
}
