:root {
  --page: hsl(351, 47%, 22%);
  --panel: hsl(351, 47%, 29%);
  --ink: hsl(351, 20%, 96%);
  --muted: hsl(351, 18%, 82%);
  --accent: hsl(23, 72%, 58%);
  --display: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: clip;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(0, min(560px, 54vw));
  align-items: start;
  min-height: 100vh;
  padding: 4vh 3.2vw 6.5rem 3.2vw;
}

.field-keep {
  grid-column: 1;
  min-height: 42vh;
}

.panel {
  grid-column: 2;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  background: var(--panel);
  color: var(--ink);
  padding: 1.65rem 1.5rem 1.75rem;
}

.edge-nav {
  position: fixed;
  z-index: 2;
  left: 3.2vw;
  bottom: 3.2vh;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  max-width: min(36vw, 26rem);
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.98rem;
}

.edge-nav a {
  color: var(--ink);
  text-decoration: none;
}

.edge-nav a[aria-current="page"] {
  color: var(--accent);
}

.edge-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.brand {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: 0.03em;
}

h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.15rem, 3.6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 100%;
}

h2 {
  margin: 1.6rem 0 0.45rem;
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.55rem;
  line-height: 1.2;
}

p {
  margin: 0.75rem 0 0;
}

.dated {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.clauses {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: clause;
}

.clauses li {
  counter-increment: clause;
  margin-top: 1.35rem;
}

.clauses li::before {
  content: counter(clause, decimal-leading-zero);
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.clauses p {
  margin: 0.55rem 0 0;
}

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

a:hover {
  color: var(--ink);
}

.who {
  margin-top: 1.15rem;
  font-family: var(--display);
  font-size: 1.65rem;
  line-height: 1.2;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 759px) {
  .stage {
    display: block;
    min-height: 0;
    width: 100%;
    padding: 0 1rem 2.5rem;
  }

  .field-keep {
    height: 42vh;
    min-height: 42vh;
  }

  .edge-nav {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin: 0 0 1.1rem;
  }

  .panel {
    max-width: none;
    justify-self: stretch;
  }

  h1 {
    font-size: clamp(2.05rem, 9vw, 3.1rem);
  }
}
