/* The glossary on the how-to-deploy line (founder 2026-11-12). Each word sits on
   the stop where a reader meets it and is a small point on the line, lit as the
   star passes it. A link to one word (/glossary#dns, or the index at the top)
   lands it at the star's height, so the line is lit down to it, and the word
   glows once. The line, its stops and the star come from how-to-deploy.css. */
@import url('/static/how-to-deploy.css');

/* From a word's edge back to the line: past the stop names' column and the gap. */
.gl { --gl-to-line: calc(var(--ga-line-at) + 1px - var(--ga-rail) - 12rem - 32px); }

.gl-index { margin-block-start: 4px; }
.gl-line { color: var(--text-muted); }

.gl-terms { margin: 26px 0 0; display: grid; gap: 30px; }
.gl-term { position: relative; isolation: isolate; }
.gl-term dt {
  position: relative;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.6;
  scroll-margin-block-start: calc(var(--ga-read) - 14px);
}
.gl-term dd { margin: 6px 0 0; color: var(--text-muted); font-size: 1.0625rem; line-height: 1.75; max-width: 62ch; }

/* The word's point on the line. */
.gl-term dt::before {
  --gl-dot: 10px;
  content: '';
  position: absolute;
  inset-inline-start: calc(var(--gl-to-line) - var(--gl-dot) / 2);
  top: calc(0.8em - var(--gl-dot) / 2);
  box-sizing: border-box;
  width: var(--gl-dot);
  height: var(--gl-dot);
  border-radius: 50%;
  background: var(--surface-page);
  border: 2px solid color-mix(in srgb, var(--brand-star) 55%, var(--surface-page));
  transition: background-color 0.25s ease-out, border-color 0.25s ease-out, transform 0.3s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.gl-term dt.is-reached::before { background: var(--brand-star); border-color: var(--brand-star); }

/* Arriving at a word by its link: its point swells and the word glows, once. */
.gl-term dt:target::before {
  transform: scale(1.5);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-star) 28%, transparent);
}
.gl-term:has(> dt:target)::after {
  content: '';
  position: absolute;
  inset: -12px -16px;
  z-index: -1;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--brand-star) 18%, transparent);
  opacity: 0;
  pointer-events: none;
  animation: gl-here 2.8s ease-out;
}
@keyframes gl-here {
  0% { opacity: 0; }
  14% { opacity: 1; }
  100% { opacity: 0; }
}

/* A jump from the index travels down the line, lighting each word it passes. */
@media (prefers-reduced-motion: no-preference) {
  html:has(.gl) { scroll-behavior: smooth; }
}

@media (max-width: 760px) {
  .gl { --gl-to-line: calc(var(--ga-line-at) + 1px - var(--ga-rail)); }
  .gl-terms { margin-block-start: 18px; gap: 24px; }
  .gl-term:has(> dt:target)::after { inset-inline: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-term dt::before { transition: none; }
  .gl-term dt:target::before { transform: none; }
  .gl-term:has(> dt:target)::after { animation: none; opacity: 1; }
}
