/* Blitter help site — intentionally basic; a design system will replace this later. */

:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: #1a1a1a;
}

a {
  color: #1a56db;
}

/* ---- Marketing placeholder (www/index.html) ---- */

.marketing-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 1rem;
  text-align: center;
}

.marketing-placeholder h1 {
  margin: 0;
}

.coming-soon {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: #737373;
}

/* ---- Privacy policy (www/privacy.html) ---- */

.legal-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.legal-page .legal-nav {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

/* ---- Help site layout ---- */

.layout {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  flex: 0 0 220px;
  padding: 1.5rem 1rem;
  border-right: 1px solid #ddd;
}

.sidebar .brand {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
  text-decoration: none;
  color: #1a1a1a;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  margin: 0.15rem 0;
}

.sidebar li ul {
  margin-left: 0.75rem;
  border-left: 1px solid #ddd;
  padding-left: 0.5rem;
}

.sidebar a {
  text-decoration: none;
  display: inline-block;
  padding: 0.15rem 0;
}

.sidebar a:hover {
  text-decoration: underline;
}

.content {
  flex: 1;
  max-width: 46rem;
  padding: 2rem 2.5rem 4rem;
}

/* ---- Content elements ---- */

.content img {
  max-width: 100%;
  height: auto;
}

.content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  background: #f0f0f0; /* light grey — GIF examples (mostly black/white) read better on this than white */
  /* Fixed layout splits columns evenly regardless of header text length — auto layout otherwise
     gives longer headers (e.g. "Scatter (a fixed random arrangement)") a wider column than a
     short one (e.g. "Sweep (a straight wave)"), which scales same-size example GIFs to visibly
     different on-screen sizes purely from unrelated caption length. */
  table-layout: fixed;
}

.content th,
.content td {
  border: 1px solid #ccc;
  padding: 0.6rem;
  text-align: center;
  vertical-align: top;
}

.content blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-left: 3px solid #ccc;
}

.content code {
  background: #f0f0f0;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.content pre code {
  display: block;
  padding: 0.75rem;
  overflow-x: auto;
}
