/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Base ── */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #ffffff;
}

/* ── Site navigation ── */
.site-nav {
  background: #1b2a3b;
  padding: 0.65rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem 1.8rem;
  flex-wrap: wrap;
  border-bottom: 3px solid #e05a00;
}

.site-nav a {
  color: #b8c8d8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  white-space: nowrap;
  padding: 0.1rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover {
  color: #ffffff;
  border-bottom-color: #e05a00;
}

.site-nav .site-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-right: 0.8rem;
  border-bottom: none !important;
}

.site-nav .site-title:hover {
  color: #ffd0a0;
}

/* ── Content wrapper ── */
.page-body {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.6rem 2.2rem 3rem;
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  color: #111;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

h1 { font-size: 1.55rem; }
h2 { font-size: 1.25rem; border-bottom: 1px solid #dde3ea; padding-bottom: 0.3rem; }
h3 { font-size: 1.08rem; }
h4 { font-size: 0.97rem; }

/* ── Paragraphs ── */
p { margin: 0.55rem 0; }

/* ── Links ── */
a            { color: #1a5fa8; text-decoration: none; }
a:hover      { color: #0d3d6e; text-decoration: underline; }
a:visited    { color: #5b3fa8; }

/* ── Images ── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Tables ── */
table {
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 0.92em;
}

td, th {
  padding: 0.35rem 0.6rem;
  border: 1px solid #c8d0d8;
  vertical-align: top;
}

th {
  background: #eef2f6;
  font-weight: 600;
  text-align: left;
}

tr:nth-child(even) td { background: #f8fafc; }

/* ── Horizontal rule ── */
hr {
  border: none;
  border-top: 1px solid #dde3ea;
  margin: 1.4rem 0;
}

/* ── Lists ── */
ul, ol { padding-left: 1.6rem; }
li { margin: 0.2rem 0; }

/* ── Preformatted / code ── */
pre, code {
  font-family: 'SF Mono', 'Fira Code', Consolas, 'Courier New', monospace;
  font-size: 0.86em;
  background: #f3f6f9;
  border-radius: 3px;
}

code { padding: 0.1em 0.35em; }

pre {
  padding: 1rem 1.2rem;
  overflow-x: auto;
  border: 1px solid #dde3ea;
  line-height: 1.5;
}

/* ── Blockquote ── */
blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid #b8c8d8;
  color: #444;
  background: #f8fafc;
}
