/* Ambitus web pages — dark like the app, its orange for headings and links. No grey text. */
:root {
  --bg: #0d0d0f;
  --card: #1a1a1d;
  --text: #ffffff;
  --accent: #ff9500;
  --line: #2c2c30;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

header img { width: 56px; height: 56px; }

header a {
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
}

nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }

nav a { color: var(--accent); text-decoration: none; font-weight: 600; }
nav a[aria-current="page"] { color: var(--text); }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 6px; }

.updated { margin: 0 0 28px; font-size: 15px; }

h2 {
  color: var(--accent);
  font-size: 20px;
  margin: 36px 0 8px;
}

h3 { font-size: 17px; margin: 22px 0 4px; }

p, ul { margin: 0 0 14px; }

ul { padding-left: 22px; }

li { margin-bottom: 6px; }

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

.short {
  background: var(--card);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 8px;
}

.short p:last-child { margin-bottom: 0; }

.email {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

/* No picture wider than the page (his, 2026-10-30: the blog's hung off it). */
img { max-width: 100%; height: auto; }

/* Blog (built by scripts/build_blog.py from the LinkedIn articles) */
.cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 0 24px;
}

.short h3 { margin-top: 0; }
.short h3 a { color: var(--text); text-decoration: none; }

.store a {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 16px;
}

.more, .prevnext { font-size: 15px; }

/* Manual (built by scripts/build_manual.py) */
.manual h2 { margin-top: 44px; }
.manual h3 { color: var(--text); }
.manual ol, .manual ul { margin: 0 0 14px; }
.manual li ul { margin-top: 6px; }
.shot {
  border: 1px dashed var(--accent);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
}
table { border-collapse: collapse; margin: 0 0 14px; }
th, td { border: 1px solid var(--line); padding: 6px 12px; text-align: left; }
th { color: var(--accent); }

footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  header { flex-wrap: wrap; }
  nav { margin-left: 0; width: 100%; }
}
