/* Public website (deploy/web/site/build.dart). Colors from mg_ui MgPalette; system fonts only. */
:root {
  --bg: #0b1513;
  --surface: #121f1c;
  --border: #243630;
  --text: #e8f1ee;
  --muted: #93a8a1;
  --accent: #5be3a0;
  --on-accent: #06231a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: var(--accent); }
.top, footer, main { max-width: 860px; margin: 0 auto; padding: 16px 20px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { border-radius: 50%; }
nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus { color: var(--text); text-decoration: underline; }
nav a.lang { color: var(--accent); }
main { padding-top: 8px; padding-bottom: 40px; }
h1 { font-size: 32px; line-height: 1.25; margin: 16px 0 12px; }
h2 { font-size: 22px; margin: 32px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0 5px; font-size: 0.92em; }
blockquote { margin: 16px 0; padding: 8px 16px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); }
.draft { padding: 10px 14px; border: 1px solid #f5b942; border-radius: 10px; color: #f5b942; background: rgba(245, 185, 66, 0.08); }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
main a[href="/explore"] { display: inline-block; margin-top: 4px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer nav a.open { color: var(--accent); }
footer p { margin: 12px 0 0; }
@media (max-width: 520px) {
  h1 { font-size: 26px; }
  .top { padding-top: 12px; }
}
