/* Foundation */

@font-face {
  font-family: "Domyouji";
  src: url("../fonts/domyouji/Domyouji%20W00%20Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("../fonts/google-sans-flex/GoogleSansFlex_36pt-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("../fonts/google-sans-flex/GoogleSansFlex_36pt-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("../fonts/google-sans-flex/GoogleSansFlex_36pt-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("../fonts/google-sans-flex/GoogleSansFlex_36pt-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --px-navy: #020020;
  --px-cyan: #2cd7ff;
  --px-pink: #ff00c3;
  --px-era-blue: #00a7e6;

  --px-grad-primary-45: linear-gradient(45deg, #2cd7ff 25%, #ff00c3 72%);
  --px-grad-primary-90: linear-gradient(90deg, #2cd7ff 25%, #ff00c3 72%);
  --px-grad-dark-45: linear-gradient(45deg, #00a7e6 0%, #020020 30%, #020020 80%, #ff00c3 100%);

  --px-bg: var(--px-navy);
  --px-surface-0: rgba(8, 10, 42, 0.88);
  --px-surface-1: rgba(14, 17, 56, 0.92);
  --px-surface-2: rgba(24, 28, 74, 0.96);
  --px-panel-neutral: rgba(10, 12, 46, 0.96);
  --px-panel-muted: rgba(4, 6, 28, 0.82);
  --px-section-shell: rgba(5, 7, 31, 0.74);
  --px-section-shell-border: rgba(255, 255, 255, 0.08);
  --px-border: rgba(255, 255, 255, 0.12);
  --px-border-strong: rgba(44, 215, 255, 0.35);

  --px-text: rgba(255, 255, 255, 0.92);
  --px-text-muted: rgba(255, 255, 255, 0.68);

  --px-shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.28);
  --px-shadow-hard: 0 28px 60px rgba(0, 0, 0, 0.45);
  --px-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.18);
  --px-focus: 0 0 0 3px rgba(44, 215, 255, 0.35);

  --px-r-xs: 10px;
  --px-r-sm: 14px;
  --px-r-md: 20px;
  --px-r-lg: 28px;

  --px-font-ui: "Google Sans Flex", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --px-font-display: "Domyouji", "Google Sans Flex", system-ui, sans-serif;

  --px-content-max: 1240px;
  --px-content-narrow-max: 780px;
  --px-container-gutter: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--px-font-ui);
  color: var(--px-text);
  background: var(--px-bg);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2 {
  font-family: var(--px-font-display);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

h3,
h4,
h5,
h6 {
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

*:focus-visible {
  outline: none;
  box-shadow: var(--px-focus);
  border-radius: var(--px-r-xs);
}

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.px-skip-link {
  position: fixed;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 999;
  transform: translateY(-200%);
  padding: 0.55rem 0.85rem;
  border-radius: var(--px-r-sm);
  border: 1px solid var(--px-border);
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
}

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

.px-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.px-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}

.px-bg__orb--cyan {
  width: min(52vw, 640px);
  aspect-ratio: 1;
  background: var(--px-cyan);
  top: -20%;
  left: -8%;
}

.px-bg__orb--pink {
  width: min(48vw, 560px);
  aspect-ratio: 1;
  background: var(--px-pink);
  right: -8%;
  top: 18%;
}

.px-bg__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  opacity: 0.35;
}

.px-container,
.px-container--narrow {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--px-container-gutter);
}

.px-container {
  max-width: calc(var(--px-content-max) + (var(--px-container-gutter) * 2));
}

.px-container--narrow {
  max-width: calc(var(--px-content-narrow-max) + (var(--px-container-gutter) * 2));
}

