:root {
  color-scheme: light;
  --ink: #172b3a;
  --muted: #526575;
  --line: #d9e2e9;
  --paper: #ffffff;
  --wash: #f3f7f9;
  --accent: #087e8b;
  --accent-dark: #075d68;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.05rem;
  line-height: 1.7;
}

a { color: var(--accent-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid #80cbd0; outline-offset: 3px; }

.site-header,
.site-main,
.site-footer {
  width: min(100% - 2.5rem, 880px);
  margin-inline: auto;
}

.site-header {
  padding-block: 2rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.site-title {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-header p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
.site-main { min-height: 65vh; padding-block: 3.5rem 5rem; }
.intro { max-width: 660px; margin-bottom: 4rem; }
.eyebrow { color: var(--accent-dark); font-size: 0.8rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.035em; }
h1 { margin: 0.5rem 0 1rem; font-size: clamp(2.3rem, 7vw, 4rem); }
h2 { margin-top: 3rem; font-size: 1.8rem; }
h3 { font-size: 1.35rem; }
.intro > p:last-child { color: var(--muted); font-size: 1.2rem; }
.post-card { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.post-card h3, .post-card h2 { margin: 0.25rem 0 0.5rem; }
.post-card h3 a, .post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card > p:not(.post-date) { margin: 0.5rem 0; color: var(--muted); }
.post-date { margin: 0; color: var(--muted); font-size: 0.9rem; }
.read-more, .back-link { font-size: 0.95rem; font-weight: 650; text-decoration: none; }
.article { max-width: 100%; }
.article-header { max-width: 760px; margin: 0 auto 3rem; }
.article-header h1 { margin-top: 1.25rem; }
.article-description { color: var(--muted); font-size: 1.2rem; }
.article-content { max-width: 760px; margin-inline: auto; }
.article-content h2 { margin-top: 3.25rem; padding-top: 0.5rem; }
.article-content h3 { margin-top: 2rem; }
.article-content p, .article-content ul, .article-content ol { margin-block: 1.15rem; }
.article-content li { padding-left: 0.25rem; }
.article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.92rem; }
.article-content th, .article-content td { padding: 0.7rem 0.8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--wash); }
.article-content pre { overflow-x: auto; padding: 1rem 1.2rem; border-radius: 0.5rem; background: #14212b; color: #eef5f8; font-size: 0.88rem; }
.article-content code { font-size: 0.9em; }
.article-content :not(pre) > code { padding: 0.12em 0.28em; border-radius: 0.2rem; background: var(--wash); }
.article-figure { margin: 2.5rem 0; }
.article-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.article-figure figcaption { padding-top: 0.65rem; color: var(--muted); font-size: 0.92rem; }
.article-content blockquote { margin-inline: 0; padding: 0.2rem 1.2rem; border-left: 3px solid var(--accent); color: var(--muted); }
.site-footer { padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0; }

@media (max-width: 620px) {
  .site-header, .site-main, .site-footer { width: min(100% - 1.5rem, 880px); }
  .site-main { padding-top: 2.5rem; }
  .article-content table { font-size: 0.82rem; }
  .article-content th, .article-content td { padding: 0.5rem; }
}
