:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --text: #1f1f1d;
  --muted: #6d6a62;
  --line: #e3ded3;
  --link: #1d4f91;
  --max: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 19px;
  line-height: 1.65;
}

.page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.home-header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  margin: 0 0 12px;
  font-weight: 500;
}

.essay h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin-bottom: 10px;
}

h2 {
  font-size: 1.55rem;
  margin-top: 2.6em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.2rem;
  margin-top: 2em;
}

p { margin: 1.05em 0; }

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

.top {
  margin-bottom: 44px;
  font-size: 0.9rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.top a {
  color: var(--muted);
  text-decoration: none;
}

.top a:hover { color: var(--text); }

.date, .dek, .home-header p, .empty {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.date {
  font-size: 0.92rem;
  margin: 0.4em 0 1.2em;
}

.dek {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 2.5em;
}

.essay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.essay-list li {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.essay-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
}

.essay-list a:hover { color: var(--link); }

.essay-list span {
  color: var(--muted);
  white-space: nowrap;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
}

blockquote, aside.reflect {
  margin: 2em 0;
  padding: 1em 1.2em;
  border-left: 3px solid var(--line);
  color: #444039;
  background: rgba(255, 255, 255, 0.42);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3em 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

@media (max-width: 620px) {
  body { font-size: 18px; }
  .page { width: min(100% - 28px, var(--max)); padding-top: 44px; }
  .essay-list li { display: block; }
  .essay-list span { display: block; margin-top: 4px; }
}
