@font-face {
  font-family: "Noto Serif SC";
  src: url("../fonts/NotoSerifSC-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("../fonts/NotoSerifSC-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2b2a28;
  --muted: #8a8377;
  --faint: #55665b;
  --line: #e2dacb;
  --rule: #dfd6c6;
  --accent: #ae472c;
  --soft: #f5f0e6;
  --bg: #faf7f1;
  --paper: #faf7f1;
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --display: var(--serif);
  --ui: var(--serif);
  --measure: 680px;
  --page: 1192px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

::selection {
  background: rgba(174, 71, 44, 0.16);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 40;
  pointer-events: none;
  transition: width 0.1s linear;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner,
.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
}

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

.wordmark {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.nav a {
  transition: color 0.15s ease;
}

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

.home {
  padding: 56px 0 96px;
}

.kicker {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  margin: 0 0 28px;
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed-item {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.feed-item:last-child {
  border-bottom: 1px solid var(--line);
}

.feed-title {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.feed-title a:hover {
  color: var(--ink);
}

.feed-dek {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 640px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0;
}

.avatar.lg {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.dot::before {
  content: "·";
  margin: 0 2px;
  color: #bfb6a6;
}

article.post {
  padding: 12px 0 80px;
}

.post-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--faint);
  font-weight: 600;
  margin: 28px 0 18px;
}

.post h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 0 0 12px;
}

.dek {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 28px;
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0 8px;
  margin: 0 0 40px;
}

.byline-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.byline-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.byline-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

.prose {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: 0.01em;
  word-break: break-word;
}

.prose p {
  margin: 0 0 1.45em;
}

.prose h2 {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2.1em 0 0.85em;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.prose h3 {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin: 1.7em 0 0.7em;
}

.prose strong {
  font-weight: 700;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

.prose a:hover {
  color: var(--accent);
}

.prose ul,
.prose ol {
  margin: 0 0 1.45em;
  padding-left: 1.2em;
}

.prose li {
  margin: 0 0 0.55em;
}

.prose blockquote {
  margin: 1.8em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  font-style: normal;
}

.prose figure {
  margin: 2em -8px 2.2em;
}

.prose figure img {
  width: 100%;
  border-radius: 2px;
}

.prose figcaption {
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

.asterism {
  border: 0;
  text-align: center;
  margin: 2.6em 0;
  height: auto;
  overflow: visible;
}

.asterism::before {
  content: "···";
  letter-spacing: 0.7em;
  font-size: 22px;
  color: var(--ink);
  margin-left: 0.7em;
  line-height: 1;
}

.sources {
  font-size: 16px;
  color: var(--ink);
}

.sources h2 {
  font-size: 20px;
}

.endnote {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

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

.site-foot a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .topbar-inner,
  .wrap,
  .post-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home {
    padding-top: 36px;
  }

  .feed-title {
    font-size: 24px;
  }

  .prose {
    font-size: 17px;
    line-height: 1.82;
  }

  .prose figure {
    margin-left: -12px;
    margin-right: -12px;
  }
}
