/* reset, typography and the shared primitives (eyebrow, status pill, arrow
   link, container, rule). page-specific layout lives in its own stylesheet. */

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

html {
  -webkit-text-size-adjust: 100%;
}

/* deliberately no font-family on body.

   it used to set one, and because her own elements inherit rather than declare,
   our stack won everywhere on her page: her nav menu links were computing to
   Inter instead of her face. our type is set on .edge-ui and below only. */
body {
  margin: 0;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.edge-ui {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--edge);
  outline-offset: 3px;
  border-radius: 4px;
}

/* the ua rule for [hidden] is display:none at element specificity, so any
   class that sets display beats it. without this an overlay written as
   .panel{display:flex} stays laid out while "hidden" and swallows every click
   on the page beneath it. */
[hidden] {
  display: none !important;
}

/* the starfield sits behind everything and never takes a click.
   width/height are explicit: a canvas is a replaced element, so inset:0 alone
   leaves it at its intrinsic 300x150 instead of stretching. */
.backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---- primitives ---- */

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.display {
  font-size: var(--type-display);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lead {
  font-size: var(--type-lead);
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 34ch;
}

.facts {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink-faint);
  max-width: 52ch;
}

/* availability badge. the dot pulses so the line reads as current rather
   than as something written once and left there. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem 0.5rem 0.85rem;
  border: 1px solid var(--edge-line);
  background: var(--edge-soft);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--edge);
  box-shadow: 0 0 0 0 rgba(188, 19, 254, 0.6);
  animation: pulse 2.4s var(--ease-out) infinite;
  flex: none;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 0.55rem rgba(188, 19, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(188, 19, 254, 0); }
}

/* underline grows from the left on hover, arrow nudges. the arrow is a span
   rather than a pseudo-element so external links can swap the glyph. */
.arrow-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
  padding-bottom: 2px;
}

.arrow-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--edge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.arrow-link:hover::after,
.arrow-link:focus-visible::after {
  transform: scaleX(1);
}

.arrow-link span {
  transition: transform 0.4s var(--ease-spring);
  color: var(--ink-faint);
}

.arrow-link:hover span {
  transform: translateX(3px);
  color: var(--edge);
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}
