:root {
  color-scheme: dark;
  --wood: #2a1409;
  --parchment: #ecd9a8;
  --ink: #2c1c0c;
  --muted: #6d5433;
  --line: rgba(122, 85, 39, 0.45);
  --button: #3d2412;
  --button-ink: #f5ead9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--wood);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  line-height: 1.45;
}

main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.9rem 1rem 1.25rem;
  background: var(--parchment);
  min-height: 100vh;
}

.kicker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}

.kicker a {
  color: var(--muted);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.45rem;
}

h1 {
  font-size: 1.7rem;
}

h2 {
  font-size: 1.15rem;
  margin-top: 0.95rem;
}

h3 {
  font-size: 1rem;
}

p,
ul {
  margin: 0 0 0.7rem;
}

code,
pre {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
}

code {
  font-size: 0.88em;
}

pre {
  margin: 0;
  padding: 0.7rem 0.75rem;
  overflow: auto;
  background: #f7edd2;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: pre;
}

.snippet-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .snippet-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.snippet {
  min-width: 0;
}

.snippet p {
  margin-bottom: 0.4rem;
}

.snippet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.snippet-head h3 {
  margin: 0;
}

button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--button);
  color: var(--button-ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
pre:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (pointer: coarse) {
  button {
    min-height: 44px;
  }
}

.flags {
  padding-left: 1.15rem;
}

.flags li + li {
  margin-top: 0.25rem;
}

.native-links {
  padding-left: 1.15rem;
}

.native-links a {
  color: var(--ink);
}

.native-links .checksum {
  color: var(--muted);
  font-size: 0.78rem;
  word-break: break-all;
}

.native-links .native-preferred {
  font-weight: 700;
}

#native-release[hidden],
#native-empty[hidden] {
  display: none;
}
