:root {
  --night: #07111a;
  --night-2: #0c1b27;
  --panel: #102330;
  --panel-2: #142b39;
  --line: rgba(166, 232, 255, 0.18);
  --line-strong: rgba(166, 232, 255, 0.34);
  --text: #f6fbff;
  --muted: #b7c8d5;
  --cyan: #5fd8ff;
  --cyan-strong: #20c7ef;
  --gold: #ffd166;
  --green: #62f6a5;
  --purple: #a777ff;
  --danger: #ff756d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --max-width: 1160px;
  --heading: "Nunito Sans", "Avenir Next", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Source Sans 3", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(95, 216, 255, 0.05), transparent 420px),
    var(--night);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

code,
pre,
textarea,
input,
select {
  font-family: "Cascadia Mono", "Consolas", monospace;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--gold);
  color: #09131c;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(166, 232, 255, 0.15);
  background: rgba(7, 17, 26, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max-width), calc(100% - 2rem));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 900;
  line-height: 1.05;
}

.brand-mark span span {
  display: block;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(95, 216, 255, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
  font-size: .95rem;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  padding: .55rem .75rem;
  border-radius: var(--radius);
  font-family: var(--heading);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: calc(100vh - 126px);
  margin: 0;
  padding: clamp(3rem, 8vh, 5.5rem) max(1rem, calc((100vw - var(--max-width)) / 2)) clamp(3rem, 7vh, 4.5rem);
  display: flex;
  align-items: center;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 17, 26, .96) 0%, rgba(7, 17, 26, .82) 32%, rgba(7, 17, 26, .24) 64%, rgba(7, 17, 26, .06) 100%),
    linear-gradient(0deg, rgba(7, 17, 26, .62), rgba(7, 17, 26, .04) 44%, rgba(7, 17, 26, .18));
}

.hero-copy,
.page-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(2.8rem, 5.6vw, 5.2rem);
  line-height: .95;
  letter-spacing: 0;
}

.hero-lede,
.page-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-note {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: .95rem;
}

.hero-actions,
.nav-pair,
.builder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .74rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--heading);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--cyan-strong);
  color: #061019;
}

.button.secondary {
  border-color: rgba(255, 209, 102, 0.7);
  background: rgba(255, 209, 102, 0.06);
  color: var(--gold);
}

.button.ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cyan);
}

.button.danger {
  border-color: rgba(255, 117, 109, .58);
  background: rgba(255, 117, 109, .08);
  color: var(--danger);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 62% 50%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.principle-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-strip article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1.6rem max(1rem, calc((100vw - var(--max-width)) / 2));
  background: linear-gradient(90deg, rgba(95, 216, 255, 0.12), rgba(95, 216, 255, 0.02));
}

.principle-strip article + article {
  border-left: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.12), rgba(255, 209, 102, 0.03));
}

.principle-strip h2 {
  margin: 0 0 .25rem;
  color: var(--cyan);
  font-family: var(--heading);
  line-height: 1.1;
}

.principle-strip article + article h2 {
  color: var(--gold);
}

.principle-strip p {
  margin: 0;
  color: var(--muted);
}

.principle-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  color: var(--cyan);
}

.principle-strip article + article .principle-icon {
  color: var(--gold);
}

.lock-icon::before {
  content: "";
  width: 25px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: 0 -13px 0 -8px var(--night), 0 -13px 0 -6px currentColor;
}

.receipt-icon::before {
  content: "";
  width: 25px;
  height: 32px;
  border: 2px solid currentColor;
  clip-path: polygon(0 0, 72% 0, 100% 24%, 100% 100%, 0 100%);
}

.section,
.content-layout,
.builder-layout,
.reference-section,
.resource-grid,
.article-stack.wide {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 1.6rem;
}

