@font-face {
  font-family: "Outfit";
  src: url("./fonts/outfit-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

html[data-locale="en"] .chapter .section-content,
html[data-locale="en"] .screen .screen-copy {
  font-family: "Outfit", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

html[data-locale="en"] .chapter .section-content {
  width: min(860px, 55vw);
  max-height: calc(100svh - 64px);
  padding: clamp(90px, 11.5svh, 136px) 0 24px clamp(40px, 4.4vw, 84px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}

html[data-locale="en"] .chapter .section-content h1,
html[data-locale="en"] .chapter .section-content h2 {
  max-width: 100%;
  margin: 0 0 clamp(20px, 2.7svh, 30px);
  font-size: clamp(32px, 4.8svh, 52px);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  text-wrap: balance;
}

.editorial-title-line { display: block; }

html[data-locale="en"] .chapter .section-content p {
  max-width: 66ch;
  margin: 0 0 clamp(12px, 1.7svh, 18px);
  font-size: clamp(16px, 2.12svh, 19px);
  font-weight: 350;
  line-height: 1.5;
  letter-spacing: .002em;
  text-wrap: pretty;
}

html[data-locale="en"] .chapter .section-content .editorial-lead {
  font-size: clamp(17px, 2.35svh, 21px);
  font-weight: 430;
  line-height: 1.45;
}

html[data-locale="en"] .chapter .section-content .editorial-closing {
  margin-top: clamp(16px, 2.4svh, 26px);
  padding-left: 16px;
  border-left: 2px solid var(--yellow);
  font-weight: 460;
}

html[data-locale="en"] .chapter .section-content .editorial-continuation {
  margin-top: -6px;
  padding-left: 18px;
}

html[data-locale="en"] .chapter .section-content p:last-child { margin-bottom: 0; }

html[data-locale="en"] #chapter-02.chapter .section-content { width: min(930px, 59vw); }
html[data-locale="en"] #chapter-02.chapter .section-content p { max-width: 64ch; }
html[data-locale="en"] #chapter-02 .editorial-title-line:first-child { font-size: .86em; }

html[data-locale="en"] #chapter-03.chapter .section-content { width: min(800px, 54vw); }
html[data-locale="en"] #chapter-03.chapter .section-content h2 {
  margin-bottom: clamp(24px, 3.5svh, 38px);
  font-size: clamp(36px, 5.8svh, 62px);
  font-weight: 500;
}
html[data-locale="en"] #chapter-03.chapter .section-content p { max-width: 55ch; }

html[data-locale="en"] #chapter-04.chapter .section-content {
  width: min(770px, 46vw);
  padding-top: clamp(100px, 15svh, 180px);
  text-shadow: none;
}
html[data-locale="en"] #chapter-04.chapter .section-content h2 {
  font-size: clamp(32px, 4.9svh, 54px);
  font-weight: 480;
  line-height: 1.06;
}
html[data-locale="en"] #chapter-04.chapter .section-content p {
  max-width: 47ch;
  font-size: clamp(16px, 2.12svh, 19px);
  color: #252525;
}

html[data-locale="en"] #chapter-05.chapter .section-content { width: min(850px, 55vw); }

@media (max-height: 760px) and (orientation: landscape) {
  html[data-locale="en"] .chapter .section-content {
    padding-top: 86px;
    padding-bottom: 18px;
  }
  html[data-locale="en"] .chapter .section-content h1,
  html[data-locale="en"] .chapter .section-content h2 { margin-bottom: 18px; }
  html[data-locale="en"] .chapter .section-content p { margin-bottom: 12px; line-height: 1.45; }
  html[data-locale="en"] .chapter .section-content .editorial-closing { margin-top: 16px; }
  html[data-locale="en"] #chapter-04.chapter .section-content { padding-top: 90px; }
}

@media (max-height: 650px) and (orientation: landscape) {
  html[data-locale="en"] .chapter .section-content {
    width: min(860px, 59vw);
    max-height: calc(100svh - 50px);
    padding-top: 80px;
    padding-bottom: 14px;
  }
  html[data-locale="en"] .chapter .section-content h1,
  html[data-locale="en"] .chapter .section-content h2 { font-size: 30px; margin-bottom: 14px; }
  html[data-locale="en"] .chapter .section-content p { font-size: 16px; line-height: 1.4; margin-bottom: 10px; }
  html[data-locale="en"] .chapter .section-content .editorial-lead { font-size: 17px; }
  html[data-locale="en"] #chapter-03.chapter .section-content h2 { font-size: 34px; }
  html[data-locale="en"] #chapter-04.chapter .section-content { width: min(770px, 46vw); padding-top: 80px; }
  html[data-locale="en"] #chapter-04.chapter .section-content h2 { font-size: 30px; }
}

html[data-locale="en"] .screen .screen-copy {
  top: calc(88px + var(--safe-top));
  bottom: calc(96px + var(--safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
html[data-locale="en"] .screen .screen-copy h1,
html[data-locale="en"] .screen .screen-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(26px, 7.2vw, 34px);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -.028em;
  overflow-wrap: normal;
  text-wrap: balance;
}
html[data-locale="en"] .screen .screen-copy p {
  margin: 0 0 14px;
  font-size: clamp(14px, 3.75vw, 16px);
  font-weight: 350;
  line-height: 1.5;
  letter-spacing: .002em;
  text-wrap: pretty;
}
html[data-locale="en"] .screen .screen-copy .editorial-lead { font-weight: 470; }
html[data-locale="en"] .screen .screen-copy .editorial-closing {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--yellow);
  font-weight: 470;
}
html[data-locale="en"] .screen .screen-copy .editorial-continuation { padding-left: 14px; }
html[data-locale="en"] .screen .screen-copy p:last-child { margin-bottom: 0; }
html[data-locale="en"] .screen-03 .screen-copy { bottom: calc(72px + var(--safe-bottom)); }
html[data-locale="en"] .screen-04 .screen-copy {
  top: clamp(270px, 38svh, 354px);
  bottom: calc(180px + var(--safe-bottom));
}
html[data-locale="en"] .screen-05 .screen-copy { bottom: calc(214px + var(--safe-bottom)); }
@media (orientation: landscape) and (max-height: 600px) {
  html[data-locale="en"] .screen .screen-copy {
    top: calc(74px + var(--safe-top));
    bottom: calc(16px + var(--safe-bottom));
  }
  html[data-locale="en"] .screen .screen-copy h1,
  html[data-locale="en"] .screen .screen-copy h2 { font-size: 28px; }
}
