/* Skipaba — folha de estilos comum */

:root {
  --bg: #f0ece6;
  --bg-alt: #e1dcd3;
  --bg-dark: #221e1a;
  --text: #1f1c18;
  --muted: #726c63;
  --on-dark: #f0ece6;
  --accent: #2f6a8c;
  --accent-2: #a05a2c;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

/* ---------- grelha de 12 colunas, eixo central ---------- */

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}

.axis-center { grid-column: 4 / span 6; }
.axis-left-4 { grid-column: 2 / span 4; }
.axis-right-4 { grid-column: 8 / span 4; }
.axis-left-3 { grid-column: 2 / span 3; }
.axis-right-3 { grid-column: 9 / span 3; }
.off-left-7 { grid-column: 2 / span 7; }
.full-10 { grid-column: 2 / span 10; }

/* ---------- ritmo vertical ---------- */

.rh-64 { padding: 64px 0; }
.rh-80 { padding: 80px 0; }
.rh-96 { padding: 96px 0; }

.band-alt { background: var(--bg-alt); }

.band-dark {
  background: var(--bg-dark);
  color: var(--on-dark);
}

.band-dark h2,
.band-dark h3 { color: var(--on-dark); }

.band-dark .label { color: #c9bfae; }

.band-dark .caption { color: #b3aa9d; }

.band-dark a { color: #9fc8dd; }

/* ---------- tipografia ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  text-transform: none;
  color: var(--text);
  margin: 0 0 20px;
}

h1 {
  font-size: 44px;
  line-height: 1.18;
  text-align: center;
  letter-spacing: -0.005em;
}

h2 {
  font-size: 30px;
  line-height: 1.26;
}

h3 {
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  margin-top: 34px;
}

p { margin: 0 0 20px; }

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

.lead { font-size: 18.5px; }

.label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
  display: block;
}

.caption {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  margin: 16px auto 0;
  max-width: 480px;
}

.secondary { color: var(--muted); }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

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

/* ---------- listas ---------- */

ul, ol { margin: 0 0 20px; padding-left: 20px; }

li { margin-bottom: 10px; }

ul { list-style: none; padding-left: 0; }

ul li {
  position: relative;
  padding-left: 22px;
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.band-dark ul li::before { background: #9fc8dd; }

ol { padding-left: 22px; }

ol li::marker {
  color: var(--accent-2);
  font-family: var(--sans);
  font-size: 14px;
}

/* ---------- separador em arco ---------- */

.arc {
  grid-column: 5 / span 4;
  height: 26px;
  border-top: 1px solid var(--accent-2);
  border-radius: 200px 200px 0 0;
  margin: 8px 0 0;
  opacity: 0.75;
}

.band-dark .arc { border-top-color: #a8763f; }

/* ---------- cabeçalho e navegação ---------- */

.site-header {
  border-bottom: 1px solid #d6d0c6;
  padding: 18px 0;
}

.site-header .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
  padding: 0 14px;
  border-right: 1px solid #cdc6ba;
  line-height: 1.4;
}

.site-nav li::before { content: none; }

.site-nav li:last-child { border-right: 0; }

.site-nav a {
  font-size: 14.5px;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- hero com eixo visível ---------- */

.hero {
  position: relative;
  padding: 72px 0 64px;
}

.hero .axis-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, rgba(47,106,140,0), rgba(47,106,140,0.55) 12%, rgba(47,106,140,0.55) 88%, rgba(47,106,140,0));
}

.hero .grid { position: relative; }

.hero h1 { grid-column: 3 / span 8; }

.hero .hero-lead {
  grid-column: 4 / span 6;
  text-align: center;
  margin-top: 6px;
}

.hero-side {
  margin-top: 44px;
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--muted);
}

.hero-side .label { color: var(--accent-2); }

.hero-side.right { text-align: right; }

.hero-side.right .label { text-align: right; }

/* ---------- figuras ---------- */

figure { margin: 0; }

.fig-main {
  max-width: 680px;
  margin: 0 auto;
}

.fig-main img,
.fig-detail img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.fig-detail { grid-column: 2 / span 4; }

.fig-detail .caption { text-align: left; margin-left: 0; }

.band-dark .detail-text { grid-column: 7 / span 5; }

/* ---------- blocos simétricos ---------- */

.pair { margin-top: 36px; }

.pair-block .label { color: var(--accent-2); }

.note-box {
  border-top: 1px solid #cdc6ba;
  padding-top: 18px;
  font-size: 15.5px;
  line-height: 1.66;
}

.band-dark .note-box { border-top-color: #4a423a; }

/* ---------- rodapé ---------- */

.site-footer {
  background: var(--bg-alt);
  padding: 56px 0 48px;
  text-align: center;
}

.site-footer .arc {
  grid-column: 5 / span 4;
  margin-bottom: 30px;
}

.footer-inner { grid-column: 2 / span 10; }

.footer-brand {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 16px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 20px;
  padding: 0;
}

.footer-nav li {
  margin: 0;
  padding: 0 12px;
  border-right: 1px solid #cdc6ba;
  line-height: 1.5;
}

.footer-nav li::before { content: none; }

.footer-nav li:last-child { border-right: 0; }

.footer-nav a {
  font-size: 14.5px;
  color: var(--text);
  text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-meta {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

.footer-meta p { margin: 0 0 8px; }

/* ---------- páginas interiores ---------- */

.page-head {
  padding: 64px 0 8px;
  position: relative;
}

.page-head h1 {
  grid-column: 3 / span 8;
  font-size: 38px;
}

.page-head .page-intro {
  grid-column: 4 / span 6;
  text-align: center;
  color: var(--muted);
}

.doc-body { grid-column: 4 / span 6; }

.doc-body h2 { margin-top: 44px; }

.doc-body h2:first-of-type { margin-top: 0; }

/* ---------- responsivo ---------- */

@media (max-width: 980px) {
  h1 { font-size: 36px; }
  .hero h1 { grid-column: 1 / -1; }
  .hero .hero-lead,
  .axis-center,
  .doc-body,
  .page-head h1,
  .page-head .page-intro,
  .off-left-7,
  .full-10,
  .footer-inner { grid-column: 1 / -1; }
  .axis-left-4, .axis-left-3 { grid-column: 1 / span 6; }
  .axis-right-4, .axis-right-3 { grid-column: 7 / span 6; }
  .fig-detail { grid-column: 1 / span 6; }
  .band-dark .detail-text { grid-column: 1 / -1; margin-top: 32px; }
  .arc { grid-column: 4 / span 6; }
}

@media (max-width: 680px) {
  body { font-size: 16.5px; }
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  h3 { font-size: 20px; }
  .wrap { padding: 0 20px; }
  .grid { column-gap: 16px; }
  .rh-64, .rh-80, .rh-96 { padding: 44px 0; }
  .hero { padding: 48px 0 40px; }
  .hero .axis-line { display: none; }
  .axis-left-4, .axis-right-4,
  .axis-left-3, .axis-right-3,
  .fig-detail { grid-column: 1 / -1; }
  .hero-side { margin-top: 28px; }
  .hero-side.right { text-align: left; }
  .hero-side.right .label { text-align: left; }
  .arc { grid-column: 1 / -1; width: 60%; margin-left: auto; margin-right: auto; }
  .site-nav li { padding: 0 10px; }
  .site-nav a, .footer-nav a { font-size: 14px; }
  .page-head { padding: 44px 0 4px; }
  .page-head h1 { font-size: 27px; }
}

/* utilitários pontuais */
.grid-full { grid-column: 1 / -1; }
.centered { text-align: center; }
.centered .label { text-align: center; }

.heads-centered h2,
.heads-centered h3 { text-align: center; }
