:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --ink: #1b1b1b;
  --muted: #6a665f;
  --accent: #0f5b4a;
  --card: #ffffff;
  --border: #e6e0d7;
  --max: 760px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 20% -10%, #fff6e6, transparent 60%),
    radial-gradient(1000px 500px at 90% -20%, #e9f3f0, transparent 55%),
    var(--bg);
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.header {
  padding: 48px 20px 0;
}

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

.brand {
  font-size: 2.2rem;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}

.tagline {
  color: var(--muted);
  margin: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 18px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.post-title {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.post-content h2 {
  font-size: 1.2rem;
  margin-top: 20px;
}

.post-content p,
.post-content li {
  font-size: 1rem;
}

.post-content ul,
.post-content ol {
  padding-left: 22px;
}

.post-content code {
  background: #f1ede6;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.post-content pre {
  background: #f1ede6;
  padding: 14px;
  border-radius: 10px;
  overflow-x: auto;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

.post-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.post-content table::before,
.post-content table::after {
  content: "";
  position: sticky;
  top: 0;
  width: 28px;
  height: 100%;
  display: block;
  pointer-events: none;
}

.post-content table::before {
  left: 0;
  background: linear-gradient(to right, rgba(214, 207, 197, 0.55), transparent);
}

.post-content table::after {
  right: 0;
  margin-left: auto;
  background: linear-gradient(to left, rgba(214, 207, 197, 0.55), transparent);
}

.post-content table::-webkit-scrollbar {
  height: 8px;
}

.post-content table::-webkit-scrollbar-thumb {
  background: #d6cfc5;
  border-radius: 8px;
}

.post-content th,
.post-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.post-content th {
  background: #f1ede6;
  font-weight: 600;
}

.footer {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

@media (max-width: 640px) {
  .brand {
    font-size: 1.7rem;
  }

  .card {
    padding: 18px;
  }
}
