/* Coming Soon page (issue 0712). Colours come only from the theme tokens in /theme.css. Same origin, no third parties. */
@font-face {
  font-family: 'VT323';
  src: url('/site/fonts/vt323.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/site/fonts/atkinson.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  background: var(--c-bg);
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-fg);
}

.cs {
  --mono: 'VT323', 'Courier New', monospace;
  --sans: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --u: 3px; /* one pixel cell of the wordmark: always a whole number */
  --gut: 1.25rem;
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--c-fg);
  background: var(--c-bg);
  min-height: 100vh;
  min-height: 100dvh;
}
.cs *,
.cs *::before,
.cs *::after {
  box-sizing: border-box;
}
.cs a {
  color: var(--c-link);
}
.cs :focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* layout: header, one centred column, footer */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 var(--gut);
}
.cs-head {
  display: block;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 0 0;
  border: 0;
  background: none;
}
.cs-main {
  flex: 1;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
}
.cs-foot {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--c-border);
}

/* wordmark = logo B geometry (nibble mark + Coldboot, ADR 0036), painted with theme colours through two SVG masks (Bit, Hack, the three hollow cells = fg; the 2 and the lit cell = accent) */
.wm {
  position: relative;
  display: block;
  width: calc(60 * var(--u));
  height: calc(9 * var(--u));
}
.wm-fg,
.wm-accent {
  position: absolute;
  inset: 0;
  -webkit-mask: center / 100% 100% no-repeat;
  mask: center / 100% 100% no-repeat;
}
.wm-fg {
  background: var(--c-fg);
  -webkit-mask-image: url('/site/wm-fg.svg');
  mask-image: url('/site/wm-fg.svg');
}
.wm-accent {
  background: var(--c-accent);
  -webkit-mask-image: url('/site/wm-accent.svg');
  mask-image: url('/site/wm-accent.svg');
}

/* hero */
.hero {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nib {
  width: 96px;
  height: 96px;
  flex: none;
  image-rendering: pixelated;
}
.hero-text {
  min-width: 0;
}
h1 {
  margin: 0;
  font: inherit;
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.promise {
  margin: 0.75rem 0 0;
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--c-accent);
  text-wrap: balance;
}
.summary {
  margin: 0.5rem 0 0;
  max-width: 40ch;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-fg);
}
.next {
  margin: 0.5rem 0 0;
  max-width: 40ch;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-fg);
}
/* the mailto link sits on its own line as a full-size 44 px target; focus ring comes from the shared :focus-visible rule, restated here so it cannot be lost */
.next a {
  display: flex;
  width: fit-content;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--c-link);
  text-underline-offset: 0.2em;
}
.next a:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}
.invites {
  margin: 0;
  max-width: 60ch;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-fg);
}
.invites a {
  font-weight: 700; /* an inline link inside a sentence is exempt from the 44 px target rule; the footer link below is the full-size second route */
}
.fine {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-fg-muted);
}
.cur {
  display: inline-block;
  width: 0.36em;
  height: 0.62em;
  margin-left: 0.14em;
  background: currentcolor;
  vertical-align: baseline;
  animation: blink 1.2s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* doors: one hairline frame, title on the edge */
.frame {
  position: relative;
  border: var(--hairline) solid var(--c-border);
  border-radius: var(--radius-card);
  background: var(--c-surface);
  padding: 1.5rem 1.25rem 1rem;
}
.frame-title {
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-55%);
  margin: 0;
  padding: 0 0.5rem;
  background: var(--c-surface);
  font: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-fg);
}
.doors {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.doors li {
  display: grid;
  grid-template-columns: 5ch 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 0.75rem;
  padding: 0.25rem 0;
  border-top: var(--hairline) solid var(--c-line);
}
.doors li:first-child {
  border-top: 0;
}
.d-node {
  color: var(--c-fg-muted);
}
.d-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.d-gloss {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--c-fg-muted);
}
.d-state {
  letter-spacing: 0.08em;
  color: var(--c-fg-muted);
  background: var(--c-raised);
  border: var(--hairline) solid var(--c-line);
  border-radius: var(--radius-chip);
  padding: 0.1em 0.7em;
  white-space: nowrap;
  justify-self: start;
}
.lock {
  width: 32px;
  height: 32px;
  background: var(--c-fg-muted);
  -webkit-mask: url('/site/door-locked.svg') center / 32px 32px no-repeat;
  mask: url('/site/door-locked.svg') center / 32px 32px no-repeat;
}

