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

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: rgba(0, 0, 0, 0.55);
  --border: #000000;
  --radius: 12px;
  --border-width: 4px;
  --page-max: 650px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html {
  background: var(--bg);
  color: var(--fg);
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(100% - 2rem, var(--page-max));
  margin-inline: auto;
  padding-block: 2.5rem 4rem;
}

.brand {
  margin-bottom: 1.75rem;
}

.brand a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 100%;
  height: auto;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post {
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem 1.5rem;
}

.post__date {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.post__title {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.post__title a {
  color: inherit;
  text-decoration: none;
}

.post__title a:hover,
.post__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.post__excerpt {
  margin-top: 0.7rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 36em;
}

.post--single .post__title {
  margin-bottom: 1rem;
}

.post__body {
  font-size: 1.2rem;
  color: #000;
}

.post__body h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #000;
}

.post__body h2:first-child {
  margin-top: 0;
}

.post__body p + p,
.post__body p + ul,
.post__body ul + p,
.post__body p + ol,
.post__body ol + p {
  margin-top: 0.9rem;
}

.post__body ul,
.post__body ol {
  padding-left: 1.25rem;
}

.post__body li + li {
  margin-top: 0.35rem;
}

.post__body strong {
  font-weight: 700;
}

.back {
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

.back a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.credit {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: #000;
}

.credit a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 480px) {
  .page {
    width: min(100% - 1.25rem, var(--page-max));
    padding-block: 1.5rem 3rem;
  }

  .post {
    padding: 1.1rem 1.15rem 1.25rem;
  }
}
