:root {
  --text: #f7fbff;
  --muted: #cdd8df;
  --paper: rgba(8, 17, 24, .76);
  --paper-strong: rgba(7, 15, 22, .91);
  --line: rgba(255, 255, 255, .2);
  --accent: #70d7c7;
  --accent-dark: #183f4a;
  --action: #ffcf5a;
  --warm: #ff8a68;
  --focus: #8bdcff;
  --shadow: 0 20px 55px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 5.75rem;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.62;
  color: var(--text);
  background: #071018;
  overflow-x: hidden;
}

body.space-page {
  --earth-bg: url("assets/earth-about.jpg");
  --earth-position: center center;
  background-color: #071018;
  background-image:
    linear-gradient(180deg, rgba(3, 10, 17, .62), rgba(3, 10, 17, .34) 42%, rgba(3, 10, 17, .82)),
    linear-gradient(90deg, rgba(6, 15, 23, .72), rgba(6, 15, 23, .28) 45%, rgba(6, 15, 23, .68)),
    var(--earth-bg);
  background-position: center center, center center, var(--earth-position);
  background-repeat: no-repeat;
  background-size: cover, cover, cover;
  background-attachment: fixed;
}

body.page-about {
  --earth-bg: url("assets/earth-about.jpg");
  --earth-position: center center;
}

body.page-why {
  --earth-bg: url("assets/earth-why.jpg");
  --earth-position: 54% center;
}

body.page-plan {
  --earth-bg: url("assets/earth-plan.png");
  --earth-position: center 42%;
}

body.page-join {
  --earth-bg: url("assets/earth-join.jpg");
  --earth-position: center center;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: .18em;
}

a:hover,
a:focus-visible {
  color: var(--action);
}

h1,
h2,
h3,
p,
li,
dt,
dd,
label,
input,
textarea,
button,
select {
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin: 0 0 1rem;
  font-size: 3.25rem;
  line-height: 1.06;
}

h2 {
  margin: 0 0 .65rem;
  font-size: 1.34rem;
  line-height: 1.24;
}

p {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  left: -9999px;
  top: .75rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: #000;
  color: #fff;
}

.skip-link:focus {
  left: .75rem;
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 50;
  display: grid;
  width: min(1120px, calc(100% - 2rem));
  gap: .65rem;
  justify-items: center;
  padding: .75rem;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 15, 22, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  text-align: left;
  text-decoration: none;
}

.brand img {
  width: 48px;
  min-width: 48px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .35));
}

.brand-name {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.08;
}

.brand-tagline {
  display: block;
  margin-top: .1rem;
  color: var(--muted);
  font-size: .95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
}

.site-nav a,
.button,
.toggle {
  min-height: 44px;
  border-radius: 8px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .58rem .9rem;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .09);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #061018;
  box-shadow: 0 12px 26px rgba(112, 215, 199, .2);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-hovered,
.button:hover,
.button:focus-visible,
.button.is-hovered,
.toggle:hover,
.toggle:focus-visible,
.toggle.is-hovered {
  transform: translateY(-1px);
  border-color: var(--action);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-hovered {
  background: var(--action);
  color: #081118;
}

.button.is-clicked,
.button:active,
.site-nav a.is-clicked,
.site-nav a:active,
.toggle.is-clicked,
.toggle:active {
  transform: translateY(1px);
  background: var(--warm);
  border-color: var(--warm);
  color: #081118;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .24);
}

.main-content {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 10rem 0 3rem;
}

.hero {
  display: grid;
  min-height: calc(100vh - 13rem);
  align-content: center;
  padding: 2rem 0;
}

.manifesto-hero {
  position: relative;
}

.manifesto-hero::after {
  content: "";
  display: block;
  width: min(30rem, 72vw);
  height: 4px;
  margin-top: 1.55rem;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--action), var(--accent), rgba(255, 255, 255, 0));
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 .85rem;
  padding: .3rem .72rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: var(--action);
  font-weight: 900;
  text-transform: uppercase;
}

.lede {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1.22rem;
}

.manifesto-hero .lede {
  color: #edf7fb;
}

.manifesto-line {
  max-width: 760px;
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 5px solid var(--action);
  color: #ffffff;
  font-weight: 850;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .82rem 1.05rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #061018;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.button-secondary {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12);
  color: var(--text);
}

.content {
  position: relative;
  padding: 0 0 3.5rem;
}

.content::before {
  content: "";
  display: block;
  width: min(100%, 18rem);
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--warm), var(--action), var(--accent));
}

.wide-content {
  max-width: 1120px;
}

.two-column,
.card-grid,
.definition-list {
  display: grid;
  gap: 1rem;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.card-grid,
.definition-list {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.two-column > article,
.card,
.definition-list > div,
.commitment-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.two-column > article,
.card,
.definition-list > div,
.commitment-band {
  padding: 1.15rem;
}

.two-column > article,
.commitment-band {
  border-left: 5px solid var(--action);
}

.card {
  border-top: 4px solid var(--accent);
}

.card:nth-child(2n) {
  border-top-color: var(--warm);
}

.card:nth-child(3n) {
  border-top-color: var(--action);
}

.definition-list {
  margin: 1rem 0 0;
  padding: 0;
}

.definition-list dt {
  margin-bottom: .35rem;
  color: var(--action);
  font-weight: 900;
}

.definition-list dd {
  margin: 0;
  color: var(--muted);
}

.commitment-band {
  margin-top: 1rem;
}

.steps {
  display: grid;
  gap: .8rem;
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
}

.steps li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--paper);
}

