:root {
  --bg: #050711;
  --bg2: #0d1124;
  --panel: #0b0f20;
  --panel-2: #10182d;
  --text: #edf7ff;
  --muted: #8ea9bb;
  --cyan: #45f4e0;
  --cyan-soft: rgba(69, 244, 224, 0.22);
  --magenta: #ff4db4;
  --magenta-soft: rgba(255, 77, 180, 0.2);
  --line: rgba(69, 244, 224, 0.45);
  --line-soft: rgba(69, 244, 224, 0.22);
  --link: #7effec;
  --link-hover: #c2fff7;
  --max: 900px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 77, 180, 0.16), transparent 30%),
    radial-gradient(circle at 88% 76%, rgba(69, 244, 224, 0.16), transparent 35%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(170deg, var(--bg), var(--bg2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0 46%,
    rgba(126, 255, 236, 0.08) 49%,
    transparent 52%
  );
  pointer-events: none;
  animation: sweep 9s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(126, 255, 236, 0.06), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.site {
  position: relative;
  width: min(94vw, var(--max));
  margin: 2.3rem auto;
  padding: 2.4rem 2.3rem 1.9rem;
  background: linear-gradient(180deg, rgba(16, 24, 45, 0.92), rgba(11, 15, 32, 0.94));
  border: 1px solid rgba(69, 244, 224, 0.32);
  box-shadow:
    0 0 0 1px rgba(69, 244, 224, 0.09) inset,
    0 0 32px rgba(69, 244, 224, 0.18),
    0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  isolation: isolate;
}

.site::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 40%, rgba(255, 77, 180, 0.12) 42%, transparent 45%),
    linear-gradient(295deg, transparent 0 56%, rgba(69, 244, 224, 0.1) 58%, transparent 62%);
  pointer-events: none;
}

.site::after {
  content: "CHERNANDBURN // PROFILE NODE";
  position: absolute;
  top: 0.65rem;
  right: 1rem;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: rgba(126, 255, 236, 0.78);
  white-space: nowrap;
}

.intro {
  position: relative;
  padding: 1.5rem 1.45rem;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(69, 244, 224, 0.12), rgba(255, 77, 180, 0.09));
  box-shadow: 0 0 0 1px rgba(69, 244, 224, 0.08) inset;
}

.intro h1 {
  margin: 0 0 0.6rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.15rem, 5.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-shadow: 0 0 15px rgba(69, 244, 224, 0.3);
  animation: title-flicker 6.8s steps(1, end) infinite;
  overflow-wrap: anywhere;
}

.lede {
  margin: 0;
  max-width: 66ch;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: #d6e8f7;
}

.block {
  position: relative;
  margin-top: 1.45rem;
  padding: 1.4rem 1.3rem 1.2rem;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.9), rgba(9, 14, 27, 0.92));
  border: 1px solid var(--line-soft);
  box-shadow: 0 0 0 1px rgba(69, 244, 224, 0.08) inset;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.block:hover {
  transform: translateY(-2px);
  border-color: rgba(69, 244, 224, 0.4);
  box-shadow:
    0 0 0 1px rgba(69, 244, 224, 0.12) inset,
    0 12px 24px rgba(0, 0, 0, 0.24);
}

.block::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, transparent 49%, var(--magenta) 50%);
  opacity: 0.65;
}

.block:nth-of-type(2n)::after {
  background: linear-gradient(135deg, transparent 49%, var(--cyan) 50%);
}

p,
ul {
  margin: 0;
}

.block p {
  color: #d5e8f5;
}

.block p + p {
  margin-top: 0.92rem;
}

ul {
  padding-left: 0;
  list-style: none;
}

li {
  position: relative;
  padding: 0.52rem 0.7rem;
  padding-left: 1.65rem;
  border: 1px solid rgba(69, 244, 224, 0.16);
  background: rgba(10, 20, 34, 0.6);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

li::before {
  content: ">";
  position: absolute;
  left: 0.62rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  opacity: 0.9;
}

li:hover {
  transform: translateX(4px);
  border-color: rgba(69, 244, 224, 0.34);
  background: rgba(14, 28, 46, 0.72);
}

li:active {
  transform: translateX(2px);
  border-color: rgba(69, 244, 224, 0.34);
  background: rgba(14, 28, 46, 0.72);
}

li + li {
  margin-top: 0.46rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 170ms ease, text-shadow 170ms ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-shadow: 0 0 12px rgba(69, 244, 224, 0.45);
  text-decoration-color: var(--cyan);
}

em {
  color: #ffd4f0;
  text-shadow: 0 0 10px var(--magenta-soft);
}

.meta {
  margin-top: 1.5rem;
  padding: 1rem 1rem 0.95rem;
  border: 1px dashed rgba(69, 244, 224, 0.35);
  background: rgba(8, 13, 28, 0.72);
  font-size: 0.84rem;
  color: var(--muted);
}

.dot {
  padding: 0 0.3rem;
  color: var(--cyan);
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

@keyframes sweep {
  from {
    transform: translateX(-12%);
  }
  to {
    transform: translateX(12%);
  }
}

@keyframes title-flicker {
  0%,
  13%,
  15%,
  55%,
  57%,
  100% {
    text-shadow:
      0 0 15px rgba(69, 244, 224, 0.3),
      0 0 1px rgba(255, 77, 180, 0.35);
  }
  14%,
  56% {
    text-shadow:
      -1px 0 rgba(69, 244, 224, 0.52),
      1px 0 rgba(255, 77, 180, 0.5),
      0 0 17px rgba(69, 244, 224, 0.22);
  }
}

@media (max-width: 740px) {
  .site {
    width: min(95vw, var(--max));
    margin: 1.25rem auto;
    padding: 1.5rem 1.05rem 1.15rem;
  }

  .site::after {
    right: 0.6rem;
    top: 0.5rem;
    font-size: 0.56rem;
    max-width: calc(100% - 1.2rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .intro {
    padding: 1.15rem 0.9rem;
  }

  .block {
    padding: 1.1rem 0.85rem 0.95rem;
  }

}

@media (max-width: 430px) {
  body {
    line-height: 1.58;
  }

  body::before {
    animation-duration: 14s;
  }

  .site {
    margin: 0.65rem auto;
    padding: 1.05rem 0.74rem 0.88rem;
    border-width: 1px;
  }

  .site::after {
    top: 0.38rem;
    right: 0.45rem;
    font-size: 0.5rem;
    letter-spacing: 0.11em;
    max-width: calc(100% - 0.9rem);
  }

  .intro {
    padding: 0.92rem 0.7rem;
  }

  .intro h1 {
    font-size: clamp(1.7rem, 10vw, 2.25rem);
    line-height: 1.07;
  }

  .lede {
    font-size: 0.92rem;
  }

  .block {
    margin-top: 1rem;
    padding: 0.9rem 0.65rem 0.78rem;
  }

  .block p,
  li {
    font-size: 0.9rem;
  }

  li {
    padding: 0.45rem 0.56rem 0.45rem 1.4rem;
  }

  li::before {
    left: 0.48rem;
  }

  .meta {
    margin-top: 1rem;
    padding: 0.76rem 0.68rem 0.7rem;
    font-size: 0.77rem;
  }
}

@media (hover: none) {
  .block:hover {
    transform: none;
    border-color: var(--line-soft);
    box-shadow: 0 0 0 1px rgba(69, 244, 224, 0.08) inset;
  }

  li:hover {
    transform: none;
    border-color: rgba(69, 244, 224, 0.16);
    background: rgba(10, 20, 34, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .intro h1,
  .reveal.show {
    animation: none;
    transition: none;
  }
}
