/* /assets/site.css */
:root {
  --space-blue: #0A0E27;
  --ink: #1A1A2E;
  --orange: #FF6B35;
  --violet: #9B5DE5;
  --paper: #F5E9D8;
  --silver: #E0E1DD;
  --teal: #00F5A0;
  --yellow: #FEE440;
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .11);
  --line: rgba(224, 225, 221, .14);
  --header-bg: rgba(10, 14, 39, .88);
  --font-head: "Noto Sans SC Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans SC Regular", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "JetBrains Mono", Consolas, monospace;
  --section-space: clamp(4.5rem, 8vw, 8.5rem);
  --radius-sm: .75rem;
  --radius-lg: 1.25rem;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-body);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--space-blue);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 20%, rgba(155, 93, 229, .28), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(255, 107, 53, .18), transparent 26%),
    radial-gradient(circle at 70% 85%, rgba(0, 245, 160, .12), transparent 32%),
    #0A0E27;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background:
    radial-gradient(circle at 20% 15%, rgba(245, 233, 216, .9) 0, transparent 1px),
    radial-gradient(circle at 45% 35%, rgba(224, 225, 221, .7) 0, transparent 1px),
    radial-gradient(circle at 70% 30%, rgba(255, 107, 53, .85) 0, transparent 1px),
    radial-gradient(circle at 85% 50%, rgba(0, 245, 160, .8) 0, transparent 1px),
    radial-gradient(circle at 12% 70%, rgba(155, 93, 229, .8) 0, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(245, 233, 216, .7) 0, transparent 1px),
    radial-gradient(circle at 90% 75%, rgba(224, 225, 221, .6) 0, transparent 1px);
}

h1, h2, h3, h4 {
  margin-top: 0;
  color: #fff;
  font-family: var(--font-head);
  line-height: 1.2;
}

p {
  margin-top: 0;
}

a {
  color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.site-container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 300;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(calc(-100% - 1rem));
  transition: opacity .2s ease, transform .2s ease;
}

.skip-link:focus {
  opacity: 1;
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), transparent 30%, var(--violet) 70%, var(--teal));
  opacity: .8;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--violet), var(--teal));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.header-inner {
  padding-top: .85rem;
  padding-bottom: .85rem;
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px dashed var(--line);
  color: rgba(245, 233, 216, .6);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.header-beacon {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--paper);
  font-family: var(--font-num);
  letter-spacing: .08em;
}

.beacon-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulseBeacon 2.4s ease-in-out infinite;
}

@keyframes pulseBeacon {
  0%, 100% {
    opacity: .65;
    transform: scale(.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: .85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--paper);
  text-decoration: none;
}

.brand-emblem {
  position: relative;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--orange), var(--violet) 65%, var(--space-blue));
  box-shadow: 0 0 18px rgba(155, 93, 229, .45);
}

.brand-emblem::before {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: var(--space-blue);
}

.brand-emblem::after {
  content: "";
  position: absolute;
  inset: 34%;
  background: var(--orange);
  clip-path: polygon(0 45%, 100% 35%, 80% 100%, 35% 55%);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: .02em;
}

.brand-copy small {
  margin-top: .25rem;
  font-family: var(--font-num);
  font-size: .6rem;
  letter-spacing: .25em;
  color: var(--orange);
}

.brand:hover .brand-emblem {
  box-shadow: 0 0 28px rgba(255, 107, 53, .55);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--font-body);
}

.nav-toggle:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 53, .12);
}

.nav-toggle-box {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-label {
  font-size: .82rem;
  letter-spacing: .06em;
}

.site-nav {
  display: block;
  visibility: visible;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: block;
  padding: .6rem .85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .15rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width .25s ease;
}

.nav-list a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, .04);
  color: #fff;
}

.nav-list a[aria-current="page"] {
  border-color: rgba(255, 107, 53, .35);
  background: rgba(255, 107, 53, .14);
  color: var(--orange);
}

.nav-list a[aria-current="page"]::after {
  width: 1.2rem;
}

@media (max-width: 58rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-main {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 9;
    flex: 1 1 100%;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .25s ease, visibility .3s ease;
  }

  .site-nav[data-open] {
    max-height: 32rem;
    visibility: visible;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding-top: .75rem;
  }

  .nav-list a {
    display: block;
    padding: .8rem 1rem;
    border-radius: .8rem;
  }

  .header-meta {
    font-size: .62rem;
    letter-spacing: .08em;
  }
}

.site-footer {
  position: relative;
  margin-top: calc(var(--section-space) * 1.2);
  padding: 3.5rem 0 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(10, 14, 39, .92);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -6rem;
  right: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 93, 229, .18), transparent 65%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  max-width: 42ch;
  color: rgba(245, 233, 216, .7);
  font-size: .9rem;
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.brand--footer .brand-emblem {
  width: 2.4rem;
  height: 2.4rem;
}

