/* JamesMichaelKaufer.com — mobile-first, no external dependencies */
:root {
  --navy: #14284b;
  --navy-deep: #0c1a33;
  --navy-soft: #24406f;
  --charcoal: #2b2f36;
  --ink: #1d2128;
  --muted: #535a64;
  --warm: #d6924a;
  --warm-dark: #8f5216;
  --cream: #f7f2ea;
  --line: #e2dbcf;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 26, 51, .10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--warm-dark); }
:focus-visible { outline: 3px solid var(--warm-dark); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.18; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 7vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
[role="list"] { list-style: none; padding: 0; margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.narrow-wrap { max-width: 800px; }
.prose { max-width: 66ch; }
.prose.narrow, .narrow { max-width: 70ch; }
.center { text-align: center; }
.mt { margin-top: 2rem; }
.small { font-size: .95rem; color: var(--muted); }
.big { font-size: 1.35rem; font-weight: 600; }
.note { font-size: 1rem; color: var(--muted); }

/* Skip link */
.skip { position: absolute; left: 12px; top: -60px; background: var(--warm); color: var(--ink); padding: .6em 1em; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--cream); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; box-shadow: inset 0 -4px 0 var(--warm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.brand-sub { font-size: .78rem; color: var(--muted); }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600; font-size: 1rem; color: var(--navy); background: transparent; border: 2px solid var(--navy); border-radius: 10px; padding: .45em .9em; cursor: pointer; min-height: 44px; }
.nav-toggle[hidden] { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.bars::before { position: absolute; top: -6px; } .bars::after { position: absolute; top: 6px; }
.site-nav { width: 100%; }
.site-nav ul { display: flex; flex-direction: column; padding: .4rem 0 .6rem; }
.site-nav a { display: block; padding: .7rem .2rem; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--warm-dark); }
.js .site-nav { display: none; }
.js .site-nav.open { display: block; }
@media (min-width: 1100px) {
  .nav-toggle { display: none !important; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; gap: .2rem; padding: 0; }
  .site-nav a { border: 0; padding: .5rem .55rem; font-size: .98rem; border-radius: 8px; }
  .site-nav a:hover { background: var(--cream); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--warm); border-radius: 0; }
}

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .92rem; color: var(--muted); padding: .9rem 16px 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--warm-dark); }
@media (min-width: 640px) { .breadcrumbs ol { padding-left: 0; padding-right: 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7em 1.3em; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1.02rem; border: 2px solid transparent; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); color: var(--white); }
.btn-warm { background: var(--warm); color: var(--ink); }
.btn-warm:hover { background: #e3a463; color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: var(--white); }
.small-btn { min-height: 42px; font-size: .95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.text-link { font-weight: 700; }
.text-link::after { content: " →"; }

/* Hero */
.hero { background: radial-gradient(120% 120% at 85% 0%, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%); color: var(--cream); padding: 2.5rem 0 3rem; }
.hero h1 { color: var(--white); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 700; color: var(--warm); margin-bottom: .8rem; }
.eyebrow a { color: inherit; }
.article-head .eyebrow, .page-head .eyebrow { color: var(--warm-dark); }
.lede { font-size: clamp(1.18rem, 2.4vw, 1.38rem); line-height: 1.55; }
.hero .lede { color: #e8e2d8; max-width: 38ch; }
.tagline { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--warm); }
.hero-photo { margin: 0; max-width: 420px; justify-self: center; width: 100%; }
@media (min-width: 900px) { .hero-photo { max-width: 500px; } }
.hero-photo img { border-radius: 22px; box-shadow: 0 0 0 6px rgba(214,146,74,.35), 0 24px 60px rgba(0,0,0,.35); }
.hero-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }
@media (min-width: 900px) { .hero { padding: 4.5rem 0 5rem; } .hero-grid { grid-template-columns: 1.25fr .9fr; gap: 4rem; } }
@media (min-width: 1180px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 1.75rem; } }

