/* drwitterschein.com — shared styles
   Palette: coastal fog neutrals, true black, and the beacon red of the lighthouse emblem.
   Type: Besley (display, a Clarendon revival with New England signage roots) and
   Public Sans (body, the U.S. public-service typeface). */

@font-face {
  font-family: "Besley";
  src: url("/assets/fonts/besley-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/publicsans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/publicsans-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fbfcfc;
  --fog: #eef2f3;
  --ink: #000000;
  --text: #1c2226;
  --granite: #4e5a61;
  --rule: #d3dadd;
  --beacon: #c4161c;
  --beacon-deep: #9c1116;
  --beacon-bright: #f2555a;
  --night-text: #eef1f2;
  --night-muted: #b4bec3;
  --display: "Besley", Georgia, "Times New Roman", serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --measure: 66ch;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
  --space: clamp(64px, 9vw, 120px);
  --stripes: repeating-linear-gradient(180deg, var(--beacon) 0 24px, var(--ink) 24px 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

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

a {
  color: var(--ink);
  text-decoration-color: var(--beacon);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--beacon-deep); }
:focus-visible { outline: 3px solid var(--beacon); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 16px; top: 12px; color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 640;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.2; }
h4 { font-family: var(--body); font-size: 1rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
i, em, cite { font-style: italic; }
strong { font-weight: 650; color: var(--ink); }

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

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 252, 0.97);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 72px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 640; font-size: 1.18rem; line-height: 1.1;
}
.brand img { width: 38px; height: 38px; border-radius: 6px; }
.brand:hover { color: var(--ink); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.nav a {
  display: inline-block; padding: 6px 0;
  color: var(--text); text-decoration: none;
  font-weight: 500; font-size: 0.98rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--beacon); }
.nav a.nav-cta {
  background: var(--ink); color: #fff; padding: 9px 16px;
  border-radius: 4px; border-bottom: 0; font-weight: 600;
}
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: var(--beacon-deep); color: #fff; }

.menu-toggle {
  display: none;
  font: inherit; font-weight: 600; font-size: 0.98rem;
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 4px;
  padding: 8px 14px; min-height: 44px; cursor: pointer;
}
.menu-toggle:hover { background: var(--ink); color: #fff; }

@media (max-width: 899px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .nav { width: 100%; }
  .js .nav { display: none; }
  .js .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 16px; }
  .nav li { border-top: 1px solid var(--rule); }
  .nav a { display: block; padding: 13px 0; border-bottom: 0; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--beacon); padding-left: 14px; }
  .nav li:last-child { border-top: 0; padding-top: 12px; }
  .nav a.nav-cta { text-align: center; padding: 13px 16px; }
  .no-js-nav-note { display: none; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 11px 22px;
  border: 2px solid var(--ink); border-radius: 4px;
  background: transparent; color: var(--ink);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
}
.button:hover { background: var(--ink); color: #fff; }
.button--primary { background: var(--beacon); border-color: var(--beacon); color: #fff; }
.button--primary:hover { background: var(--beacon-deep); border-color: var(--beacon-deep); color: #fff; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(36px, 6vw, 88px) 0 var(--space); }
.hero .wrap {
  display: grid; gap: 28px 44px; align-items: start;
  grid-template-areas: "portrait" "title" "copy";
}
.hero h1 {
  grid-area: title;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  font-weight: 600; line-height: 1.0; letter-spacing: -0.022em;
  margin: 0; max-width: none;
}
.hero-copy { grid-area: copy; }
.hero .portrait { grid-area: portrait; }
.hero h1 .line { display: block; }
.hero-name {
  font-family: var(--display); font-weight: 640; color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.42rem); line-height: 1.3;
  margin-bottom: 1.1em;
}
.hero-name .creds { font-weight: 460; color: var(--granite); white-space: nowrap; }
.lede { font-size: 1.12em; line-height: 1.6; }

.portrait { position: relative; margin: 0 0 0 22px; max-width: 300px; }
/* The lighthouse tower: a slim band of red and black stripes beside the photo */
.portrait::before {
  content: ""; position: absolute; z-index: 0;
  top: 24px; bottom: 24px; left: -22px; width: 22px;
  background: var(--stripes); border-radius: 3px 0 0 3px;
}
.portrait img {
  position: relative; z-index: 1; width: 100%;
  aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px;
}
@media (max-width: 899px) { .hero .portrait { max-width: 168px; } }
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
    grid-template-areas: "title title" "copy portrait";
    gap: 48px 80px;
  }
  .hero .portrait { max-width: 360px; justify-self: end; margin-top: 6px; }
  .hero-copy { padding-top: 4px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section--rule { border-top: 1px solid var(--rule); }
.section--fog { background: var(--fog); }
.section--night { background: var(--ink); color: var(--night-text); }
.section--night h2, .section--night h3 { color: #fff; }
.section--night p { color: var(--night-muted); }
.section--night a { color: #fff; text-decoration-color: var(--beacon-bright); }
.section--night a:hover { color: var(--beacon-bright); }
.section-intro { max-width: 46rem; }
.section-intro p { color: var(--granite); }
.section--night .section-intro p { color: var(--night-muted); }
.more { margin-top: 40px; font-weight: 600; }

/* Home: three areas as a ledger, not cards */
.ledger { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li { display: grid; gap: 12px 48px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.ledger h3 { margin: 0; }
.ledger p { margin: 0; }
.ledger a { font-weight: 600; justify-self: start; }
@media (min-width: 900px) {
  .ledger li { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr) 12.5rem; align-items: baseline; }
  .ledger a { justify-self: end; text-align: right; }
}

/* Home: leadership principles on black */
.principles { display: grid; gap: 44px; margin-top: 48px; }
.principles h3 { padding-top: 18px; border-top: 4px solid var(--beacon); margin-bottom: 0.6em; }
.principles .gloss {
  display: block; margin-top: 6px;
  font-family: var(--body); font-size: 0.95rem; font-weight: 400; font-style: italic;
  color: var(--night-muted);
}
.principles p { margin: 0; }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px; } }

/* Track record figures */
.figures {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; gap: 36px 40px; grid-template-columns: 1fr;
}
.figures li { border-left: 4px solid var(--beacon); padding-left: 18px; }
.figures .n {
  display: block; margin-bottom: 10px;
  font-family: var(--display); font-weight: 640; color: var(--ink);
  font-size: clamp(2.3rem, 4.4vw, 3.1rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.figures .what { display: block; max-width: 30ch; }
@media (min-width: 560px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Two-column split */
.split { display: grid; gap: 56px; margin-top: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } }
.split h3 { margin-bottom: 0.8em; }

.citation { padding-left: 1.6em; text-indent: -1.6em; color: var(--text); }
.citation a { word-break: break-word; }
.note { color: var(--granite); font-size: 0.95rem; }

.roles { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.roles li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.roles strong { display: block; font-weight: 640; }
.roles span { display: block; color: var(--granite); font-size: 0.97rem; }

/* Contact band */
.cta .wrap { display: grid; gap: 8px; }
@media (min-width: 900px) {
  .cta .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 64px; align-items: end; }
  .cta .actions { justify-content: flex-end; margin-top: 0; }
}

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(44px, 7vw, 96px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { color: var(--text); max-width: 58ch; margin-bottom: 0; }
.page-head--portrait .wrap { display: grid; gap: 40px; align-items: center; }
.page-head--portrait .portrait { max-width: 220px; }
@media (min-width: 900px) {
  .page-head--portrait .wrap { grid-template-columns: minmax(0, 1fr) 260px; gap: 72px; }
  .page-head--portrait .portrait { max-width: 260px; justify-self: end; }
}

.layout { display: grid; gap: 40px; padding-top: clamp(48px, 7vw, 88px); padding-bottom: var(--space); }
@media (min-width: 1000px) { .layout { grid-template-columns: 13rem minmax(0, 1fr); gap: 72px; } }
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: block; align-self: start; position: sticky; top: 104px; }
  .toc p { font-weight: 700; font-size: 0.92rem; color: var(--ink); margin-bottom: 10px; }
  .toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
  .toc a {
    display: block; padding: 6px 0 6px 16px; margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--granite); text-decoration: none; font-size: 0.95rem; line-height: 1.35;
  }
  .toc a:hover { color: var(--ink); border-left-color: var(--beacon); }
}

.prose > section { padding-bottom: clamp(44px, 6vw, 72px); scroll-margin-top: 96px; }
.prose > section + section { padding-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--rule); }
.prose h2 { margin-bottom: 0.6em; }
.prose h3 { margin-top: 1.6em; }
.prose h2 + h3, .prose h2 + .subhead { margin-top: 0.4em; }
.prose ul.list, .prose ol.list { padding-left: 1.2em; margin: 0 0 1.3em; max-width: var(--measure); }
.prose .list li { margin-bottom: 0.55em; padding-left: 0.2em; }
.prose .list li::marker { color: var(--beacon); }
.subhead { font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 1.6em 0 0.6em; }

/* Experience is a sequence, so it gets a timeline */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; border-left: 2px solid var(--ink); max-width: 44rem; }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li:last-child { padding-bottom: 4px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 0.45em;
  width: 12px; height: 12px; background: var(--beacon);
}
.timeline .years { display: block; color: var(--granite); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.timeline .role { display: block; font-family: var(--display); font-weight: 640; color: var(--ink); font-size: 1.16rem; line-height: 1.3; }
.timeline .org { display: block; }

.facts { list-style: none; margin: 0 0 1.4em; padding: 0; max-width: 44rem; border-top: 1px solid var(--rule); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts strong { display: block; font-weight: 640; }
.facts span { display: block; color: var(--granite); font-size: 0.97rem; }

.principle { border-top: 4px solid var(--beacon); padding-top: 20px; }
.principle .gloss { display: block; font-family: var(--body); font-style: italic; font-weight: 400; font-size: 1rem; color: var(--granite); margin-top: 8px; }

.beliefs { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 760px) { .beliefs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; } }
.beliefs article { border-top: 2px solid var(--ink); padding-top: 16px; }
.beliefs h3 { margin-top: 0; font-size: 1.22rem; }
.beliefs p { margin: 0; }

.area-meta { display: grid; gap: 8px 48px; margin-top: 8px; }
@media (min-width: 900px) { .area-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.engage { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--ink); max-width: 48rem; }
.engage li { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .engage li { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; } }
.engage strong { font-weight: 640; }
.engage span { color: var(--granite); font-size: 0.97rem; display: block; }
.engage a { font-weight: 600; white-space: nowrap; }

.feature {
  border-left: 4px solid var(--beacon);
  background: var(--fog);
  padding: 24px 24px 8px;
  margin: 8px 0 28px;
  max-width: 48rem;
}
.feature .subhead { margin-top: 0; }

.podcast { margin: 8px 0 0; max-width: 34rem; }
.podcast img { border-radius: 3px; background: #000; }
.podcast figcaption { color: var(--granite); font-size: 0.95rem; margin-top: 10px; }

.references p { padding-left: 2em; text-indent: -2em; font-size: 0.97rem; max-width: 70ch; }

.talks { list-style: none; margin: 0 0 1.4em; padding: 0; max-width: 48rem; }
.talks li { padding: 10px 0 10px 20px; position: relative; }
.talks li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; background: var(--beacon); }

.spaced { margin-top: 28px; }
.page-body { padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--space); }

/* Breadcrumbs on specialty and article pages */
.breadcrumb { margin: 0 0 22px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.93rem; color: var(--granite); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--rule); }
.breadcrumb a { color: var(--granite); text-decoration-color: var(--rule); }
.breadcrumb a:hover { color: var(--ink); text-decoration-color: var(--beacon); }

/* Insights */
.posts { list-style: none; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--ink); max-width: 48rem; }
.posts li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.post-title { font-family: var(--display); font-weight: 640; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.25; color: var(--ink); text-decoration-thickness: 2px; }
.posts p { margin: 10px 0 8px; }
.post-meta { display: block; color: var(--granite); font-size: 0.93rem; }
.byline { margin-top: 18px; color: var(--granite); font-size: 0.97rem; }
.article-body { max-width: 46rem; padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--space); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--night-muted); padding: 60px 0 36px; font-size: 0.97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--beacon-bright); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.9fr); gap: 56px; } }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 52px; height: 52px; border-radius: 6px; flex: none; }
.footer-name { font-family: var(--display); color: #fff; font-weight: 640; font-size: 1.15rem; line-height: 1.3; margin: 0 0 4px; }
.footer-motto { font-family: var(--display); font-style: normal; color: var(--beacon-bright); font-weight: 560; margin: 0 0 4px; }
.site-footer h2 { font-family: var(--body); color: #fff; font-size: 0.98rem; font-weight: 700; margin: 0 0 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid #2a2f33; font-size: 0.9rem; }
.footer-base p { max-width: none; margin: 0; }

/* ---------- 404 ---------- */
.notfound { padding: var(--space) 0; min-height: 50vh; }

@media print {
  .site-header, .site-footer, .actions, .toc, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section--night, .section--fog { background: #fff; color: #000; }
  .section--night h2, .section--night h3, .section--night p { color: #000; }
  a { text-decoration: underline; }
}

/* Long URLs and titles never force sideways scrolling */
.references a, .citation a, .breadcrumb span, .breadcrumb a { overflow-wrap: anywhere; }
