/* The public blog pages (/blog). Same night-slate and brass look as the front page; no script is needed. */
:root {
  --slate: #0f161d; --slate-2: #151e27; --moss: #11231b; --brass: #e4b24c; --brass-deep: #b98625;
  --ink: #ece8dc; --mute: #a7b2ab; --line: rgba(228, 178, 76, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--slate); color: var(--ink); font: 400 1.0625rem/1.7 'Inter', system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: 'Cinzel', 'Trajan Pro', Georgia, serif; font-weight: 700; color: #f6f1e2; line-height: 1.15; margin: 0; text-wrap: balance; }
a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: #f3c964; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.bl-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.bl-skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--brass); color: #231704; padding: 8px 14px; border-radius: 8px; }
.bl-skip:focus { left: 8px; }

/* ---- top bar */
.bl-nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(20px, calc((100% - 1120px) / 2)); background: #0f161dee; backdrop-filter: blur(8px); border-bottom: 1px solid #ffffff10; }
.bl-brand { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 1.3rem; color: #f6f1e2; text-decoration: none; letter-spacing: .04em; }
.bl-brand span { color: var(--brass); }
.bl-nav nav { display: flex; align-items: center; gap: 4px; }
.bl-nav nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.bl-nav nav a:hover { background: rgba(255, 255, 255, .07); }
.bl-nav nav a.bl-btn { color: #231704; }
.bl-btn { display: inline-block; border-radius: 10px; padding: 13px 30px; font-weight: 700; font-size: 1.05rem; color: #231704 !important; text-decoration: none; background: linear-gradient(#f3c964, var(--brass-deep)); box-shadow: 0 1px 0 #fff6 inset, 0 10px 28px -10px #e4b24c99; transition: transform .15s; }
.bl-btn:hover { transform: translateY(-2px); }
.bl-btn-small { padding: 8px 18px; font-size: .95rem; margin-left: 6px; }
.bl-btn-ghost { background: transparent; color: var(--ink) !important; box-shadow: 0 0 0 1.5px var(--line) inset; }
.bl-btn-ghost:hover { background: rgba(228, 178, 76, .1); }

/* ---- hero: a pixel-art scene, dimmed so the title reads */
.bl-hero { position: relative; isolation: isolate; padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 5vw, 60px); }
.bl-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; image-rendering: pixelated; background: linear-gradient(180deg, #0f161db3 0%, #0f161d99 45%, #0f161d 100%), linear-gradient(90deg, #0f161df2 0%, #0f161d99 55%, #0f161d33 100%), var(--bl-cover) center / cover no-repeat; }
.bl-hero h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); max-width: 22ch; text-shadow: 0 3px 24px #000a; }
.bl-hero-index h1 { max-width: 18ch; }
.bl-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink); max-width: 46em; margin: 16px 0 0; text-shadow: 0 2px 12px #000c; }
.bl-kicker { margin: 0 0 12px; color: var(--brass); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.bl-meta { margin: 16px 0 0; color: var(--mute); font-size: .92rem; }
.bl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; font-size: .9rem; color: var(--mute); }
.bl-crumbs a { color: var(--mute); text-decoration: none; }
.bl-crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---- article */
.bl-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); align-items: start; }
.bl-toc { position: sticky; top: 84px; padding: 18px 18px 14px; border-radius: 14px; background: var(--slate-2); box-shadow: 0 0 0 1px var(--line) inset; font-size: .95rem; }
.bl-toc strong { display: block; margin-bottom: 8px; font-family: 'Cinzel', Georgia, serif; color: #f6f1e2; }
.bl-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.bl-toc a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--mute); text-decoration: none; line-height: 1.35; }
.bl-toc a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.bl-body { max-width: 70ch; min-width: 0; }
.bl-body > *:first-child { margin-top: 0; }
.bl-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin: 2.1em 0 .6em; padding-top: .2em; }
.bl-body h3 { font-size: 1.25rem; margin: 1.7em 0 .5em; }
.bl-body p { margin: 0 0 1.1em; color: #d9dfd9; }
.bl-body ul, .bl-body ol { margin: 0 0 1.2em; padding-left: 1.4em; color: #d9dfd9; }
.bl-body li { margin: .35em 0; padding-left: .2em; }
.bl-body li::marker { color: var(--brass); }
.bl-body strong { color: #f6f1e2; }
.bl-body a { font-weight: 600; }
.bl-body blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--brass); background: var(--slate-2); border-radius: 0 12px 12px 0; }
.bl-body blockquote p { margin: 0; }
.bl-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.bl-body code { font: .92em ui-monospace, Menlo, Consolas, monospace; background: #1c2833; padding: .1em .4em; border-radius: 5px; }
.bl-body pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: #0b1015; box-shadow: 0 0 0 1px var(--line) inset; }
.bl-body pre code { background: none; padding: 0; }
.bl-body img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.bl-body table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.bl-body th, .bl-body td { padding: 11px 16px; text-align: left; border-bottom: 1px solid #ffffff12; }
.bl-body thead th { background: var(--slate-2); color: #f6f1e2; font-weight: 700; }
.bl-body tbody tr:last-child td { border-bottom: 0; }
.bl-tags { margin-top: 2.4em !important; font-size: .9rem; color: var(--mute) !important; }
.bl-tags span { margin-right: 10px; }

/* ---- cards */
.bl-list { padding: 8px 0 24px; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bl-card { border-radius: 16px; background: var(--slate-2); box-shadow: 0 0 0 1px var(--line) inset, 0 24px 40px -30px #000; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #e4b24c88 inset, 0 30px 46px -28px #000; }
.bl-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.bl-card-art { display: block; aspect-ratio: 16 / 7; background: var(--bl-cover) center / cover no-repeat; image-rendering: pixelated; }
.bl-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.bl-card h2, .bl-card h3 { font-size: 1.2rem; }
.bl-card-desc { color: var(--mute); font-size: .97rem; line-height: 1.55; flex: 1; }
.bl-card .bl-meta { margin: 6px 0 0; font-size: .86rem; }
.bl-card .bl-kicker { margin: 0; }
.bl-card-big { margin-bottom: 22px; }
.bl-card-big .bl-card-link { flex-direction: row; }
.bl-card-big .bl-card-art { flex: 0 0 52%; aspect-ratio: auto; min-height: 280px; }
.bl-card-big .bl-card-body { padding: clamp(22px, 3vw, 40px); justify-content: center; }
.bl-card-big h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.bl-card-big .bl-card-desc { font-size: 1.05rem; flex: 0; }

/* ---- call to action and related */
.bl-cta { margin-block: clamp(24px, 4vw, 48px); padding: clamp(28px, 4vw, 48px); text-align: center; border-radius: 20px; background: radial-gradient(900px 300px at 50% 0%, #183428, transparent 70%), var(--moss); box-shadow: 0 0 0 1px var(--line); }
.bl-cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.bl-cta p { max-width: 38em; margin: 0 auto 22px; color: var(--mute); }
.bl-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bl-related { padding-bottom: 40px; }
.bl-related h2 { font-size: 1.7rem; margin-bottom: 20px; }
.bl-404 { padding: 80px 0; }
.bl-404 h1 { margin-bottom: 14px; }

/* ---- footer */
.bl-foot { margin-top: 32px; border-top: 1px solid #ffffff12; background: #0b1015; padding: 34px 0 40px; color: var(--mute); font-size: .95rem; }
.bl-foot .bl-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.bl-foot strong { font-family: 'Cinzel', Georgia, serif; color: var(--ink); font-size: 1.1rem; }
.bl-foot p { margin: 6px 0 0; max-width: 28em; }
.bl-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.bl-foot a { color: var(--mute); text-decoration: none; }
.bl-foot a:hover { color: var(--brass); text-decoration: underline; }

@media (max-width: 900px) {
  .bl-layout { grid-template-columns: 1fr; }
  .bl-toc { position: static; }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-card-big .bl-card-link { flex-direction: column; }
  .bl-card-big .bl-card-art { flex: none; aspect-ratio: 16 / 8; min-height: 0; }
}
@media (max-width: 600px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-nav nav a:not(.bl-btn) { display: none; }
  .bl-wrap { width: calc(100% - 32px); }
  .bl-nav { padding-inline: 16px; }
  .bl-body th, .bl-body td { padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bl-card, .bl-btn { transition: none; }
}

/* ---- search, categories, comments */
.bl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bl-search { display: flex; gap: 8px; max-width: 520px; margin-top: 22px; }
.bl-search input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: #0b1015e6; color: var(--ink); font: inherit; }
.bl-search input:focus { outline: 3px solid var(--brass); outline-offset: 1px; }
.bl-search button { padding: 0 20px; border: 0; border-radius: 10px; font: inherit; font-weight: 700; color: #231704; background: linear-gradient(#f3c964, var(--brass-deep)); cursor: pointer; }
.bl-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 18px; }
.bl-cats a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--slate-2); box-shadow: 0 0 0 1px var(--line) inset; font-weight: 600; }
.bl-cats a span { color: var(--mute); font-weight: 400; font-size: .88rem; }
.bl-cats a:hover { background: rgba(228, 178, 76, .12); }
.bl-cats a[aria-current] { color: #231704; background: linear-gradient(#f3c964, var(--brass-deep)); box-shadow: none; }
.bl-cats a[aria-current] span { color: #4a3510; }
.bl-kicker a { color: inherit; text-decoration: none; }
.bl-kicker a:hover { text-decoration: underline; }
.bl-empty { color: var(--mute); }
.bl-muted { color: var(--mute); font-size: .92rem; }
.bl-tags a { margin-right: 10px; color: var(--mute); text-decoration: none; font-weight: 400; }
.bl-tags a:hover { color: var(--brass); text-decoration: underline; }
.bl-comments { max-width: 760px; margin-block: clamp(28px, 4vw, 56px); }
.bl-comments h2 { font-size: 1.6rem; margin-bottom: 18px; }
.bl-comment-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.bl-comment-list article { padding: 14px 18px; border-radius: 14px; background: var(--slate-2); box-shadow: 0 0 0 1px #ffffff12 inset; }
.bl-comment-list header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 4px; }
.bl-comment-list header time { color: var(--mute); font-size: .85rem; }
.bl-comment-list p { margin: 0; color: #d9dfd9; overflow-wrap: anywhere; }
.bl-comment-form { display: grid; gap: 10px; padding: 18px; border-radius: 14px; background: var(--slate-2); box-shadow: 0 0 0 1px var(--line) inset; }
.bl-comment-form[hidden], .bl-login[hidden] { display: none; }
.bl-comment-form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #ffffff1f; background: #0b1015; color: var(--ink); font: inherit; resize: vertical; }
.bl-comment-form textarea:focus { outline: 3px solid var(--brass); outline-offset: 1px; }
.bl-who { margin: 0; color: var(--mute); }
.bl-comment-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.bl-comment-row .bl-btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 11px 24px; }
.bl-comment-status { margin: 0; min-height: 1.4em; }
.bl-comment-status.ok { color: #8fe0a6; }
.bl-comment-status.bad { color: #f3a39b; }
.bl-login { margin: 0; color: var(--mute); }