:root {
  --ink: #19213e;
  --paper: #f3f1ea;
  --quiet: #5c6578;
  --line: #d9d6cc;
  --live: #087852;
  --beta: #765510;
  --public: #3e4a8c;
  --font: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--ink);
}

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

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

.skip {
  position: absolute;
  left: 24px;
  top: -4rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
}

.skip:focus { top: 0.8rem; }

.top, main, footer {
  width: min(40rem, calc(100% - 4.5rem));
  margin-inline: auto;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.6rem;
  font-size: 1rem;
}

.top p { margin: 0; color: var(--quiet); }

.home { font-weight: 600; text-decoration: none; }

h1 {
  margin: 2.2rem 0 0.6rem;
  max-width: 100%;
  font-size: clamp(2.6rem, 11vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  overflow-wrap: break-word;
}

.lead {
  max-width: 36rem;
  margin: 0 0 2.4rem;
  color: var(--quiet);
  font-size: 1.2rem;
}

article {
  padding: 1.35rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

article:last-child { border-bottom: 1px solid var(--line); }

h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

p { margin: 0; }

article p + p { margin-top: 0.7rem; }

.state {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.state-live { color: var(--live); }
.state-beta { color: var(--beta); }
.state-public { color: var(--public); }

.links a { margin-right: 1.1rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  font-size: 1rem;
}

@media (max-width: 640px) {
  body::before { width: 5px; }
  .top, main, footer {
    width: min(40rem, calc(100% - 2.4rem));
    margin-inline: auto;
  }
  h1 { font-size: 2.7rem; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
