/* 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; }

/* A card with a link in its title: the whole card is the link (manual + blog lists). */
.short:has(h3 a) {
  position: relative;
  border: 1px solid transparent;
  transition: border-color .15s, background-color .15s;
}
.short h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.short h3 a::before { content: "›"; float: right; color: var(--accent); font-size: 24px; line-height: 1; margin-left: 12px; }
.short:has(h3 a):hover { border-color: var(--accent); background: #222226; }
.short:has(h3 a:focus-visible) { border-color: var(--accent); }
.short h3 a:focus-visible { outline: 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;
}
.pic { margin: 18px 0 22px; }
.pic img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.pic-p img { max-width: 340px; }
.pic-w img { max-width: 200px; border-radius: 40px; }
.pic figcaption { margin-top: 8px; font-size: 15px; color: var(--text); }
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%; }
}

/* Home page (index.html, it/index.html): wider, pictures beside the text. */
.page.home { max-width: 1040px; }
.home .hero { text-align: center; margin: 24px 0 72px; }
.home .hero h1 { font-size: 52px; line-height: 1.1; margin: 0 0 16px; }
.home .hero h1 span { color: var(--accent); }
.home .lead { font-size: 21px; max-width: 620px; margin: 0 auto 26px; }
.home .store { margin: 0 0 10px; }
.home .store a { font-size: 18px; padding: 13px 24px; border-radius: 12px; }
.home .store a:hover { background: #ffaa33; }
.home .small { font-size: 15px; margin: 0 0 44px; }
.home .mac { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(255, 149, 0, .12); }
.home .caption { font-size: 15px; max-width: 620px; margin: 16px auto 0; }
.home .feature { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; max-width: 860px; margin: 0 auto 80px; }
.home .feature.flip { grid-template-columns: 1fr 300px; }
.home .feature.flip img { order: 2; }
.home .feature img { width: 100%; max-width: 300px; border-radius: 36px; border: 1px solid var(--line); }
.home .feature img.watch { border-radius: 48px; max-width: 240px; justify-self: center; }
.home .feature h2 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
.home .feature p { font-size: 18px; }
.home h2.centre { text-align: center; font-size: 30px; margin: 0 0 22px; }
.home .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 72px; }
.home .trio .short { margin: 0; padding: 20px 22px; }
.home .end { text-align: center; max-width: 620px; margin: 0 auto; }
.home .end h2 { font-size: 30px; margin: 0 0 10px; }
.home .end .store { margin-top: 22px; }

@media (max-width: 760px) {
  .home .hero h1 { font-size: 36px; }
  .home .lead { font-size: 18px; }
  .home .feature, .home .feature.flip { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; text-align: center; }
  .home .feature.flip img { order: 0; }
  .home .feature img { max-width: 260px; justify-self: center; }
  .home .feature h2, .home h2.centre, .home .end h2 { font-size: 26px; }
  .home .trio { grid-template-columns: 1fr; }
}
