/* Public pages (home, privacy, terms) - served ahead of sign-in (server.js),
   so they can't use style.css. Colors mirror style.css's :root tokens, same
   as login.html. */
:root { --bg: #0f1115; --panel: #171a21; --border: #2a2e37; --text: #e8eaed; --muted: #9aa0aa; --accent: #6ea8fe; }
:root[data-theme="light"] { --bg: #f5f6f8; --panel: #ffffff; --border: #d8dce3; --text: #1a1d23; --muted: #5a616e; --accent: #2f6fd6; }
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; flex: none; align-self: center; color: var(--accent); }
.brand-name { font-family: "Fraunces", serif; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.brand-sub { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.signin { padding: 7px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.signin:hover { border-color: var(--muted); }

main { padding: 40px 0 56px; }
h1 { font-family: "Fraunces", serif; font-weight: 600; font-size: 2rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 32px 0 8px; }
h3 { font-size: 1rem; margin: 20px 0 6px; }
p, li { color: var(--text); }
.lede { font-size: 1.1rem; color: var(--muted); margin: 0 0 24px; }
.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 24px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; font-weight: 500; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--panel); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0f1115; }
.btn:hover { filter: brightness(1.08); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 16px; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.note { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }

footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 18px; padding-bottom: 24px; }
footer.site a { color: var(--muted); }
