:root {
  --bg: #ffffff;
  --bg-mute: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e3e6;
  --accent: #2f6df6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 740px;
}

/* Navbar */
.site-nav {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  z-index: 10;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.navlinks {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.navlinks a {
  color: var(--muted);
}

/* Blog index */
.blog-head {
  background: linear-gradient(180deg, var(--bg-mute) 0%, #ffffff 100%);
  padding: 64px 0 40px;
  text-align: center;
}

.blog-head h1 {
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.blog-head p {
  color: var(--muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

.post-list {
  list-style: none;
  padding: 24px 0 72px;
}

.post-list li {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.post-list .tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-list h2 {
  font-size: 22px;
  line-height: 1.35;
  margin: 6px 0 8px;
}

.post-list h2 a {
  color: var(--text);
}

.post-list p {
  color: var(--muted);
  font-size: 15px;
}

.post-list time {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Article */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  padding-top: 36px;
}

.crumbs a {
  color: var(--muted);
}

article {
  padding: 18px 0 40px;
}

article h1 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

article h2 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}

article h3 {
  font-size: 19px;
  margin: 30px 0 10px;
}

article p {
  margin-bottom: 18px;
  font-size: 17px;
}

article ul,
article ol {
  margin: 0 0 20px 24px;
  font-size: 17px;
}

article li {
  margin-bottom: 9px;
}

article .lede {
  font-size: 19px;
  color: #3a3a3f;
}

article figure {
  margin: 30px 0 34px;
}

article figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

article figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.note {
  background: var(--bg-mute);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 22px;
}

.note p {
  margin: 0;
  font-size: 16px;
}

.table-wrap {
  overflow-x: auto;
  margin: 8px 0 26px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg-mute);
  font-weight: 600;
}

.cta-box {
  background: var(--bg-mute);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  margin: 40px 0 16px;
  text-align: center;
}

.cta-box p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 16px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
}

.btn:hover {
  filter: brightness(1.07);
  text-decoration: none;
}

.related {
  border-top: 1px solid var(--line);
  padding: 30px 0 64px;
}

.related h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.related ul {
  list-style: none;
}

.related li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  font-size: 13px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer .links {
  display: flex;
  gap: 20px;
}

@media (max-width: 720px) {
  .navlinks {
    display: none;
  }

  article h1,
  .blog-head h1 {
    font-size: 30px;
  }

  article h2 {
    font-size: 22px;
  }
}
