* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #4a7c59;
  --green-light: #e8f0ea;
  --green-dark: #2d5a3a;
  --bg: #fafaf9;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e5e5e5;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  padding: 2rem 1rem;
}

.main {
  max-width: 720px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

header img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green);
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.blog-header {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.links a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.intro p {
  margin-bottom: 1rem;
}

.intro p:last-child {
  margin-bottom: 0;
}

h2 {
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

ul {
  list-style: none;
}

li {
  padding: 0.4rem 0;
  font-size: 0.93rem;
}

li + li {
  border-top: 1px solid var(--border);
}

a:link, a:visited {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

a:active {
  color: var(--green-dark);
}

b, strong {
  font-weight: 600;
}

footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1rem 0;
}

/* Blog */

.page-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.post-list .post-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.post-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: -0.5rem 0 1.25rem;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content h2, .post-content h3, .post-content h4,
.post-content h5, .post-content h6 {
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
}

.post-content h2 {
  font-size: 1.25rem;
  color: var(--green-dark);
}

.post-content h3 {
  font-size: 1.05rem;
}

.post-content ul, .post-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  padding: 0.2rem 0;
  font-size: 0.95rem;
}

.post-content li + li {
  border-top: none;
}

.post-content code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--green-light);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

.post-content pre {
  background: var(--green-light);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 3px solid var(--green);
  padding-left: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.post-content img {
  max-width: 100%;
}

.post-content p > img:only-child {
  display: block;
  margin: 0 auto 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.post-content table {
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  text-align: left;
}

.post-content th {
  background: var(--green-light);
  font-weight: 600;
}

.post-content math[display="block"] {
  display: block;
  margin: 1.25rem auto;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
