:root {
  color-scheme: dark;
  --bg-ink: #060710;
  --bg-deep: #100b25;
  --bg-void: #0d1025;
  --text: #ecf2ff;
  --muted: #adaed7;
  --accent: #8af9ff;
  --accent-2: #cf9cff;
  --halo: rgba(138, 249, 255, 0.18);
  --surface: rgba(14, 12, 28, 0.76);
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: radial-gradient(circle at 22% 12%, rgba(138, 249, 255, 0.16), transparent 16%),
    radial-gradient(circle at 80% 20%, rgba(207, 156, 255, 0.14), transparent 16%),
    linear-gradient(180deg, #060710 0%, #0d0f22 45%, #121830 100%);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  background: transparent;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.08), transparent 7%),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.06), transparent 8%),
    radial-gradient(circle at 28% 72%, rgba(206, 156, 255, 0.05), transparent 8%);
  background-size: 12% 12%, 10% 10%, 14% 14%;
  filter: blur(0.35px);
  mix-blend-mode: screen;
}

body::after {
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0%, transparent 18%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.015) 0%, transparent 24%);
  opacity: 0.65;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 2.5rem;
}

@media (max-width: 960px) {
  .page-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem 1.3rem 5rem;
  }
}

.page-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2.25rem;
  background: radial-gradient(circle at 20% 10%, rgba(138, 249, 255, 0.12), transparent 22%),
    radial-gradient(circle at 85% 20%, rgba(207, 156, 255, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(8, 6, 18, 0.85), rgba(14, 10, 34, 0.96));
  box-shadow: inset 0 0 120px rgba(30, 18, 85, 0.24), 0 45px 120px rgba(0, 0, 0, 0.33);
  pointer-events: none;
}

.page-wrapper > * {
  position: relative;
}

.intro,
.summary,
.preamble,
.explanation,
.participation,
.benefits,
.requirements,
.design-selection,
.design-archives,
.zen-resources {
  border-radius: 2rem;
  border: 1px solid var(--border);
  background: linear-gradient(152deg, rgba(11, 9, 28, 0.92), rgba(19, 14, 50, 0.86));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.intro {
  padding: 3rem 2.3rem;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  background-image: radial-gradient(circle at 15% 15%, rgba(138, 249, 255, 0.14), transparent 18%),
    radial-gradient(circle at 85% 25%, rgba(207, 156, 255, 0.12), transparent 19%);
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.intro::before {
  top: -6rem;
  left: -5rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(138, 249, 255, 0.22), transparent 48%);
  filter: blur(40px);
}

.intro::after {
  bottom: -5rem;
  right: -6rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(207, 156, 255, 0.16), transparent 46%);
  filter: blur(36px);
}

header {
  margin-bottom: 2rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-shadow: 0 0 28px rgba(138, 249, 255, 0.22), 0 0 74px rgba(93, 117, 255, 0.08);
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: #f7fbff;
}

h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.1rem, 2vw, 1.9rem);
  letter-spacing: 0.14em;
  color: #ccd9ff;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
  color: #c3d1ff;
}

p {
  margin: 1rem 0 0;
  color: rgba(236, 242, 255, 0.88);
  font-size: 1rem;
  max-width: 72ch;
}

abbr {
  color: #b2c5ff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(178, 197, 255, 0.58);
}

a {
  color: #96d9ff;
  text-decoration: none;
  position: relative;
  transition: color 0.24s ease;
}

a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(138, 249, 255, 0.95), rgba(207, 156, 255, 0.78));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

a:hover,
a:focus {
  color: #fdfcff;
}

a:hover::after,
a:focus::after {
  transform: scaleX(1);
}

.summary,
.preamble,
.explanation,
.participation,
.benefits,
.requirements,
.design-selection,
.design-archives,
.zen-resources {
  padding: 2rem 2.1rem 2.4rem;
}

.summary::before,
.preamble::before,
.explanation::before,
.participation::before,
.benefits::before,
.requirements::before,
.design-selection::before,
.design-archives::before,
.zen-resources::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(138, 249, 255, 0.08), transparent 28%),
    radial-gradient(circle at 79% 17%, rgba(207, 156, 255, 0.06), transparent 22%);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

.preamble {
  grid-column: 1 / -1;
}

.main.supporting {
  display: grid;
  gap: 1.8rem;
}

