/* ============================================================
   Todd G. Shipley — toddshipley.net
   Design concept: "The Case File" — a professional dossier.
   Grounded in the subject's actual world: case exhibits,
   chain-of-custody logs, typed reports, credential seals.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700;8..60,900&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #14181d;
  --ink-soft: #1f252c;
  --paper: #ece4cd;
  --paper-hi: #f4eeda;
  --paper-line: #c9bd9a;
  --steel: #46545f;
  --steel-soft: #6b7883;
  --steel-light: #5c6770; /* AA-safe steel for small text on light backgrounds (4.5:1+) */
  --steel-dark: #76828c; /* AA-safe steel for small text on dark/ink backgrounds (4.5:1+) */
  --brass: #a2803f;
  --brass-hi: #c39a4f;
  --brass-text: #7b612f; /* AA-safe brass for text on light backgrounds (4.6:1+) */
  --redact: #7c2e27;
  --cream-text: #e9e3d2;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Focus & motion ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: #17130a;
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 10px 18px;
  z-index: 1000;
  border-radius: 0 0 3px 0;
}
.skip-link:focus {
  left: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Header / dossier tab nav ---------- */
.site-header {
  background: var(--ink);
  color: var(--cream-text);
  border-bottom: 3px solid var(--brass);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 24px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--cream-text);
  white-space: nowrap;
}
.wordmark span {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--brass-hi);
  margin-top: 2px;
}
.tabs {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.tabs a {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--steel-dark);
  padding: 8px 14px;
  border: 1px solid transparent;
  border-bottom: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tabs a:hover { color: var(--cream-text); }
.tabs a.active {
  color: var(--paper-hi);
  background: var(--paper);
  border-color: var(--brass);
  border-radius: 3px 3px 0 0;
}
.tabs .exhibit-tag {
  color: var(--brass-hi);
  margin-right: 6px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--cream-text);
  padding: 64px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid { text-align: left; }
}
.file-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--brass-hi);
  border: 1px solid var(--brass);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 14px;
  color: #fff;
}
.hero .credential-line {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--brass-hi);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.hero p.lede {
  font-size: 1.18rem;
  max-width: 46ch;
  color: var(--cream-text);
  margin: 0 0 30px;
}
.credibility-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 28px 0 34px;
  padding-top: 22px;
  border-top: 1px solid #333c45;
}
.credibility-strip div {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--steel-dark);
}
.credibility-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--cream-text);
  font-weight: 600;
  letter-spacing: 0;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brass);
  color: #17130a;
  font-weight: 600;
}
.btn-primary:hover { background: var(--brass-hi); }
.btn-ghost {
  border-color: var(--steel-soft);
  color: var(--cream-text);
}
.btn-ghost:hover { border-color: var(--cream-text); }

/* Portrait + stamp */
.portrait-frame {
  position: relative;
  border: 1px solid var(--steel);
  padding: 10px;
  background: #0f1216;
}
.portrait-frame img {
  width: 100%;
  filter: grayscale(0.15) contrast(1.05);
}
.seal {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-9deg);
  font-family: var(--mono);
  color: var(--brass-hi);
  font-size: 0.62rem;
  line-height: 1.35;
  letter-spacing: 0.05em;
  padding: 6px;
}
@media (max-width: 860px) {
  .seal { top: -14px; right: 6px; }
}

/* Pull-quote banner (single bold moment) */
.quote-block {
  background: var(--paper-hi);
  border-top: 1px solid var(--paper-line);
  border-bottom: 3px solid var(--brass);
  padding: 56px 0;
  text-align: center;
}
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.3;
  max-width: 22ch;
  margin: 0 auto 14px;
  color: var(--ink);
}
.pull-quote-attr {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--brass-text);
  margin: 0;
}

/* ---------- Generic sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--paper-hi); }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--paper-line);
  padding-bottom: 14px;
}
.section-head .tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--brass-text);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.section-head h1,
.section-head h2 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
}
.lede-block { max-width: 68ch; font-size: 1.05rem; color: var(--steel); margin-bottom: 30px; }

/* Two column content */
.cols-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } }

/* Career timeline (thematically a real sequence, so numbering/rule is earned) */
.timeline { border-left: 2px solid var(--paper-line); margin-left: 6px; }
.timeline-item { position: relative; padding: 0 0 30px 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--brass);
  border: 2px solid var(--paper);
  border-radius: 50%;
}
.timeline-item .years {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--brass-text);
  letter-spacing: 0.03em;
}
.timeline-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 4px 0 6px;
}
.timeline-item p { margin: 0; color: var(--steel); font-size: 0.98rem; }

