/* Homepage module */
@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap");

:root {
  --night: #070c14;
  --paper: #edf6ff;
  --muted: #8ba2b7;
  --line: rgba(151, 199, 238, 0.16);
  --electric: #79c8ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--paper);
  background: var(--night);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#neural-field { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; }
.site-header, main { position: relative; z-index: 1; }
.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.65rem clamp(1.3rem, 3.3vw, 3.5rem);
}

nav { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); }
nav a {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}
nav a:hover, nav a:focus-visible { color: var(--paper); }

.hero {
  display: flex;
  min-height: 100svh;
  padding: clamp(7rem, 14vh, 10rem) clamp(1.3rem, 8vw, 10rem) 6rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-copy { width: min(960px, 100%); }
h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 0.82;
  text-shadow: 0 0 2.5rem rgba(7, 12, 20, 0.9), 0 0 5rem rgba(37, 126, 194, 0.22);
}
h1 span {
  color: var(--electric);
  font-weight: 400;
}

.collection {
  position: relative;
  background: rgba(7, 12, 20, 0.93);
  border-top: 1px solid var(--line);
}
.topic {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 9rem);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.3rem, 8vw, 10rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 2rem;
}
.topic-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.topic-meta p { margin: 0; }
.topic-copy { max-width: 750px; }
h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}
h2 cite { font-style: normal; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover, h2 a:focus-visible { color: var(--electric); }
.topic-copy > p {
  max-width: 650px;
  margin: 1.8rem 0 0;
  color: #aebfce;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.7;
}
.topic ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.topic li {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.04em;
}
.open-topic {
  display: inline-flex;
  gap: 0.6rem;
  margin-top: 2rem;
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.open-topic span { transition: transform 180ms ease; }
.open-topic:hover span, .open-topic:focus-visible span { transform: translate(0.16rem, -0.16rem); }

@media (max-width: 700px) {
  .site-header { padding-top: 1.25rem; }
  nav { gap: 0.9rem; }
  nav a { font-size: 0.58rem; }
  .hero { align-items: center; padding-bottom: 5rem; }
  h1 { font-size: clamp(4.2rem, 20vw, 6.5rem); }
  .topic { grid-template-columns: 1fr; gap: 2.2rem; padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .topic-meta { max-width: 360px; }
}

@media (max-width: 390px) {
  nav { gap: 0.6rem; }
  nav a { font-size: 0.52rem; }
}

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