aside.sidebar {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.wrapper {
  display: grid;
  gap: 1.7rem;
}

.design-selection h3,
.design-archives h3,
.zen-resources h3 {
  margin: 0 0 1rem;
}

nav {
  position: relative;
  z-index: 1;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

nav li {
  position: relative;
  padding: 1rem 1.2rem 1rem 1.3rem;
  border-radius: 1.5rem;
  background: rgba(11, 9, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 12px 28px rgba(0, 0, 0, 0.15);
}

nav li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.4rem;
  height: 0.4rem;
  background: radial-gradient(circle, #8af9ff, #cf9cff);
  box-shadow: 0 0 18px rgba(138, 249, 255, 0.45);
  border-radius: 50%;
}

.design-name,
.designer-name,
.zen-resources a,
.view-css a,
.css-resources a,
.zen-faq a,
.zen-submit a,
.zen-translations a {
  color: rgba(226, 238, 255, 0.92);
  transition: transform 0.27s ease, color 0.22s ease;
}

.design-name:hover,
.designer-name:hover,
.zen-resources a:hover,
.view-css a:hover,
.css-resources a:hover,
.zen-faq a:hover,
.zen-submit a:hover,
.zen-translations a:hover {
  color: #fff;
  transform: translateX(6px);
}

.design-archives .indicator {
  display: inline-block;
  transform: translateX(0.08em);
  transition: transform 0.22s ease;
}

.design-archives a:hover .indicator {
  transform: translateX(0.3em);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 2rem 0 0;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(241, 248, 255, 0.7);
  font-size: 0.92rem;
}

footer a {
  color: rgba(198, 216, 255, 0.78);
}

footer a:hover {
  color: #f5fbff;
}

.extra1,
.extra2,
.extra3,
.extra4,
.extra5,
.extra6 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
  mix-blend-mode: screen;
  opacity: 0.88;
}

.extra1 {
  top: 8%;
  left: 12%;
  width: 18vw;
  height: 18vw;
  background: radial-gradient(circle, rgba(138, 249, 255, 0.24), transparent 52%);
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.extra2 {
  top: 24%;
  right: 10%;
  width: 12vw;
  height: 12vw;
  background: radial-gradient(circle, rgba(207, 156, 255, 0.18), transparent 46%);
  animation: floatOrb 14s ease-in-out infinite alternate-reverse;
}

.extra3 {
  bottom: 22%;
  left: 8%;
  width: 20vw;
  height: 20vw;
  background: radial-gradient(circle, rgba(163, 210, 255, 0.16), transparent 50%);
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.extra4 {
  bottom: 9%;
  right: 16%;
  width: 14vw;
  height: 14vw;
  background: radial-gradient(circle, rgba(116, 128, 255, 0.14), transparent 46%);
  animation: floatOrb 11s ease-in-out infinite alternate-reverse;
}

.extra5 {
  top: 50%;
  left: 40%;
  width: 16vw;
  height: 16vw;
  background: linear-gradient(145deg, rgba(138, 249, 255, 0.18), rgba(207, 156, 255, 0.12));
  animation: drift 20s linear infinite;
}

.extra6 {
  top: 42%;
  right: 35%;
  width: 10vw;
  height: 10vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 42%);
  animation: drift 18s linear infinite reverse;
}

@keyframes floatOrb {
  to {
    transform: translateY(-3rem) translateX(2rem) scale(1.04);
  }
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-2rem, 2.5rem) scale(1.01);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes haloPulse {
  0%, 100% {
    box-shadow: 0 0 45px rgba(138, 249, 255, 0.18), 0 0 120px rgba(207, 156, 255, 0.08);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 72px rgba(138, 249, 255, 0.24), 0 0 160px rgba(207, 156, 255, 0.12);
    transform: scale(1.01);
  }
}

.intro {
  animation: haloPulse 14s ease-in-out infinite;
}

@supports (animation-timeline: none) {
  @scroll-timeline void-glow {
    source: auto;
    orientation: block;
  }

  .intro {
    animation-timeline: void-glow;
  }
}

@supports not (animation-timeline: none) {
  .intro {
    animation: haloPulse 14s ease-in-out infinite;
  }
}

header,
.summary,
.preamble,
.explanation,
.participation,
.benefits,
.requirements,
.design-selection,
.design-archives,
.zen-resources,
footer,
nav li {
  transform-style: preserve-3d;
}

nav li:hover {
  transform: translateY(-2px) translateX(1px);
}

@media (max-width: 680px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.5rem; }
  .page-wrapper { padding-top: 1.75rem; }
  aside.sidebar { position: static; top: auto; }
  .intro { padding: 2rem 1.5rem; }
}
