/* Quotely support + legal pages. Palette from design/quotely/tokens.css (D2 "Trena").
   System fonts only: no external fonts, scripts or trackers. Sizes in rem so browser text settings scale. */

:root {
  color-scheme: light dark;
  --piso:    #f8f7f1; /* yeso: ground, light */
  --tampo:   #ebe8df; /* cal: raised surface */
  --risco:   #d9d6cc; /* giz: hairline */
  --letra:   #120f0a; /* tinta: text */
  --letra-2: #67635a; /* grafito: secondary text */
  --fita:    #f6d033; /* tape yellow: fills and thick underlines only, never text on light */
}

@media (prefers-color-scheme: dark) {
  :root {
    --piso:    #15120e; /* bancada */
    --tampo:   #23201a; /* carcasa */
    --risco:   #39352f; /* veta */
    --letra:   #f2eee4; /* serrin */
    --letra-2: #b0aa9e; /* rebaba */
  }
}

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

html {
  font-size: 112.5%; /* 18px at default size */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--piso);
  color: var(--letra);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--risco);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--letra);
  text-decoration: none;
}
.brand::before { /* the tape: one yellow bar, as on the Limpo PDF */
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 0.45rem;
  background: var(--fita);
  border-radius: 1px;
}

nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
nav a { display: inline-block; padding: 0.45rem 0; color: var(--letra-2); text-decoration: none; }
nav a[aria-current="page"] {
  color: var(--letra);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--fita);
  text-decoration-thickness: 4px;
  text-underline-offset: 0.3em;
}
nav.lang { margin-top: 0.5rem; }
nav.lang a { font-size: 0.9rem; }

main { padding-top: 1.25rem; }

h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.015em; margin: 0.5rem 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }

p, li { max-width: 40rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

a { color: inherit; text-decoration-color: var(--letra-2); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--fita); }

.lead { font-size: 1.1rem; color: var(--letra-2); }
.meta { font-size: 0.9rem; color: var(--letra-2); }

.note {
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  background: var(--tampo);
  border-left: 6px solid var(--fita);
  border-radius: 4px;
}
.note p { margin: 0; }
.note p + p { margin-top: 0.5rem; }

.langs { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.langs li + li { margin-top: 0; }
.langs a {
  display: block;
  padding: 0.9rem 1rem;
  background: var(--tampo);
  border: 1px solid var(--risco);
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
}
.langs a:hover { border-color: var(--fita); }
.langs .links { display: block; margin-top: 0.25rem; font-weight: 400; font-size: 0.95rem; color: var(--letra-2); }

footer.site {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--risco);
  color: var(--letra-2);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {
  a, .langs a { transition: border-color 0.2s, text-decoration-color 0.2s; }
}
