:root {
  --forest: #071511;
  --forest-light: #0d211a;
  --cream: #f3eee1;
  --muted: #b8c0ac;
  --gold: #d9a72d;
  --gold-light: #efd075;
  --line: rgba(243, 238, 225, .16);
  --line-soft: rgba(243, 238, 225, .09);
  --header-h: 82px;
}

* { box-sizing: border-box; }
html { background: var(--forest); scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--forest); color: var(--cream); font-family: "DM Sans", Arial, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.container { width: min(100% - 64px, 1240px); margin-inline: auto; }
.header { position: sticky; top: 0; z-index: 100; height: var(--header-h); border-bottom: 1px solid var(--line-soft); background: rgba(7, 21, 17, .89); backdrop-filter: blur(14px); }
.header-inner { width: min(100% - 64px, 1240px); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { min-height: 66px; display: flex; align-items: center; gap: 11px; text-decoration: none; }
.navbar-head { width: 60px; height: 66px; display: block; flex: none; object-fit: contain; }
.brand-name { color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.brand-name b { color: var(--gold-light); }
.nav { display: flex; align-items: center; gap: 29px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav .nav-cta { padding: 0 18px; background: var(--gold); color: #132017; font-size: 12px; font-weight: 700; }
.nav .nav-cta:hover { background: var(--gold-light); color: #132017; }
.mobile-navigation { display: none; position: relative; margin: 0; border: 0; }
.mobile-navigation summary { min-height: 44px; padding: 0 12px; color: var(--cream); font-size: 13px; }
.mobile-navigation summary::after { content: "+"; margin-left: 12px; }
.mobile-navigation nav { position: absolute; top: 52px; right: 0; min-width: 200px; display: grid; padding: 12px; border: 1px solid var(--line); background: var(--forest-light); }
.mobile-navigation a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--cream); text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }

.blog-hero { padding: clamp(64px, 11vw, 144px) 0 clamp(48px, 8vw, 100px); border-bottom: 1px solid var(--line-soft); background: radial-gradient(ellipse 50% 66% at 76% 5%, rgba(217, 167, 45, .13), transparent 70%); }
.kicker { margin: 0 0 19px; color: var(--gold-light); font: 600 11px/1.2 "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.blog-hero h1 { max-width: 780px; margin: 0; font-size: clamp(46px, 7vw, 92px); font-weight: 700; letter-spacing: -.06em; line-height: .94; text-wrap: balance; }
.blog-hero .lede { max-width: 660px; margin: 27px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.5; }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: clamp(48px, 8vw, 96px) 0; border: 1px solid var(--line); background: var(--line); }
.post-card { min-width: 0; display: flex; flex-direction: column; background: var(--forest-light); color: var(--cream); text-decoration: none; transition: background 160ms ease; }
.post-card:hover { background: #10271e; }
.post-cover { width: 100%; aspect-ratio: 1200 / 630; display: block; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--forest); }
.post-card-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; padding: clamp(22px, 3vw, 34px); }
.post-date { color: var(--gold-light); font: 600 11px/1.3 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.post-card h2 { margin: 16px 0 12px; font-size: clamp(27px, 3.1vw, 43px); font-weight: 700; letter-spacing: -.05em; line-height: 1; text-wrap: balance; }
.post-card:hover h2 { color: var(--gold-light); }
.post-excerpt { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.post-read { margin-top: auto; padding-top: 27px; color: var(--gold-light); font: 600 11px/1.3 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.loading, .empty, .error { padding: 72px 24px; color: var(--muted); text-align: center; }
.footer { padding: 30px 0; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 17px; }
.footer a { color: var(--gold-light); text-decoration: none; }

.post-shell { width: min(100% - 64px, 900px); margin: 0 auto; padding: clamp(48px, 8vw, 104px) 0 clamp(72px, 11vw, 144px); }
.back-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--gold-light); font: 600 11px/1.3 "JetBrains Mono", monospace; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.post-header { margin-top: 42px; }
.post-header h1 { max-width: 900px; margin: 16px 0 24px; font-size: clamp(45px, 6.5vw, 82px); font-weight: 700; letter-spacing: -.06em; line-height: .94; text-wrap: balance; }
.post-excerpt-lede { max-width: 670px; margin: 0 0 40px; color: var(--muted); font-size: clamp(18px, 2.1vw, 22px); line-height: 1.5; }
.post-hero-image { display: block; width: 100%; aspect-ratio: 1200 / 630; border: 1px solid var(--line); object-fit: cover; }
.post-body { max-width: 680px; margin: clamp(40px, 6vw, 68px) auto 0; color: var(--cream); font-size: clamp(17px, 1.7vw, 19px); line-height: 1.72; }
.post-body h1, .post-body h2 { margin: 2.35em 0 .7em; color: var(--cream); font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.post-body h3 { margin: 2em 0 .65em; color: var(--cream); font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.post-body p { margin: 0 0 1.35em; }
.post-body a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body ul, .post-body ol { margin: 0 0 1.4em 1.25em; }
.post-body li { margin-bottom: .4em; }
.post-body img { display: block; width: 100%; height: auto; margin: 1.8em 0; border: 1px solid var(--line); }
.post-body blockquote { margin: 1.8em 0; padding-left: 22px; border-left: 2px solid var(--gold); color: var(--muted); font-size: 1.08em; }
.post-body pre { max-width: 100%; margin: 1.6em 0; padding: 20px; overflow-x: auto; border: 1px solid var(--line); background: var(--forest-light); }
.post-body code { font-family: "JetBrains Mono", monospace; font-size: .82em; }
.post-body :not(pre) > code { padding: .12em .35em; background: var(--forest-light); color: var(--gold-light); }
.post-body hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.post-cta { max-width: 680px; margin: 68px auto 0; padding: clamp(28px, 5vw, 45px); border: 1px solid var(--line); border-top: 3px solid var(--gold); background: var(--forest-light); }
.post-cta h2 { margin: 10px 0; font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.post-cta p { max-width: 52ch; margin: 0 0 24px; color: var(--muted); }
.btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 23px; border: 1px solid var(--gold); background: var(--gold); color: #132017; font-size: 14px; font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); }

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .container, .header-inner, .post-shell { width: min(100% - 40px, 900px); }
  .brand { min-height: 60px; gap: 7px; }
  .navbar-head { width: 45px; height: 49.5px; }
  .brand-name { font-size: 10px; letter-spacing: .11em; }
  .nav { display: none; }
  .mobile-navigation { display: block; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card h2 { font-size: clamp(30px, 9vw, 42px); }
  .post-shell { padding-top: 40px; }
  .post-header { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