.section-heading h2,
.preview-copy h2,
.article-section h2,
.lane-detail h2,
.resource-card h2,
.output-panel label,
.builder-form legend {
  margin: 0 0 .5rem;
  font-family: var(--heading);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.section-heading p,
.preview-copy p,
.article-section p,
.lane-detail p,
.resource-card p {
  color: var(--muted);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.step-card,
.lane-card,
.resource-card,
.article-section,
.lane-detail,
.check-panel,
.builder-form,
.output-panel,
.markdown-window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  box-shadow: 0 12px 36px rgba(0, 0, 0, .16);
}

.step-card {
  min-height: 178px;
  padding: 1rem;
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  margin-bottom: 1rem;
}

.step-card h3,
.lane-card h3,
.guide-grid h3 {
  margin: 0 0 .45rem;
  font-family: var(--heading);
  line-height: 1.1;
}

.step-card p,
.lane-card p,
.guide-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.builder-preview {
  display: grid;
  grid-template-columns: minmax(260px, .56fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.preview-copy {
  padding: 1.2rem 0;
}

.markdown-window {
  overflow: hidden;
  background: rgba(4, 13, 20, .76);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .78rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.window-bar span {
  width: 54px;
  height: 12px;
  border-radius: 0;
  background:
    radial-gradient(circle at 6px 6px, var(--green) 0 6px, transparent 6.5px),
    radial-gradient(circle at 27px 6px, var(--gold) 0 6px, transparent 6.5px),
    radial-gradient(circle at 48px 6px, var(--purple) 0 6px, transparent 6.5px);
  flex: 0 0 54px;
}

.markdown-window pre {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #dff6ff;
  font-size: .9rem;
}

.lane-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.lane-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  text-decoration: none;
}

.lane-card:nth-child(2) {
  border-color: rgba(255, 209, 102, .32);
}

.lane-card:nth-child(3) {
  border-color: rgba(167, 119, 255, .32);
}

.lane-card:nth-child(4) {
  border-color: rgba(98, 246, 165, .32);
}

.lane-card span,
.resource-card a,
.back-link {
  color: var(--cyan);
  font-family: var(--heading);
  font-weight: 800;
}

.page-main {
  width: 100%;
  margin: 0;
  padding-bottom: 4rem;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 520px;
  margin: 0 0 3rem;
  padding: clamp(3.6rem, 8vh, 5.8rem) max(1rem, calc((100vw - var(--max-width)) / 2));
  display: flex;
  align-items: center;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}

.hero-with-media {
  display: flex;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.2rem;
  text-decoration: none;
}

.content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 94px;
  display: grid;
  gap: .5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.side-nav a {
  color: var(--muted);
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a:focus {
  color: var(--cyan);
}

.article-stack {
  display: grid;
  gap: 1rem;
}

.article-stack.wide {
  max-width: 930px;
}

.audience-strip,
.civic-intro,
.choice-lanes,
.explainer-cards,
.straddie-scene,
.civic-journey,
.ecosystem-map,
.civic-closing {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.audience-strip,
.civic-intro,
.choice-lanes,
.explainer-cards,
.civic-journey,
.ecosystem-map {
  padding: 1rem 0 4.5rem;
}

.audience-strip,
.plain-word-grid,
.choice-grid,
.explainer-grid,
.ecosystem-grid {
  display: grid;
  gap: 1rem;
}

.audience-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plain-word-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-strip article,
.plain-word-grid article,
.choice-card,
.explainer-grid article,
.journey-rail article,
.ecosystem-grid article,
.p4a-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .16);
}

.audience-strip article {
  min-height: 230px;
  padding: 1.15rem;
}

.plain-word-grid article {
  min-height: 212px;
  padding: 1.05rem;
}

.plain-word-grid strong {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.05rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--heading);
  font-size: 1.05rem;
  line-height: 1;
}

.plain-word-grid article:nth-child(2) strong,
.plain-word-grid article:nth-child(6) strong {
  border-color: var(--gold);
  color: var(--gold);
}

.plain-word-grid article:nth-child(3) strong,
.plain-word-grid article:nth-child(5) strong {
  border-color: var(--green);
  color: var(--green);
}

.plain-word-grid h3,
.choice-card h3,
.explainer-grid h3,
.journey-rail h3,
.ecosystem-grid h3,
.p4a-note h3 {
  margin: 0 0 .45rem;
  font-family: var(--heading);
  font-size: 1.28rem;
  line-height: 1.08;
}

.audience-strip h2 {
  margin: 0 0 .65rem;
  font-family: var(--heading);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.card-label,
.ecosystem-grid span {
  display: block;
  margin-bottom: .8rem;
  color: var(--cyan);
  font-family: var(--heading);
  font-size: .82rem;
  font-weight: 900;
}

.plain-word-grid p,
.choice-card p,
.audience-strip p,
.explainer-grid p,
.scene-copy p,
.scene-board p,
.journey-rail p,
.ecosystem-grid p,
.p4a-note p,
.civic-closing p {
  color: var(--muted);
}

.choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.explainer-grid,
.ecosystem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecosystem-grid {
  align-items: start;
}

.choice-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 310px;
  padding: 1.05rem;
  overflow: hidden;
}

.choice-card::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 3px;
  background: var(--cyan);
}

.choice-card.trusted::after {
  background: var(--gold);
}

.choice-card.notice::after {
  background: var(--green);
}

.choice-card.receipt::after {
  background: var(--purple);
}

.choice-card.trusted {
  border-color: rgba(255, 209, 102, .32);
}

.choice-card.notice {
  border-color: rgba(98, 246, 165, .32);
}

.choice-card.receipt {
  border-color: rgba(167, 119, 255, .34);
}

.choice-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border: 1px solid currentColor;
  color: var(--cyan);
  font-family: var(--heading);
  font-size: .82rem;
  font-weight: 900;
}

