:root {
  color-scheme: dark;
  --page-background: #090a0f;
  --page-background-soft: #171323;
  --page-text: #f8f7fb;
  --page-muted: #b4b0bf;
  --accent-color: #7c5cff;
  --accent-contrast: #ffffff;
  --surface-color: #15161d;
  --surface-border: rgb(255 255 255 / 12%);
  --surface-shadow: rgb(0 0 0 / 30%);
  --corner-radius: 1.25rem;
  --page-font:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-family: var(--page-font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  min-height: 100%;
  background: var(--page-background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--page-text);
  background:
    radial-gradient(
      circle at 50% -10rem,
      color-mix(in srgb, var(--accent-color) 18%, transparent),
      transparent 34rem
    ),
    var(--page-background);
}

body.theme-light {
  color-scheme: light;
  --page-background: #f4f3f8;
  --page-background-soft: #ffffff;
  --page-text: #17151c;
  --page-muted: #65616d;
  --surface-color: #ffffff;
  --surface-border: rgb(20 18 26 / 10%);
  --surface-shadow: rgb(30 23 45 / 12%);
}

body.theme-soft-gradient {
  --page-background: #14111d;
  --page-background-soft: #241b32;
  background:
    radial-gradient(
      circle at 12% 8%,
      color-mix(in srgb, var(--accent-color) 36%, transparent),
      transparent 25rem
    ),
    radial-gradient(circle at 95% 70%, #3b2450 0, transparent 30rem),
    linear-gradient(145deg, var(--page-background-soft), var(--page-background));
  background-attachment: fixed;
}

body.font-modern {
  --page-font: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

body.font-serif {
  --page-font: Georgia, "Times New Roman", ui-serif, serif;
}

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

a {
  color: inherit;
}

a[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
}

[dir="auto"],
.user-content {
  unicode-bidi: plaintext;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0.65rem 1rem;
  color: #141119;
  font-size: 0.82rem;
  font-weight: 800;
  background: #ffd45c;
}

.landing-page {
  display: grid;
  gap: clamp(1rem, 3vw, 1.4rem);
  width: min(100% - 1.5rem, 44rem);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem) 0 4rem;
}

.hero,
.content-block,
.link-card,
.image-block {
  border: 1px solid var(--surface-border);
  border-radius: var(--corner-radius);
  background: var(--surface-color);
  box-shadow: 0 1rem 2.8rem var(--surface-shadow);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(16rem, 54vw, 25rem);
  align-items: end;
  overflow: hidden;
}

.hero--without-image {
  min-height: auto;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent-color) 22%, var(--surface-color)),
    var(--surface-color)
  );
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  z-index: -1;
  background: linear-gradient(
    to top,
    rgb(0 0 0 / 90%) 0,
    rgb(0 0 0 / 38%) 52%,
    rgb(0 0 0 / 8%) 78%
  );
}

.hero__content {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.25rem, 5vw, 2.2rem);
  color: #ffffff;
}

.hero--without-image .hero__content {
  color: var(--page-text);
}

.hero h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.2rem, 9vw, 4.2rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.05em;
  white-space: pre-line;
}

.hero__description {
  max-width: 40rem;
  margin: 0;
  color: rgb(255 255 255 / 84%);
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  line-height: 1.55;
  white-space: pre-line;
}

.hero--without-image .hero__description {
  color: var(--page-muted);
}

.primary-action,
.link-button {
  display: inline-flex;
  width: fit-content;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.68rem 1rem;
  color: var(--accent-contrast);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--accent-color) 72%, #fff);
  border-radius: 999px;
  background: var(--accent-color);
  box-shadow: 0 0.75rem 1.8rem
    color-mix(in srgb, var(--accent-color) 28%, transparent);
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.site-section {
  display: grid;
  gap: 0.85rem;
}

.site-section__header {
  display: grid;
  gap: 0.25rem;
  padding: 0 0.3rem;
}

.site-section__header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  white-space: pre-line;
}

.site-section__header p {
  margin: 0;
  color: var(--page-muted);
  line-height: 1.55;
  white-space: pre-line;
}

.section-blocks {
  display: grid;
  gap: 0.85rem;
}

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

.content-block {
  padding: clamp(1rem, 4vw, 1.4rem);
}

.content-block h3,
.link-card h3,
.image-block h3 {
  margin: 0;
  font-size: clamp(1.08rem, 4vw, 1.35rem);
  line-height: 1.25;
  white-space: pre-line;
}

