/* Otero Mesh — minimal, no external resources, no fonts, no JS. */
:root {
  --fg: #1a1a1a;
  --bg: #fdfdfb;
  --muted: #6b6b6b;
  --rule: #d8d8d2;
  --accent: #2d5a3d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8e6e0;
    --bg: #16181a;
    --muted: #9a9a94;
    --rule: #2e3234;
    --accent: #7fb08c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  max-width: 42rem;
  font: 17px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

h1 {
  margin: 0 0 .35rem;
  font-size: 1.75rem;
  letter-spacing: -.02em;
}

h2 {
  margin: 2rem 0 .75rem;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}

.tag {
  margin: 0;
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { text-decoration-thickness: 2px; }

p { margin: 0 0 1rem; }

ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

ul.docs li,
ul.meshes li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule);
}

ul.meshes li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

ul.meshes strong {
  font-weight: 600;
}

.meta {
  color: var(--muted);
  font-size: .9rem;
}

.join {
  padding: 1.25rem 1.35rem;
  margin: 2rem 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.join h2 { margin-top: 0; }

code, pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9em;
}

code {
  padding: .1em .35em;
  border-radius: 3px;
  background: rgba(128,128,128,.14);
}

pre {
  padding: .85rem 1rem;
  overflow-x: auto;
  border-radius: 5px;
  background: rgba(128,128,128,.11);
  line-height: 1.5;
}

pre code { background: none; padding: 0; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .9rem;
}

footer p { margin: 0; }

.note {
  padding: .85rem 1rem;
  margin: 1.25rem 0;
  border-left: 3px solid var(--accent);
  background: rgba(128,128,128,.08);
  font-size: .95rem;
}

.note p:last-child { margin-bottom: 0; }

@media (max-width: 30rem) {
  body { padding: 1.5rem 1rem 3rem; font-size: 16px; }
  h1 { font-size: 1.5rem; }
}
