@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/ibm-plex-sans-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-sans-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-sans-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #0f0f0f;
  --ink: #161616;
  --dark-gray: #525252;
  --light-gray: #f4f4f4;
  --red: #e37065;
  --light-red: #fff6f5;
  --white: #fdfdfd;
  --display: "IBM Plex Sans", Arial, sans-serif;
  --body: "Nunito Sans", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eeeeee;
  color: var(--black);
  font-family: var(--body);
  font-size: 24px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  font-family: var(--body);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

.site-shell {
  position: relative;
  max-width: 1512px;
  margin: 0 auto;
  overflow: clip;
  background: var(--white);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
}

h2 {
  font-size: 48px;
  line-height: 1.2;
}

h3 {
  font-size: 36px;
  line-height: 1.2;
}

.intro {
  position: relative;
  height: 983px;
  isolation: isolate;
}

.intro__paper {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/images/paper-background.png") center / cover no-repeat;
  opacity: 0.3;
}

.intro__wave {
  position: absolute;
  z-index: -1;
  top: 408px;
  left: -8px;
  width: 1856.5px;
  height: 235px;
  max-width: none;
}

.site-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 244px;
  padding: 52px 56px 0 58px;
}

.language-switch {
  position: absolute;
  top: 198px;
  right: 56px;
  display: flex;
  padding: 3px;
  border: 1px solid var(--red);
  border-radius: 12px;
  background: var(--white);
  z-index: 2;
}

.language-switch a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 38px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  background: var(--red);
  color: var(--white);
}

.language-switch a:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

@media (max-width: 1399px) {
  .language-switch { top: 142px; right: 40px; }
}

@media (max-width: 599px) {
  .language-switch { top: 24px; right: 18px; }
  .language-switch a { min-width: 38px; }
  .site-header .brand { max-width: calc(100% - 92px); }
}

.brand {
  width: 544px;
  height: 140px;
  text-decoration: none;
}

.brand__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header__info {
  width: 381px;
  color: var(--red);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.375;
  text-align: right;
  text-transform: uppercase;
}

.site-header__info address {
  display: flex;
  margin-top: 23px;
  flex-direction: column;
  font-style: normal;
  text-transform: lowercase;
}

.site-header__info a,
.site-footer__meta a {
  text-decoration: none;
}

.site-header__info a:hover,
.site-footer__meta a:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: 375px 768px;
  align-items: center;
  column-gap: 161px;
  height: 739px;
  padding: 36px 94px;
}

.hero__book {
  position: relative;
  width: 375px;
  height: 667px;
  overflow: hidden;
}

.hero__book img {
  position: absolute;
  top: -17.42%;
  left: -26.71%;
  width: 150.93%;
  height: 127.51%;
  max-width: none;
  object-fit: contain;
}

.hero__content {
  align-self: start;
  width: 768px;
  padding-top: 41px;
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.35;
}

@media (min-width: 1400px) {
  .eyebrow {
    font-size: 18px;
  }
}

.hero h1 {
  max-width: 768px;
  font-size: 72px;
  line-height: 1;
}

.hero__points {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-left: 36px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 16px 32px;
  border: 3px solid var(--red);
  border-radius: 15px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227, 112, 101, 0.18);
}

.button:focus-visible,
.faq-item button:focus-visible,
.back-to-top:focus-visible {
  outline: 4px solid rgba(15, 15, 15, 0.78);
  outline-offset: 4px;
}

.button--primary,
.button--compact {
  background: var(--red);
  color: #fafafa;
}

.button--primary:hover,
.button--compact:hover {
  background: #d66157;
}

.button--secondary {
  background: var(--white);
  color: var(--ink);
}

.button--secondary:hover {
  background: var(--light-red);
}

.section-pad {
  padding-right: 56px;
  padding-left: 56px;
}

.panel {
  padding: 40px;
  border-radius: 30px;
}

.panel--rose {
  background: var(--light-red);
}

.panel--gray {
  background: var(--light-gray);
}

.body-copy {
  display: grid;
  gap: 24px;
  margin-top: 20px;
  font-size: 24px;
  line-height: 1.5;
}

