/* ---------------------------------------------------------------------------
 * AI Builder Pulse — synthwave brochure
 * zero-build, zero-framework: one html, one css, one js.
 * core palette: deep indigo + magenta + cyan. chrome-gradient wordmark,
 * perspective-grid horizon, subtle scanlines. respects prefers-reduced-motion.
 * ------------------------------------------------------------------------- */

:root {
  --c-bg: #07031a;
  --c-bg-2: #120636;
  --c-ink: #f5f3ff;
  --c-ink-dim: #b6a8ea;
  --c-ink-mute: #8a7cc8;
  --c-magenta: #ff2bd6;
  --c-cyan: #00f0ff;
  --c-amber: #ffb347;
  --c-accent: #ff2bd6;

  --f-mono: "JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace,
    Menlo, monospace;
  --f-sans: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;

  --border-glow: 0 0 0 1px rgba(255, 43, 214, 0.35),
    0 0 24px rgba(255, 43, 214, 0.25);
  --cyan-glow: 0 0 24px rgba(0, 240, 255, 0.35);

  --radius-sm: 2px;
  --radius-md: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The `hidden` attribute must always win — class selectors (e.g.
 * .latest__skeleton { display: flex }) have higher specificity than the
 * user-agent `[hidden] { display: none }` rule, which leaves the element
 * visible after we toggle `.hidden = true` from JS. Without this rule,
 * the skeleton stayed on screen even after the preview rendered. */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 43, 214, 0.18),
      rgba(7, 3, 26, 0) 60%
    ),
    radial-gradient(
      ellipse at 50% 100%,
      rgba(0, 240, 255, 0.15),
      rgba(7, 3, 26, 0) 55%
    ),
    linear-gradient(180deg, var(--c-bg), var(--c-bg-2) 50%, var(--c-bg));
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 240, 255, 0.4);
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover,
a:focus-visible {
  color: var(--c-magenta);
  border-bottom-color: var(--c-magenta);
  outline: none;
}
a:focus-visible {
  outline: 2px solid var(--c-magenta);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- scanlines (subtle CRT texture) -------------------------------- */

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(255, 255, 255, 0.035) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.6;
}

/* ---------- hero ---------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(100vh, 780px);
  padding: 24px 20px 120px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.topnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
  border-bottom: none;
}
.topnav__archive {
  color: var(--c-ink-dim);
  border-bottom: none;
}
.topnav__archive:hover,
.topnav__archive:focus-visible {
  color: var(--c-cyan);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-magenta);
  box-shadow: 0 0 12px var(--c-magenta), 0 0 32px rgba(255, 43, 214, 0.6);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px var(--c-magenta), 0 0 32px rgba(255, 43, 214, 0.6);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 16px var(--c-magenta), 0 0 44px rgba(255, 43, 214, 0.8);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  margin: auto 0;
  max-width: 720px;
  padding: 32px 0;
}
.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ink-dim);
  margin: 0 0 12px;
}

.wordmark {
  font-family: var(--f-sans);
  font-weight: 900;
  font-size: clamp(3rem, 12vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-transform: uppercase;
}
.wordmark__line {
  display: block;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ece3ff 35%,
    #b695ff 60%,
    #6a3cff 85%,
    #2a1566 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.wordmark__line--accent {
  background: linear-gradient(
    180deg,
    #fff0fb 0%,
    #ff8fe1 35%,
    #ff2bd6 60%,
    #a600a3 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 43, 214, 0.35));
}

.hero__tagline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--c-ink-dim);
  margin: 0 0 36px;
  max-width: 54ch;
}

/* ---------- perspective grid horizon -------------------------------------- */

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__sun {
  position: absolute;
  left: 50%;
  bottom: 38%;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    #ffefc7 0%,
    #ffb347 18%,
    #ff3e93 38%,
    #7b15c8 62%,
    rgba(123, 21, 200, 0) 72%
  );
  filter: blur(0.5px);
  opacity: 0.85;
}
.hero__sun::before {
  content: "";
  position: absolute;
  inset: 48% 0 0 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(7, 3, 26, 0) 0,
    rgba(7, 3, 26, 0) 10px,
    rgba(7, 3, 26, 0.85) 11px,
    rgba(7, 3, 26, 0.85) 18px
  );
}

