@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Libre+Caslon+Display&display=swap');

:root {
  --ink: #142d39;
  --muted: #5a6c75;
  --accent: #be7635;
  --paper: #ffffff;
  --ground: #edf1ef;
  --mat: #f3f0e9;
  --line: #d8e0e2;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  font-size: 16px;
}

* { box-sizing: border-box; }

body.blog-body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.blog-header {
  height: 64px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  gap: 20px;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-size: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-icon, .question { color: #edb46b; }
.brand-icon { font-family: Georgia, serif; font-size: 34px; }

.blog-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-nav a {
  color: #e9eef0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid #ffffff38;
  transition: background .15s ease;
}

.blog-nav a:hover, .blog-nav a[aria-current="page"] {
  background: #314b58;
  border-color: #ffffff66;
}

.blog-nav a:focus-visible, .blog-back:focus-visible, .blog-card-link:focus-visible, .post-body a:focus-visible, .blog-footer-nav a:focus-visible {
  outline: 3px solid #c58743;
  outline-offset: 2px;
}

.blog-main {
  padding: 40px 20px 80px;
}

.blog-shell, .blog-article {
  max-width: 780px;
  margin: 0 auto;
}

.blog-page-title {
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 28px;
}

.blog-list {
  display: grid;
  gap: 24px;
}

.blog-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.blog-card:hover {
  border-color: #b4c3c8;
  box-shadow: 0 8px 28px #142d3912;
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-media {
  background: var(--mat);
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.blog-card-media img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.blog-card-copy {
  padding: 26px 30px 28px;
}

.blog-card-copy time, .blog-date {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-card-copy h2 {
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 10px 0 12px;
  color: var(--ink);
}

.blog-card-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.blog-article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 44px 44px;
}

.blog-back {
  display: inline-block;
  margin-bottom: 22px;
  color: #365f70;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.blog-back:hover { text-decoration: underline; }

.blog-article h1 {
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 10px 0 26px;
}

.post-body {
  font-size: 17px;
  line-height: 1.72;
}

.post-body h2 {
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-weight: 400;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 40px 0 14px;
  padding-top: 24px;
  border-top: 1px solid #e7ecee;
}

.post-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 26px 0 10px;
}

.post-body p {
  margin: 0 0 18px;
}

.post-body ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.post-body li {
  margin: 0 0 10px;
}

.post-body a {
  color: #2c5b6e;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.post-body a:hover { color: var(--accent); }

.post-figure {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
}

.post-hero { margin-top: 0; }

.post-figure-frame {
  background: var(--mat);
  padding: 12px;
}

.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
}

.post-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid #e7ecee;
}

.blog-footer-nav {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-footer-nav a {
  color: #2c5b6e;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.blog-footer-nav a:hover { text-decoration: underline; }

@media (max-width: 650px) {
  .blog-header { padding: 0 16px; }
  .brand { font-size: 24px; gap: 5px; }
  .brand-icon { font-size: 24px; }
  .blog-main { padding: 20px 12px 56px; }
  .blog-page-title, .blog-article h1 { font-size: 34px; }
  .blog-card-copy { padding: 20px; }
  .blog-card-copy h2 { font-size: 26px; }
  .blog-article { padding: 24px 20px 30px; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 26px; }
}
