/* Site institucional do Orzzy (orzzy.app). Sem framework e sem fontes externas:
   cada página abre sem depender de terceiros. Cores iguais às do app. */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #0f1729;
  --muted: #566174;
  --brand: #1e3a8a;
  --on-brand: #ffffff;
  --line: #e1e4ea;
  --warn-bg: #fff4d6;
  --warn-text: #5c4400;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --surface: #121827;
    --text: #e8ecf4;
    --muted: #9aa5b8;
    --brand: #93b4f5;
    --on-brand: #0b0f19;
    --line: #232b3d;
    --warn-bg: #3a2f10;
    --warn-text: #ffe39a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--brand);
  color: var(--on-brand);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 8px; }

header.site, footer.site, main {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { width: 34px; height: 34px; }

nav.site a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
nav.site a:hover { color: var(--text); text-decoration: underline; }

main { padding-top: 12px; padding-bottom: 56px; }

h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 8px;
  letter-spacing: -0.01em;
}
h3 { font-size: 18px; margin: 24px 0 4px; }

p, ul, ol, dl, table, .callout { max-width: var(--measure); }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 6px; }

.lead { font-size: 20px; color: var(--muted); max-width: 52ch; }
.meta { color: var(--muted); font-size: 15px; }

.callout {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
}

/* Aviso de rascunho: tem de ser removido antes de publicar. */
.rascunho {
  max-width: none;
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 8px 0 20px;
  font-size: 15px;
}

/* Campo ainda não preenchido: destacado para não ir ao ar sem querer. */
mark.pendente {
  background: var(--warn-bg);
  color: var(--warn-text);
  padding: 0 4px;
  border-radius: 4px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 20px;
  font-size: 16px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
th { color: var(--muted); font-weight: 600; font-size: 14px; }

.button {
  display: inline-block;
  background: var(--brand);
  color: var(--on-brand);
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  min-height: 48px;
}

footer.site {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 15px;
}
footer.site a { color: var(--muted); margin-right: 16px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  nav.site a { margin-left: 12px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: 0; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