.hero__grid-floor {
  position: absolute;
  left: 50%;
  bottom: -20%;
  width: 220vw;
  height: 60vh;
  transform: translateX(-50%) perspective(600px) rotateX(62deg);
  transform-origin: center top;
  background-image:
    linear-gradient(
      to right,
      rgba(255, 43, 214, 0) 0%,
      rgba(255, 43, 214, 0.9) 50%,
      rgba(255, 43, 214, 0) 100%
    ),
    repeating-linear-gradient(
      to right,
      rgba(255, 43, 214, 0.5) 0,
      rgba(255, 43, 214, 0.5) 1px,
      rgba(255, 43, 214, 0) 1px,
      rgba(255, 43, 214, 0) 64px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(0, 240, 255, 0.55) 0,
      rgba(0, 240, 255, 0.55) 1px,
      rgba(0, 240, 255, 0) 1px,
      rgba(0, 240, 255, 0) 40px
    );
  background-size: 100% 1px, 100% 100%, 100% 100%;
  background-repeat: no-repeat, repeat, repeat;
  background-position: center top, center center, center center;
  animation: grid-scroll 5s linear infinite;
  box-shadow: 0 -30px 80px rgba(255, 43, 214, 0.2);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

@keyframes grid-scroll {
  0% {
    background-position: center top, 0 0, 0 0;
  }
  100% {
    background-position: center top, 0 0, 0 40px;
  }
}

.hero__stars {
  position: absolute;
  inset: 0 0 50% 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 47% 18%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 78% 10%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 88% 34%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 30% 38%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 64% 26%, rgba(255, 255, 255, 0.6), transparent);
  opacity: 0.9;
}

/* ---------- signup form --------------------------------------------------- */

.signup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
}
.signup__label {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-ink-dim);
}
.signup__row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 43, 214, 0.4);
  padding: 6px;
  border-radius: var(--radius-md);
  box-shadow: var(--border-glow);
  backdrop-filter: blur(4px);
}
.signup__input {
  flex: 1;
  background: transparent;
  color: var(--c-ink);
  border: 0;
  padding: 12px 14px;
  font-family: var(--f-mono);
  font-size: 1rem;
  outline: none;
}
.signup__input::placeholder {
  color: var(--c-ink-mute);
}
.signup__input:focus-visible {
  background: rgba(255, 43, 214, 0.08);
  border-radius: var(--radius-sm);
  outline: 2px solid var(--c-magenta);
  outline-offset: 2px;
}
.signup__success {
  font-family: var(--f-mono);
  color: var(--c-cyan);
  font-size: 0.9rem;
  margin: 6px 0 0;
}
.signup__fine-print {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--c-ink-mute);
  letter-spacing: 0.05em;
  margin: 6px 0 0;
}

/* ---------- buttons ------------------------------------------------------- */

.btn {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 120ms ease, box-shadow 120ms ease,
    background 120ms ease;
  text-decoration: none;
  border-bottom: none;
}
.btn:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
}
.btn--primary {
  background: linear-gradient(180deg, #ff5ee2, #c01098);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 94, 226, 0.5),
    0 0 24px rgba(255, 43, 214, 0.5);
  font-weight: 700;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 94, 226, 0.7),
    0 0 32px rgba(255, 43, 214, 0.8);
}
.btn--secondary {
  background: transparent;
  color: var(--c-cyan);
  border: 1px solid var(--c-cyan);
  box-shadow: var(--cyan-glow);
}
.btn--secondary:hover {
  color: var(--c-bg);
  background: var(--c-cyan);
}
.btn__arrow {
  transition: transform 120ms ease;
}
.btn:hover .btn__arrow {
  transform: translateX(2px);
}

/* ---------- section titles ------------------------------------------------ */

.section-title {
  font-family: var(--f-mono);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--c-ink-dim);
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}
.section-title__tag {
  color: var(--c-cyan);
}
.section-title__live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-magenta);
  box-shadow: 0 0 8px var(--c-magenta);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ---------- latest section ------------------------------------------------ */

.latest,
.pitch,
.signup-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
}

.latest__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest__meta {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--c-ink-mute);
  margin: 0;
}
.latest__preview {
  margin-top: 16px;
  padding: 28px;
  background: linear-gradient(
    135deg,
    rgba(255, 43, 214, 0.08),
    rgba(0, 240, 255, 0.04)
  );
  border: 1px solid rgba(255, 43, 214, 0.25);
  border-radius: var(--radius-md);
  box-shadow: var(--border-glow);
  position: relative;
}
.latest__preview::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--c-magenta),
    var(--c-cyan),
    transparent
  );
  opacity: 0.85;
}

