
:root {
  --page-width: 1100px;
  --text-color: #202020;
  --muted-background: #f2f0eb;
  --dark-background: #222;
  --dark-text: #f7f7f4;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-color);
  hyphens: auto;
}

main,
#quarto-content {
  padding: 0;
}

/* #title-block-header {
  display: none;
} */

.hero,
.page-section,
.footer-section {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.centered-video {
  width: min(700px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.centered-video video,
.quarto-video,
.video-js,
.quarto-video video {
  max-width: 100%;
}

.centered-video p:has(img) {
  text-align: center;
}

.columns.image-text-row,
.columns.vcenter {
  align-items: center;
  gap: clamp(2.25rem, 6vw, 5rem);
}

.columns.image-text-row > .column,
.columns.vcenter > .column {
  box-sizing: border-box;
  overflow-x: visible;
}

.columns.image-text-row > .column:first-child,
.columns.vcenter > .column:first-child {
  padding-right: clamp(1rem, 2.5vw, 2.25rem);
}

.columns.image-text-row > .column:last-child,
.columns.vcenter > .column:last-child {
  padding-left: clamp(1rem, 2.5vw, 2.25rem);
}

.content p,
.content li {
  text-align: justify;
  hyphens: auto;
}

.hero h2 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 400;
}

.hero p {
  max-width: 720px;
}

.hero-button {
  display: inline-block;
  align-self: flex-start;
  margin-top: 1.5rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
}

.page-section h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

.page-section p,
.page-section li {
  font-size: 1.15rem;
  line-height: 1.75;
}

.accent-section,
.background-section {
  max-width: none;
  background: var(--muted-background);
}

.accent-section > *,
.background-section > * {
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
}

.statement-section {
  max-width: none;
  background: var(--dark-background);
  color: var(--dark-text);
}

.statement-section > * {
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
}

.large-statement {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.25;
  margin: 3rem 0;
}

.wide-image {
  width: 100%;
}

.image-placeholder,
.video-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 2rem;
  border: 1px dashed #999;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.video-wrapper video {
  width: 100%;
  max-height: 80vh;
}

.interactive-container {
  min-height: 400px;
  border: 1px solid #aaa;
  display: grid;
  place-items: center;
  margin-top: 2rem;
}

.interactive-placeholder {
  text-align: center;
  padding: 3rem;
}

.pseudoline-layer-canvas {
  width: min(100%, 620px);
  margin: 2.5rem auto 3rem;
}

#pseudoline-layer-animation {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
}

.pseudoline-layer-fallback {
  display: block;
  width: 100%;
  height: auto;
}

.footer-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}

.footer-section p {
  text-align: left;
}

@media (max-width: 768px) {
  .hero,
  .page-section,
  .footer-section {
    padding: 2.5rem 1.1rem;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.15rem;
    line-height: 1.12;
  }

  .content p,
  .content li {
    text-align: left;
  }

  .columns.image-text-row,
  .columns.vcenter {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .columns.image-text-row > .column,
  .columns.vcenter > .column {
    width: 100% !important;
  }

  .columns.image-text-row > .column:first-child,
  .columns.image-text-row > .column:last-child,
  .columns.vcenter > .column:first-child,
  .columns.vcenter > .column:last-child {
    padding-left: 0;
    padding-right: 0;
  }

  .columns.image-text-row img,
  .columns.vcenter img,
  .centered-video img,
  .pseudoline-layer-canvas {
    width: 100%;
  }

  .centered-video,
  .quarto-video,
  .quarto-video .video-js,
  .quarto-video video,
  .quarto-video .vjs-tech {
    width: 100% !important;
    max-width: 100% !important;
  }

  .quarto-video .video-js {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .columns.image-text-row iframe {
    display: block;
    width: min(100%, 300px) !important;
    height: auto !important;
    aspect-ratio: 1;
    margin: 0 auto;
  }

  .pseudoline-layer-canvas {
    margin: 0 auto 1rem;
  }

  .footer-section .columns.vcenter {
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-section img {
    max-width: 220px;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .hero,
  .page-section,
  .footer-section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.45rem;
  }
}