.choice-card.trusted .choice-icon {
  color: var(--gold);
}

.choice-card.notice .choice-icon {
  color: var(--green);
}

.choice-card.receipt .choice-icon {
  color: var(--purple);
}

.choice-card a {
  align-self: end;
  margin-top: 1rem;
  color: var(--cyan);
  font-family: var(--heading);
  font-weight: 800;
  text-decoration: none;
}

.choice-card a:hover,
.choice-card a:focus,
.explainer-grid a:hover,
.explainer-grid a:focus,
.ecosystem-grid a:hover,
.ecosystem-grid a:focus {
  text-decoration: underline;
}

.explainer-grid article {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  min-height: 250px;
  padding: 1.05rem;
}

.ecosystem-grid article {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem;
}

.explainer-grid a,
.ecosystem-grid a,
.card-actions a {
  align-self: end;
  margin-top: 1rem;
  color: var(--cyan);
  font-family: var(--heading);
  font-weight: 800;
  text-decoration: none;
}

.ecosystem-grid article:first-child {
  border-color: rgba(255, 209, 102, .34);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(166, 232, 255, .14);
}

.card-actions a {
  margin-top: 0;
}

.straddie-scene {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: 1.4rem;
  align-items: center;
  padding: .5rem 0 5rem;
}

.scene-copy h2 {
  margin: 0 0 .65rem;
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.scene-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(95, 216, 255, .1), transparent 46%),
    linear-gradient(315deg, rgba(255, 209, 102, .1), transparent 52%),
    rgba(255, 255, 255, .025);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
  overflow: hidden;
}

.scene-line {
  position: absolute;
  inset: 50% 2rem auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 216, 255, .58), rgba(255, 209, 102, .58), transparent);
}

.scene-board article {
  position: relative;
  min-height: 164px;
  padding: .95rem;
  border: 1px solid rgba(166, 232, 255, .2);
  border-radius: var(--radius);
  background: rgba(4, 13, 20, .68);
}

.scene-board article:nth-of-type(2) {
  border-color: rgba(255, 209, 102, .3);
}

.scene-board article:nth-of-type(4) {
  border-color: rgba(98, 246, 165, .26);
}

.scene-board span {
  display: block;
  margin-bottom: .35rem;
  color: var(--cyan);
  font-family: var(--heading);
  font-size: .82rem;
  font-weight: 900;
}

.scene-board strong {
  display: block;
  color: var(--gold);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: clamp(.9rem, 1.15vw, 1.05rem);
  overflow-wrap: anywhere;
}

.journey-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.journey-rail::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 216, 255, .5), rgba(98, 246, 165, .5), rgba(255, 209, 102, .5));
}

.journey-rail article {
  position: relative;
  min-height: 245px;
  padding: 1.05rem;
}

.journey-rail span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border: 1px solid var(--green);
  background: var(--night);
  color: var(--green);
  font-family: var(--heading);
  font-weight: 900;
}

.p4a-note {
  margin-top: 1rem;
  padding: 1.1rem;
  border-color: rgba(255, 209, 102, .34);
  background:
    linear-gradient(90deg, rgba(255, 209, 102, .1), rgba(95, 216, 255, .035)),
    rgba(255, 255, 255, .025);
}

.p4a-note h3 {
  color: var(--gold);
}

.civic-closing {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0 2rem;
  border-top: 1px solid var(--line);
}

.civic-closing p {
  max-width: 680px;
  margin: 0;
  font-size: 1.08rem;
}

.strange-true-bridge {
  position: relative;
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 36, 48, .88), rgba(6, 18, 28, .94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .26);
}

.strange-true-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-right: 1px solid var(--line);
  background: #050d15;
}