.brand--footer .brand-copy strong {
  font-size: 1.4rem;
}

.footer-trust {
  margin-top: .75rem;
}

.footer-heading {
  margin-bottom: 1rem;
  color: var(--orange);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--paper);
  text-decoration: none;
  font-size: .9rem;
}

.footer-links a::before {
  content: "";
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: var(--violet);
  transition: background .2s ease;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-links a:hover::before {
  background: var(--orange);
}

.footer-links a[aria-current="page"] {
  color: var(--orange);
}

.footer-links a[aria-current="page"]::before {
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}

.footer-contact p {
  margin: 0 0 .6rem;
  color: rgba(245, 233, 216, .82);
  font-size: .86rem;
}

.footer-label {
  display: inline-block;
  min-width: 3em;
  margin-right: .35rem;
  font-family: var(--font-num);
  font-size: .72rem;
  text-transform: uppercase;
  color: var(--teal);
}

.footer-legal {
  margin-top: 1rem;
  font-family: var(--font-num);
  font-size: .75rem;
  color: rgba(245, 233, 216, .6);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.1rem 0;
  color: rgba(245, 233, 216, .68);
  font-size: .78rem;
}

.footer-bottom-inner a {
  color: var(--paper);
  text-decoration: none;
}

.footer-bottom-inner a:hover {
  color: var(--orange);
}

.section {
  padding-block: var(--section-space);
}

.section--pull {
  padding-top: 0;
}

.section-label {
  display: inline-block;
  margin-bottom: .75rem;
  padding: .2rem .65rem;
  border: 1px solid rgba(155, 93, 229, .4);
  border-radius: 999px;
  background: rgba(155, 93, 229, .14);
  color: var(--violet);
  font-size: .72rem;
  letter-spacing: .12em;
}

.section-title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.section-lead {
  max-width: 56ch;
  color: rgba(245, 233, 216, .75);
}

.label {
  display: inline-block;
  color: var(--violet);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.text-orange {
  color: var(--orange);
}

.text-violet {
  color: var(--violet);
}

.text-mint {
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn--primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(255, 107, 53, .25);
}

.btn--primary:hover {
  background: #ff8555;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 107, 53, .35);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(245, 233, 216, .4);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--orange);
  transform: translateY(-2px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: .85rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--violet);
}

.breadcrumbs a {
  color: var(--paper);
  text-decoration: none;
}

.breadcrumbs a[aria-current="page"] {
  color: var(--orange);
}

.prose {
  max-width: min(70ch, 100%);
  color: rgba(245, 233, 216, .82);
  font-size: 1rem;
}

.prose h2 {
  margin-top: 2.2rem;
}

.prose p {
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.card {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  backdrop-filter: blur(8px);
}

.card--paper {
  background: var(--paper);
  color: var(--ink);
}

.card--paper .card-title {
  color: var(--ink);
}

.card-title {
  font-size: 1.05rem;
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-list li {
  border-bottom: 1px solid var(--line);
}

.archive-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem .2rem;
  color: var(--paper);
  text-decoration: none;
}

.archive-list a:hover {
  color: var(--orange);
}

.archive-list .archive-date {
  font-family: var(--font-num);
  font-size: .82rem;
  color: rgba(245, 233, 216, .55);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: .22rem .62rem;
  border: 1px solid rgba(155, 93, 229, .35);
  border-radius: 999px;
  background: rgba(155, 93, 229, .12);
  color: var(--paper);
  font-size: .75rem;
}

.tag--orange {
  border-color: rgba(255, 107, 53, .4);
  background: rgba(255, 107, 53, .12);
  color: var(--orange);
}

.tag--teal {
  border-color: rgba(0, 245, 160, .4);
  background: rgba(0, 245, 160, .1);
  color: var(--teal);
}

.media {
  position: relative;
  min-height: 7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(155, 93, 229, .24), rgba(10, 14, 39, .35));
}

.media::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.media--hero::before {
  min-height: min(62vh, 34rem);
  padding-bottom: 62vh;
}

.media--portrait::before {
  padding-bottom: 125%;
}

.media__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: rgba(245, 233, 216, .5);
  text-align: center;
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 107, 53, .45), rgba(155, 93, 229, .2) 60%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.orb--violet {
  background: radial-gradient(circle at 35% 35%, rgba(155, 93, 229, .5), transparent 70%);
}

.orb--orange {
  background: radial-gradient(circle at 35% 35%, rgba(255, 107, 53, .45), transparent 70%);
}

.orb--teal {
  background: radial-gradient(circle at 35% 35%, rgba(0, 245, 160, .3), transparent 70%);
}

html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 37rem) and (max-width: 58rem) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 59rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 58rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .beacon-dot {
    animation: none;
  }

  html.has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