.language {
  display: grid;
  grid-template-columns: 988px 392px;
  gap: 20px;
  height: 764px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.language__main,
.language__audience {
  height: 684px;
}

.language__audience ul {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding-left: 36px;
  font-size: 24px;
  line-height: 1.5;
}

.desktop-spacer--36 {
  height: 36px;
}

.desktop-spacer--26 {
  height: 26px;
}

.topics {
  height: 302px;
  padding: 20px 56px;
}

.topics > h2,
.support > h2,
.faq > h2 {
  text-align: center;
}

.topics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.topic {
  padding: 10px;
}

.topic h3 {
  padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
  font-family: var(--body);
  font-size: 24px;
  line-height: 1.5;
}

.topic p {
  margin-top: 10px;
  color: var(--dark-gray);
  font-size: 24px;
  line-height: 1.5;
}

.translation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  height: 666px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.translation .panel {
  min-height: 576px;
}

.translation__fundraising {
  display: flex;
  flex-direction: column;
}

.translation__fundraising .body-copy {
  gap: 0;
}

.translation__fundraising ul {
  margin-top: 20px;
  padding-left: 36px;
}

.translation__note {
  margin-top: auto;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.support {
  height: 518px;
  padding: 24px 58px;
}

.support__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 58px;
  height: 388px;
  margin-top: 24px;
}

.support-card {
  display: flex;
  min-width: 0;
  padding: 20px;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 30px;
  background: var(--light-gray);
}

.support-card > img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.support-card > div {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.support-card h3 {
  font-size: 36px;
}

.support-card p {
  font-size: 24px;
  line-height: 1.5;
}

.button--compact {
  min-height: 56px;
  margin-top: auto;
  margin-left: auto;
  padding: 10px 23px;
  border-width: 0;
  font-weight: 400;
}

.faq {
  height: 477px;
  padding: 72px 94px 40px;
}

.faq__grid {
  display: grid;
  grid-template-columns: 625px 631px;
  column-gap: 68px;
  row-gap: 61px;
  margin-top: 59px;
}

.faq-item--wide {
  grid-column: 1 / -1;
  max-width: 869px;
}

.faq-item h3 {
  font-size: 36px;
}

.faq-item button {
  display: flex;
  width: 100%;
  padding: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-item__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
}

.faq-item__icon img {
  width: 24px;
  height: 24px;
  transition: transform 180ms ease;
}

.faq-item button[aria-expanded="true"] .faq-item__icon img {
  transform: rotate(90deg);
}

.faq-item__answer {
  padding: 14px 62px 0 0;
  color: var(--dark-gray);
  font-size: 18px;
  line-height: 1.45;
}

.faq:has(.faq-item button[aria-expanded="true"]) {
  height: auto;
  min-height: 477px;
  padding-bottom: 56px;
}

.community {
  display: flex;
  height: 534px;
  padding: 72px 56px;
  flex-direction: column;
}

.community .body-copy {
  gap: 20px;
  margin-top: 32px;
}

.community__button {
  width: 360px;
  margin: 46px auto 0;
  padding-right: 10px;
  padding-left: 10px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 241px;
  padding: 52px 57px 50px 58px;
  background: var(--black);
  color: var(--white);
}

.brand--footer {
  color: var(--white);
}

.site-footer__meta {
  display: grid;
  width: 808px;
  grid-template-columns: 177px 116px 310px;
  align-items: end;
  justify-content: end;
  column-gap: 80px;
  font-size: 16px;
  line-height: 1.5;
}

.site-footer__meta address {
  display: flex;
  flex-direction: column;
  font-style: normal;
  line-height: 1.375;
  text-align: right;
}

.site-footer__org {
  line-height: 1.375;
  text-align: right;
  text-transform: uppercase;
}

.back-to-top {
  position: fixed;
  z-index: 5;
  right: max(19px, calc((100vw - 1512px) / 2 + 19px));
  bottom: 24px;
  display: grid;
  width: 78px;
  height: 78px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top img {
  width: 100%;
  height: 100%;
  transform: rotate(180deg);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

@media (max-width: 1399px) {
  body {
    font-size: 20px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 30px;
  }

  .intro,
  .site-header,
  .hero,
  .language,
  .language__main,
  .language__audience,
  .topics,
  .translation,
  .support,
  .support__grid,
  .faq,
  .community,
  .site-footer {
    height: auto;
  }

  .desktop-spacer {
    display: none;
  }

  .site-header {
    padding: 34px 40px 20px;
  }

  .brand {
    width: 390px;
    height: 100px;
  }

  .site-header__info {
    width: 310px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.3fr);
    column-gap: 56px;
    padding: 30px 56px 70px;
  }

  .hero__book {
    width: min(100%, 360px);
    height: 590px;
    justify-self: center;
  }

  .hero__content {
    width: auto;
    padding-top: 30px;
  }

  .hero h1 {
    font-size: clamp(46px, 5vw, 64px);
  }

  .hero__points,
  .body-copy,
  .language__audience ul,
  .topic h3,
  .topic p,
  .translation__note,
  .support-card p,
  .button {
    font-size: 20px;
  }

  .button {
    min-height: 58px;
    padding: 12px 22px;
  }

  .section-pad {
    padding-right: 40px;
    padding-left: 40px;
  }

  .language {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .topics {
    padding: 60px 40px;
  }

  .topics__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 34px;
  }

  .translation {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .translation .panel {
    min-height: 0;
  }

  .support {
    padding: 60px 40px;
  }

  .support__grid {
    gap: 24px;
  }

  .support-card h3 {
    font-size: 30px;
  }

  .support-card {
    min-height: 350px;
  }

  .button--compact {
    min-height: 48px;
    padding: 8px 18px;
  }

  .faq {
    padding: 70px 48px;
  }

  .faq__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 46px;
  }

  .faq-item h3 {
    font-size: 30px;
  }

  .community {
    padding: 70px 40px;
  }

  .site-footer {
    padding: 44px 40px;
    gap: 44px;
  }

  .site-footer__meta {
    width: auto;
    flex: 1;
    grid-template-columns: 150px 104px minmax(230px, 280px);
    column-gap: 32px;
    font-size: 13px;
  }
}

@media (max-width: 899px) {
  .site-header__info p {
    display: none;
  }

  .site-header__info {
    width: auto;
  }

  .site-header__info address {
    margin-top: 18px;
  }

  .hero {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 28px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .hero__book {
    height: 470px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero__points,
  .body-copy,
  .language__audience ul,
  .topic h3,
  .topic p,
  .translation__note,
  .support-card p,
  .button {
    font-size: 18px;
  }

  .hero__actions {
    flex-wrap: wrap;
  }

  .language,
  .translation {
    grid-template-columns: 1fr;
  }

  .support__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-card {
    min-height: 300px;
  }

  .support-card:last-child {
    grid-column: 1 / -1;
  }

  .faq__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .faq-item--wide {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__meta {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 599px) {
  body {
    background: var(--white);
    font-size: 16px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 25px;
  }

  .intro__paper {
    background-image: url("assets/images/paper-background.png");
    background-position: center top;
  }

  .intro__wave {
    top: 230px;
    left: -200px;
    width: 800px;
    height: auto;
  }

  .site-header {
    padding: 18px 18px 10px;
  }

  .brand {
    width: 225px;
    height: 58px;
  }

  .site-header__info {
    display: none;
  }

  .hero {
    display: flex;
    padding: 18px 20px 54px;
    flex-direction: column;
  }

  .hero__book {
    width: 230px;
    height: 385px;
  }

  .hero__content {
    width: 100%;
    padding-top: 0;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  .hero__points {
    gap: 8px;
    margin-top: 20px;
    padding-left: 24px;
    font-size: 17px;
    line-height: 1.45;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    min-height: 54px;
    padding: 11px 18px;
    font-size: 18px;
  }

  .section-pad,
  .topics,
  .support,
  .faq,
  .community {
    padding-right: 16px;
    padding-left: 16px;
  }

  .language {
    gap: 14px;
    padding-top: 28px;
    padding-bottom: 44px;
  }

  .panel {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .body-copy {
    gap: 18px;
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.5;
  }

  .language__audience ul {
    gap: 10px;
    margin-top: 16px;
    padding-left: 24px;
    font-size: 17px;
  }

  .topics {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .topics__grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .topic {
    padding: 10px 4px 20px;
  }

  .topic h3 {
    font-size: 18px;
  }

  .topic p {
    font-size: 17px;
  }

  .translation {
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .translation__fundraising ul {
    padding-left: 24px;
  }

  .translation__note {
    margin-top: 24px;
    font-size: 17px;
  }

  .support {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .support__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .support-card {
    min-height: 250px;
    padding: 20px;
    border-radius: 22px;
  }

  .support-card:last-child {
    grid-column: auto;
  }

  .support-card h3 {
    font-size: 27px;
  }

  .support-card p {
    font-size: 17px;
  }

  .button--compact {
    width: auto;
    min-height: 44px;
    padding: 7px 17px;
    font-size: 17px;
  }

  .faq {
    padding-top: 44px;
    padding-bottom: 52px;
  }

  .faq__grid {
    gap: 34px;
    margin-top: 34px;
  }

  .faq-item h3 {
    font-size: 23px;
  }

  .faq-item__icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .faq-item__answer {
    padding: 12px 0 0;
    font-size: 16px;
  }

  .community {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .community .body-copy {
    margin-top: 24px;
  }

  .community__button {
    width: 100%;
    margin-top: 32px;
  }

  .site-footer {
    padding: 36px 20px;
    gap: 32px;
  }

  .brand--footer {
    width: 276px;
    height: 71px;
  }

  .site-footer__meta {
    display: flex;
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
  }

  .site-footer__meta address,
  .site-footer__org {
    text-align: left;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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