/* Same tokens as botchannels-web. No third-party assets. */

:root {
  color-scheme: light;
  --paper: #e6efe6;
  --slip: #f7faf6;
  --ink: #172117;
  --muted: #2c4032;
  --line: #1f3a28;
  --yes: #145c32;
  --no: #6e2422;
  --link: #0f4a32;
  --measure: 38rem;
  --page: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #121a14;
    --slip: #1b2820;
    --ink: #e3eee4;
    --muted: #c5d9c9;
    --line: #8fb59a;
    --yes: #9ddeb4;
    --no: #f0b2ab;
    --link: #b7e0c4;
  }
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--slip);
  color: var(--ink);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
}

.skip:focus {
  transform: none;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

.mast,
main,
.colophon {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0 0.9rem;
  border-bottom: 1px solid var(--line);
}

.mark {
  color: var(--ink);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

nav a,
nav button.linkish {
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

main {
  padding: 2.4rem 0 4rem;
}

h1 {
  max-width: 22em;
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.45rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 0.9rem;
}

.measure {
  max-width: var(--measure);
}

dt {
  font-weight: 620;
  margin-top: 0.7rem;
}

dd {
  margin: 0;
}

.slip {
  max-width: 44rem;
  margin: 0.4rem 0 1.4rem;
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--slip);
  border: 1px solid var(--line);
}

label {
  display: block;
  font-weight: 620;
  margin: 0.8rem 0 0.25rem;
}

input,
select {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.35rem 0.5rem;
  width: min(24rem, 100%);
}

button,
.button {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.button:hover {
  background: var(--slip);
}

.table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.45rem 0.55rem;
  vertical-align: top;
}

th {
  font-weight: 620;
}

.state-open {
  color: var(--yes);
  font-weight: 620;
}

.state-near {
  font-weight: 620;
}

.state-closed,
.state-blocked {
  color: var(--no);
  font-weight: 620;
}

.yes {
  color: var(--yes);
  font-weight: 650;
}

.no {
  color: var(--no);
  font-weight: 650;
}

code,
.key {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.key {
  display: block;
  padding: 0.8rem 1rem;
  background: var(--slip);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.error {
  color: var(--no);
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 0.9rem 0 2rem;
  border-top: 1px solid var(--line);
}

.colophon p {
  margin: 0;
  max-width: 40rem;
}

.inline {
  display: inline;
}

.check {
  width: auto;
}

@media (max-width: 36rem) {
  .mast,
  main,
  .colophon {
    width: min(var(--page), calc(100% - 1.5rem));
  }
}
