:root {
  color-scheme: dark;
  --bg: #10100f;
  --ink: #f4efe3;
  --muted: #c8c0ae;
  --soft: rgba(244, 239, 227, 0.7);
  --line: rgba(244, 239, 227, 0.18);
  --panel: rgba(20, 19, 18, 0.62);
  --panel-strong: rgba(20, 19, 18, 0.84);
  --acid: #c8ff4d;
  --cyan: #41e6d1;
  --coral: #ff6f61;
  --violet: #9d7dff;
  --shadow: rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 255, 77, 0.12), transparent 28rem),
    radial-gradient(circle at 80% 8%, rgba(65, 230, 209, 0.13), transparent 30rem),
    radial-gradient(circle at 72% 72%, rgba(255, 111, 97, 0.12), transparent 26rem),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(244, 239, 227, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 227, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

a {
  color: inherit;
}

.signal-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 14px 0;
}

.site-header::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 88px;
  content: "";
  background: linear-gradient(to bottom, rgba(16, 16, 15, 0.92), rgba(16, 16, 15, 0));
  pointer-events: none;
}

.brand-mark,
.site-nav {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 0.7rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-sigil {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #10100f;
  background: conic-gradient(from 130deg, var(--acid), var(--cyan), var(--coral), var(--acid));
  border-radius: 50%;
  box-shadow: 0 0 36px rgba(200, 255, 77, 0.22);
}

.site-nav {
  gap: 0.35rem;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 16, 15, 0.48);
  backdrop-filter: blur(18px);
}

.site-nav a {
  min-width: 64px;
  padding: 0.55rem 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(244, 239, 227, 0.1);
  outline: none;
}

.hero,
.post-band,
.notes-band,
.article-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: calc(78svh - 72px);
  padding: clamp(3rem, 9vw, 8rem) 0 clamp(2.25rem, 6vw, 4.5rem);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--acid);
  font-size: 0.79rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.96;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(4.25rem, 13vw, 10rem);
  letter-spacing: 0;
}

.hero-lede {
  max-width: 720px;
  margin: 1.35rem 0 0;
  color: var(--soft);
  font-size: clamp(1.15rem, 2.25vw, 1.65rem);
  line-height: 1.62;
}

.hero-panel {
  width: 100%;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 19, 18, 0.82), rgba(20, 19, 18, 0.48));
  box-shadow: 0 28px 60px var(--shadow);
  backdrop-filter: blur(18px);
}

.pulse-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 34px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 760;
}

.pulse-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--acid);
  box-shadow: 0 0 0 8px rgba(200, 255, 77, 0.1), 0 0 32px rgba(200, 255, 77, 0.5);
}

.signal-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.signal-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.signal-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.signal-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
  text-align: right;
}

.post-band,
.notes-band {
  padding: clamp(2.5rem, 8vw, 6rem) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 6vw, 5rem);
}

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

.post-card {
  min-height: 330px;
}

.post-card a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(244, 239, 227, 0.1), rgba(244, 239, 227, 0.02)),
    rgba(16, 16, 15, 0.58);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.post-card:nth-child(2) a {
  background:
    linear-gradient(160deg, rgba(65, 230, 209, 0.14), rgba(244, 239, 227, 0.02)),
    rgba(16, 16, 15, 0.58);
}

.post-card:nth-child(3) a {
  background:
    linear-gradient(160deg, rgba(255, 111, 97, 0.14), rgba(244, 239, 227, 0.02)),
    rgba(16, 16, 15, 0.58);
}

.post-card a:hover,
.post-card a:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(244, 239, 227, 0.42);
  outline: none;
}

.post-index {
  color: var(--acid);
  font-size: 0.85rem;
  font-weight: 850;
}

.post-card h3 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.04;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.read-more {
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 760;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.theme-item {
  min-height: 210px;
  padding: 1.15rem;
  background: rgba(16, 16, 15, 0.78);
}

.theme-item h3 {
  font-size: 1.35rem;
  line-height: 1.18;
}

.theme-item p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.article-shell {
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 7rem);
}

.article-body {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 16, 15, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.back-link {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--cyan);
  font-weight: 760;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.article-body h1 {
  font-size: clamp(2.45rem, 7vw, 5.5rem);
}

.article-lede {
  margin: 1.4rem 0 2rem;
  color: var(--soft);
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  line-height: 1.78;
}

.article-body h2 {
  margin-top: 2.2rem;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.14;
}

.article-body p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.86;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  min-height: 90px;
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 840px) {
  .site-header {
    min-height: 68px;
  }

  .site-nav a {
    min-width: 54px;
    padding-inline: 0.72rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3.25rem;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 17vw, 6.8rem);
  }

  .hero-panel {
    max-width: 560px;
  }

  .post-grid,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .post-card,
  .theme-item {
    min-height: 230px;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 540px) {
  .site-header,
  .hero,
  .post-band,
  .notes-band,
  .article-shell,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    align-items: flex-start;
    min-height: 118px;
    flex-direction: column;
  }

  .site-header::before {
    height: 136px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 20vw, 5.4rem);
  }

  .hero-lede {
    font-size: 1.06rem;
  }

  .post-card a {
    padding: 1rem;
  }

  .article-body {
    padding: 1rem;
  }

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

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

  .post-card a {
    transition: none;
  }

  .post-card a:hover,
  .post-card a:focus-visible {
    transform: none;
  }

  .signal-canvas {
    opacity: 0.34;
  }
}
