/* DM Vault blog: "Steel & Brass", same palette as the landing page */
:root {
  --bg: #0d1114; --bg-elev: #131a1f; --card: #161d23;
  --border: #232c33; --border-light: #38434c;
  --text: #dfe3e6; --heading: #f0f3f5; --muted: #8b96a1;
  --accent: #b3925f; --accent-light: #cdae7d; --on-accent: #14100a;
  --serif: 'EB Garamond', 'Palatino Linotype', Georgia, serif;
  --display: 'Cinzel', 'Palatino Linotype', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; }
a { color: var(--accent-light); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
img { max-width: 100%; height: auto; }
.wrap { width: min(100% - 2rem, 46rem); margin-inline: auto; }
.muted { color: var(--muted); font-size: .95rem; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg-elev); position: sticky; top: 0; z-index: 5; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; width: min(100% - 2rem, 64rem); }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 600; letter-spacing: .06em; color: var(--heading); text-decoration: none; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 1.1rem; font-size: 1rem; }
.site-header nav a:not(.btn) { color: var(--text); text-decoration: none; }
.site-header nav a:not(.btn):hover { color: var(--accent-light); }

.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: .7rem 1.2rem; border-radius: 6px; white-space: nowrap; }
.btn:hover { background: var(--accent-light); color: var(--on-accent); }
.btn--small { padding: .45rem .8rem; font-size: .72rem; }

main { padding: 2rem 0 3rem; }
.crumbs { color: var(--muted); font-size: .95rem; }
.crumbs a { color: var(--muted); }
h1, h2, h3 { font-family: var(--display); color: var(--heading); line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: .6rem 0 .5rem; letter-spacing: .01em; }
h2 { font-size: 1.55rem; margin: 2.6rem 0 .8rem; padding-top: .4rem; border-top: 1px solid var(--border); }
h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
.byline { color: var(--muted); font-size: 1rem; margin: 0 0 1.8rem; }
.byline a { color: var(--accent-light); }
.lead { font-size: 1.3rem; color: var(--muted); }

.prose p, .prose li { max-width: 68ch; }
.prose > p:first-child { font-size: 1.3rem; }
.prose strong { color: var(--heading); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .3rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

figure { margin: 1.5rem 0; }
figure img { display: block; width: 100%; border: 1px solid var(--border-light); border-radius: 10px; background: var(--card); }
figcaption { margin-top: .5rem; color: var(--muted); font-size: .95rem; font-style: italic; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.4; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-elev); color: var(--heading); font-family: var(--display); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin: 2.2rem 0; padding: 1.3rem 1.5rem; background: var(--card); border: 1px solid var(--border-light); border-left: 3px solid var(--accent); border-radius: 10px; }
.cta p { margin: 0; }
.cta__title { font-family: var(--display); color: var(--heading); font-size: 1.15rem; margin-bottom: .3rem !important; }
.cta__text { color: var(--muted); max-width: 40ch; font-size: 1.05rem; line-height: 1.45; }
.author { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.more h2 { font-size: 1.2rem; }
.more ul { padding-left: 1.2rem; }

.cards { list-style: none; padding: 0; display: grid; gap: 1rem; }
.card { padding: 1.2rem 1.4rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.card h2 { margin: 0 0 .4rem; border: 0; padding: 0; font-size: 1.3rem; }
.card h2 a { color: var(--heading); text-decoration: none; }
.card h2 a:hover { color: var(--accent-light); }
.card p { margin: .3rem 0; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 1.5rem 0; font-size: 1rem; }
.site-footer p { margin: .3rem 0; }

@media (max-width: 560px) {
  body { font-size: 1.12rem; }
  .site-header nav a:not(.btn) { display: none; }
  .cta { flex-direction: column; align-items: flex-start; }
}
