/* Redwood Open Source Lab — shared stylesheet */
:root {
  --bark: #6b3e26;
  --bark-dark: #4a2a19;
  --moss: #3d6b47;
  --ink: #1f2328;
  --muted: #5f6670;
  --line: #e2e4e7;
  --paper: #fbfaf8;
  --code: #f3f1ed;
  --ok: #2f7d4a;
  --warn: #a4661b;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
a { color: var(--moss); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
nav.top a { margin-left: 18px; color: var(--muted); font-size: 15px; }
nav.top a.on, nav.top a:hover { color: var(--bark); text-decoration: none; }

main { padding: 36px 0 56px; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 12px; color: var(--bark-dark); font-weight: 650; }
h2 { font-size: 20px; margin: 40px 0 12px; color: var(--bark-dark); font-weight: 600; }
h3 { font-size: 16px; margin: 24px 0 8px; }
p.lead { font-size: 17px; color: #3a3f45; max-width: 46em; }
.muted { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.card h3 { margin: 0 0 6px; color: var(--bark-dark); }
.card p { margin: 0; color: #444a51; font-size: 15px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.mirrors { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 15px; }
table.mirrors th, table.mirrors td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.mirrors th { background: #f4f2ee; font-weight: 600; color: #3a3f45; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
table.mirrors tr:last-child td { border-bottom: none; }
table.mirrors td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.ok { background: var(--ok); }
.dot.sync { background: var(--warn); }

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.5px; }
pre { background: var(--code); border: 1px solid #e8e4dc; border-radius: 6px; padding: 12px 14px; overflow-x: auto; line-height: 1.5; }
code { background: var(--code); padding: 1px 5px; border-radius: 4px; }
pre code { background: none; padding: 0; }

footer.site { border-top: 1px solid var(--line); padding: 22px 0 34px; color: var(--muted); font-size: 13.5px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 560px) {
  h1 { font-size: 23px; }
  nav.top a { margin-left: 0; margin-right: 14px; }
  table.mirrors th:nth-child(4), table.mirrors td:nth-child(4) { display: none; }
  table.mirrors th, table.mirrors td { padding: 9px 10px; }
  footer.site .wrap { flex-direction: column; gap: 4px; }
}
