:root {
  color-scheme: dark;
  --route-night: #101723;
  --route-panel: #192435;
  --route-glass: #1d3043;
  --route-rule: #3b5269;
  --route-ink: #edf6fa;
  --route-muted: #b2c6d8;
  --route-signal: #91f0de;
  --route-gap: clamp(1rem, 3vw, 2.2rem);
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  color: var(--route-ink);
  background: var(--route-night);
  line-height: 1.63;
}

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

.route-width {
  width: min(calc(100% - 2 * var(--route-gap)), 74rem);
  max-width: 74rem;
  margin: 0 auto;
}

.route-nav {
  border-bottom: 1px solid var(--route-rule);
}

.route-nav nav,
.route-footer .route-width {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  min-height: 4.25rem;
  padding: .55rem 0;
}

a {
  color: var(--route-signal);
  text-decoration-thickness: .06em;
  text-underline-offset: .22em;
}

a:hover {
  text-decoration-thickness: .14em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--route-signal);
  outline-offset: 3px;
}

.route-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--route-ink);
  font-weight: 720;
  text-decoration: none;
}

.route-brand span {
  display: inline-grid;
  place-items: center;
  inline-size: 1.8rem;
  block-size: 1.8rem;
  border-radius: .5rem;
  color: var(--route-night);
  background: var(--route-signal);
  font-family: ui-monospace, monospace;
  font-size: 1.2rem;
  line-height: 1;
}

.campaign-desk {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(14.5rem, 1fr);
  align-items: start;
  gap: var(--route-gap);
  padding-top: clamp(1.5rem, 5vw, 4rem);
}

.campaign-focus {
  min-width: 0;
}

.campaign-heading h1,
.policy-sheet h1 {
  margin: 0;
  color: var(--route-ink);
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  font-weight: 760;
  letter-spacing: -.052em;
  line-height: 1.03;
}

.campaign-heading p {
  margin: .8rem 0 1.5rem;
  max-width: 54ch;
  color: var(--route-muted);
  font-size: clamp(.96rem, 1.6vw, 1.12rem);
}

.campaign-focus .hut-workbench {
  margin: 0;
}

.syntax-panel {
  align-self: end;
  min-width: 0;
  padding: clamp(.9rem, 2vw, 1.45rem);
  border: 1px solid var(--route-rule);
  border-radius: 1rem;
  background: var(--route-panel);
}

.syntax-panel h2 {
  margin: 0 0 .9rem;
  font-size: 1.16rem;
  line-height: 1.2;
}

.syntax-path {
  margin: 0 0 1.15rem;
}

.syntax-path dt {
  font-weight: 660;
}

.syntax-path dd {
  margin: .28rem 0 .8rem;
  padding: .65rem .7rem;
  border-radius: .45rem;
  background: var(--route-glass);
}

.syntax-path dd code,
.syntax-path dd span {
  display: block;
  overflow-wrap: anywhere;
}

.syntax-path dd span {
  color: var(--route-muted);
  font-size: .85rem;
}

code {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
}

.campaign-guide {
  max-width: 75ch;
  margin: clamp(2.5rem, 6vw, 5rem) auto;
  padding-top: 1.7rem;
  border-top: 1px solid var(--route-rule);
}

.campaign-guide h2 {
  margin: 1.8rem 0 .6rem;
  line-height: 1.28;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.campaign-guide h2:first-child {
  margin-top: 0;
}

.campaign-guide h3 {
  margin: 1.35rem 0 .45rem;
  line-height: 1.35;
}

.campaign-guide li + li {
  margin-top: .4em;
}

.campaign-guide p code,
.policy-body code {
  padding: .12em .32em;
  background: var(--route-glass);
  border-radius: .3rem;
}

.policy-wrap {
  padding-block: 2rem;
}

.policy-sheet {
  max-width: 52rem;
  padding: clamp(1.1rem, 4vw, 2rem);
  margin: 1rem auto;
  border: 1px solid var(--route-rule);
  border-radius: 1rem;
  background: var(--route-panel);
}

.policy-sheet h1 {
  margin: .65rem 0 1.1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.route-footer {
  color: var(--route-muted);
  border-top: 1px solid var(--route-rule);
}

@media (max-width: 48rem) {
  .campaign-desk {
    grid-template-columns: minmax(0, 1fr);
  }

  .syntax-panel {
    align-self: start;
  }

  .syntax-path dd:last-child {
    margin-bottom: 0;
  }

  .campaign-guide {
    margin-block: 2rem;
  }
}

@media (max-width: 30rem) {
  .route-nav a,
  .route-footer a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .campaign-heading h1 {
    letter-spacing: -.043em;
  }
}
