/* spwnit.com — one stylesheet for every page.
   Matches the reels: true black, Fira Code, signal cyan. */

:root {
  --void: #000000;        /* background, same black as the graded footage */
  --signal: #00e5ff;      /* title-card cyan */
  --signal-dim: #5fa9b5;  /* metadata line, like the date on a HUD */
  --bone: #d9e2e4;        /* body text */
  --ash: #8a989c;         /* secondary text */
  --rule: #1d2a2e;        /* hairlines between items */
  --focus: #a27bff;       /* keyboard focus, from the violet flask */

  --measure: 42rem;
  --gutter: clamp(1rem, 5vw, 3rem);
}

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

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: "Fira Code", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main,
.site-header,
.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

a { color: var(--signal); text-underline-offset: 0.2em; }
a:hover { color: var(--bone); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header: a single prompt-style home link */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.5rem 0;
  font-size: 0.9rem;
}
.site-header a { text-decoration: none; }
.site-header nav a { color: var(--ash); margin-left: 1.25rem; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--signal); }

/* The HUD: the one bold element, same format as the reel title cards */
.hud {
  padding-block: clamp(4rem, 14vh, 8rem) 2.5rem;
}
.hud__title {
  margin: 0;
  color: var(--signal);
  font-weight: 500;
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.hud__title .cursor {
  display: inline-block;
  width: 0.55em;
  height: 0.08em;
  margin-left: 0.08em;
  background: var(--signal);
  vertical-align: baseline;
  animation: blink 1.1s steps(1) infinite;
}
.hud__meta {
  margin: 0.75rem 0 0 1.2em; /* lines up under the text, past the prompt */
  color: var(--signal-dim);
  font-size: 0.95rem;
}
.hud--page .hud__title { font-size: clamp(1.5rem, 6vw, 2.2rem); }

@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hud__title .cursor { animation: none; }
}

/* Body copy */
.lede { max-width: 36rem; color: var(--bone); }
.muted { color: var(--ash); }

h2 {
  margin: 3.5rem 0 0.25rem;
  color: var(--signal);
  font-size: 1.05rem;
  font-weight: 500;
}
h2 + .muted { margin-top: 0; font-size: 0.9rem; }

/* Link list on the home page, written like terminal output */
.channels {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.channels li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.channels li:first-child { border-top: 1px solid var(--rule); }
.channels .soon { color: var(--ash); }

/* Gear list items */
.notice {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--signal-dim);
  color: var(--ash);
  font-size: 0.9rem;
}

.gear {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.gear li {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.gear li:first-child { border-top: 1px solid var(--rule); }
.gear .name {
  display: block;
  color: var(--bone);
  font-weight: 500;
}
.gear .why { display: block; color: var(--ash); font-size: 0.92rem; }
.gear dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15rem 1rem;
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
}
.gear dt { color: var(--signal-dim); }
.gear dd { margin: 0; color: var(--bone); }
.gear .link { display: inline-block; margin-top: 0.6rem; font-size: 0.9rem; }
.gear .pending { color: var(--ash); font-size: 0.85rem; }
.gear .starter { color: var(--signal); font-size: 0.8rem; margin-left: 0.5rem; }

/* Footer */
.site-footer {
  /* keep the rule the same width as the text column */
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--measure) - 2 * var(--gutter));
  padding-inline: 0;
  margin-top: 5rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ash);
  font-size: 0.85rem;
}
.site-footer p { margin: 0.25rem 0; }

/* Kit signup form */
.signup { margin-top: 1rem; }
.signup .formkit-form { max-width: none !important; }
