/* Reading-page styles for /words/*. Pulls in the shared "Cosmos & Emergence"
   theme (tokens, fonts, cosmic backdrop, back-link, header, footer, lightbox)
   from site.css, then layers on article-specific typography and cards. */
@import url('../site.css');

body {
  --accent: var(--violet);
  font-size: 1.05rem;
  line-height: 1.7;
}
header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.byline {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.byline b {
  color: var(--text);
}

/* Essay body */
.prose p {
  margin: 0 0 18px;
  color: var(--text);
}
.prose blockquote {
  margin: 22px 0;
  padding: 6px 0 6px 18px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  color: var(--muted);
  font-style: italic;
}
.prose blockquote cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}
.prose h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  color: var(--text);
  margin: 32px 0 10px;
}

/* Writing index */
.topic {
  margin: 36px 0 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.topic::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, transparent), transparent);
}
.topic-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topic-icon {
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: normal;
}
.entry {
  display: block;
  padding: 16px 18px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-decoration: none;
  box-shadow: 0 10px 28px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.entry:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--accent) 45%, transparent);
}
.entry-title {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.entry-desc {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}
.empty {
  margin: 14px 2px 0;
  color: var(--muted);
  font-style: italic;
}
footer {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}
a {
  color: color-mix(in srgb, var(--cyan) 70%, var(--text));
}
