/* Shared stylesheet for /blog/. One file so a new article is a content
   file only, never a CSS copy. Tokens match wh347-landing/index.html
   exactly, so the blog reads as the same site, not a bolted-on section. */

:root {
  --paper: #EEE8DF;
  --surface: #FBF8F3;
  --ink: #211D17;
  --ink-muted: #6B6152;
  --ink-faint: #6E634F;
  --line: #DDD4C4;
  --line-strong: #C7BBA4;
  --accent: #7A2E2E;
  --accent-strong: #5A2020;
  --accent-soft: #EFDBD8;
  --on-accent: #FCF6F0;
  --shadow: 3px 3px 0 rgba(33,29,23,0.14);
  --mark: #DCB3AC;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1A140D; --surface: #241C12;
    --ink: #EDE7DC; --ink-muted: #B0A491; --ink-faint: #9C8E78;
    --line: #33291C; --line-strong: #4A3D29;
    --accent: #C97A6E; --accent-strong: #E09A8E; --accent-soft: #2E1E1C; --on-accent: #1F1210;
    --shadow: 3px 3px 0 rgba(0,0,0,0.35);
    --mark: rgba(201,122,110,0.30);
  }
}
:root[data-theme="dark"] {
  --paper: #1A140D; --surface: #241C12;
  --ink: #EDE7DC; --ink-muted: #B0A491; --ink-faint: #9C8E78;
  --line: #33291C; --line-strong: #4A3D29;
  --accent: #C97A6E; --accent-strong: #E09A8E; --accent-soft: #2E1E1C; --on-accent: #1F1210;
  --shadow: 3px 3px 0 rgba(0,0,0,0.35);
    --mark: rgba(201,122,110,0.30);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; max-width: 100%; }
body {
  margin: 0; color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(33,29,23,0.045) 1px, transparent 0);
  background-size: 15px 15px;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; max-width: 100%;
}
h1, h2, h3 { font-family: 'Archivo', sans-serif; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
a { color: var(--accent-strong); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

header.site { border-bottom: 2px solid var(--accent-strong); padding: 18px 0; background: var(--accent); position: sticky; top: 0; z-index: 100; }
.site-nav { max-width: 1080px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; row-gap: 10px; }
.wordmark {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 18px;
  display: flex; align-items: baseline; gap: 8px; color: var(--paper); text-decoration: none;
}
.wordmark .tag {
  font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 11px;
  color: var(--accent-strong); background: var(--paper);
  padding: 2px 6px; border-radius: 2px; letter-spacing: 0.02em;
}
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px 20px; flex-wrap: wrap; }
.nav-link { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--paper); opacity: 0.82; text-decoration: none; white-space: nowrap; }
.nav-link:hover { opacity: 1; text-decoration: underline; }
.nav-cta {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500;
  color: var(--accent-strong); text-decoration: none; border: 1px solid var(--paper);
  background: var(--paper); box-shadow: var(--shadow);
  padding: 7px 14px; border-radius: 2px; transition: transform 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}
.nav-cta:hover { box-shadow: 5px 5px 0 rgba(33,29,23,0.18); transform: translate(-1px, -1px); }
.nav-drop { position: relative; }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0; padding-top: 8px; min-width: 140px; z-index: 20;
}
.nav-drop-menu-inner {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px;
  box-shadow: var(--shadow); padding: 6px;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-caret { display: inline-block; font-size: 10px; margin-left: 2px; transition: transform 0.15s ease; }
.nav-drop:hover .nav-caret, .nav-drop:focus-within .nav-caret { transform: rotate(-180deg); }
@media (prefers-reduced-motion: reduce) { .nav-caret { transition: none; } }
.nav-drop-menu a {
  display: block; padding: 6px 10px; font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  color: var(--ink-muted); text-decoration: none; border-radius: 2px; white-space: nowrap;
}
.nav-drop-menu a:hover { background: var(--accent-soft); color: var(--accent-strong); }

.nav-toggle { display: none; }
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 32px; height: 32px; cursor: pointer; flex: 0 0 auto;
}
.nav-burger span { display: block; width: 100%; height: 2px; background: var(--paper); border-radius: 1px; }
.nav-links { display: contents; }
@media (max-width: 700px) {
  .nav-burger { display: flex; }
  .nav-right { position: relative; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; right: 0;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px;
    box-shadow: var(--shadow); padding: 10px; margin-top: 10px; z-index: 30; min-width: 180px;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links .nav-link { color: var(--accent-strong); opacity: 1; }
  .nav-drop { position: static; width: 100%; }
  .nav-drop-menu { position: static; padding-top: 6px; display: block; }
  .nav-drop-menu-inner { box-shadow: none; border: none; padding: 0; background: none; }
  .site-nav { flex-wrap: nowrap; }
  .wordmark { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 15px; }
  .wordmark .tag { font-size: 9px; padding: 1px 5px; }
}

main { padding-top: 48px; padding-bottom: 72px; }
.back { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink-muted); text-decoration: none; display: inline-block; margin-bottom: 24px; }

