/* Kaufmann & Associates blog.
   The header reproduces the bkaufmann.com header (kaufmann-website/index.html);
   see the HEADER section. */

:root {
  --cream: #f5f2e8;
  --parchment: #ede9db;
  --ink: #1c1c2e;
  --navy: #1e3a5f;
  --slate: #5c7a9e;
  --forest: #355e3b;
  --amber: #b87333;
  --amber-hover: #9a6128;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.78;
}

img { display: block; max-width: 100%; }

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

h1 { font-size: 46px; font-weight: 700; color: var(--navy); line-height: 1.15; }
h2 { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.25; }
h3 { font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.3; }

p { margin-bottom: 1em; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
  display: block;
}

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.container.narrow { max-width: 780px; }

/* ── HEADER ──
   Copied from the bkaufmann.com header (kaufmann-website/index.html):
   same values, breakpoints (1279px, 801–900px, 800px, 520px) and behavior. Every rule
   is scoped to .site-header so the website's type and link styles cannot
   reach the article layout, and the blog's cannot reach the header. */
.site-header {
  --navy: #1e3a5f;
  --deep: #142a46;
  --cream: #f5f2e8;
  --paper: #fffefa;
  --ink: #1c2633;
  --line: #d6d8d7;
  --copper: #965b25;
  --white: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.site-header a, .site-header a:hover { color: inherit; text-decoration: none; text-underline-offset: 5px; }
.site-header button { font: inherit; }
.site-header a, .site-header button { -webkit-tap-highlight-color: transparent; }
.site-header a:focus-visible, .site-header button:focus-visible { outline: 3px solid var(--copper); outline-offset: 5px; }

.site-header .header-row { max-width: 1280px; margin: auto; padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.site-header .brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; color: var(--navy); flex-shrink: 0; }
.site-header .brand-main { font-size: 27px; font-weight: 700; letter-spacing: .025em; }
.site-header .brand-sub { font-size: 12px; letter-spacing: .22em; margin-top: 7px; text-transform: uppercase; }

.site-header .nav { display: flex; align-items: center; gap: 8px; }
.site-header .nav > a:not(.button) { padding: 8px 10px; border-radius: 3px; text-decoration: none; font-size: 15px; font-weight: 600; transition: background .15s, color .15s; }
.site-header .nav > a:not(.button):hover { text-decoration: underline; }
.site-header .nav > a:not(.button).is-active { background: var(--navy); color: var(--white); text-decoration: none; }

.site-header .button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--navy); border-radius: 3px; background: var(--white); color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center; transition: background .15s; }
.site-header .button:hover { background: var(--cream); color: var(--navy); text-decoration: none; }

.site-header .menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 12px; color: var(--navy); font-size: 15px; min-height: 44px; border-radius: 3px; cursor: pointer; }

.skip { position: fixed; top: -100px; left: 20px; z-index: 50; background: #fff; color: var(--navy); padding: 12px 20px; font-family: Arial, Helvetica, sans-serif; }
.skip:focus { top: 12px; }

@media (max-width: 1279px) {
  .site-header .nav > a:not(.button) { padding: 7px 8px; font-size: 14px; }
  .site-header .nav .button { padding: 10px 13px; }
  .site-header .header-row { gap: 20px; }
}

@media (min-width: 801px) and (max-width: 900px) {
  .site-header .nav { gap: 4px; }
  .site-header .nav > a:not(.button) { padding: 7px 6px; }
  .site-header .header-row { gap: 16px; }
}

@media (max-width: 800px) {
  .site-header .header-row { padding: 18px 24px; }
  .site-header .brand-main { font-size: 23px; }
  .site-header .brand-sub { font-size: 11px; }
  .site-header .menu-toggle { display: block; }
  .site-header .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 18px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 14px #142a4610; }
  .site-header .nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-header .nav > a:not(.button) { padding: 12px 10px; font-size: 17px; }
  .site-header .nav .button { margin-top: 10px; font-size: 16px; }
}

@media (max-width: 520px) {
  .site-header { font-size: 17px; }
  .site-header .header-row { padding: 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header * { transition: none !important; }
}

@media print {
  .site-header { position: static; }
  .site-header .menu-toggle, .site-header .nav, .skip { display: none; }
}

/* ── LIBRARY ── */
.library, .article { padding: 60px 0 100px; }

.library h1 { margin-bottom: 40px; }

.library-list { list-style: none; }

.library-item {
  padding: 32px 0;
  border-top: 1px solid rgba(30,58,95,0.15);
}
.library-item:last-child { border-bottom: 1px solid rgba(30,58,95,0.15); }
.library-item .eyebrow { margin-bottom: 8px; }
.library-item h2 { font-size: 26px; margin-bottom: 12px; }
.library-item h2 a { color: var(--navy); }
.library-item h2 a:hover { color: var(--forest); }
.library-item p { margin-bottom: 0.6em; }
.read-more { font-weight: 600; font-size: 16px; }

.library-empty { color: var(--slate); }

/* ── ARTICLE ── */
.back-link { font-size: 15px; font-weight: 600; margin-bottom: 32px; }

.article h1 { margin-bottom: 36px; }

.article-body h2 { font-size: 28px; margin: 1.6em 0 0.6em; }
.article-body h3 { font-size: 22px; margin: 1.4em 0 0.5em; }
.article-body p { margin-bottom: 1.15em; }
.article-body em { font-style: italic; }
.article-body hr { border: none; border-top: 2px solid rgba(30,58,95,0.15); margin: 2em 0; }

/* The closing invitation to the Substack article. */
.article-body p:last-child {
  margin-top: 2em;
  padding-left: 16px;
  border-left: 3px solid var(--amber);
  color: var(--navy);
}

.article-end-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 2px solid rgba(30,58,95,0.15);
  font-weight: 600;
  font-size: 16px;
}

/* ── FOOTER ── */
.footer { background: var(--navy); padding: 48px 40px; text-align: center; }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 600;
}
.footer-links a { color: rgba(245,242,232,0.75); }
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 14px; color: rgba(245,242,232,0.4); }

/* ── LOCAL REVIEW BUILD ONLY ── */
.review-banner {
  background: var(--amber);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 10px 24px;
}
.review-tag {
  margin-left: 8px;
  letter-spacing: 0.05em;
  color: var(--amber-hover);
}
.review-status {
  font-size: 14px;
  line-height: 1.5;
  background: var(--parchment);
  border-left: 3px solid var(--amber);
  padding: 14px 18px;
  margin-bottom: 32px;
}
.review-status div { display: flex; gap: 12px; padding: 3px 0; }
.review-status dt { font-weight: 600; color: var(--navy); min-width: 170px; }
.review-status dd { overflow-wrap: anywhere; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  body { font-size: 17px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }

  .container { padding: 0 24px; }

  .library, .article { padding: 40px 0 64px; }
  .library h1 { margin-bottom: 24px; }
  .library-item { padding: 24px 0; }
  .library-item h2 { font-size: 22px; }
  .article h1 { margin-bottom: 28px; }
  .article-body h2 { font-size: 23px; }

  .review-status div { flex-direction: column; gap: 0; }
  .review-status dt { min-width: 0; }

  .footer { padding: 40px 24px; }
}
