:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --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,
.list-intro,
.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 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav,
.site-footer nav,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--link);
}

.list-intro {
  padding: 42px 0 22px;
}

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

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

.list-intro p {
  max-width: 620px;
  margin: 10px 0 0;
}

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

.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,
.post-row h3 {
  margin: 5px 0 7px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
}

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

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

.post-row p {
  margin: 0;
}

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

.pagination {
  margin-top: 28px;
}

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

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

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

.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: 24px 0 36px;
  border-top: 1px solid var(--line);
  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;
  }

  .list-intro {
    padding-top: 32px;
  }

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

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