:root {
  --colorBg: #fff;
  --colorInk: #b5259a;
  --colorSoft: #fbeaf7;
  --colorField: #fbeaf7;
  --colorButton: #b5259a;
  --colorButtonText: #fff;
  --logoFilter: none;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.8s;
  --durFast: 0.3s;
  --loop: 2.4s;
  --step: 100ms;
  --mutedOpacity: 0.9;
  --safeTop: env(safe-area-inset-top, 0px);
  --safeBottom: env(safe-area-inset-bottom, 0px);
  --headerHeight: 72px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --colorBg: #1d0519;
    --colorInk: #f4b3e8;
    --colorSoft: #33102c;
    --colorField: #431639;
    --colorButton: #f4b3e8;
    --colorButtonText: #1d0519;
    --logoFilter: brightness(0) invert(1);
    color-scheme: dark;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  padding-top: var(--safeTop);
  padding-bottom: var(--safeBottom);
  scroll-padding-top: calc(var(--headerHeight) + var(--safeTop));
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--safeTop) - var(--safeBottom));
  margin: 0;
  overflow-x: hidden;
  background: var(--colorBg);
  color: var(--colorInk);
  font-family:
    Poppins,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  z-index: 29;
  height: var(--safeTop);
  background: var(--colorBg);
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
}
:focus-visible {
  outline: 3px solid var(--colorButton);
  outline-offset: 3px;
  border-radius: 4px;
}
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.reveal:not(.isVisible) {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}
.reveal.isVisible {
  animation: revealIn var(--dur) var(--ease) var(--delay, 0ms) backwards;
}
@keyframes revealIn {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
}
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.siteHeader {
  position: sticky;
  top: var(--safeTop);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 5vw;
  background: var(--colorBg);
  box-shadow: 0 1px 0 var(--colorSoft);
}
.logo img {
  display: block;
  width: auto;
  height: 2.125rem;
  filter: var(--logoFilter);
}
.mainNav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.navLink {
  padding: 0.2rem 0;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 2px;
  font-size: 1.05rem;
  transition: background-size var(--dur) var(--ease);
}
.navLink:hover {
  background-size: 100% 2px;
}
.navLink[aria-current='page'] {
  background-size: 100% 2px;
  font-weight: 700;
}
.menuToggle {
  display: none;
  margin-left: auto;
  padding: 0.3rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.languageMenu {
  position: relative;
}
.languageToggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.languageList {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 110px;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--colorBg);
  border: 2px solid var(--colorInk);
  border-radius: 10px;
}
.languageMenu.isOpen .languageList {
  display: block;
  animation: dropIn var(--durFast) var(--ease);
}
.languageList button {
  width: 100%;
  padding: 0.4rem 0.7rem;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.languageList button:hover {
  background: var(--colorSoft);
}
main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: clip;
}
.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 5vw 4rem;
}
.pageCentered {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 1000px) {
  .menuToggle {
    display: block;
  }
  .mainNav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    margin: 0;
    padding: 1.5rem 5vw 2rem;
    background: var(--colorBg);
    border-bottom: 2px solid var(--colorSoft);
  }
  .mainNav.isOpen {
    display: flex;
    animation: dropIn var(--durFast) var(--ease);
  }
  .page {
    padding: 2.2rem 6vw 3rem;
  }
  .pageCentered {
    justify-content: flex-start;
  }
}
.languageList button[aria-current='true'] {
  font-weight: 700;
}
.languageList button[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
}
.languageList button[aria-disabled='true']:hover {
  background: none;
}
.toast {
  position: fixed;
  bottom: calc(var(--safeBottom) + 1.4rem);
  left: 50%;
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin: 0;
  padding: 0.8rem 1.3rem;
  background: var(--colorInk);
  color: var(--colorBg);
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transform: translateX(-50%);
  animation: toastLife calc(var(--loop) * 1.5) var(--ease) forwards;
}
@keyframes toastLife {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  12%,
  80% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, 0);
  }
}
@media (min-width: 1600px) {
  html {
    font-size: 112.5%;
  }
  .page {
    max-width: 1320px;
  }
}
@media (min-width: 2200px) {
  html {
    font-size: 125%;
  }
  .page {
    max-width: 1500px;
  }
}
@media (pointer: coarse) {
  .navLink {
    padding: 0.6rem 0;
  }
  .backLink {
    min-height: 44px;
    margin-top: -0.6rem;
    margin-bottom: 0.8rem;
  }
  .menuToggle {
    padding: 0.6rem;
  }
  .languageToggle {
    padding: 0.5rem;
  }
  .languageList button {
    padding: 0.7rem;
  }
}
@media (max-width: 1180px) {
  .mainNav {
    gap: 1.3rem;
  }
  .navLink {
    font-size: 1rem;
  }
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.logo img {
  transition: transform var(--durFast) var(--ease);
}
.logo:hover img {
  transform: scale(1.05);
}
@media (hover: none) {
  .logo:hover img {
    transform: none;
  }
}
.skipLink {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 50;
  padding: 0.7rem 1.1rem;
  background: var(--colorInk);
  color: var(--colorBg);
  border-radius: 10px;
  font-weight: 700;
  transition: top var(--durFast) var(--ease);
}
.skipLink:focus {
  top: calc(var(--safeTop) + 0.8rem);
}
.backLink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: var(--mutedOpacity);
  transition: opacity var(--durFast) var(--ease);
}
.backLink::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--durFast) var(--ease);
}
.backLink:hover {
  opacity: 1;
}
.backLink:hover::before {
  transform: translateX(-0.25rem) rotate(45deg);
}

.siteFooter {
  flex: none;
  padding: 1.1rem 6vw calc(1.1rem + var(--safeBottom));
  font-size: 0.85rem;
  text-align: center;
}
.siteFooter p {
  margin: 0;
  opacity: var(--mutedOpacity);
}
@media (max-width: 640px) {
  .siteFooter {
    padding-top: 0.9rem;
    font-size: 0.75rem;
  }
}