.strange-true-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.08) saturate(1.08);
}

.strange-true-inner {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 3rem);
}

.strange-true-copy {
  max-width: 620px;
}

.strange-true-copy .eyebrow {
  margin: 0 0 .7rem;
  color: var(--cyan);
  font-family: var(--heading);
  font-weight: 900;
}

.strange-true-copy h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1;
}

.strange-true-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 1rem 0 1.35rem;
  color: #d4ecff;
  font-size: 1.05rem;
}

.article-section,
.lane-detail,
.check-panel {
  padding: 1.25rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.guide-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.check-panel ul {
  margin-bottom: 0;
  color: var(--muted);
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(320px, .84fr);
  gap: 1.2rem;
  align-items: start;
  padding-bottom: 4rem;
}

.builder-form,
.output-panel {
  padding: 1rem;
}

.builder-form fieldset {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.builder-form legend {
  padding: 0 .35rem;
  color: var(--cyan);
  font-size: 1.1rem;
}

.builder-form label,
.output-panel label {
  display: grid;
  gap: .35rem;
  margin-bottom: .85rem;
  color: var(--text);
  font-family: var(--heading);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(4, 13, 20, .72);
  color: var(--text);
  font-size: .95rem;
  line-height: 1.45;
}

input,
select {
  min-height: 42px;
  padding: .65rem .75rem;
}

textarea {
  min-height: 92px;
  padding: .75rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(95, 216, 255, .45);
  outline-offset: 2px;
}

.form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.markdown-output {
  min-height: 720px;
  white-space: pre;
}

.status {
  min-height: 1.5rem;
  color: var(--green);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 4rem;
}

.reference-section {
  padding-bottom: 4.5rem;
}

.reference-section .resource-grid {
  width: 100%;
  padding-bottom: 0;
}

.reference-section .resource-card h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
}

.resource-card {
  display: grid;
  align-content: start;
  gap: .65rem;
  padding: 1.1rem;
}

.resource-card a {
  display: inline-block;
  text-decoration: none;
}

.page-trail {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 1rem auto 4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.page-trail a {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.page-trail a:hover,
.page-trail a:focus {
  border-color: var(--cyan);
  background: rgba(95, 216, 255, 0.08);
}

.page-trail span {
  color: var(--muted);
  font-size: .85rem;
}

.page-trail strong {
  color: var(--text);
  font-family: var(--heading);
  font-size: 1.1rem;
  line-height: 1.15;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1rem;
  color: var(--muted);
  text-align: center;
}

.site-footer a {
  color: var(--cyan);
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  padding: .65rem .8rem;
  cursor: pointer;
}

.to-top.is-visible {
  display: block;
}

@media (max-width: 1020px) {
  .hero,
  .hero-with-media,
  .builder-preview,
  .builder-layout,
  .content-layout,
  .straddie-scene {
    grid-template-columns: 1fr;
  }

  .steps-row,
  .lane-grid,
  .resource-grid,
  .guide-grid,
  .audience-strip,
  .plain-word-grid,
  .choice-grid,
  .explainer-grid,
  .scene-board,
  .journey-rail,
  .ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-rail::before {
    display: none;
  }

  .side-nav {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--night-2);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 2.3rem;
  }

  .principle-strip,
  .steps-row,
  .lane-grid,
  .resource-grid,
  .guide-grid,
  .audience-strip,
  .plain-word-grid,
  .choice-grid,
  .explainer-grid,
  .scene-board,
  .journey-rail,
  .ecosystem-grid,
  .page-trail,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .principle-strip article {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 1.2rem 1rem;
  }

  .principle-strip article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .principle-icon {
    width: 48px;
    height: 48px;
  }

  .audience-strip,
  .civic-intro,
  .choice-lanes,
  .explainer-cards,
  .civic-journey,
  .ecosystem-map {
    padding-bottom: 3rem;
  }

  .audience-strip article,
  .choice-card,
  .explainer-grid article,
  .scene-board article,
  .journey-rail article,
  .ecosystem-grid article {
    min-height: auto;
  }

  .scene-line {
    display: none;
  }

  .strange-true-bridge {
    min-height: 0;
    display: block;
  }

  .strange-true-art {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .strange-true-art img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .strange-true-inner {
    padding: 2rem 0 3rem;
  }

  .civic-closing {
    align-items: flex-start;
    flex-direction: column;
  }

  .markdown-output {
    min-height: 520px;
  }
}
