/* index.html */

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

.hero { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2.5rem, 7vw, 4rem); }

h1 {
  margin: clamp(2rem, 6vw, 3.5rem) 0 0;
  max-width: 15ch;
}

.lede { max-width: 34ch; }

/* ---------- constellation ---------- */

.sky .label { font-size: 21px; }

/* Blue star = alpha release. */
.sky .alpha { fill: #3568A8; }

/* Labels are links to their article below. The transparent stroke widens the hit area. */
.sky a {
  cursor: pointer;
  border: 0;
  -webkit-tap-highlight-color: rgba(53, 104, 168, 0.28);
}
.sky a .label { stroke: transparent; stroke-width: 12px; }
.sky a:hover .label,
.sky a:active .label { fill: var(--pelt); }

@media (prefers-reduced-motion: no-preference) {
  .sky .built { animation: pulse 5.5s ease-in-out infinite; }
  .sky .built:nth-of-type(2) { animation-delay: -1.8s; }
  .sky .built:nth-of-type(3) { animation-delay: -3.6s; }
}

/* Phones: labels are hidden, so each dot gets a number and the legend
   below lists the same numbers as tappable buttons. */
.sky .num {
  display: none;
  fill: var(--ink);
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 44px;
  text-anchor: middle;
}

.legend { display: none; }

.legend ol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.legend a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  -webkit-tap-highlight-color: rgba(53, 104, 168, 0.28);
}

.legend a:hover,
.legend a:active {
  border-color: var(--pelt);
  color: var(--pelt);
}

.legend .n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--pelt);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
}

.legend a.alpha .n { background: #3568A8; }

.caption {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- work ---------- */

.work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 8vw, 5rem);
}

.work h2 {
  margin: 0 0 0.375rem;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.02em;
}

.status {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pelt);
}

.work p.note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-weight: 300;
}

/* A constellation label scrolls here and lights up its article.
   On multi-column, negative margin cancels padding so the halo sits in the gap.
   On one column, skip that — it only eats shell padding and overflows on iOS. */
.work article {
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  scroll-margin-top: 2rem;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

@media (min-width: 46.01rem) {
  .work article {
    margin: calc(-1rem - 1px);
  }
}

.work article:target {
  border-color: rgba(125, 78, 42, 0.35);
  box-shadow: 0 4px 16px rgba(125, 78, 42, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .work article:target { animation: glow 2.4s ease-out; }
}

@keyframes glow {
  0%   { box-shadow: 0 0 0 0 rgba(125, 78, 42, 0); }
  35%  { box-shadow: 0 8px 28px rgba(125, 78, 42, 0.32); }
  100% { box-shadow: 0 4px 16px rgba(125, 78, 42, 0.12); }
}

/* ---------- contact ---------- */

.contact {
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
  border-top: 1px solid var(--rule);
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.contact h2 {
  margin: 0 0 1rem;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact p {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.375rem);
  line-height: 1.5;
}

@media (max-width: 46rem) {
  .work { grid-template-columns: 1fr; }
  .sky .label { display: none; }
  .sky .num { display: inline; }
  .legend { display: block; }
}
