/* Brix's public pages (D170): plain HTML and CSS, readable on a phone, no web fonts, no trackers. */
:root {
  --ink: #16181d;
  --muted: #5c6370;
  --line: #e3e5e9;
  --accent: #1f6feb;
  --danger: #c62828;
  --surface: #ffffff;
  --page: #f6f7f9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }

.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }

.lang a { color: var(--muted); margin-left: 12px; text-decoration: none; }
.lang a[aria-current="page"] { color: var(--ink); font-weight: 600; }

main { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; margin-top: 8px; }

h1 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 19px; margin: 28px 0 8px; }
p, li { color: var(--ink); }
.updated { color: var(--muted); margin-top: 0; }

a { color: var(--accent); }

nav.pages { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 20px auto 32px; max-width: 760px; padding: 0 16px; font-size: 14px; }
nav.pages a { color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }

form { display: grid; gap: 12px; max-width: 360px; }
label { font-weight: 600; }
input { font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 10px; width: 100%; }
button { font: inherit; font-weight: 600; padding: 12px 16px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; cursor: pointer; }
button.danger { background: var(--danger); }
button.link { justify-self: start; padding: 4px 0; font-weight: 400; background: none; color: var(--accent); text-decoration: underline; }
button:disabled { opacity: .5; cursor: default; }
.message { min-height: 1.5em; color: var(--muted); }
.message.error { color: var(--danger); }
[hidden] { display: none !important; }
