:root {
  --paper: #000000;
  --ink: #ffffff;
  --body: #b3b3b3;
  --muted: #999999;
  --chip: #333333;
  --press: #e2e2e2;
  --pre-bg: #161616;
  --pre-border: #262626;
}

*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
a { cursor: pointer; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); font-weight: 700; }
li::marker { color: var(--muted); }

.pride {
  height: 4px;
  flex-shrink: 0;
  background: linear-gradient(90deg,
    #e40303 0 16.66%,
    #ff8c00 16.66% 33.33%,
    #ffed00 33.33% 50%,
    #008026 50% 66.66%,
    #24408e 66.66% 83.33%,
    #732982 83.33% 100%);
}
.wrap {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding-inline: 24px;
}
:is(a, button):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.site-header { padding-block: 24px; }
.wordmark {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { text-decoration: underline; }

main {
  flex: 1;
  padding-block: clamp(3rem, 9vh, 5.5rem) clamp(3rem, 8vh, 5rem);
}
h1 {
  font-size: clamp(2.75rem, 9vw, 3.25rem);
  line-height: 1.23;
  font-weight: 700;
}
h2 {
  margin-top: clamp(3rem, 8vh, 4.5rem);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}

.meta {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--body);
}
.lede {
  margin-top: 32px;
  font-size: 1.25rem;
  line-height: 1.4;
  max-width: 34ch;
}
.about {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--body);
  max-width: 44ch;
}
.time {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}
.clock {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0 0.1em;
  cursor: pointer;
}

.chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips a {
  display: inline-flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  gap: 10px;
}
.chips svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.chips a:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.chips a:active {
  background: var(--press);
  color: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  .chips a {
    transition: background-color 150ms ease, color 150ms ease;
  }
}

.prose {
  margin-top: 24px;
  max-width: 52ch;
  color: var(--body);
  font-size: 1rem;
}
.prose p + p { margin-top: 1em; }
.prose a { color: var(--ink); }

.intro {
  margin-top: 24px;
  color: var(--body);
  max-width: 60ch;
}
.doc p, .doc ul {
  margin-top: 0.75rem;
  color: var(--body);
}
.doc ul { padding-left: 1.5rem; }
.doc li { margin-bottom: 0.6rem; }

code, pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}
code {
  background: #1f1f1f;
  padding: 0.1em 0.3em;
  border-radius: 3px;
  color: var(--ink);
}
pre {
  background: var(--pre-bg);
  border: 1px solid var(--pre-border);
  padding: 0.8rem;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.5;
  margin-top: 0.75rem;
  color: var(--ink);
}
pre code { background: none; padding: 0; color: inherit; }
hr {
  border: none;
  border-top: 1px solid var(--pre-border);
  margin: 2.5rem 0;
}
.small { font-size: 0.85rem; color: var(--muted); }

.colophon {
  padding-block: 1.5rem 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}
.colophon a {
  color: var(--muted);
  text-decoration: none;
}
.colophon a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 30rem) {
  .lede { font-size: 1.125rem; }
}