.numbered-steps {
  counter-reset: plan-step;
}

.numbered-steps li {
  position: relative;
  padding-left: 3.2rem;
}

.numbered-steps li::before {
  counter-increment: plan-step;
  content: counter(plan-step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--action);
  color: #061018;
  font-weight: 900;
}

.commitment-list li {
  padding: .55rem 0 .55rem .85rem;
  border: 0;
  border-left: 5px solid var(--warm);
  border-radius: 0;
  background: transparent;
}

body[dir="rtl"] .commitment-list li {
  padding-right: .85rem;
  padding-left: 0;
  border-right-color: var(--warm);
}

.simple-form {
  display: grid;
  gap: .7rem;
  padding: 0;
}

.simple-form label {
  font-weight: 850;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: #061018;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-footer {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 45;
  width: min(1120px, calc(100% - 2rem));
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 15, 22, .84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  max-width: calc(100% - 2rem);
}

.footer-accessibility {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .55rem;
  text-align: left;
}

.footer-accessibility h2 {
  margin: 0;
  font-size: 1rem;
}

.footer-accessibility p {
  display: none;
}

.top-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  width: auto;
}

.top-tools > *,
.site-nav > * {
  min-width: 0;
}

.top-tools select {
  max-width: 12rem;
}

.site-footer .top-tools {
  flex-wrap: nowrap;
}

.site-footer .top-tools select {
  flex: 0 0 12rem;
  width: auto;
}

.site-footer .toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}

.toggle {
  padding: .55rem .78rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
}

.toggle[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #061018;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.large-text {
  font-size: 1.125rem;
}

body.high-contrast {
  --text: #fff;
  --muted: #f3f3f3;
  --paper: #000;
  --paper-strong: #000;
  --line: #fff;
  --accent: #ffd400;
  --action: #8bdcff;
  --warm: #fff;
  --shadow: none;
  background: #000;
  background-image: none;
}

body.high-contrast .site-header,
body.high-contrast .site-footer,
body.high-contrast .two-column > article,
body.high-contrast .card,
body.high-contrast .definition-list > div,
body.high-contrast .commitment-band,
body.high-contrast .simple-form {
  background: #000;
}

body.high-contrast .button,
body.high-contrast .site-nav a[aria-current="page"],
body.high-contrast .toggle[aria-pressed="true"] {
  color: #000;
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  scroll-behavior: auto !important;
  animation: none !important;
  transition: none !important;
}

body[dir="rtl"] .brand {
  direction: rtl;
  text-align: right;
}

body[dir="rtl"] .main-content {
  direction: ltr;
  text-align: left;
}

body[dir="rtl"] .steps li {
  border-left-width: 1px;
  border-right: 5px solid var(--accent);
}

body[dir="rtl"] .commitment-list li {
  border-right-color: var(--warm);
}

body[dir="rtl"] .numbered-steps li {
  padding-right: 3.2rem;
  padding-left: 1rem;
}

body[dir="rtl"] .numbered-steps li::before {
  right: 1rem;
  left: auto;
}

@media (max-width: 800px) {
  body {
    padding-bottom: 9rem;
  }

  .site-header {
    top: .5rem;
    width: calc(100vw - .75rem);
    max-width: calc(100vw - .75rem);
    min-width: 0;
    gap: .5rem;
    padding: .6rem;
  }

  .site-header > * {
    min-width: 0;
  }

  .brand img {
    width: 40px;
    min-width: 40px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-tagline {
    display: none;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: .25rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .site-nav a {
    min-width: 0;
    width: 100%;
    padding: .52rem .4rem;
    font-size: .94rem;
    overflow: hidden;
    white-space: normal;
  }

  .main-content {
    width: calc(100vw - 1rem);
    padding-top: 8.75rem;
  }

  .hero {
    min-height: auto;
    padding: 2.5rem 0 2rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .two-column,
  .card-grid,
  .definition-list {
    grid-template-columns: 1fr;
  }

  .actions,
  .actions .button {
    width: 100%;
  }

  .site-footer {
    bottom: .5rem;
    width: calc(100vw - .75rem);
    max-width: calc(100vw - .75rem);
    min-width: 0;
    max-height: 40vh;
    overflow: auto;
  }

  .footer-accessibility {
    display: grid;
    justify-items: center;
    text-align: center;
    min-width: 0;
  }

  .top-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }

  .site-footer .top-tools {
    display: grid;
  }

  .top-tools select {
    max-width: none;
    grid-column: 1 / -1;
  }

  .site-footer .top-tools select,
  .site-footer .toggle {
    min-width: 0;
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  body {
    padding-bottom: 9rem;
  }

  h1 {
    font-size: 2rem;
  }
}
