/* ===================================
   CSS CUSTOM PROPERTIES (THEMING)
   =================================== */

:root {
  --ink: #1a1a1a;
  --paper: #fdfaf5;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --muted: #6b6b6b;
  --border: #e0dcd5;
  --surface: #f8f6f2;
  --shadow: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --ink: #fdfaf5;
  --paper: #0f0f0f;
  --accent: #60a5fa;
  --accent-hover: #3b82f6;
  --muted: #a0a0a0;
  --border: #2a2a2a;
  --surface: #1a1a1a;
  --shadow: rgba(0, 0, 0, 0.3);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

/* ===================================
   LAYOUT
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Spacing utilities */
.section-pad-lg {
  padding: 5rem 0;
}

.section-pad-md {
  padding: 3rem 0;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .section-pad-lg,
  .section-pad-md {
    padding: 3rem 0;
  }
}

/* ===================================
   THEME TOGGLE
   =================================== */

.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--paper);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: rotate(90deg);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
  transition: opacity 0.3s ease;
}

.theme-toggle .moon-icon {
  position: absolute;
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
}

@media (max-width: 768px) {
  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

/* ===================================
   HEADER
   =================================== */

header {
  padding: 5rem 0 6rem;
  position: relative;
}

.header-content {
  max-width: 900px;
}

.name-lockup {
  position: relative;
}

h1 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.name-accent {
  color: var(--accent);
  display: block;
  position: relative;
}

.name-accent::after {
  content: "";
  position: absolute;
  bottom: 0.2em;
  left: 0;
  width: 100%;
  height: 0.15em;
  background: var(--accent);
  opacity: 0.3;
  z-index: -1;
}

.tagline {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.tagline-secondary {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.tagline-closing {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 2rem;
}

.header-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}

.header-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-meta span::before {
  content: "//";
  color: var(--accent);
  font-weight: bold;
}

@media (max-width: 768px) {
  header {
    padding: 3rem 0 4rem;
  }

  h1 {
    font-size: 3rem;
  }
}

/* ===================================
   FEATURED TALK
   =================================== */

.featured-post {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 0;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.featured-post::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

[data-theme="dark"] .featured-post::before {
  background: radial-gradient(circle at center, rgba(96, 165, 250, 0.1) 0%, transparent 60%);
}

.featured-content {
  position: relative;
  z-index: 1;
}

.featured-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.featured-post h2 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 2rem;
  max-width: 900px;
}

.talk-description {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 750px;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.talk-meta {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.featured-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.featured-link:hover {
  background: var(--accent-hover);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .featured-post {
    padding: 3rem 0;
    margin: 2rem 0;
  }

  .featured-post h2 {
    font-size: 2rem;
  }

  .talk-meta {
    gap: 2rem;
  }
}

/* ===================================
   SECTIONS
   =================================== */

.biography {
  border-bottom: 1px solid var(--border);
}

.speaking-topics {
  background: var(--surface);
}

.section-title {
  font-family: 'Crimson Pro', serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50%;
  height: 4px;
  background: var(--accent);
  transform-origin: left;
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (max-width: 768px) {

  .biography,
  .speaking-topics,
  .testimonials {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* ===================================
   BIOGRAPHY
   =================================== */

.bio-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.bio-text {
  font-size: 1.05rem;
  line-height: 1.8;
}

.bio-text p {
  margin-bottom: 1.5rem;
}

.bio-highlights {
  background: var(--surface);
  padding: 2.5rem;
  border-left: 4px solid var(--accent);
  position: relative;
}

.bio-highlights h3 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.bio-highlights ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bio-highlights li {
  padding-left: 1.5rem;
  position: relative;
  transition: transform 0.2s ease;
}

.bio-highlights li:hover {
  transform: translateX(4px);
}

.bio-highlights li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

@media (max-width: 768px) {
  .bio-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===================================
   SPEAKING TOPICS
   =================================== */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.topic-card {
  background: var(--paper);
  padding: 2rem;
  border: 2px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
  border-color: var(--accent);
}

.topic-card:hover::before {
  transform: scaleX(1);
}

.topic-card h3 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
  line-height: 1.3;
}

.topic-card p {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   PULL QUOTE
   =================================== */

.pull-quote {
  background: var(--surface);
}

.pull-quote blockquote {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.4;
  font-style: italic;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 3rem;
}

.pull-quote blockquote::before {
  content: "" ";
 position: absolute;
  top: -0.5em;
  left: 0;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

@media (max-width: 768px) {
  .pull-quote blockquote {
    padding: 0 1.5rem;
  }
}

/* ===================================
   TESTIMONIALS
   =================================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.testimonial {
  border-left: 4px solid var(--accent);
  padding-left: 2rem;
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateX(8px);
}

.testimonial-quote {
  font-family: 'Crimson Pro', serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--ink);
}

.testimonial-role {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   CONTACT CTA
   =================================== */

.contact-cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.contact-cta h2 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-cta p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--paper);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.btn-primary:hover {
  color: var(--accent);
  background-color: transparent;
}

.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}

.btn-secondary:hover {
  color: var(--ink);
  background-color: var(--paper);
}

/* ===================================
   FOOTER
   =================================== */

footer {
  background: var(--paper);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.social-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links a:hover::after {
  transform: scaleX(1);
}

.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================
   CARD BASE
   =================================== */

.card {
  background: var(--paper);
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  box-shadow: 0 12px 32px var(--shadow);
}

.card--list {
  background: transparent;
  box-shadow: none;
}

.card--list:hover {
  box-shadow: none;
}

/* ===================================
   ARTICLE PAGE STYLES
   =================================== */

.article-header {
  padding: 3rem 0 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.article-meta span {
  margin-right: 1.5rem;
}

.article-meta span::before {
  content: "//";
  color: var(--accent);
  font-weight: bold;
  margin-right: 0.5rem;
}

.article-header h1 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.article-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
}

.article-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.article-content h2 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.article-content strong {
  font-weight: 600;
}

.article-content ul {
  list-style: none;
  margin: 1.5rem 0;
  padding-left: 0;
}

.article-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  position: relative;
}

.article-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted);
}

.article-footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.author-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.author-info p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.back-link {
  padding: 2rem 0;
}

.back-link--center {
  text-align: center;
}

.back-link--start {
  text-align: left;
}

.back-link a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.back-link a:hover {
  color: var(--accent);
}

.back-link a::before {
  content: "← ";
  font-weight: bold;
}

.indented-list {
  padding-left: 1.5rem;
}

.author-bio {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {

  .article-content,
  .article-header,
  .article-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}


.writing-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.writing-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.writing-intro {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.7;
}

.articles-list {
  padding: 4rem 0;
}

.article-card {
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.article-card .article-meta {
  margin-bottom: 1rem;
}

 .article-card:hover {
   padding-left: 1rem;
 }

.article-card h2 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
   font-weight: 600;
   line-height: 1.2;
   margin-bottom: 1rem;
 }

 .article-card h2 a {
   color: var(--ink);
   text-decoration: none;
   transition: color 0.3s ease;
 }

 .article-card h2 a:hover {
   color: var(--accent);
 }

 .article-excerpt {
   font-size: 1.05rem;
   line-height: 1.7;
   color: var(--muted);
   margin-bottom: 1.5rem;
   max-width: 800px;
 }

 .article-tags {
   display: flex;
   gap: 0.75rem;
   flex-wrap: wrap;
 }

 .tag {
   font-size: 0.85rem;
   padding: 0.35rem 0.75rem;
   background: var(--surface);
   color: var(--muted);
   border: 1px solid var(--border);
   transition: all 0.3s ease;
 }

 .tag:hover {
   border-color: var(--accent);
   color: var(--accent);
 }

 .read-more {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   color: var(--accent);
   font-weight: 600;
   text-decoration: none;
   margin-top: 1rem;
   transition: gap 0.3s ease;
 }

 .read-more:hover {
   gap: 1rem;
 }

 .read-more::after {
   content: "→";
   font-size: 1.2rem;
 }

@media (max-width: 768px) {
  .article-card {
    padding: 2rem 0;
  }

  .article-card:hover {
    padding-left: 0;
  }
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.press-section {
  background: var(--surface);
}

.press-item {
  padding: 2rem;
  border-left: 4px solid var(--accent);
}

.press-year {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.press-title {
  font-family: 'Crimson Pro', serif;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.press-link {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.press-link:hover {
  color: var(--accent);
}

.press-summary {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

 .press-item:hover {
   transform: translateX(8px);
   box-shadow: 0 12px 32px var(--shadow);
   border-color: var(--accent-hover);
 }
