/* ---------- Overall page ---------- */

html,
body {
  background: #ffffff;
  color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
}

.page-layout-full .content,
.quarto-container,
main.content {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#title-block-header {
  display: none !important;
}

/* ---------- Navigation bar ---------- */

.navbar {
  background: #ffffff !important;
  border-bottom: 2px solid #111111 !important;
  padding: 1.05rem 3.75rem !important;
  box-shadow: none !important;
}

.navbar .container-fluid,
.navbar .container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.navbar-brand,
.navbar-title {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.45rem, 2vw, 1.85rem) !important;
  font-weight: 400 !important;
  color: #111111 !important;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.navbar-brand:hover,
.navbar-title:hover {
  color: #111111 !important;
  text-decoration: none;
}

.navbar-nav {
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.navbar-nav .nav-link {
  color: #111111 !important;
  font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
  font-weight: 400 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.aa-DetachedSearchButton,
#quarto-search {
  display: none !important;
}

/* ---------- Homepage hero section ---------- */

.hero {
  max-width: 1440px;
  margin: 6.25rem auto 5rem auto;
  padding: 0 3.75rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1fr);
  column-gap: 3.5rem;
  align-items: center;
}

.hero-text {
  max-width: 690px;
}

/* *** UPDATED: forces single line *** */
.hero-title {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(3.5rem, 5vw, 5rem) !important;
  line-height: 1.02 !important;
  font-weight: 400 !important;
  letter-spacing: -0.055em !important;
  margin: 0 0 2rem 0 !important;
  color: #000000 !important;
  white-space: nowrap;
}

.hero-intro {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(1.75rem, 2.15vw, 2.15rem) !important;
  line-height: 1.25 !important;
  font-weight: 400 !important;
  max-width: 690px !important;
  margin: 0 !important;
  color: #111111 !important;
}

.hero-image {
  width: 100%;
}

.hero-image p {
  margin: 0 !important;
}

.hero-image img {
  width: 100% !important;
  max-width: 650px !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 4rem;
  display: block;
  margin-left: auto;
}

/* ---------- Contact page ---------- */

.contact-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  min-height: calc(100vh - 5.5rem);
  padding: 1.5rem;
  box-sizing: border-box;
}

.contact-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 4rem;
}

.contact-title,
.contact-title p {
  font-family: "Times New Roman", Times, serif !important;
  font-size: clamp(3.5rem, 6vw, 5.5rem) !important;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #000000;
  margin: 0 0 3.5rem 0;
}

.contact-title p {
  margin: 0;
}

.contact-text p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: #111111;
  max-width: 520px;
  margin: 0 0 1.5rem 0;
}

.contact-image {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.contact-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1000px) {
  .contact-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1rem;
  }

  .contact-text {
    padding: 2rem 0.5rem;
    order: 2;
  }

  .contact-title {
    font-size: clamp(3rem, 10vw, 4.5rem);
    margin-bottom: 2rem;
  }

  .contact-image {
    order: 1;
    height: 45vh;
  }
}

/* ---------- Insights section ---------- */

.insights-section {
  max-width: 1440px;
  margin: 2rem auto 6rem auto;
  padding: 0 3.75rem;
}

.insights-section h1 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(4rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  color: #000000;
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 0.85rem;
  margin: 0 0 1.5rem 0;
  max-width: 1100px;
}

.insights-section > p {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  max-width: 980px;
  margin: 0 0 4.5rem 0;
  color: #111111;
}

.insights-list {
  margin-top: 3.5rem;
  max-width: 1250px;
}

.insights-list p {
  margin: 0 0 1.25rem 0;
}

.insights-list a {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  color: #000000;
  text-decoration: none;
}

.insights-list a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---------- Blog post cover image ---------- */

.post-cover-image {
  display: block;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.5rem;
  margin: 2rem auto 2.5rem auto;
}

h1.post-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #000000;
  margin: 0 0 1.75rem 0;
}

.post-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1.05rem;
  color: #6b6b6b;
  margin: -1rem 0 1.75rem 0;
}

.post-date p {
  margin: 0;
}

/* ---------- Blog post body text ---------- */

.page-layout-article #quarto-document-content p,
.page-layout-article #quarto-document-content ul,
.page-layout-article #quarto-document-content ol {
  font-size: 1.25rem;
  line-height: 1.7;
}

/* ---------- Medium screens ---------- */

@media (max-width: 1200px) {
  .navbar {
    padding: 1rem 2rem !important;
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1fr);
    padding: 0 2rem;
    column-gap: 2.5rem;
  }

  .hero-title {
    font-size: clamp(3rem, 4vw, 4.2rem) !important;
  }

  .hero-intro {
    font-size: clamp(1.45rem, 2vw, 1.85rem) !important;
  }

  .insights-section {
    padding: 0 2rem;
  }
}

/* ---------- Tablet layout ---------- */

@media (max-width: 1000px) {
  .navbar {
    padding: 1rem 1.5rem !important;
  }

  .navbar-nav {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .navbar-nav .nav-link {
    font-size: 1.05rem !important;
  }

  .hero {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 4rem auto 4rem auto;
    padding: 0 1.5rem;
    gap: 2rem;
  }

  .hero-text {
    max-width: 760px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem) !important;
    white-space: nowrap;
    margin-bottom: 1.5rem !important;
  }

  .hero-intro {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
  }

  .hero-image img {
    max-width: 560px !important;
    margin: 0 auto;
    border-radius: 3rem;
  }

  .insights-section {
    max-width: 760px;
    padding: 0 1.5rem;
  }

  .insights-section h1 {
    font-size: clamp(3.7rem, 12vw, 5rem);
  }

  .insights-section > p {
    font-size: 1.25rem;
    margin-bottom: 3.5rem;
  }

  .insights-list a {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
  }
}

/* ---------- Phone layout ---------- */

@media (max-width: 480px) {
  .navbar {
    padding: 0.85rem 1.25rem !important;
  }

  .navbar-brand,
  .navbar-title {
    font-size: 1.35rem !important;
  }

  .hero {
    padding: 0 1.25rem;
    margin-top: 3rem;
    gap: 1.75rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem) !important;
    letter-spacing: -0.04em !important;
    margin-bottom: 1.25rem !important;
    white-space: nowrap;
  }

  .hero-intro {
    font-size: 1.1rem !important;
    line-height: 1.35 !important;
  }

  .hero-image img {
    border-radius: 2rem;
  }

  .insights-section {
    padding: 0 1.25rem;
    margin-top: 2.5rem;
  }

  .insights-section h1 {
    font-size: 3.5rem;
  }

  .insights-section > p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }

  .insights-list a {
    font-size: 1.8rem;
  }

  .insights-list p {
    margin-bottom: 1.8rem;
  }
}