/* Adapted from Quadstronaut/umbermark src/umbermark/web/static/styles.css @ 9ae8df4
   Token-first dark theme, re-skinned for Starhold: deep-space canvas, one violet signal accent.
   Self-hosted, no fonts or assets from other hosts (F9). No template needs an inline style. */
:root {
  --bg: #0a0b14;
  --surface-solid: #121422;
  --surface-2: #1b1e33;
  --border: #2a2e4a;
  --text: #e4e7f5;
  --text-muted: #8b91b3;
  --text-head: #f6f7ff;
  --text-link: #8fb4ff;
  --accent: #8a6cff;
  --accent-hover: #6f4fe6;
  --accent-text: #0a0b14;
  --danger: #ef6b6b;
  --danger-hover: #d24f4f;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg) radial-gradient(1200px 600px at 80% -10%, #1d1f4a 0%, transparent 60%);
}
main { max-width: 860px; margin: 0 auto; padding: 1rem; }
h1, h2 { color: var(--text-head); line-height: 1.2; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.15rem; margin-top: 0; }
a { color: var(--text-link); }
.muted { color: var(--text-muted); }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 860px; margin: 0 auto; padding: 1rem; }
.top nav { display: flex; gap: 1rem; align-items: center; }
.brand { color: var(--text-head); font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.card { background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 1rem 0; }
.card.narrow { max-width: 480px; margin: 2rem auto; }
.card.callout { border-color: var(--accent); }
label { display: block; margin: .9rem 0 .3rem; color: var(--text-muted); font-size: .9rem; }
input, select, textarea {
  width: 100%; padding: .65rem .75rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px; font: inherit;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, .button-link {
  display: inline-block; margin-top: 1rem; padding: .6rem 1rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px; font: inherit; cursor: pointer; text-decoration: none;
}
button:hover, .button-link:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
button.primary:hover { background: var(--accent-hover); }
button.danger { background: var(--danger); color: var(--accent-text); border-color: var(--danger); font-weight: 600; }
button.danger:hover { background: var(--danger-hover); }
button.link { background: none; border: 0; padding: 0; margin: 0; color: var(--text-link); text-decoration: underline; }
form.inline { display: inline; margin: 0; }
.error { color: var(--danger); }
pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .75rem; overflow-x: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
progress { width: 100%; height: .8rem; accent-color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; }
.preview { max-width: 100%; border-radius: 8px; }
@media (max-width: 600px) { table { display: block; overflow-x: auto; } }

/* Public pages (Task 14). Same tokens, no new colours or hosts. */
.top nav a, .foot a { text-decoration: none; }
.top nav a:hover, .foot a:hover { text-decoration: underline; }
.foot { max-width: 860px; margin: 2rem auto 0; padding: 1rem; border-top: 1px solid var(--border); }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; }
.hero { padding: 2.5rem 0 1rem; }
.hero h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.hero .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 40rem; }
.summary { font-size: 1.05rem; color: var(--text-head); border-left: 3px solid var(--accent); padding-left: .9rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid .card { margin: 0; }
.grid img, .gallery img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); display: block; }
.gallery { display: grid; gap: 1.25rem; }
.cta { display: inline-block; margin: .5rem .5rem .5rem 0; padding: .65rem 1.1rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); text-decoration: none; }
.cta.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
.cta.primary:hover { background: var(--accent-hover); }
details.snip { border: 1px solid var(--border); border-radius: 8px; margin: .5rem 0; background: var(--surface-solid); }
details.snip summary { cursor: pointer; padding: .55rem .8rem; color: var(--text-head); }
details.snip pre { margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; }
.pricing th, .pricing td { vertical-align: top; }
.pricing td.num, .pricing th.num { text-align: right; white-space: nowrap; }
.legal h2 { margin-top: 1.6rem; }
.legal ol, .legal ul { padding-left: 1.25rem; }
.f-list { list-style: none; padding: 0; }
.f-list li { margin: 0 0 1rem; padding: .8rem 1rem; background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); }
.f-list h3 { margin: 0 0 .25rem; font-size: 1rem; color: var(--text-head); }
.f-list p { margin: 0; }
.tag { font-size: .8rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: .05rem .5rem; }
@media (max-width: 600px) { .hero h1 { font-size: 1.7rem; } .top { flex-direction: column; align-items: flex-start; gap: .5rem; } }
