:root {
      color-scheme: light;
      --background: #fff;
      --text: #000;
      --accent: #6E2638;
      --border: #e6e6e6;
      --surface: #f7f7f7;
      --muted: #606066;
    }
    :root[data-theme="dark"] {
      color-scheme: dark;
      --background: #111113;
      --text: #f5f5f5;
      --accent: #e6a0b2;
      --border: #333338;
      --surface: #1b1b1e;
      --muted: #aaaab2;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100vh;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
      background: var(--background);
      color: var(--text);
    }
    .navigation {
      max-width: 64rem;
      margin: 0 auto;
      padding: 1rem 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      border-bottom: 1px solid var(--border);
    }
    .nav-links { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2rem); }
    .nav-links a { color: var(--text); font-size: 0.875rem; text-decoration: none; }
    .nav-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
    .theme-toggle {
      display: grid;
      place-items: center;
      flex-shrink: 0;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 1px solid var(--border);
      border-radius: 50%;
      color: var(--text);
      background: transparent;
      cursor: pointer;
    }
    .theme-toggle:hover { color: var(--accent); border-color: currentColor; }
    .theme-toggle svg { width: 20px; height: 20px; }
    .sun-icon { display: none; }
    [data-theme="dark"] .sun-icon { display: block; }
    [data-theme="dark"] .moon-icon { display: none; }
    header {
      max-width: 48rem;
      margin: 0 auto;
      padding: clamp(3rem, 9vw, 6rem) 1.5rem;
      text-align: center;
    }
    .portrait {
      display: block;
      width: clamp(9rem, 25vw, 12rem);
      aspect-ratio: 1;
      height: auto;
      margin: 0 auto 1.5rem;
      border-radius: 50%;
      object-fit: cover;
    }
    h1 {
      margin: 0 0 1rem;
      font-weight: 600;
      font-size: clamp(2rem, 5vw, 3rem);
      letter-spacing: -0.035em;
    }
    p {
      max-width: 36rem;
      margin: 0 auto;
      color: var(--text);
      font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
      line-height: 1.65;
      text-wrap: pretty;
    }
    .contact-link {
      display: inline-block;
      margin-top: 1.5rem;
      color: var(--accent);
      font-size: 1rem;
      font-weight: 600;
      line-height: 1.5;
      text-underline-offset: 4px;
    }
    .contact-link:hover { text-decoration-thickness: 2px; }
    main { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem 5rem; }
    .testimonial {
      margin: 0;
      padding: clamp(1.5rem, 4vw, 2.5rem) 0;
      border-top: 1px solid var(--border);
    }
    blockquote { margin: 0 0 2rem; }
    blockquote p { max-width: none; font-size: clamp(1.125rem, 2.5vw, 1.375rem); line-height: 1.7; }
    figcaption { display: flex; align-items: center; gap: 1rem; }
    .client-portrait { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
    .client-name { display: block; font-size: 1rem; font-weight: 600; }
    .client-role { display: block; margin-top: 0.3rem; font-size: 0.875rem; line-height: 1.5; }
    .client-role a { color: inherit; text-underline-offset: 3px; }
    .client-role a:hover { color: var(--accent); }
    a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  
    .nav-links { flex-wrap: wrap; gap: 0.4rem 1.25rem; }
    .nav-links a { display: inline-block; padding: 0.5rem 0; }
    .nav-links a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
    .navigation { align-items: flex-start; }
    .page-heading { text-align: left; padding-bottom: 2.5rem; }
    .page-heading p { max-width: none; }
    .entry {
      padding: clamp(1.25rem, 4vw, 2rem);
      margin-bottom: 1rem;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: var(--background);
    }
    .entry > :last-child { margin-bottom: 0; }
    .entry h2 { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
    .entry p { max-width: none; margin: 0 0 1rem; font-size: 1.0625rem; }
    .entry .eyebrow { color: var(--muted); font-size: 0.8125rem; line-height: 1.7; margin-bottom: 0.875rem; }
    .entry a { color: var(--accent); text-underline-offset: 4px; }
    .site-footer { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem 2rem; }
    .site-footer a { color: var(--text); font-size: 0.875rem; text-underline-offset: 4px; }
    @media (max-width: 600px) {
      .navigation { padding: 0.75rem 1rem; gap: 0.75rem; }
      .nav-links { gap: 0.15rem 1rem; }
      .theme-toggle { margin-top: 0.25rem; }
    }

/* Section headings sit outside cards so the two levels are easy to scan. */
.page-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0 0.5rem;
}
.page-sections a {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.5;
  text-decoration: none;
  padding: 0.625rem 1rem;
}
.page-sections a:hover { border-color: var(--accent); color: var(--accent); }
.section-heading { margin: 4rem 0 1.5rem; }
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: none;
  margin: 0 0 0.875rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-label::before { content: ""; width: 1.5rem; height: 2px; background: var(--accent); }
.section-title { margin: 0; font-size: clamp(1.65rem, 4vw, 2.125rem); letter-spacing: -0.035em; font-weight: 600; line-height: 1.2; }
.entry h3 { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.section-intro { max-width: none; margin: 0 0 1.5rem; font-size: 1rem; color: var(--muted); }
.entry-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; line-height: 1.5; }
.entry > a, .entry-links a { font-size: 0.875rem; font-weight: 500; line-height: 1.6; }
.entry-links, .entry > a { margin-top: 0.5rem; }
.entry > a { display: inline-block; }
.speaking-contact { margin-top: 4rem; background: var(--surface); border-color: transparent; }
.speaking-contact h2 { font-size: 1.5rem; }
.talks-page [id] { scroll-margin-top: 2rem; }
@media (max-width: 600px) {
  .section-heading { margin-top: 3rem; }
  .entry p { font-size: 1rem; }
  .entry-links { gap: 0.75rem; flex-direction: column; align-items: flex-start; }
}

/* Homepage: selected pieces, with current work given room to lead. */
.home-page { max-width: 64rem; --home-card-padding: clamp(1.25rem, 4vw, 2rem); }
.home-page p { max-width: none; }
.home-intro { padding-bottom: 4rem; }
.home-feature { padding: var(--home-card-padding); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.home-feature h2 { max-width: none; margin: 1.25rem 0; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.035em; font-weight: 600; }
.home-feature > p:not(.section-label), .home-explore > p:not(.section-label) { max-width: none; margin: 0 0 1rem; font-size: 1.0625rem; }
.home-feature > a, .home-explore > a { display: inline-block; margin-top: 0.75rem; color: var(--accent); font-size: 0.9375rem; text-underline-offset: 4px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 1.25rem; }
.home-grid .entry { display: flex; flex-direction: column; min-width: 0; padding: var(--home-card-padding); margin-bottom: 0; }
.home-grid .entry > a { align-self: flex-start; margin-top: auto; padding-top: 0.75rem; }
.home-explore { margin: 4rem 0; padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-explore h2 { margin-bottom: 1rem; }
.home-page .testimonial { max-width: none; border-top: 0; padding-top: 0; }
.home-page .testimonial blockquote p { font-size: 1.125rem; }
.home-footer { max-width: 64rem; }
.home-footer p { max-width: none; font-size: 1rem; margin-bottom: 0.75rem; }
@media (max-width: 700px) { .home-grid { grid-template-columns: 1fr; } }

.menu-toggle { display: none; }
.mobile-menu { box-sizing: border-box; position: fixed; inset: 0 auto 0 0; width: min(21rem, 86vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 1.25rem; border: 0; border-right: 1px solid var(--border); background: var(--background); color: var(--text); overflow-y: auto; }
.mobile-menu::backdrop { background: rgb(0 0 0 / 45%); }
.mobile-menu[open] { animation: drawer-in 180ms ease-out; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; font-weight: 600; }
.menu-close { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: inherit; font-size: 1.75rem; cursor: pointer; }
.mobile-menu .nav-links { flex-direction: column; align-items: stretch; gap: 0.25rem; }
.mobile-menu .nav-links a { padding: 1rem 0.75rem; font-size: 1rem; border-radius: 8px; }
.mobile-menu .nav-links a[aria-current="page"] { background: var(--surface); }
body.menu-open { overflow: hidden; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (max-width: 760px) {
  .has-mobile-menu > .nav-links { display: none; }
  .has-mobile-menu { align-items: center; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
  .menu-toggle svg { width: 20px; height: 20px; }
  .has-mobile-menu .theme-toggle { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .mobile-menu[open] { animation: none; } }
