:root {
  --bg: #ffffff;
  --surface-strong: #f1f1f3;
  --ink: #1c1c1e;
  --muted: #6e6e73;
  --tertiary: #9a9aa0;
  --line: rgba(60, 60, 67, 0.14);
  --line-soft: rgba(60, 60, 67, 0.08);
  --accent: #e86f68;
  --accent-soft: rgba(232, 111, 104, 0.12);
  --link: #c85650;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.2em;
}

.site-header,
.site-footer,
.landing,
.post-index,
.article {
  width: min(720px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.15;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--muted);
  font-size: 15px;
  font-weight: 560;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--ink);
}

.article-header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.article-header p,
.post-row p,
.site-footer {
  color: var(--muted);
}

.landing {
  padding: 72px 0 72px;
}

.landing-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 64px;
}

.landing-copy {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.landing-tagline {
  margin: 0;
  color: var(--ink);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.landing-badge img {
  display: block;
  width: 140px;
  height: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-copy {
  display: grid;
  gap: 2px;
}

.feature-copy strong {
  font-size: 15px;
  font-weight: 680;
  line-height: 1.3;
}

.feature-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.post-index {
  padding: 56px 0 48px;
}

.page-title {
  margin: 0 0 18px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.post-index h2 {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 720;
}

.post-list.simple {
  display: grid;
  gap: 0;
}

.post-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.post-row:first-child {
  border-top: 0;
}

.post-row h2 {
  margin: 5px 0 7px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
}

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

.post-row h2 a:hover {
  color: var(--accent);
}

.post-row p {
  margin: 0;
}

.post-meta {
  color: var(--tertiary);
  font-size: 13px;
  font-weight: 650;
}

.article {
  padding: 42px 0 60px;
}

.article-header {
  margin-bottom: 32px;
}

.article-body h2,
.article-body h3 {
  margin-top: 34px;
  margin-bottom: 8px;
  line-height: 1.24;
  letter-spacing: 0;
}

.article-body h2 {
  font-size: 23px;
}

.article-body h3 {
  font-size: 19px;
}

.article-body p,
.article-body li {
  color: #2f2f33;
}

.article-body blockquote {
  margin: 26px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--muted);
}

.article-body code {
  padding: 0.12em 0.3em;
  border-radius: 5px;
  background: var(--surface-strong);
  font-size: 0.92em;
}

.article-body hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    align-items: center;
  }

  .landing {
    padding: 48px 0 56px;
  }

  .landing-hero {
    justify-content: center;
    margin-bottom: 48px;
  }

  .article-header h1 {
    font-size: 30px;
  }

  .post-row h2 {
    font-size: 20px;
  }

  .landing-tagline {
    font-size: 32px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