/* Page header */
.page-head { background: var(--cream); padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-head .lede { color: var(--charcoal); max-width: 60ch; }
.page-head-grid { display: grid; gap: 1.5rem; align-items: center; }
.head-photo { margin: 0; max-width: 260px; width: 100%; }
@media (min-width: 1180px) { .head-photo { max-width: 320px; } }
.head-photo img { border-radius: 50%; border: 6px solid var(--white); box-shadow: var(--shadow); }
@media (min-width: 860px) { .page-head { padding: 3rem 0 3.5rem; } .page-head-grid { grid-template-columns: 1fr auto; gap: 3rem; } }

/* Disclosure for AI-generated images (scripts/ai_disclosure.py) */
figcaption.ai-note, .ai-note { font-size: .85rem; color: var(--muted); line-height: 1.4; margin: .5rem 0 0; }
.hero figcaption.ai-note { color: #c3cbd8; text-align: center; }
.head-photo figcaption.ai-note { text-align: center; }
.author-line .ai-note { font-size: .82rem; }
.author-box p.ai-note { font-size: .85rem; margin-top: .45rem; }
.page-head .ai-note-page { margin-top: .4rem; }

/* Sections */
.section { padding: 3rem 0; }
.section.alt { background: var(--cream); }
.section.dark { background: var(--navy); color: var(--cream); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark a:not(.btn) { color: #ffd9ae; }
.section-head { max-width: 62ch; margin-bottom: 1.6rem; }
@media (min-width: 900px) { .section { padding: 4.5rem 0; } }
.split { display: grid; gap: 2rem; align-items: center; }
.split > :only-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split.reverse > :first-child { order: 2; }
  .form-split { align-items: start; grid-template-columns: 1.1fr .9fr; }
}

/* Figures */
figure { margin: 0; }
.photo img, .card-photo img { width: 100%; border-radius: var(--radius); background: #dfe5ee; }
.photo figcaption { font-size: .95rem; color: var(--muted); margin-top: .6rem; line-height: 1.45; }
.section.dark .photo figcaption { color: #cfd6e2; }
.photo.lead { margin: 1.5rem 0 2rem; }
.photo.inline { margin: 2rem 0; }
.photo.inline.portrait { max-width: 400px; margin-left: auto; margin-right: auto; }
.photo-row, .photo-grid { display: grid; gap: 1.5rem; margin: 1.5rem 0; }
@media (min-width: 640px) { .photo-grid, .photo-grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .photo-row, .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Pillars & services */
.pillars { display: grid; gap: 1.2rem; margin: 1.5rem 0 2rem; }
.pillars li, .service-list li, .path { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--warm); }
.section:not(.alt) .path { background: var(--cream); }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.service-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
.service-list p { margin: 0; }
.state-list { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.state-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .4em 1em; font-weight: 600; }

/* Cards */
.card-grid { display: grid; gap: 1.6rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 0 rgba(0,0,0,.02); }
.card-media img { border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.28rem; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.byline { font-size: .92rem; color: var(--muted); margin-top: auto; }
.source-tag { font-size: .85rem; font-weight: 700; color: var(--warm-dark); margin: .3rem 0 0; }

/* Related sites */
.related-grid { display: grid; gap: 1rem; margin: 1.4rem 0; }
@media (min-width: 860px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { display: block; height: 100%; padding: 1.3rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink); }
.related-card:hover { border-color: var(--warm); box-shadow: var(--shadow); color: var(--ink); }
.related-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--navy); margin-bottom: .3rem; }
.related-blurb { display: block; font-size: 1rem; color: var(--muted); }
.related-list { display: grid; gap: .8rem; margin: 1rem 0 1.5rem; }
.related-list .related-card { padding: 1rem 1.1rem; }

/* Social / chips */
.social { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 1.2rem; }
.social a, .chip-list a { display: inline-block; padding: .45em 1em; border: 2px solid var(--navy); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--navy); }
.social a:hover, .chip-list a:hover { background: var(--navy); color: var(--white); }
.social.big a { font-size: 1.1rem; padding: .6em 1.3em; }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }

/* Contact */
.contact-block { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.contact-block > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 1.3rem; }
.contact-block h3 { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--warm) !important; margin-bottom: .4rem; }
.contact-block .big a { color: var(--white); }
.contact-block .big { font-size: clamp(1.05rem, 1.6vw, 1.3rem); overflow-wrap: anywhere; }
@media (min-width: 860px) { .contact-block { grid-template-columns: repeat(3, 1fr); } }
.paths { display: grid; gap: 1.2rem; }
.path h2 { font-size: 1.45rem; }
@media (min-width: 860px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.form-warning { background: var(--white); border-left: 4px solid var(--warm); padding: 1rem 1.2rem; border-radius: 8px; }
.form .field { margin-bottom: 1.1rem; }
.form label { display: block; font-weight: 700; margin-bottom: .35rem; }
.form .req { font-weight: 400; color: var(--muted); font-size: .92rem; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1.05rem; padding: .7em .85em; border: 2px solid #9aa3b0; border-radius: 10px; background: var(--white); color: var(--ink); min-height: 48px;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(214,146,74,.55); outline-offset: 1px; }
.form .hint { font-size: .92rem; color: var(--muted); margin: .35rem 0 0; }
.form .check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.form .check input { width: 22px; height: 22px; margin-top: .25rem; accent-color: var(--navy); }
.form .check label { font-weight: 400; font-size: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Video placeholders */
.video-grid { display: grid; gap: 1.4rem; margin: 1.5rem 0; }
@media (min-width: 760px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep)); overflow: hidden; margin-bottom: .8rem; }
.video-thumb::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border: 10px solid var(--warm); border-radius: 50%; opacity: .55; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.92); }
.play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid var(--navy); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.soon { position: absolute; left: 12px; bottom: 12px; background: var(--warm); color: var(--ink); font-weight: 700; font-size: .85rem; padding: .25em .7em; border-radius: 999px; }
.video-card h3 { font-size: 1.12rem; margin-bottom: .2rem; }
.download-list li { margin: .5rem 0; }
.download-list a { font-weight: 700; }
.download-list a::before { content: "↓ "; color: var(--warm-dark); }

