:root {
  --bg: #fbfaf7;
  --fg: #1d2530;
  --muted: #4a5563;
  --brand: #1f4e79;
  --brand-dark: #163a5a;
  --line: #d9d6cc;
  --card: #ffffff;
  --note: #fff6dc;
  --note-line: #c9a227;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--brand-dark); color: #fff; padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #b35c00;
  outline-offset: 2px;
  border-radius: 2px;
}

.site-header { background: var(--brand-dark); color: #fff; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .5rem 1.5rem;
  padding-top: .9rem; padding-bottom: .9rem;
}
.brand { font-weight: 700; font-size: 1.25rem; color: #fff; text-decoration: none; letter-spacing: .01em; }
.site-header a:focus-visible { outline-color: #ffd37a; }
.site-nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: #fff; text-decoration: none; padding: .35rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: #fff; color: #fff; }
.site-nav a[aria-current="page"] { border-bottom-color: #ffd37a; }

main { flex: 1; padding: 2rem 0 3rem; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 1rem; color: var(--brand-dark); }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.2rem 0 .6rem; color: var(--brand-dark); }
h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); }

.badge {
  display: inline-block; background: var(--note); border: 1px solid var(--note-line);
  color: #5a4500; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; font-size: .95rem;
}

.notice {
  background: var(--note); border-left: 5px solid var(--note-line);
  padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: 4px;
}
.notice p:last-child { margin-bottom: 0; }

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1rem 0; padding: 0; list-style: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.2rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.fontes { padding-left: 1.2rem; }
.fontes li { margin-bottom: 1.1rem; }
.fontes a { overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--line); background: #f0eee6; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { padding-top: 1.2rem; padding-bottom: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }

@media (min-width: 40rem) {
  .cards { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
