:root {
  --primary: #2F6F8F;
  --secondary: #A7C7D1;
  --accent: #C2693B;
  --bg: #F7F9F9;
  --surface: #FFFFFF;
  --text: #1D2B33;
  --muted: #4B5F6B;
  --border: #D5E2E6;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--primary); font-weight: 600; font-size: 1.15rem; }
.nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); text-decoration: underline; }
.hero {
  background: linear-gradient(135deg, #EEF4F6 0%, #F7F9F9 65%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 2.2rem 1.25rem;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center;
}
.hero h1 { margin: 0 0 0.6rem; font-size: clamp(1.85rem, 3.2vw, 2.55rem); color: var(--primary); font-weight: 600; line-height: 1.18; }
.ruler {
  height: 10px; margin: 0.5rem 0 1rem;
  background-image: repeating-linear-gradient(90deg, var(--primary) 0 1px, transparent 1px 10px);
  opacity: 0.45; max-width: 320px;
}
.hero p { margin: 0; color: var(--muted); max-width: 58ch; }
.hero-art { display: flex; justify-content: flex-end; }
.hero-art svg { max-width: 100%; height: auto; }
.shell {
  max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 3.5rem;
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2.2rem; align-items: start;
}
.shell.single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.sidebar {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.1rem;
  position: sticky; top: 4.5rem;
}
.sidebar h2 { margin: 0 0 0.7rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-family: 'IBM Plex Mono', monospace; }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.sidebar a { display: block; padding: 0.35rem 0.5rem; border-radius: 4px; text-decoration: none; color: var(--text); font-size: 0.94rem; }
.sidebar a:hover, .sidebar a[aria-current="page"] { background: #EBF2F4; color: var(--primary); font-weight: 600; }
.note-card {
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted);
}
.note-card strong { color: var(--accent); display: block; margin-bottom: 0.3rem; font-family: 'IBM Plex Mono', monospace; }
.content { min-width: 0; }
.content h1 { margin-top: 0; color: var(--primary); font-size: 1.95rem; line-height: 1.2; }
.content h2 { margin-top: 2rem; color: var(--text); font-size: 1.3rem; border-bottom: 1px solid var(--border); padding-bottom: 0.35rem; }
.prose { max-width: 68ch; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.25rem 0 2rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 6px; padding: 1.1rem; text-decoration: none; color: var(--text); display: block;
}
.card:hover { border-left-color: var(--accent); }
.card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--primary); }
.card p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 1.2rem 0 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.65rem 0.85rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #EBF2F4; color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
tbody tr:nth-child(even) { background: #FAFDFD; }
.mono { font-family: 'IBM Plex Mono', monospace; font-size: 0.86rem; }
.ok { color: #1E6B45; font-weight: 600; }
.no { color: #A63A24; font-weight: 600; }
.warn { color: #8A5316; font-weight: 600; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 1rem 1.2rem; border-radius: 6px; margin: 1.25rem 0; }
.article-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.75rem; }
.article-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.9rem 1.1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 1.75rem 1.25rem; font-size: 0.88rem; color: var(--muted); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { justify-content: flex-start; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
