/* Shared style of the Bouteiller support and privacy pages. No external resources. */

:root {
  color-scheme: light dark;
  --background: #ffffff;
  --surface: #f3f5f8;
  --text: #1b2330;
  --muted: #536072;
  --accent: #1f4f8f;
  --border: #d5dbe3;
  --note: #fff6dc;
  --note-border: #d9b44a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #11161d;
    --surface: #1a212b;
    --text: #e6eaf0;
    --muted: #9aa6b6;
    --accent: #8cb8f2;
    --border: #2c3644;
    --note: #2a2516;
    --note-border: #8a7330;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  color: var(--text);
  z-index: 1;
}

header,
main,
footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  padding-top: 1.5rem;
  border-bottom: 1px solid var(--border);
}

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

.site-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-name a {
  color: inherit;
  text-decoration: none;
}

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

h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

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

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
}

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

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--surface);
  padding: 0.1em 0.3em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

kbd {
  font-family: inherit;
  font-weight: 600;
}

.note {
  background: var(--note);
  border-left: 4px solid var(--note-border);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface);
}

dt {
  font-weight: 700;
  margin-top: 1rem;
}

dd {
  margin: 0.25rem 0 0;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.languages {
  list-style: none;
  padding: 0;
}

.languages li {
  margin: 0.75rem 0;
}
