/* Pipeline Beacon pre-launch page.
   One accent colour (signal amber), used for the beacon tick, the button and
   the focus ring only. One corner radius (soft), used on the button only.
   Barlow is self-hosted (SIL Open Font License, see assets/fonts/OFL.txt), so no
   visitor address is sent to a third party. */

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F8FAFC;
  --ink: #0F172A;
  --muted: #475569;
  --rule: #CBD5E1;
  --amber: #F59E0B;
  --amber-hover: #D97706;
  --radius: 0.25rem;
  --body-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --head-font: "Barlow Semi Condensed", "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.125rem;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem);
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  margin: 0;
  font-family: var(--head-font);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: clamp(2rem, 6vw, 3.5rem) 0 2rem;
}

h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--head-font);
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.3;
}

.drift {
  display: block;
  width: 100%;
  max-width: 28rem;
  height: auto;
  margin: 0 0 1.75rem;
}

.drift .tick {
  fill: var(--ink);
}

.drift .beacon {
  fill: var(--amber);
}

p {
  margin: 0 0 1rem;
  max-width: 62ch;
}

.status {
  font-family: var(--head-font);
  font-weight: 600;
}

.read-only {
  color: var(--ink);
}

/* Sections after the hero */
.register,
.audience {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 0.75rem;
  font-family: var(--head-font);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}

.fine {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Button */
.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--ink);
  font-family: var(--head-font);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.button:hover {
  background: var(--amber-hover);
}

/* Visible keyboard focus on every interactive element. */
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Footer */
.site-footer {
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0;
}

/* The beacon tick pulses slowly, once the page is open, to draw the eye to
   the one thing that matters in the graphic. Opacity only. Skipped for
   visitors who have asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .drift .beacon {
    animation: beacon-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes beacon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Text read out by screen readers but not shown, for example
   "(opens in a new tab)" after a link to another site. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
