@font-face {
  font-family: Manrope;
  src: url("assets/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #190d29;
  --muted: #4f435a;
  --night: #100920;
  --purple: #351667;
  --orange: #ff781d;
  --orange-hover: #ff943f;
  --paper: #fbf8f6;
  --lavender: #f0e8fa;
  --rule: #c6b9d3;
  --gutter: clamp(1.25rem, 5.5vw, 5.5rem);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid #783aca;
  outline-offset: 4px;
}

.hero :focus-visible, .support :focus-visible { outline-color: #fff; }

.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  background: #fff;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(100% - 2 * var(--gutter), 86rem);
  margin-inline: auto;
}

.site-header { position: relative; z-index: 2; background: #fff; }

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  line-height: 1;
  letter-spacing: -.052em;
  white-space: nowrap;
  text-decoration: none;
}

.brand img { width: 2.7rem; height: 2.7rem; object-fit: contain; }
.site-nav { display: flex; align-items: center; justify-self: center; gap: clamp(1rem, 2.1vw, 2.75rem); }
.site-nav a { font-size: clamp(.9rem, 1.16vw, 1rem); font-weight: 750; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .footer-link:hover { color: #522492; text-decoration: underline; text-underline-offset: .25em; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: .65rem; }
.menu-toggle { display: none; }

.language-switch {
  display: flex;
  gap: .16rem;
  padding: .18rem;
  border: 1px solid #e6daee;
  border-radius: .65rem;
  background: #f8f3fc;
}

.language-switch button {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: .2rem .35rem;
  border: 0;
  border-radius: .43rem;
  background: transparent;
  color: var(--purple);
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button:hover { background: var(--lavender); }
.language-switch button[aria-pressed="true"] { background: var(--purple); color: #fff; }

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .6rem 1.48rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  background: var(--orange);
  color: var(--night);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.button:hover { background: var(--orange-hover); }
.header-cta { justify-self: end; min-height: 2.5rem; padding: .38rem 1.25rem; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.hero-inner {
  position: relative;
  display: flex;
  min-height: clamp(25rem, 29vw, 32rem);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 65%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 27%);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
  animation: helix-enter 950ms cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes helix-enter {
  from { opacity: .35; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(3.6rem, 5.5vw, 6rem);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -.065em;
}

.hero h1 em { display: block; color: var(--orange); font-style: normal; }

.hero p {
  max-width: 30rem;
  margin-block: 1rem 1.5rem;
  color: #eee9f3;
  font-size: clamp(1rem, 1.34vw, 1.2rem);
  line-height: 1.5;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.button-outline { border-color: #c7b9d5; background: #100920b8; color: #fff; }
.button-outline:hover { border-color: #fff; background: #291b3a; }

.section h2 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.06em;
}

.about { padding-block: clamp(2.4rem, 4.5vw, 4rem); background: var(--paper); }

.about-intro {
  display: grid;
  grid-template-columns: minmax(13rem, .8fr) 2fr;
  gap: clamp(1.5rem, 3.5vw, 3.1rem);
  align-items: start;
}

.about-intro p {
  max-width: 57rem;
  padding-left: clamp(1.5rem, 3.5vw, 3.1rem);
  border-left: 1px solid var(--rule);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.15rem, 3.5vw, 3.75rem);
  margin: clamp(1.75rem, 3.6vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

.facts li { display: grid; grid-template-columns: 3.25rem 1fr; align-items: start; gap: clamp(.8rem, 1.5vw, 1.35rem); }
.facts h3 { margin-bottom: .32rem; font-size: 1.12rem; line-height: 1.24; font-weight: 800; }
.facts p { color: var(--muted); line-height: 1.46; }
.fact-icon { width: 3.25rem; height: 3.25rem; stroke: var(--purple); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-accent { stroke: #cf5100; }

.families { padding-block: clamp(2.25rem, 4.5vw, 3.65rem); background: var(--lavender); }

.family-layout {
  display: grid;
  grid-template-columns: minmax(14rem, .94fr) 2fr;
  align-items: start;
  gap: clamp(1.5rem, 3.5vw, 3.1rem);
}

.family-layout > div > p { max-width: 23rem; margin-top: .8rem; color: var(--muted); }
.faq { border-left: 1px solid var(--rule); padding-left: clamp(1.5rem, 3.5vw, 3.1rem); }
.faq details + details { border-top: 1px solid var(--rule); }

.faq summary {
  display: flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem .32rem .55rem 0;
  font-size: 1.05rem;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #522492; }

.faq summary::after {
  width: .64rem;
  height: .64rem;
  flex: 0 0 auto;
  margin: -.22rem .15rem 0 0;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 180ms ease;
  content: "";
}

.faq details[open] summary::after { transform: translateY(.2rem) rotate(225deg); }
.faq-answer { max-width: 45rem; padding: 0 1rem 1.05rem 0; color: var(--muted); }
.faq-answer a { display: inline-block; margin-top: .55rem; color: var(--purple); font-weight: 750; text-underline-offset: .18em; }

.news { padding-block: clamp(2.4rem, 4.5vw, 4rem); background: var(--paper); }

.news-story {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3.5rem);
  margin-top: clamp(1.25rem, 2.6vw, 2.5rem);
  padding-top: clamp(1.25rem, 2.6vw, 2.5rem);
  border-top: 1px solid var(--rule);
}

.news-byline { margin-bottom: .6rem; color: var(--purple); font-size: .9rem; font-weight: 800; }

.news-copy h3 {
  max-width: 24ch;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.news-summary { max-width: 52ch; margin-top: .85rem; color: var(--muted); }
.news-links { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.2rem; margin-top: 1.2rem; }
.news-links .button { min-height: 2.75rem; padding-inline: 1rem; }
.news-channel { color: var(--purple); font-size: .92rem; font-weight: 750; text-underline-offset: .2em; }
.news-channel:hover { color: #6129a9; }
.news-photos, .news-photos-secondary { display: grid; align-content: start; gap: .55rem; }
.news-photos { grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); align-items: start; }
.news-photos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-photo { display: block; overflow: hidden; border-radius: .65rem; }
.news-photo img { width: 100%; height: auto; }

.support { padding-block: clamp(2rem, 4vw, 3.25rem); background: var(--purple); color: #fff; }

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) auto;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 3rem);
}

.support h2 { font-size: clamp(2rem, 3.45vw, 3.08rem); }
.support p { padding-left: clamp(1.1rem, 3vw, 3rem); border-left: 1px solid #9f85bf; color: #f3eafa; }
.support-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.support-actions .button { padding-inline: 1rem; }
.support-actions .button-outline { background: transparent; }
.support-actions .button-outline:hover { background: #ffffff1a; }
.social-icon { width: 1.4rem; height: 1.4rem; flex-shrink: 0; }

.site-footer { padding-block: 1.25rem; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.5rem; font-size: .9rem; }
.footer-brand { font-size: 1rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.footer-inner span { margin-right: auto; color: var(--muted); }
.footer-link { font-weight: 650; text-decoration: none; }

@media (max-width: 950px) {
  .facts li { grid-template-columns: 1fr; align-content: start; gap: .6rem; }
  .support-layout { grid-template-columns: 1fr auto; }
  .support h2 { grid-column: 1 / -1; }
  .support p { padding-left: 0; border-left: 0; }
}

@media (721px <= width <= 1050px) {
  .hero-art { width: 58%; mask-image: linear-gradient(to right, transparent, #000 40%); }
  .hero p { max-width: 50vw; }
}

@media (max-width: 1000px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; min-height: 4rem; }
  .brand img { width: 2.3rem; height: 2.3rem; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-cta { display: none; }
  .menu-toggle:not([hidden]) {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: .6rem;
    padding: .4rem .65rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 750;
    cursor: pointer;
  }
  .menu-toggle::after { width: .55rem; height: .55rem; margin-top: -.2rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); content: ""; }
  .menu-toggle[aria-expanded="true"]::after { margin-top: .25rem; transform: rotate(225deg); }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; align-items: stretch; flex-direction: column; gap: 0; padding-bottom: .6rem; }
  .site-nav a { padding: .55rem .2rem; border-top: 1px solid #ebe4ef; }
}

@media (max-width: 720px) {
  .hero-inner { min-height: auto; padding-block: 2.4rem clamp(10.5rem, 50vw, 19rem); }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4.5rem); }
  .hero-art { inset: auto 0 0; width: 100%; height: clamp(12.5rem, 56vw, 22rem); mask-image: linear-gradient(180deg, transparent, #000 35%); }
  .hero-art img { object-position: 50% 56%; }
  .hero p { max-width: 26rem; }
  .hero-actions { gap: .65rem; }
  .hero-actions .button { min-height: 2.9rem; padding-inline: .82rem; font-size: .92rem; }

  .about-intro, .family-layout { grid-template-columns: 1fr; gap: 1rem; }
  .about-intro h2 br { display: none; }
  .about-intro p, .faq { padding-left: 0; border-left: 0; }
  .facts { grid-template-columns: 1fr; gap: 1.2rem; }
  .facts li { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .fact-icon { width: 2.8rem; height: 2.8rem; }
  .family-layout > div > p { margin-top: .6rem; }
  .faq { border-top: 1px solid var(--rule); }
  .faq summary { min-height: 3rem; }
  .news-story { grid-template-columns: 1fr; }
  .support-layout { grid-template-columns: 1fr; }
  .footer-inner { gap: .5rem 1rem; }
  .footer-inner span { width: 100%; order: 1; }
}

@media (max-width: 480px) {
  .news-photos:not(.news-photos-grid) { grid-template-columns: 1fr; }
  .news-photos-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 370px) {
  .header-inner { width: calc(100% - 2rem); }
  .brand { gap: .35rem; font-size: 1rem; }
  .brand img { width: 2rem; height: 2rem; }
  .header-actions { gap: .35rem; }
  .language-switch button { min-width: 1.95rem; }
  .menu-toggle:not([hidden]) { gap: .4rem; padding-inline: .35rem; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; }
  .button, .faq summary::after { transition: none; }
}
