/* The page itself: the black ground, the dot grid, the rails, and the two
   column widths every screen is built on. Taken from the design board rather
   than invented; the values are the design system's tokens. */

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--c-bg-black);
  color: var(--c-neutral-11);
  font: var(--t-body-primary-300);
  -webkit-font-smoothing: antialiased;
}

/* The texture behind everything. Masked top and bottom so it fades rather
   than stopping at an edge. */
.ground {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
  background-size: 13px 13px;
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 70%, transparent 100%);
}

/* Two dashed verticals. On a phone they sit just inside the edges; on a
   desktop they frame the column. */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--c-neutral-2) 0 4px, transparent 4px 8px);
}

.rail-left {
  left: 20px;
}

.rail-right {
  right: 20px;
}

@media (min-width: 900px) {
  .rail-left {
    left: 320px;
  }

  .rail-right {
    right: 320px;
  }
}

.guest-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.guest-logo {
  display: flex;
  justify-content: center;
  padding: 28px 20px;
}

@media (min-width: 900px) {
  .guest-logo {
    justify-content: flex-start;
    padding: 40px 28px;
  }
}

.guest-logo img {
  height: 20px;
  width: auto;
  display: block;
}

.guest-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guest-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 32px;
  padding: 0 36px 56px;
}

@media (min-width: 900px) {
  .guest-column {
    width: 480px;
    margin: 0 auto;
    padding: 0 0 80px;
  }
}

/* G1b: the headline variant, two columns with a rail between them. Hidden
   unless that layout is switched on - a wide screen is not the same thing as
   asking for the headline. */
.guest-hero,
.guest-divider {
  display: none;
}

@media (min-width: 1100px) {
  .guest-wide {
    display: grid;
    grid-template-columns: 1fr 1px 480px;
    column-gap: 56px;
    align-items: center;
    width: min(1180px, 100% - 120px);
    margin: 0 auto;
    flex: 1;
  }

  .guest-wide .guest-column {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .guest-wide .guest-hero {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
  }

  .guest-wide .guest-divider {
    display: block;
  }

  .guest-wide .guest-hero h1 {
    font: var(--t-h3-300);
    letter-spacing: var(--ls-h3);
    color: var(--c-white);
    margin: 0;
    text-wrap: pretty;
  }

  .guest-wide .guest-divider {
    align-self: stretch;
    background: repeating-linear-gradient(to bottom, var(--c-neutral-2) 0 4px, transparent 4px 8px);
  }
}

/* The joining screen centres itself and drops the logo: it is a moment, not a
   page. */
.guest-centred .stack-md {
  align-items: center;
  text-align: center;
}

.guest-joining .guest-logo,
.guest-joining .guest-footer {
  visibility: hidden;
}

/* Facts under a dead end, set off by a rule so they read as details rather
   than as more of the explanation. */
.guest-facts {
  width: 100%;
  border-top: 1px solid var(--c-neutral-2);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}

.guest-footer {
  padding: 0 36px 28px;
  display: flex;
  justify-content: center;
}

.eyebrow {
  font: var(--t-body-primary-300);
  color: var(--c-neutral-9);
  margin: 0;
}

.eyebrow-warning {
  color: var(--c-orange);
}

.eyebrow-critical {
  color: var(--c-red);
}

.eyebrow-live {
  color: var(--c-green);
  display: flex;
  align-items: center;
  column-gap: 8px;
}

h1.screen-title,
h2.screen-title {
  font: var(--t-h5-500);
  letter-spacing: var(--ls-h5);
  color: var(--c-white);
  margin: 0;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  h1.screen-title,
  h2.screen-title {
    font: var(--t-h4-300);
    letter-spacing: var(--ls-h4);
  }
}

.body-text {
  font: var(--t-body-primary-300);
  color: var(--c-neutral-11);
  margin: 0;
  text-wrap: pretty;
}

/* The trust line has two lengths: the full sentence where it fits, the short
   one on a phone. Never broken across three lines, never hidden behind
   "more" - it is the sentence that says whose system this is. */
.trust-line-short {
  display: none;
}

@media (max-width: 600px) {
  .trust-line-full {
    display: none;
  }

  .trust-line-short {
    display: block;
  }
}

.trust-line {
  font: var(--t-body-small-300);
  color: var(--c-neutral-10);
  margin: 0;
  text-wrap: pretty;
}

.fine-print {
  font: var(--t-body-small-300);
  color: var(--c-neutral-8);
  margin: 0;
  text-wrap: pretty;
}

.muted {
  font: var(--t-body-small-300);
  color: var(--c-neutral-7);
}

.stack-sm {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.stack-md {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.hidden {
  display: none !important;
}
