/* Chamego — institutional site.
   Colour tokens mirror the app Design System (.ai/ui_guidelines.md §2) so the
   site and the product read as one brand. Text is always dark on light /
   light on dark: pastels are fills, never text. */

:root {
  --background: #faf6f0;
  --surface: #fffdfa;
  --surface-variant: #f0e9df;
  --primary: #7c9b8e;
  --primary-ink: #3f564e;
  --secondary: #a7c0d4;
  --text: #2e2a26;
  --text-muted: #6e665c;
  --border: #e2d8cb;
  --radius-card: 18px;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1a1714;
    --surface: #23201c;
    --surface-variant: #2e2a25;
    --primary: #9dbbae;
    --primary-ink: #9dbbae;
    --secondary: #aec6da;
    --text: #ede6dc;
    --text-muted: #b7aea2;
    --border: #3a352f;
  }
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.bar {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand svg { width: 32px; height: 32px; display: block; }

nav { margin-left: auto; display: flex; gap: 20px; }

nav a {
  color: var(--primary-ink);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover { text-decoration: underline; }

/* ---- Hero ---- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero svg { width: 96px; height: 96px; }

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 20px 0 12px;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto;
}

/* ---- Content ---- */
main { padding: 8px 0 72px; }

h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
}

h3 { font-size: 1.1rem; margin: 32px 0 8px; }

a { color: var(--primary-ink); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 16px 0;
}

.card h3 { margin-top: 0; }

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

ul { padding-left: 1.2em; }

li { margin: 6px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

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

th { background: var(--surface-variant); font-weight: 600; }

/* Wide content must scroll inside its own box, never the page body. */
.scroll-x { overflow-x: auto; }

.note {
  background: var(--surface-variant);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.95rem;
}

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

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a { color: var(--primary-ink); }

footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
