:root {
  --yellow: #ffd23f;
  --red: #e2574c;
  --blue: #4f7fe8;
  --paper: #faf6ec;
  --paper-deep: #f2ede0;
  --ink: #131311;
  --ink-soft: #4c4a44;
  --mono: 'Azeret Mono', ui-monospace, monospace;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Newsreader', Georgia, serif;
  --border: 2px solid var(--ink);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-ink: 4px 4px 0 var(--ink);
  --shadow-blue: 6px 6px 0 var(--blue);
  --shadow-yellow: 6px 6px 0 var(--yellow);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: #fff; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- Header (matches landing) ---------- */
header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: var(--border);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  max-width: 1280px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 28px; height: 28px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 14px;
}
.logo-text { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo-tag { font-family: var(--mono); font-size: 10px; color: var(--ink-soft); letter-spacing: 0.06em; }
nav { display: flex; gap: 28px; align-items: center; }
nav a.navlink { font-family: var(--body); font-size: 15px; color: var(--ink); text-decoration: none; }
nav a.navlink:hover { color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  padding: 12px 22px;
  text-decoration: none;
  border: var(--border);
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn.solid { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-blue); }
.btn.solid:hover { box-shadow: 8px 8px 0 var(--blue); }
.btn.yellow { background: var(--yellow); box-shadow: var(--shadow-ink); }
.btn.yellow:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn.lg { padding: 16px 28px; font-size: 13px; border-radius: var(--radius-md); }
.btn.small { padding: 10px 18px; font-size: 11px; }
.btn-arrow::after { content: '→'; font-size: 14px; }

/* ---------- Article layout ---------- */
.article-head { padding: 56px 0 40px; border-bottom: var(--border); background: var(--paper-deep); }
.article-head .wrap, article.post .wrap { max-width: 780px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  padding: 8px 14px;
  border: var(--border); border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 24px;
}
.article-head h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.article-head .standfirst {
  font-family: var(--display); font-style: italic; font-weight: 500;
  color: var(--ink-soft); font-size: 20px; line-height: 1.5;
  margin-bottom: 20px;
}
.byline { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.byline b { color: var(--ink); font-weight: 600; }

article.post { padding: 48px 0 64px; }
article.post h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.015em;
  font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2;
  margin: 44px 0 16px;
}
article.post h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 21px; line-height: 1.3;
  margin: 32px 0 12px;
}
article.post p { margin: 0 0 18px; }
article.post ul, article.post ol { margin: 0 0 18px 24px; }
article.post li { margin-bottom: 8px; }
article.post a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
article.post a:hover { color: var(--ink); }
article.post strong { font-weight: 600; }

article.post table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  border: var(--border); background: #fff;
  font-size: 15px;
}
article.post th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: left; background: var(--ink); color: var(--paper);
  padding: 10px 12px;
}
article.post td { padding: 10px 12px; border-top: 1px solid var(--paper-deep); vertical-align: top; }
article.post tr:nth-child(even) td { background: var(--paper); }
.table-scroll { overflow-x: auto; }

.callout {
  border: var(--border); border-radius: var(--radius-md);
  background: #fff; box-shadow: var(--shadow-yellow);
  padding: 20px 24px; margin: 28px 0;
}
.callout .mono { display: block; margin-bottom: 8px; color: var(--ink-soft); }
.callout p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; margin: 24px 0 !important; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 56px;
  margin: 0;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: var(--border); border-radius: 8px;
  background: var(--yellow); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.steps h3 { margin-top: 0 !important; }

.faq-block { margin-top: 8px; }
.faq-item {
  border: var(--border); border-radius: var(--radius-md);
  background: #fff; padding: 18px 22px; margin-bottom: 14px;
}
.faq-item h3 { margin: 0 0 8px !important; font-size: 18px !important; }
.faq-item p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  border-top: var(--border);
  text-align: center; padding: 72px 24px;
  background: radial-gradient(ellipse 50% 40% at 50% 30%, rgba(255, 210, 63, 0.12), transparent), var(--paper);
}
.cta-band h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.5vw, 48px); letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-band .sub { font-family: var(--display); font-style: italic; color: var(--ink-soft); font-size: 19px; margin-bottom: 28px; }

/* ---------- Blog index & related cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin: 40px 0 64px; }
.post-card {
  display: block; text-decoration: none; color: var(--ink);
  border: var(--border); border-radius: var(--radius-md);
  background: #fff; padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-blue); }
.post-card .mono { color: var(--ink-soft); display: block; margin-bottom: 12px; }
.post-card h2, .post-card h3 {
  font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.25;
  letter-spacing: -0.015em; margin-bottom: 10px;
}
.post-card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.related { border-top: var(--border); padding: 48px 0 8px; }
.related .wrap { max-width: 1280px; }
.related > .wrap > h2 { font-family: var(--display); font-weight: 800; font-size: 26px; margin-bottom: 8px; }

/* ---------- Footer ---------- */
footer {
  border-top: var(--border);
  padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
}
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .wrap { padding: 0 20px; }
  .topbar { padding: 14px 20px; }
  nav .navlink { display: none; }
}