.top-pick__label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin: 0 0 8px;
}
.top-pick__title {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin: 0 0 8px;
  line-height: 1.25;
}
.top-pick__title a {
  color: var(--c-ink);
  border-bottom: 1px solid rgba(255, 43, 214, 0.5);
}
.top-pick__title a:hover,
.top-pick__title a:focus-visible {
  color: var(--c-magenta);
}
.top-pick__source {
  font-family: var(--f-mono);
  color: var(--c-cyan);
  font-size: 0.85rem;
  margin: 0 0 12px;
}
.top-pick__desc {
  color: var(--c-ink-dim);
  margin: 0 0 24px;
}

.categories {
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 43, 214, 0.3);
}
.categories__heading {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-ink-dim);
  margin: 0 0 10px;
}
.categories__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.categories__list li {
  font-family: var(--f-mono);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
}
.categories__list li span:last-child {
  color: var(--c-magenta);
  font-weight: 700;
}

.latest__cta {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.latest__skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.skeleton-line {
  height: 14px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 43, 214, 0.06),
    rgba(255, 43, 214, 0.2),
    rgba(255, 43, 214, 0.06)
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-line--lg {
  width: 70%;
  height: 24px;
}
.skeleton-line--sm {
  width: 40%;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.latest__fallback {
  text-align: center;
  padding: 24px 0;
}
.latest__fallback-text {
  color: var(--c-ink-dim);
  margin: 0 0 16px;
}

/* ---------- pitch --------------------------------------------------------- */

.pitch__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.pitch__card {
  padding: 24px;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: var(--radius-md);
  transition: transform 120ms ease, border-color 120ms ease;
}
.pitch__card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.45);
}
.pitch__num {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--c-magenta);
  letter-spacing: 0.2em;
  margin: 0 0 8px;
}
.pitch__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--c-ink);
}
.pitch__card p:last-child {
  color: var(--c-ink-dim);
  margin: 0;
}

/* ---------- bottom signup ------------------------------------------------- */

.signup-bottom {
  text-align: left;
  padding-bottom: 120px;
}
.signup-bottom .signup {
  max-width: 640px;
}

/* ---------- footer -------------------------------------------------------- */

.footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--c-ink-mute);
  border-top: 1px dashed rgba(255, 43, 214, 0.2);
}
.footer__line {
  margin: 0 0 12px;
}
.footer__ascii {
  letter-spacing: 0.2em;
  color: rgba(255, 43, 214, 0.45);
  margin: 0;
}

/* ---------- responsive ---------------------------------------------------- */

@media (max-width: 480px) {
  .hero {
    padding-bottom: 80px;
    min-height: 620px;
  }
  .signup__row {
    flex-direction: column;
  }
  .btn--primary {
    width: 100%;
    justify-content: center;
  }
  .latest__preview {
    padding: 20px;
  }
}

/* === issue page =========================================================== */
/* Per-issue archive pages emitted by `scripts/lib/issuePage.ts`.
 * Layout: two-column grid on viewports >= 900px (content left, sidebar
 * right), stacked on narrower screens. Colors/tokens inherit from the
 * brochure; only the layout + typography specific to long-form reading
 * is added here. */

.issue-header {
  padding: 20px 20px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.issue-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .issue-page {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    align-items: start;
  }
}

.issue-body {
  max-width: 70ch;
  min-width: 0;
  color: var(--c-ink);
  font-size: 1rem;
  line-height: 1.65;
}

.issue-body__title {
  font-family: var(--f-sans);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--c-ink);
}

.issue-body__meta {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--c-ink-mute);
  margin: 0 0 28px;
  letter-spacing: 0.04em;
}

.issue-body__content h2 {
  font-family: var(--f-mono);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-cyan);
  margin: 40px 0 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(0, 240, 255, 0.25);
}

.issue-body__content h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 24px 0 6px;
  color: var(--c-ink);
}
.issue-body__content h3 a {
  color: var(--c-ink);
  border-bottom: 1px solid rgba(255, 43, 214, 0.4);
}
.issue-body__content h3 a:hover,
.issue-body__content h3 a:focus-visible {
  color: var(--c-magenta);
  border-bottom-color: var(--c-magenta);
}

.issue-body__content h4 {
  font-family: var(--f-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-dim);
  margin: 20px 0 8px;
}

