:root {
  --primary: #3D5E55; --primary-hover: #2E4A42; --accent: #96583C; --secondary: #E9EFEA;
  --bg: #FAF7F2; --bg-alt: #F3ECE2; --card: #FFFFFF;
  --text: #2A2622; --muted: #E9EFEA; --muted-text: #5E574D; --border: #E7DED1; --border-hover: #CDBFAC; --ring: #3D5E55;
  --shadow: 0 10px 30px rgba(61, 54, 44, .08);
  --serif: "Frank Ruhl Libre", "David Libre", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Assistant", system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 18px; line-height: 1.8; }
h1, h2, h3, .logo { font-family: var(--serif); }
.tag, .meta, .crumbs { font-family: "Assistant", sans-serif; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

header { background: rgba(250, 247, 242, .95); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.bar { max-width: 1000px; margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-weight: 700; font-size: 19px; text-decoration: none; color: var(--text); padding: 8px 0; }
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a.link { text-decoration: none; color: var(--muted-text); font-weight: 500; font-size: 16px; }
.bar nav a.link:hover { color: var(--primary); }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 22px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; text-decoration: none; transition: background .2s; }
.btn:hover { background: var(--primary-hover); }

/* Blog index */
.blog-head { max-width: 1000px; margin: 0 auto; padding: 56px 20px 28px; }
.blog-head h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.2; margin-bottom: 12px; }
.blog-head p { color: var(--muted-text); max-width: 640px; }
.posts { max-width: 1000px; margin: 0 auto; padding: 0 20px 64px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.post-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--muted); }
.post-card .body { padding: 22px 24px 26px; }
.tag { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.post-card h2 { font-size: 22px; line-height: 1.35; margin-bottom: 8px; }
.post-card p { color: var(--muted-text); font-size: 16px; line-height: 1.7; }
.post-card .more { margin-top: 12px; font-weight: 600; color: var(--primary); font-size: 16px; }

/* Article */
article { max-width: 760px; margin: 0 auto; padding: 44px 20px 40px; }
.crumbs { font-size: 15px; color: var(--muted-text); margin-bottom: 18px; }
article h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.22; margin-bottom: 14px; text-wrap: balance; }
.meta { color: var(--muted-text); font-size: 15px; margin-bottom: 26px; }
.cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; margin-bottom: 30px; background: var(--muted); }
.intro { font-size: 20px; line-height: 1.75; margin-bottom: 26px; }
article h2 { font-size: 26px; line-height: 1.3; margin: 42px 0 14px; }
article p { margin-bottom: 18px; }
article ul.list { padding-right: 22px; margin-bottom: 18px; }
article ul.list li { margin-bottom: 8px; }
.box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px; margin: 28px 0; }
.box h3 { font-size: 20px; margin-bottom: 10px; }
.box ol, .box ul { padding-right: 22px; }
.box li { margin-bottom: 8px; }
.box.alert { border-color: #E8C9A8; background: #FBF4EA; }
.note { border-right: 3px solid var(--accent); padding: 4px 18px 4px 0; color: var(--muted-text); margin: 24px 0; }
.sup { font-size: 12px; vertical-align: super; text-decoration: none; }
.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted-text); }
.sources h2 { font-size: 19px; margin: 0 0 12px; color: var(--text); }
.sources ol { direction: ltr; text-align: left; padding-left: 22px; }
.sources li { margin-bottom: 8px; line-height: 1.6; }
.cta { background: linear-gradient(135deg, var(--primary) 0%, #2E4A42 100%); color: #fff; border-radius: 20px; padding: 32px 26px; text-align: center; margin-top: 44px; }
.cta p { opacity: .92; margin-bottom: 16px; }
.cta .btn { background: #fff; color: var(--primary-hover); }
.disclaimer { font-size: 14px; color: var(--muted-text); margin-top: 28px; }
.related { margin-top: 40px; }
.related h2 { font-size: 20px; margin-bottom: 12px; }
.related ul { list-style: none; }
.related li { margin-bottom: 8px; }
footer { text-align: center; padding: 28px 16px; color: var(--muted-text); font-size: 15px; border-top: 1px solid var(--border); background: var(--bg-alt); }

@media (max-width: 720px) {
  .posts { grid-template-columns: 1fr; }
  .bar nav a.link { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .intro { font-size: 18px; }
  article h2 { font-size: 23px; }
  .logo { font-size: 16px; }
  .btn { padding: 10px 16px; font-size: 15px; }
}
