:root {
  --ink: #1c2530;
  --muted: #5b6673;
  --line: #dde3e9;
  --link: #15507a;
  --bg: #ffffff;
  --soft: #f6f8fa;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  padding-top: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--link); }

.tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

main {
  flex: 1 0 auto;
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 34px 0 12px;
}

p { margin: 0 0 16px; }

.lead {
  font-size: 18px;
  color: var(--ink);
}

.meta,
.breadcrumb {
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb { margin-bottom: 10px; }
.breadcrumb a { color: var(--link); }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { color: #0c3552; }

ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 8px; }

strong { font-weight: 650; }

.article-list { list-style: none; padding-left: 0; }
.article-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.article-list a { font-size: 17px; font-weight: 600; }
.article-list .meta { display: block; margin-top: 4px; }

.site-footer {
  flex-shrink: 0;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a { color: var(--link); }
.footer-home { margin: 12px 0 6px; }
.copyright { margin: 0; }

/* Long official URLs, code and quotes must not force horizontal scrolling */
a, p, li { overflow-wrap: break-word; word-wrap: break-word; }

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .lead { font-size: 16px; }
  .site-header, main, .site-footer { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 24px; padding-bottom: 36px; }
  .footer-links { line-height: 2; }
}

@media print {
  .site-footer { border-top: none; }
  a { color: var(--ink); }
}
