/*
 * The Bravis Installer's public pages, in the app's own design system: dark only, Inter,
 * and the tokens in composeApp/.../ui/theme (BravisColors, BravisType, BravisSpace).
 * Fonts are served from this site, so opening the privacy policy sends nobody else a request.
 */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter_regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter_medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter_semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* BravisColors */
  --page: #09090b;           /* zinc-950 */
  --card: #18181b;           /* zinc-900 */
  --line: #27272a;           /* zinc-800 */
  --text-primary: #ffffff;
  --text-secondary: #e4e4e7; /* zinc-200 */
  --text-muted: #9f9fa9;     /* zinc-400 */
  --primary-text: #a855f7;   /* brand words: links */
  --danger: #fb2c36;         /* red-500 */

  /* BravisSpace */
  --edge: 16px;
  --between: 16px;
  --heading-gap: 12px;
  --title-gap: 8px;
  --sheet-inside: 24px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text-secondary);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* body: 16 / 24, regular */
  font-size: 16px;
  line-height: 24px;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px var(--edge) 48px;
}

@media (min-width: 600px) {
  main {
    padding-left: var(--sheet-inside);
    padding-right: var(--sheet-inside);
  }
}

/* eyebrow: 11 / 16, semibold, muted, spaced capitals */
.eyebrow {
  margin: 0 0 var(--title-gap);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* pageTitle: 24 / 32, semibold */
h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

/* sectionHeading: 18 / 28, semibold */
h2 {
  margin: 32px 0 var(--heading-gap);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

/* description: 13 / 20, muted */
.updated {
  margin: var(--title-gap) 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 20px;
}

p {
  margin: 0 0 var(--between);
}

ul {
  margin: 0 0 var(--between);
  padding-left: 20px;
}

li + li {
  margin-top: var(--title-gap);
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Links: brand words, underlined so they read as links without relying on colour alone. */
a {
  color: var(--primary-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--primary-text);
  outline-offset: 2px;
  border-radius: 2px;
}

/* A card: the summary at the top of a page. */
.card {
  margin: var(--sheet-inside) 0 0;
  padding: var(--edge);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card > :last-child {
  margin-bottom: 0;
}

/* Something to fill in before the page is published. Red, so it can't be missed. */
.fill-in {
  color: var(--danger);
  font-weight: 600;
}

footer {
  margin-top: 40px;
  padding-top: var(--between);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  /* bodySmall: 14 / 20 */
  font-size: 14px;
  line-height: 20px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--heading-gap);
  margin-bottom: var(--title-gap);
}