/* Credential badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.badge {
  font-family: var(--mono);
  font-size: 0.78rem;
  border: 1px solid var(--steel);
  color: var(--steel);
  padding: 5px 11px;
  border-radius: 2px;
}

/* Pull quote / sidebar card */
.dossier-card {
  background: var(--paper-hi);
  border: 1px solid var(--paper-line);
  padding: 26px 26px 22px;
}
.dossier-card h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--brass-text);
  margin: 0 0 14px;
}
.dossier-card ul { margin: 0; padding-left: 18px; }
.dossier-card li { margin-bottom: 9px; font-size: 0.95rem; }

/* Training topic cards */
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 700px) { .topic-grid { grid-template-columns: 1fr; } }
.topic-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .topic-grid-3 { grid-template-columns: 1fr; } }
.topic-card {
  border: 1px solid var(--paper-line);
  background: var(--paper-hi);
  padding: 22px 24px;
}
.topic-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.topic-card p { margin: 0; color: var(--steel); font-size: 0.96rem; }

/* Venue list */
.venue-list { columns: 2; column-gap: 40px; }
@media (max-width: 700px) { .venue-list { columns: 1; } }
.venue-list div {
  break-inside: avoid;
  padding: 9px 0;
  border-bottom: 1px dotted var(--paper-line);
  font-size: 0.95rem;
}
.venue-list .place { font-weight: 600; }
.venue-list .venue-year { font-family: var(--mono); font-size: 0.78rem; color: var(--brass-text); }

/* Exhibit entries (media / publications) */
.exhibit-group { margin-bottom: 44px; }
.exhibit-group h3 {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--brass-text);
  text-transform: uppercase;
  border-bottom: 1px solid var(--paper-line);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--paper-line);
}
.entry:last-child { border-bottom: none; }
@media (max-width: 640px) {
  .entry { grid-template-columns: 1fr; gap: 4px; }
}
.entry .when {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--steel-light);
  padding-top: 2px;
}
.entry h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.entry p { margin: 0; color: var(--steel); font-size: 0.94rem; }
.entry a.src { font-size: 0.82rem; font-family: var(--mono); color: var(--brass-text); text-decoration: none; }
.entry a.src:hover { text-decoration: underline; }

/* Compact appearance list (date + topic) */
.appearance-list { border-top: 1px solid var(--paper-line); }
.appearance-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-line);
}
@media (max-width: 560px) {
  .appearance-row { grid-template-columns: 1fr; gap: 3px; }
}
.appearance-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--brass-text);
  white-space: nowrap;
  padding-top: 1px;
}
.appearance-topic { font-size: 0.96rem; }

/* Testimonials ("witness statements") */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 8px; }
@media (max-width: 700px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--paper-hi);
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--brass);
  padding: 24px 26px;
}
.testimonial-card p.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 0 0 14px;
  color: var(--ink);
}
.testimonial-card p.attr {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--brass-text);
  margin: 0;
}
.testimonial-lead {
  text-align: center;
  margin: 0 0 30px;
}
.testimonial-lead p.quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  max-width: 30ch;
  margin: 0 auto 8px;
}
.testimonial-lead p.attr {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--steel-light);
  margin: 0;
}

/* Book cards */
.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 700px) { .book-grid { grid-template-columns: 1fr; } }
.book-card {
  border: 1px solid var(--steel);
  background: var(--ink);
  color: var(--cream-text);
  padding: 26px;
}
.book-card .kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--brass-hi);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.book-card h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 10px; }
.book-card p { color: var(--steel-dark); font-size: 0.95rem; margin: 0 0 14px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
form.dossier-form { display: flex; flex-direction: column; gap: 16px; }
form.dossier-form label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--steel);
  margin-bottom: 6px;
  display: block;
}
form.dossier-form input,
form.dossier-form select,
form.dossier-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid var(--steel);
  background: var(--paper-hi);
  color: var(--ink);
  border-radius: 2px;
}
form.dossier-form textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.field { display: block; }
.form-note { font-size: 0.85rem; color: var(--steel-light); margin-top: 10px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--steel-dark);
  padding: 34px 0;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.footer-row a { color: var(--brass-hi); text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #2a323a;
}
.footer-legal a {
  color: var(--steel-dark);
  text-decoration: none;
  font-size: 0.72rem;
}
.footer-legal a:hover { color: var(--brass-hi); }

/* CTA banner (mid-page) */
.cta-banner {
  background: var(--ink);
  color: var(--cream-text);
  padding: 46px 0;
  text-align: left;
}
.cta-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner h2 { font-family: var(--serif); font-size: 1.6rem; margin: 0; max-width: 42ch; }
