/* Design tokens: crisp editorial palette with cool neutrals. */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #5b6472;
  --line: #d8e0ea;
  --accent: #0b5fff;
  --accent-soft: #dce7ff;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* Baseline page settings. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% -20%, #ffffff 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3fa 100%);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:hover {
  opacity: 0.84;
}

/* Accessibility helper. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #111;
  color: #fff;
  padding: 0.6rem 0.9rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
}

/* Shared layout container. */
.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

/* Sticky header and simple nav. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 224, 234, 0.85);
  backdrop-filter: blur(8px);
  background: rgba(247, 249, 252, 0.9);
}

.header-inner {
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.98rem;
}

.section {
  padding: 5.2rem 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2));
  border-top: 1px solid rgba(89, 97, 107, 0.12);
  border-bottom: 1px solid rgba(89, 97, 107, 0.12);
}

.section-title {
  margin: 0 0 1.5rem;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.15;
}

/* Hero content and portrait composition. */
.hero {
  padding-top: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--muted);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.05;
}

.hero-copy p {
  margin: 0.65rem 0;
  max-width: 62ch;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-strong);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons for key calls-to-action. */
.cta-row {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.62rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--accent);
  color: #fff;
}

.btn-solid:hover {
  background: #7b1a27;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

/* Book cards and media presentation. */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.book-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-rows: 270px auto auto auto;
  box-shadow: 0 10px 20px rgba(25, 24, 20, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 28px rgba(25, 24, 20, 0.11);
}

.book-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  background: #ece8e1;
}

.book-card h3 {
  margin: 0.85rem 1rem 0.2rem;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.28rem;
}

.book-card h3 a {
  color: inherit;
  text-decoration: none;
}

.book-card h3 a:hover,
.book-card h3 a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.book-card p {
  margin: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Two-column sections for bio, talks, and essays. */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.facts-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  align-self: start;
}

.facts-card h3 {
  margin: 0 0 0.55rem;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.4rem;
}

.facts-card ul {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li + li {
  margin-top: 0.7rem;
}

/* Pull quotes for reviews. */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.quote-card {
  margin: 0;
  background: var(--surface-strong);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1rem 0.95rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-card p {
  margin: 0 0 0.55rem;
}

.quote-card cite {
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

/* Footer with light separation. */
.site-footer {
  border-top: 1px solid rgba(89, 97, 107, 0.18);
  padding: 1.4rem 0 2.3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner p {
  margin: 0;
}

/* Subpage scaffolding for migrated Wix routes. */
.subpage-main {
  padding: 3.8rem 0 5rem;
}

.breadcrumb {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  margin-bottom: 1.8rem;
}

.page-kicker {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.page-hero h1 {
  margin: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
}

.lead {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.prose {
  max-width: 78ch;
}

.prose p {
  margin: 0.8rem 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: start;
}

.media-box {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.media-box figcaption {
  padding: 0.72rem 0.85rem 0.86rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.resource-list {
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
}

.resource-list li + li {
  margin-top: 0.52rem;
}

.notice-card {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.9rem;
}

.notice-card p {
  margin: 0;
  color: var(--muted);
}

.book-jump-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.95rem;
}

.book-jump-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  padding: 0.95rem;
}

.book-jump-card h3 {
  margin: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.16rem;
}

.book-jump-card p {
  margin: 0.5rem 0 0.35rem;
  color: var(--muted);
}

/* Rich preview cards for talks and essay highlights. */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(25, 24, 20, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 24px rgba(25, 24, 20, 0.11);
}

.preview-media {
  display: block;
  border-bottom: 1px solid var(--line);
  background: #e7e1d6;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.preview-card:hover .preview-media img {
  transform: scale(1.03);
}

.preview-body {
  display: grid;
  gap: 0.46rem;
  padding: 0.9rem;
}

.preview-meta {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 600;
}

.preview-body h3 {
  margin: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.17rem;
  line-height: 1.2;
}

.preview-body h3 a {
  color: inherit;
  text-decoration: none;
}

.preview-body h3 a:hover,
.preview-body h3 a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.preview-body p {
  margin: 0;
  color: var(--muted);
}

.preview-link {
  display: inline-block;
  margin-top: 0.05rem;
  font-weight: 600;
  text-decoration: none;
}

.preview-link:hover,
.preview-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

/* Side-thumbnail variant used on the essays page for tighter cards. */
.preview-grid-side {
  grid-template-columns: 1fr;
}

.preview-grid-side .preview-card {
  display: grid;
  grid-template-columns: 136px 1fr;
  align-items: stretch;
}

.preview-grid-side .preview-media {
  height: 100%;
  min-height: 120px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  aspect-ratio: auto;
}

.preview-grid-side .preview-media img {
  height: 100%;
}

/* Compact index lists for larger publication archives. */
.essay-index {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  padding: 0.95rem;
}

.essay-index h2 {
  margin: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.35rem;
}

.essay-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.essay-group-title {
  margin: 1rem 0 0.3rem;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.12rem;
}

.essay-list {
  margin: 0.72rem 0 0;
  padding: 0;
  list-style: none;
}

.essay-list li + li {
  margin-top: 0.6rem;
}

.essay-list a {
  text-decoration: none;
}

.essay-list a:hover,
.essay-list a:focus-visible {
  text-decoration: underline;
}

.essay-title {
  color: var(--text);
}

.essay-source {
  margin-left: 0.38rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-footer-cta {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 0.85rem;
}

.social-links a {
  text-decoration: none;
}

/* Contact form styles for the migrated About page. */
.contact-form {
  max-width: 760px;
  margin-top: 0.9rem;
  display: grid;
  gap: 0.82rem;
}

.field label {
  display: inline-block;
  margin-bottom: 0.28rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hidden-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Subtle reveal motion; disabled for reduced-motion users. */
.reveal {
  animation: fade-up 0.65s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0.94;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive behavior keeps reading order clear on phones. */
@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-image {
    max-height: 560px;
  }

  .book-card {
    grid-template-rows: 240px auto auto auto;
  }

  .book-card img {
    height: 240px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.7rem 0;
  }

  .nav-list {
    justify-content: flex-end;
    gap: 0.75rem;
  }

  .nav-list a {
    font-size: 0.92rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.65rem 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .preview-grid-side .preview-card {
    grid-template-columns: 112px 1fr;
  }

  .preview-grid-side .preview-body {
    padding: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .btn {
    animation: none;
    transition: none;
  }
}
