:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #e8e8e8;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.page-shell {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand,
.site-nav a,
.hero-label,
.post-meta,
.topic-links a {
  font-size: 0.92rem;
}

.brand {
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
}

.page-shell {
  padding: 48px 0 72px;
}

.hero-block {
  padding: 8px 0 34px;
  border-bottom: 1px solid var(--line);
}

.hero-label {
  margin: 0 0 14px;
  color: var(--muted);
}

.hero-block h1,
.section-heading h2,
.featured-post h2,
.post-item h3 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-block h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.hero-summary,
.featured-post p,
.post-item p {
  margin: 18px 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.topic-nav {
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--line);
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

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

.topic-links a:hover,
.site-nav a:hover,
.section-heading a:hover,
.site-footer a:hover {
  color: var(--text);
}

.featured-post {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.featured-post a {
  display: block;
}

.post-meta {
  color: var(--muted);
}

.featured-post h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.post-stream {
  padding-top: 28px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  font-size: 1.35rem;
}

.section-heading a {
  color: var(--muted);
  font-size: 0.95rem;
}

.post-list {
  display: grid;
}

.post-item {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.post-item h3 {
  margin-top: 10px;
  font-size: 1.65rem;
  line-height: 1.16;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 720px) {
  .header-inner,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-shell {
    padding-top: 36px;
  }

  .hero-block h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .post-item h3 {
    font-size: 1.38rem;
  }
}
