:root {
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Source Code Pro", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --text-muted: #666666;
  --border-color: #e5e5e5;
  --border-subtle: #eeeeee;
  --link-color: #111111;
  --link-hover: #555555;
  --code-bg: #f6f6f6;
  --code-border: #e0e0e0;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-mono);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  letter-spacing: -0.01em;
  margin: 0;
  padding: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-color);
  margin: 0;
}

h1, .main-title {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

h2, .subheader-text, .section-title {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.0rem;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-color);
  text-decoration: underline;
}

/* Paragraphs & Text */
p, .body-text {
  font-size: 1rem;
  margin: 0 0 1.25em;
  color: var(--text-color);
}

.body-text:last-child {
  margin-bottom: 0;
}

.text-muted, .meta-text {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Markdown & Post Content */
#post-content > h1:first-child {
  display: none;
}

#post-content,
.post-body {
  line-height: 1.75;
  font-size: 1rem;
}

#post-content p {
  margin-bottom: 1.4em;
}

#post-content h2 {
  margin-top: 2em;
  margin-bottom: 0.75em;
  padding-bottom: 0.3em;
  border-bottom: 1px dashed var(--border-color);
}

#post-content h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

#post-content ul,
#post-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}

#post-content li {
  margin-bottom: 0.35em;
}

#post-content blockquote {
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.2em;
  border-left: 2px solid var(--text-color);
  color: #333333;
}

#post-content pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 14px;
  overflow-x: auto;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 1.5em 0;
}

#post-content code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 2px 5px;
  border-radius: 3px;
}

#post-content pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

#post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

#post-content hr {
  border: none;
  border-top: 1px dashed var(--border-color);
  margin: 2em 0;
}