/* ---------- index listing ---------- */
.blog-mast {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-faint); text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 12px;
  margin: 44px 0 26px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.blog-kicker {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500;
  color: var(--accent-strong); letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--accent-strong); padding-bottom: 4px; margin-bottom: 20px;
}
.blog-intro h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; line-height: 1.1; }
.blog-intro h1 .mark, .pillar h1 .mark { position: relative; display: inline; white-space: nowrap; }
.blog-intro h1 .mark::after, .pillar h1 .mark::after {
  content: ""; position: absolute; left: -3px; right: -3px; bottom: 3px; height: 0.28em;
  background: var(--mark); z-index: -1; transform: rotate(-1deg);
}
.blog-intro p { margin-top: 14px; color: var(--ink-muted); font-size: 16px; max-width: 62ch; }
.post-date { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--ink-faint); margin-bottom: 6px; display: block; }

/* featured, most recent guide */
.post-feature {
  position: relative; display: block; margin: 40px 0 6px; padding: 26px 26px 24px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px;
  box-shadow: var(--shadow); transform: rotate(-0.4deg);
  text-decoration: none; color: var(--ink); transition: transform 0.15s ease, border-color 0.15s ease;
}
.post-feature::before {
  content: attr(data-label); position: absolute; top: -9px; left: 18px;
  background: var(--paper); padding: 0 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; color: var(--ink-faint);
}
.post-feature:hover { border-color: var(--accent); transform: rotate(-0.4deg) translate(-1px, -1px); }
.post-feature h2 { font-size: clamp(20px, 2.6vw, 25px); font-weight: 800; line-height: 1.2; margin-top: 4px; }
.post-feature:hover h2 { color: var(--accent-strong); }
.post-feature p { margin: 12px 0 0; color: var(--ink-muted); font-size: 15.5px; max-width: 60ch; }
.post-feature .go { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent-strong); display: inline-block; margin-top: 14px; }

/* archive, everything older */
.archive-head {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); margin: 44px 0 0;
}
.post-archive { list-style: none; margin: 12px 0 24px; padding: 0; border-top: 1px solid var(--ink); }
.post-archive li { border-bottom: 1px dotted var(--line-strong); }
.post-archive a {
  display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 4px 20px;
  align-items: baseline; padding: 18px 4px; text-decoration: none; color: var(--ink);
}
.post-archive .post-date { margin: 0; white-space: nowrap; }
.post-archive h2 { font-size: 17.5px; font-weight: 700; line-height: 1.3; }
.post-archive p { margin: 6px 0 0; color: var(--ink-muted); font-size: 14.5px; }
.post-archive .go {
  font-family: 'IBM Plex Mono', monospace; color: var(--accent-strong);
  transition: transform 0.15s ease; justify-self: end;
}
.post-archive a:hover h2 { color: var(--accent-strong); }
.post-archive a:hover .go { transform: translateX(4px); }
@media (max-width: 640px) {
  .post-archive a { grid-template-columns: minmax(0, 1fr) auto; }
  .post-archive .post-date { grid-column: 1 / -1; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .post-feature, .post-archive .go { transition: none; }
  .post-feature:hover { transform: rotate(-0.4deg); }
  .post-archive a:hover .go { transform: none; }
}

/* ---------- reference pages (/what-is-certified-payroll, /davis-bacon-act) ---------- */
.pillar-mast { margin-top: 4px; }
.pillar .post-head h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; }
.pillar .post-head .post-date { margin: 16px 0 0; }
.fact-card {
  position: relative; margin: 34px 0 10px; padding: 24px 24px 22px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px;
  box-shadow: var(--shadow); transform: rotate(-0.4deg);
}
.fact-card::before {
  content: attr(data-label); position: absolute; top: -9px; left: 18px;
  background: var(--paper); padding: 0 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; color: var(--ink-faint);
}
.fact-card h2 { font-size: 16.5px; font-weight: 700; margin: 0 0 14px; }
.fact-list { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--ink-muted); }
.fact-list div {
  display: flex; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px dotted var(--line-strong);
}
.fact-list div:last-child { border-bottom: none; }
.fact-list .val { color: var(--ink); margin-left: auto; text-align: right; }
@media (max-width: 560px) {
  .fact-list div { flex-direction: column; gap: 2px; }
  .fact-list .val { margin-left: 0; text-align: left; }
}
.pillar .stamp {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 34px;
  border: 1px solid var(--ink); background: var(--surface); padding: 5px 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink); transform: rotate(-1.5deg);
}

