html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Charter", Georgia, serif;
  background: rgb(244, 241, 236);
  color: rgb(152, 139, 114);
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

.quarto-title-block,
#title-block-header,
.quarto-title,
.quarto-title-meta,
#quarto-header,
.navbar {
  display: none !important;
}

.hero-editorial {
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2rem;
  text-align: center;
}

.session-links {
  position: fixed;
  z-index: 20;
  top: clamp(16px, 2.5vw, 32px);
  left: clamp(18px, 3vw, 44px);
  right: clamp(18px, 3vw, 44px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.back-link,
.bibliography-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid rgb(128, 184, 219);
  border-radius: 999px;
  background: rgba(244, 241, 236, 0.9);
  box-shadow: 0 1px 4px rgba(92, 147, 170, 0.12);
  color: rgb(92, 147, 170);
  font-family: "Charter", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.back-link:hover,
.back-link:focus-visible,
.bibliography-link:hover,
.bibliography-link:focus-visible {
  background: rgb(128, 184, 219);
  color: #f4f1ec;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(92, 147, 170, 0.18);
}

.intro-gif {
  display: flex;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.intro-gif img {
  width: 110px;
}

.hero-intro .quote {
  margin: 0;
  color: #5C93AA;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.statement {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.objetivo {
  margin: 1.5rem auto 1.2rem;
  padding-top: 0;
}

.statement h2 {
  margin: 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(152, 139, 114, 0.24);
  color: rgb(152, 139, 114);
  font-size: 1.3rem;
  line-height: 1.25;
}

.objetivo p {
  margin: 0.9rem 0 0;
  font-size: 0.97rem;
  line-height: 1.7;
  text-align: justify;
}

.section-heading {
  margin-top: 1.8rem;
}

.color-window-strip {
  width: 100vw;
  margin: 2.1rem calc(50% - 50vw) 5.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(360px, 1fr));
  gap: 15px;
  overflow: hidden;
}

.color-window-card {
  position: relative;
  min-height: 360px;
  aspect-ratio: 1.29;
  overflow: hidden;
  isolation: isolate;
}

.color-window-card img,
.window-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.color-window-card img {
  object-fit: cover;
  z-index: 0;
}

.color-window-card--yellow {
  color: rgb(249, 225, 126);
}

.color-window-card--yellow img {
  object-position: center 52%;
  filter: saturate(0.82) sepia(0.22);
}

.color-window-card--blue {
  color: rgb(86, 164, 198);
}

.color-window-card--blue img {
  object-position: 44% 50%;
  filter: saturate(1.2) contrast(1.04);
}

.color-window-card--coral {
  color: rgb(255, 116, 92);
}

.color-window-card--coral img {
  object-position: center 10%;
  filter: saturate(1.12) contrast(1.02);
}

.window-overlay {
  z-index: 1;
}

.window-example-button {
  position: absolute;
  z-index: 2;
  right: 5.6%;
  bottom: 9%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  min-height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.35rem 1.6rem;
  background: transparent;
  color: white;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.window-example-button--muted {
  left: 37.5%;
  right: auto;
  bottom: 42.5%;
  border-color: rgba(152, 139, 114, 0.72);
  color: rgb(152, 139, 114);
}

.color-window-card--coral .window-example-button {
  right: 37.5%;
  bottom: 54%;
}

.window-example-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.window-example-button--muted:hover {
  background: rgba(152, 139, 114, 0.08);
}

.editorial-row {
  width: min(100% - 2rem, 820px);
  margin: 2.1rem auto 3.4rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 390px);
  gap: clamp(2.6rem, 7vw, 5.2rem);
  align-items: start;
  justify-content: center;
}

.editorial-row.is-reversed {
  grid-template-columns: minmax(0, 390px) 280px;
}

.editorial-band {
  width: 100vw;
  margin: 3.2rem calc(50% - 50vw);
  padding: 2.6rem 0 3.2rem;
  background: rgb(234, 229, 222);
}

.work-figure {
  margin: 0;
  text-align: center;
}

.work-figure img {
  display: block;
  width: min(100%, 260px);
  margin: 0 auto;
}

.work-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.concept-card h3 {
  margin: 2.3rem 0 1.15rem;
  color: #6f9bae;
  font-size: 1.08rem;
  font-weight: 400;
  text-align: center;
}

.concept-card p {
  margin: 0 0 1rem;
  font-size: 0.94rem;
  line-height: 1.32;
  text-align: justify;
}

.example-link {
  position: relative;
  display: inline-flex;
  margin-top: 0.2rem;
  padding: 1.05rem 0 0;
  border: 0;
  background: transparent;
  color: rgb(152, 139, 114);
  font: inherit;
  cursor: pointer;
}

.example-link::before {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: 0;
  width: 150px;
  height: 1px;
  background: currentColor;
}

.example-link::after {
  content: "";
  position: absolute;
  top: 0.06rem;
  left: 138px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 17px solid currentColor;
}

.example-link:hover {
  opacity: 0.72;
}

.closing-quote {
  width: 100vw;
  margin: 5.5rem calc(50% - 50vw) 0;
  padding: 4rem 1rem 0;
  background: white;
  text-align: center;
}

.closing-quote p {
  width: min(100% - 2rem, 980px);
  margin: 0 auto 1.4rem;
  font-size: 1.25rem;
  line-height: 1.55;
}

.closing-quote strong {
  display: block;
  margin-bottom: 1.8rem;
  color: #6f9bae;
  font-size: 1.45rem;
  font-weight: 400;
}

.closing-quote img {
  display: block;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.example-modal {
  width: min(950px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: min(760px, calc(100dvh - 54px));
  max-height: calc(100dvh - 54px);
  margin: auto;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.example-modal::backdrop {
  background: rgba(0, 0, 0, 0.34);
}

.example-shell {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  padding: 3.2rem 1.75rem 1.15rem;
  border-radius: 14px;
  background: rgb(244, 241, 236);
  color: rgb(152, 139, 114);
}

.example-shell h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.modal-close {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  border: 0;
  background: transparent;
  color: black;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.example-viewer {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  height: 100%;
  min-height: 0;
  gap: 0.75rem;
}

.example-arrow {
  border: 0;
  background: transparent;
  color: #5c93aa;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.example-slide {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  height: 100%;
  margin: 0;
  text-align: center;
}

.example-slide img {
  display: block;
  width: min(100%, 720px);
  height: min(68vh, 560px);
  margin: 0 auto;
  object-fit: contain;
}

.example-slide figcaption {
  min-height: 1.4em;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.example-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 0.55rem;
}

.example-dot {
  width: 9px;
  height: 9px;
  border: 1px solid rgb(128, 184, 219);
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.example-dot.is-active {
  background: rgb(128, 184, 219);
}

@media (max-width: 760px) {
  .hero-editorial {
    padding-top: 4rem;
  }

  .session-links {
    top: 12px;
    left: 10px;
    right: 10px;
    gap: 0.75rem;
  }

  .back-link,
  .bibliography-link {
    flex: 1 1 0;
    width: auto;
    max-width: 170px;
    min-height: 38px;
    padding: 0 0.55rem;
    font-size: 0.76rem;
  }

  .statement h2 {
    font-size: 1.25rem;
  }

  .objetivo p,
  .concept-card p {
    text-align: left;
  }

  .color-window-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(100% - 2rem, 520px);
    margin-right: auto;
    margin-left: auto;
  }

  .color-window-card {
    min-height: 280px;
  }

  .editorial-row,
  .editorial-row.is-reversed {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    margin: 3.2rem auto;
  }

  .editorial-band {
    padding: 3rem 0;
  }

  .work-figure img {
    width: min(100%, 260px);
  }

  .example-modal {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    height: min(700px, calc(100dvh - 28px));
    max-height: calc(100dvh - 28px);
  }

  .example-shell {
    padding: 3rem 0.75rem 1rem;
    border-radius: 12px;
  }

  .example-viewer {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 0.2rem;
  }

  .example-slide img {
    width: 100%;
    height: min(62vh, 470px);
  }
}
