/* AccountCraft blog — static pages generated by scripts/blog-build.mjs. Tokens mirror src/index.css. */
:root {
  --ink: #313438; --ink-soft: #55585c; --muted: #8f8fa0;
  --ivory: #fffcf5; --cream: #f9f3e4; --line: #eae4d6;
  --accent: #2532b7; --cta: #0042e4; --tint-lav: #ece9fd; --tint-blue: #e7f1ff;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 14px; --radius-panel: 24px;
  --shadow-card: 0 1px 2px rgba(49, 52, 56, 0.06), 0 12px 32px rgba(49, 52, 56, 0.08);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; margin: 0; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ivory); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 252, 245, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 40px; height: 68px; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.wordmark span { color: var(--accent); }
.wordmark-light { color: var(--ivory); }
.wordmark-light span { color: #9db2ff; }
.nav { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; margin-right: auto; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 8px 20px rgba(0, 66, 228, 0.22); }
.btn-primary:hover { background: #0038c4; transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--ivory); }
.btn-ghost { border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { background: #fff; }
.site-footer { background: var(--ink); color: var(--ivory); padding: 44px 0; margin-top: 96px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.footer-row nav a { color: #a7abb2; text-decoration: none; }
.footer-row nav a:hover { color: var(--ivory); }
.footer-row p { margin: 0 0 0 auto; font-size: 13px; color: #8a8f97; }

/* Archive */
.eyebrow { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.hero { padding-top: 76px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(46px, 7vw, 92px); line-height: 0.98; max-width: 14ch; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 56ch; margin: 22px 0 0; }
.languages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.languages a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; }
.languages a[aria-current="page"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.list { display: grid; gap: 28px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.card > a { display: grid; text-decoration: none; height: 100%; }
.card-cover { aspect-ratio: 16 / 9; background: var(--tint-lav); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover .card-cover img { transform: scale(1.03); }
.cover-fallback { display: grid; place-items: center; height: 100%; font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--ink); }
.cover-fallback span { color: var(--accent); }
.card-copy { padding: 24px 26px 28px; display: grid; gap: 12px; align-content: start; }
.card h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.card-description { margin: 0; color: var(--ink-soft); }
.read { font-weight: 600; color: var(--accent); }
.card-featured > a { grid-template-columns: 1.15fr 1fr; }
.card-featured .card-cover { aspect-ratio: auto; min-height: 360px; }
.card-featured .card-copy { padding: 44px; align-content: center; }
.card-featured h2 { font-size: clamp(32px, 3.4vw, 48px); }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.meta span::before { content: "·"; margin-right: 14px; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius-panel); padding: 48px; display: grid; gap: 14px; justify-items: start; }
.empty h2 { font-size: 34px; }
.empty p { margin: 0; color: var(--ink-soft); }

/* Article */
.article { padding-top: 40px; }
.back { display: inline-flex; gap: 8px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.back:hover { color: var(--ink); }
.article-header { padding: 36px 0 32px; }
.article-header h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; }
.deck { font-size: 20px; color: var(--ink-soft); margin: 20px 0; max-width: 60ch; }
.article-cover { margin: 0 auto 48px; max-width: 1180px; }
.article-cover img { width: 100%; border-radius: var(--radius-panel); }
.prose { font-size: 18px; line-height: 1.75; color: #3a3d42; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin-top: 2em; color: var(--ink); }
.prose h3 { font-size: 24px; margin-top: 1.6em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose li + li { margin-top: 0.4em; }
.prose img { border-radius: var(--radius-card); margin: 1.6em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 19px; }
.prose code { font-size: 0.88em; background: var(--cream); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--ink); color: var(--ivory); padding: 18px; border-radius: var(--radius-card); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; background: var(--cream); }
.cta { margin-top: 72px; padding: 40px; border-radius: var(--radius-panel); background: var(--tint-lav); display: grid; gap: 14px; }
.cta h2 { font-size: clamp(28px, 3vw, 38px); }
.cta p { margin: 0; color: var(--ink-soft); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .header-row { justify-content: space-between; }
  .grid, .card-featured > a { grid-template-columns: 1fr; }
  .card-featured .card-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .card-featured .card-copy { padding: 24px 22px 28px; }
  .hero { padding-top: 48px; }
  .prose { font-size: 17px; }
  .cta { padding: 28px 22px; }
  .footer-row p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card-cover img, .btn { transition: none; }
}