/* ---------- article ---------- */
.post-head { margin-bottom: 36px; }
.post-head .post-date { margin-bottom: 12px; }
.post-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15; }
.post-dek { margin-top: 14px; font-size: 17px; color: var(--ink-muted); line-height: 1.6; }
.post-body { font-size: 16.5px; line-height: 1.7; max-width: 68ch; }
.post-body h2 {
  font-size: 22px; font-weight: 700; margin: 40px 0 14px; padding-top: 24px; border-top: 1px solid var(--line);
}
.post-body h2:first-child { padding-top: 0; border-top: none; }
.post-body h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.post-body p { margin: 0 0 18px; }
.post-body strong { font-weight: 700; color: var(--ink); }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 4px; list-style: none; }
.post-body ol { list-style: decimal; padding-left: 22px; }
.post-body ul li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.post-body ul li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}
.post-body ol li { margin-bottom: 10px; }
.post-body code { font-family: 'IBM Plex Mono', monospace; font-size: 0.92em; background: var(--accent-soft); color: var(--accent-strong); padding: 1px 5px; border-radius: 2px; }

/* ---------- hero / inline image ---------- */
.post-figure { margin: 0 0 32px; }
.post-figure img {
  width: 100%; height: auto; display: block; border-radius: 2px;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.post-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-faint); font-family: 'IBM Plex Mono', monospace; }

/* ---------- data table ---------- */
.post-table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 2px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.post-body th, .post-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.post-body th {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-muted); background: var(--surface);
}
.post-body td { font-family: 'IBM Plex Mono', monospace; }
.post-body td:first-child { font-family: 'IBM Plex Sans', sans-serif; }
.post-body tr:last-child td { border-bottom: none; }
.post-body tr:hover td { background: var(--accent-soft); }
@media (max-width: 700px) {
  .post-body table { min-width: 0; font-size: 12.5px; }
  .post-body th, .post-body td { padding: 8px 8px; }
  .post-body th { font-size: 9.5px; }
}

/* ---------- callout / note ---------- */
.post-note {
  display: flex; gap: 12px; margin: 0 0 24px; padding: 16px 18px; border-radius: 2px;
  background: var(--accent-soft); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); transform: rotate(-0.4deg);
}
.post-note .post-note-mark { font-family: 'IBM Plex Mono', monospace; font-weight: 700; color: var(--accent-strong); flex: none; }
.post-note p { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------- article FAQ, same accordion as the sales page ---------- */
.post-faq { border-top: 1px solid var(--line); margin-top: 8px; }
.post-faq-item { border-bottom: 1px solid var(--line); }
.post-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
}
.post-faq-item summary::-webkit-details-marker { display: none; }
.post-faq-item summary .plus {
  font-family: 'IBM Plex Mono', monospace; font-weight: 400; font-size: 20px; color: var(--ink-faint);
  transition: transform 0.15s; flex: none;
}
.post-faq-item[open] summary .plus { transform: rotate(45deg); color: var(--accent-strong); }
.post-faq-item p { margin: 0 0 18px; color: var(--ink-muted); font-size: 15px; max-width: 68ch; }
.post-cta {
  margin: 40px 0 24px; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--surface); box-shadow: var(--shadow);
}
.post-cta p { margin: 0 0 14px; color: var(--ink-muted); }
.post-cta.tool { background: var(--accent-soft); }
.post-demo-link { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-faint); text-decoration: underline; }
.post-demo-link:hover { color: var(--accent-strong); }
.post-inline-demo { color: var(--ink-faint); text-decoration: underline; }
.post-inline-demo:hover { color: var(--accent-strong); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 15px;
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  padding: 11px 20px; border-radius: 2px; border: 1px solid var(--accent);
}
.btn.secondary { background: var(--surface); color: var(--accent-strong); }

footer.site { border-top: 1px solid var(--line); padding: 32px 0; }
footer.site .wrap { max-width: 1080px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.fine { font-size: 13px; color: var(--ink-faint); }
.foot-links { display: flex; gap: 20px; font-size: 13px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent-strong); text-decoration: underline; }
@media (max-width: 600px) {
  footer.site .wrap { justify-content: flex-start; }
  .foot-links { gap: 10px 16px; }
}

.ai-note { display: block; margin-top: 4px; opacity: 0.75; font-size: 0.92em; }

/* ---------- two-column split list, e.g. state pages grouped by rule type ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; margin-top: 20px; }
.split-col { padding: 22px 24px; background: var(--surface); }
.split-col + .split-col { border-left: 1px solid var(--line-strong); }
.split-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-strong); margin-bottom: 4px; display: block;
}
.split-count { font-size: 13px; color: var(--ink-faint); margin-bottom: 14px; }
.split-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.split-list li a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 4px; font-size: 14.5px; text-decoration: none; color: var(--ink);
  border-bottom: 1px dotted var(--line);
}
.split-list li a::after {
  content: "\2192"; color: var(--accent-strong); opacity: 0.55; font-family: 'IBM Plex Mono', monospace;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.split-list li a:hover { color: var(--accent-strong); }
.split-list li a:hover::after { opacity: 1; transform: translateX(3px); }
@media (max-width: 640px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-col + .split-col { border-left: none; border-top: 1px solid var(--line-strong); }
}