.content-block__body,
.link-card__description,
.image-block__caption {
  margin: 0.55rem 0 0;
  color: var(--page-muted);
  line-height: 1.6;
  white-space: pre-line;
}

.link-card,
.image-block {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 10rem;
  align-content: end;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.link-card--without-image {
  min-height: 8rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent-color) 10%, var(--surface-color)),
    var(--surface-color)
  );
}

.link-card__image,
.image-block__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-card__overlay,
.image-block__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(0 0 0 / 92%), rgb(0 0 0 / 5%) 80%);
}

.link-card__content,
.image-block__content {
  display: grid;
  gap: 0.35rem;
  padding: clamp(1rem, 4vw, 1.35rem);
}

.link-card--with-image,
.image-block--with-image {
  min-height: clamp(12rem, 48vw, 21rem);
  color: #ffffff;
}

.link-card--with-image .link-card__description,
.image-block--with-image .image-block__caption {
  color: rgb(255 255 255 / 80%);
}

.link-card__cta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.5rem;
  max-width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 0.75rem;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 800;
}

.link-card__arrow {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  place-items: center;
  color: inherit;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  animation: external-link-nudge 700ms cubic-bezier(0.22, 1, 0.36, 1) 650ms 2;
  transition: transform 180ms ease;
}

.link-card:hover .link-card__arrow,
.link-card:focus-visible .link-card__arrow {
  animation: none;
  transform: translate(0.16rem, -0.16rem);
}

.link-button {
  width: 100%;
  min-height: 3.6rem;
  padding: 0.8rem 1.15rem;
  text-align: center;
  white-space: pre-line;
}

.image-block:not(a) {
  min-height: auto;
  align-content: initial;
}

.image-block:not(a) .image-block__image {
  position: static;
  z-index: auto;
  width: 100%;
  height: auto;
  max-height: 35rem;
  object-fit: cover;
}

.image-block:not(a) .image-block__content {
  color: var(--page-text);
}

.card-style-glass .hero,
.card-style-glass .content-block,
.card-style-glass .link-card,
.card-style-glass .image-block {
  background: color-mix(in srgb, var(--surface-color) 72%, transparent);
  backdrop-filter: blur(1rem);
}

.card-style-minimal .hero,
.card-style-minimal .content-block,
.card-style-minimal .link-card,
.card-style-minimal .image-block {
  border-color: transparent;
  box-shadow: none;
}

.primary-action:hover,
.link-button:hover,
.link-card:hover,
a.image-block:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.link-card:hover,
a.image-block:hover {
  border-color: color-mix(
    in srgb,
    var(--accent-color) 48%,
    var(--surface-border)
  );
  box-shadow: 0 1.2rem 3.2rem var(--surface-shadow);
}

.primary-action:active,
.link-button:active,
.link-card:active,
a.image-block:active {
  transform: scale(0.985);
}

.primary-action:focus-visible,
.link-button:focus-visible,
.link-card:focus-visible,
a.image-block:focus-visible {
  outline: 0.2rem solid var(--accent-color);
  outline-offset: 0.2rem;
}

.empty-page {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 2rem;
  color: var(--page-muted);
  text-align: center;
}

@keyframes block-enter {
  from {
    opacity: 0;
    transform: translateY(0.85rem) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes external-link-nudge {
  0%,
  100% {
    transform: translate(0, 0);
  }

  45% {
    transform: translate(0.2rem, -0.2rem);
  }
}

.landing-page--animated > *,
.landing-page--animated .section-blocks > * {
  opacity: 0;
  animation: block-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.landing-page--animated > :nth-child(1) {
  animation-delay: 50ms;
}

.landing-page--animated > :nth-child(2),
.landing-page--animated .section-blocks > :nth-child(1) {
  animation-delay: 130ms;
}

.landing-page--animated > :nth-child(3),
.landing-page--animated .section-blocks > :nth-child(2) {
  animation-delay: 210ms;
}

.landing-page--animated > :nth-child(n + 4),
.landing-page--animated .section-blocks > :nth-child(n + 3) {
  animation-delay: 290ms;
}

@media (max-width: 35rem) {
  .landing-page {
    width: min(100% - 1rem, 44rem);
  }

  .section-blocks--grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .content-block,
  .link-card,
  .image-block {
    --corner-radius: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .landing-page--animated > *,
  .landing-page--animated .section-blocks > * {
    opacity: 1;
  }
}