.issue-body__content p {
  margin: 0 0 16px;
  color: var(--c-ink-dim);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.issue-body__content ul,
.issue-body__content ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
  color: var(--c-ink-dim);
}
.issue-body__content li {
  margin: 4px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.issue-body__content blockquote {
  margin: 16px 0;
  padding: 8px 16px;
  border-left: 3px solid var(--c-magenta);
  background: rgba(255, 43, 214, 0.06);
  color: var(--c-ink-dim);
  font-style: italic;
}

.issue-body__content code {
  font-family: var(--f-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--c-ink);
}

.issue-body__content pre {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  padding: 16px;
  overflow-x: auto;
  background: rgba(7, 3, 26, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: var(--radius-md);
  margin: 0 0 16px;
}
.issue-body__content pre code {
  padding: 0;
  background: transparent;
  border: 0;
}

.issue-body__content em {
  color: var(--c-ink-dim);
}

.issue-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 43, 214, 0.25);
}
.issue-nav__prev,
.issue-nav__next {
  font-family: var(--f-mono);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--c-cyan);
  border-bottom: 1px dotted rgba(0, 240, 255, 0.4);
}
.issue-nav__next {
  margin-left: auto;
}

.issue-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.issue-aside__card {
  padding: 16px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: var(--radius-md);
}

.issue-aside__heading {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-ink-dim);
  margin: 0 0 10px;
}

.issue-aside__stats {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  color: var(--c-ink);
  margin: 0;
}

.issue-aside__toppick-title {
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0 0 6px;
}
.issue-aside__toppick-title a {
  color: var(--c-ink);
  border-bottom: 1px solid rgba(255, 43, 214, 0.4);
}
.issue-aside__toppick-title a:hover,
.issue-aside__toppick-title a:focus-visible {
  color: var(--c-magenta);
  border-bottom-color: var(--c-magenta);
}
.issue-aside__toppick-source {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--c-cyan);
  margin: 0;
}

.issue-aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.issue-aside__list li {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
}
.issue-aside__list li span:last-child {
  color: var(--c-magenta);
  font-weight: 700;
}

.issue-aside__empty {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--c-ink-mute);
  margin: 0;
}

.signup--aside {
  max-width: none;
}
.signup--aside .signup__row {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.signup--aside .signup__input {
  min-width: 0;
  width: 100%;
}
.signup--aside .btn--primary {
  width: 100%;
  justify-content: center;
}

/* === archive index ======================================================== */
/* Centered single-column list of every archived issue, emitted at
 * `/archive/index.html` by `scripts/lib/archivePage.ts`. Reuses the
 * topnav + footer chrome and the shared color tokens; only the list row
 * layout + empty-state sit here. */

.archive-header {
  padding: 20px 20px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.archive {
  max-width: 70ch;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.archive__title-main {
  font-family: var(--f-sans);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--c-ink);
}

.archive__tagline {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--c-ink-mute);
  margin: 0 0 32px;
  letter-spacing: 0.04em;
}

.archive__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px dashed rgba(255, 43, 214, 0.25);
}

.archive__entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 14px 12px;
  margin: 0 -12px;
  border-bottom: 1px dashed rgba(255, 43, 214, 0.2);
  transition: background 120ms ease;
}
.archive__entry:hover,
.archive__entry:focus-within {
  background: rgba(0, 240, 255, 0.04);
}

.archive__date {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--c-ink-mute);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.archive__title {
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--c-ink);
  border-bottom: 1px solid rgba(255, 43, 214, 0.3);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.archive__title:hover,
.archive__title:focus-visible {
  color: var(--c-magenta);
  border-bottom-color: var(--c-magenta);
}

.archive__count {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--c-cyan);
  white-space: nowrap;
  text-align: right;
}

.archive__empty {
  text-align: center;
  padding: 48px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.archive__empty-text {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  color: var(--c-ink-dim);
  margin: 0;
}

@media (max-width: 520px) {
  .archive__entry {
    grid-template-columns: auto 1fr;
    row-gap: 4px;
  }
  .archive__count {
    grid-column: 2;
    text-align: left;
  }
}

/* ---------- reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__grid-floor {
    animation: none;
  }
  .pulse-dot,
  .section-title__live {
    animation: none;
  }
  .skeleton-line {
    animation: none;
    background: rgba(255, 43, 214, 0.12);
  }
}