/* Gallery */
.gallery-section:nth-of-type(even) { background: var(--cream); }

/* Article */
.article-head { padding-top: 1.5rem; }
.article-head h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
.author-line { display: flex; align-items: center; gap: .9rem; font-size: 1rem; }
.author-line p { margin: 0; }
.avatar { border-radius: 50%; width: 56px; height: 56px; object-fit: cover; }
.dates { color: var(--muted); font-size: .92rem; }
.toc { background: var(--cream); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; border-left: 4px solid var(--warm); }
.toc h2 { font-size: 1.15rem; margin-bottom: .5rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--charcoal); }
.toc ol { margin: 0; }
.toc li { margin: .25rem 0; }
.article-body { max-width: none; }
.article-body h2 { margin-top: 2rem; font-size: clamp(1.5rem, 3.5vw, 1.9rem); scroll-margin-top: 100px; }
.article-body section { scroll-margin-top: 100px; }
.article-body li { margin: .35rem 0; }
.author-box { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--cream); border-radius: var(--radius); padding: 1.4rem; margin: 2.5rem 0; }
.author-box h2 { font-size: 1.25rem; margin-bottom: .3rem; }
.author-box p { margin: 0; font-size: 1.02rem; }
.avatar-lg { border-radius: 50%; width: 96px; height: 96px; object-fit: cover; flex-shrink: 0; }
.sources, .more { margin: 2rem 0; }
.sources h2, .more h2 { font-size: 1.35rem; }
.article { padding-bottom: 2rem; }
.link-list li { margin: .4rem 0; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #d4dbe6; padding: 3rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: #ffffff; }
.site-footer a.btn { color: var(--ink); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: .2rem; }
.footer-h { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--warm); margin: 0 0 .6rem; }
.site-footer li { margin: .35rem 0; }
.site-footer ul + .footer-h { margin-top: 1.4rem; }
.disclaimer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .92rem; color: #c3cbd8; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .9rem; color: #a9b3c3; padding-top: 1rem; }
.footer-base p { margin: 0; }


@media print {
  .site-header, .site-footer .footer-grid, .nav-toggle, .skip, .cta-row { display: none; }
  body { font-size: 12pt; }
}
