:root {
  color-scheme: dark;
  --ink: #f5f7ff;
  --muted: #aab3c9;
  --blue: #438cff;
  --violet: #806dff;
  --gold: #f0c76a;
  --panel: rgba(13, 17, 38, 0.82);
  --line: rgba(130, 150, 255, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #04050b;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(67, 140, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 82%, rgba(128, 109, 255, 0.14), transparent 30rem),
    linear-gradient(145deg, #03040a 0%, #080b18 48%, #050610 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

.shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 52px;
}

.brand {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(67, 140, 255, 0.1), 0 0 30px rgba(67, 140, 255, 0.72);
}

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 8vw, 5.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 36rem;
  margin: 30px 0 0;
  color: #dfe5f7;
  font-size: clamp(1.08rem, 2.4vw, 1.32rem);
  line-height: 1.7;
}

.prose {
  margin-top: 34px;
}

.prose p {
  margin: 0 0 1.35em;
  color: #dfe5f7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  line-height: 1.72;
}

.prose strong {
  color: #fff;
}

.protocol {
  margin: 38px 0 0;
  padding: 22px 24px;
  border-left: 3px solid var(--gold);
  border-radius: 0 16px 16px 0;
  background: rgba(240, 199, 106, 0.07);
  color: #fff3ce;
  font-size: 1rem;
  line-height: 1.65;
}

.signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.mark {
  color: var(--blue);
  font-size: 1.1rem;
}

.node-list {
  display: grid;
  gap: 16px;
  margin-top: 38px;
}

.node-link {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.node-link:hover,
.node-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(67, 140, 255, 0.7);
  background: rgba(67, 140, 255, 0.08);
  outline: none;
}

.node-link small {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.node-link span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.back {
  display: inline-flex;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.back:hover,
.back:focus-visible {
  color: var(--ink);
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 22px, 760px);
    padding-top: 24px;
  }

  .masthead {
    margin-bottom: 28px;
  }

  .card {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
