/* The app's own tokens, one to one from lib/core/theme/design_tokens.dart.
   The site is not a second design: somebody arriving here and then opening
   the app should not feel they went somewhere else. */
:root {
  --bg: #F1F2F4;
  --card: #FFFFFF;
  --fg: #18181B;
  --fg2: #3F3F46;
  --muted: #71717A;
  --muted2: #A1A1AA;
  --bd: #E2E3E7;
  --bd2: #ECEEF1;
  --sel: #E3E4E9;
  --pri: #18181B;
  --pri-fg: #FAFAFA;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0D;
    --card: #151518;
    --fg: #F4F4F5;
    --fg2: #D4D4D8;
    --muted: #A1A1AA;
    --muted2: #6B6B74;
    --bd: #2A2A2F;
    --bd2: #222226;
    --sel: #2A2A30;
    --pri: #FAFAFA;
    --pri-fg: #18181B;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* The bar, the same height and the same border the app's top bar has. */
.bar {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 20px;
  background: var(--card);
  border-bottom: 1px solid var(--bd);
  position: sticky;
  top: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

/* The toucan in colour — the favicon, the same file. */
.mark {
  display: block;
  width: 22px;
  height: 22px;
}

/* A column capped where a line stops being comfortable, which is the same
   number SubScreen uses in the app. */
.doc, .home {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 30px 0 8px;
}

p { color: var(--fg2); margin: 0 0 12px; }
strong { color: var(--fg); font-weight: 600; }

ul { margin: 0 0 14px; padding-left: 20px; color: var(--fg2); }
li { margin-bottom: 6px; }

blockquote {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--sel);
  border-left: 2px solid var(--bd2);
  color: var(--muted);
  font-size: 14px;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13px;
  background: var(--sel);
  padding: 1px 5px;
  border-radius: 4px;
}

/* The home page */
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg2);
  margin: 0 0 26px;
}

.cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--pri);
  color: var(--pri-fg);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 16px;
}

.card h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.card p { font-size: 14px; margin: 0; color: var(--muted); }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 22px 20px 44px;
  border-top: 1px solid var(--bd);
  font-size: 13px;
  color: var(--muted);
}

.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }

@media (max-width: 520px) {
  .doc, .home { padding: 26px 16px 60px; }
  h1 { font-size: 22px; }
  .lede { font-size: 17px; }
}

/* The connector page's list of tools. */
table { border-collapse: collapse; margin: 12px 0 8px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 5px 16px 5px 0; }
th { color: var(--muted); font-weight: 500; }