/* footer: facts left, discreet theme switcher right (needs JS, hidden without) */
.themes {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.js .themes {
  display: flex;
}
.themes button {
  font: inherit;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--c-fg-muted);
  background: none;
  border: var(--hairline) solid transparent;
  border-radius: var(--radius-chip);
  padding: 0.15rem 0.7rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.themes button:hover {
  color: var(--c-fg);
}
.themes button[aria-pressed='true'] {
  color: var(--c-accent);
  border-color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 14%, transparent);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.back {
  font-family: var(--sans);
}
/* links are 44 px targets (issues 0784, 0842); padding, not line-height, so a wrapped link stays compact */
.back,
.cs-foot nav a,
.wm-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.5rem;
  line-height: 1.3;
}

/* connect line */
.boot {
  display: none;
}
.connecting .boot {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 10;
  padding: 2rem var(--gut);
  background: var(--c-bg);
  color: var(--c-fg);
}
.connecting .page {
  visibility: hidden;
}
.boot-out {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1.3;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.boot-out::after {
  content: '';
  display: inline-block;
  width: 0.42em;
  height: 0.72em;
  margin-left: 0.14em;
  background: currentcolor;
  animation: blink 1.2s steps(1) infinite;
}
.boot-hint {
  position: absolute;
  left: var(--gut);
  bottom: 1.25rem;
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--c-fg-muted);
}

@media (min-width: 420px) {
  .cs {
    --u: 4px;
  }
  .nib {
    width: 128px;
    height: 128px;
  }
  h1 {
    font-size: 4.5rem;
  }
}
@media (min-width: 720px) {
  .cs {
    --u: 6px;
    --gut: 2rem;
  }
  .nib {
    width: 160px;
    height: 160px;
  }
  h1 {
    font-size: 6rem;
  }
  .promise {
    font-size: 1.25rem;
  }
  .cs-main {
    gap: 3.5rem;
  }
  .hero {
    gap: 2.5rem;
  }
  .cs-head {
    padding-top: 2rem;
  }
}
@media (max-width: 559px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
@media (max-width: 479px) {
  .frame {
    padding: 1.5rem 1rem 0.75rem;
  }
  .doors li {
    grid-template-columns: 5ch 32px minmax(0, 1fr);
    grid-template-areas: 'node lock name' '. . state';
    gap: 0 0.6rem;
  }
  .d-node {
    grid-area: node;
  }
  .lock {
    grid-area: lock;
  }
  .d-name {
    grid-area: name;
  }
  .d-state {
    grid-area: state;
    font-size: 0.9em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cur,
  .boot-out::after {
    animation: none;
  }
}
@media (forced-colors: active) {
  .wm-fg,
  .wm-accent,
  .lock,
  .cur {
    forced-color-adjust: none;
    background: CanvasText;
  }
}
@media print {
  .boot,
  .themes {
    display: none !important;
  }
}

/* waitlist form (issue 0720): shown only when WAITLIST_ENABLED; works without JavaScript */
.wl {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.wl-intro {
  margin: 0.5rem 0 0;
  max-width: 48ch;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-fg);
}
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.wl-label {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-fg);
}
.wl-hint {
  max-width: 52ch;
}
.wl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.wl-input {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: var(--hairline) solid var(--c-border);
  border-radius: var(--radius-control);
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.3;
}
.wl-input[aria-invalid='true'] {
  border-color: var(--c-danger);
  border-style: dashed;
}
.wl-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: var(--hairline) solid var(--c-accent);
  border-radius: var(--radius-control);
  background: var(--c-accent);
  color: var(--c-accent-fg);
  font-family: var(--mono);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.wl-button:hover {
  background: var(--c-accent-hover);
  border-color: var(--c-accent-hover);
  color: var(--c-accent-fg);
}
.wl-button[disabled] {
  cursor: progress;
  opacity: 0.7;
}
.wl-status {
  min-height: 1.5em;
  margin: 0.25rem 0 0;
  max-width: 52ch;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-fg);
}
.wl-status:empty {
  min-height: 0;
  margin: 0;
}
.wl-ok::before {
  content: 'Done: ' / '';
  font-weight: 700;
}
.wl-error::before {
  content: 'Problem: ' / '';
  font-weight: 700;
}
.wl-privacy a {
  display: inline-block;
  padding-block: 0.4rem;
}
@media (forced-colors: active) {
  .wl-input,
  .wl-button {
    border-color: ButtonText;
  }
}
