:root {
  --bg: #fcfcfb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --link: #111827;
  --linkHover: #111827;
  --accent: #111827;
  --max: 720px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

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

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--linkHover);
  text-decoration-thickness: from-font;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(252, 252, 251, 0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.brand .title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.2px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.brand .subtitle {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

nav a:hover {
  color: var(--text);
  border-color: var(--border);
  text-decoration: none;
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
}

.hero {
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
}

.hero h1 {
  margin: 0 0 6px 0;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

h1, h2, h3 {
  line-height: 1.3;
}

h2 {
  margin-top: 26px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.list {
  display: grid;
  gap: 12px;
}

.post-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-radius: 0;
  border: none;
  background: transparent;
}

a.post-item {
  text-decoration: none;
}

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

.post-item .post-title {
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.post-item .post-desc {
  color: var(--muted);
  text-decoration: none;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

footer {
  color: var(--muted);
  font-size: 13px;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  background: transparent;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.prose {
  max-width: 70ch;
}

blockquote {
  margin: 18px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: #f9fafb;
  color: var(--text);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  color: var(--text);
  background: #f3f4f6;
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

@media (max-width: 520px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 30px;
  }
}
