/* Sincrono public site. Palette from sincrono_client_clean/docs/features/brand/logo.md. */

:root {
  --reef: #10b79d;
  --reef-on-light: #0e9e8a;
  --reef-on-ink: #30d7bc;
  --reef-wash: #e5f7f4;

  --bg: #ffffff;
  --text: #1c2624;
  --muted: #55625f;
  --rule: #dfe7e5;
  --accent: var(--reef-on-light);
  --link: #0b7f6f;
  --panel: var(--reef-wash);
  --todo-bg: #fff4d6;
  --todo-text: #6b4b00;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1615;
    --text: #e4ecea;
    --muted: #9fb0ac;
    --rule: #26332f;
    --accent: var(--reef-on-ink);
    --link: var(--reef-on-ink);
    --panel: #15241f;
    --todo-bg: #3a2f10;
    --todo-text: #ffe08a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand svg {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  flex: none;
}

.lang {
  font-size: 0.95rem;
}

/* Content */

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
  padding-top: 0.25rem;
  border-top: 3px solid var(--reef);
  display: inline-block;
}

h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.25rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.panel {
  background: var(--panel);
  border-left: 4px solid var(--reef);
  border-radius: 0.375rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

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

.draft {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 0.25rem;
  padding: 0 0.3em;
  font-weight: 600;
}

dl.facts {
  display: grid;
  grid-template-columns: minmax(7rem, max-content) 1fr;
  gap: 0.35rem 1rem;
}

dl.facts dt {
  font-weight: 600;
}

dl.facts dd {
  margin: 0;
}

@media (max-width: 30rem) {
  dl.facts {
    grid-template-columns: 1fr;
  }

  dl.facts dd {
    margin-bottom: 0.5rem;
  }

  h1 {
    font-size: 1.7rem;
  }
}

.toc {
  columns: 2 14rem;
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-footer nav li + li {
  margin-top: 0;
}

.site-footer p {
  margin: 0.25rem 0;
}
