/* ==========================================================================
   Sail Sun Hotel — sailsunhotel.com
   Marina de Vilamoura, Quarteira, Algarve.
   Tema exo-ape (claro): canva de areia lavada, folha branca, tinta quase preta.
   Caracter da casa: vela e sol — mastros, toldos de linho, a luz do meio-dia
   no casco branco de um veleiro. Sem fotografia: tipografia, painel e tracado.

   O sistema assenta todo em tokens. Trocar os valores do bloco :root troca o
   tema — claro ou escuro — sem mexer numa unica regra abaixo: fora dos tokens
   nao ha brancos nem pretos escritos a mao.

   1.  Tokens
   2.  Reset
   3.  Base
   4.  Primitivas
   5.  Controlos
   6.  Marca e cabecalho
   7.  Lead (abertura)
   8.  Blocos — o ritmo das seccoes
   9.  Signon — pares chave/valor
   10. Aside-note — nota de rodape de seccao
   11. Panel — grelha de cartoes
   12. Figures — os numerais
   13. Flight — lista numerada
   14. Checkpoint — marca de idade
   15. Newsletter — painel invertido
   16. Colophon — rodape
   17. Wafer e voltar ao topo
   18. Paginas legais
   19. Movimento reduzido
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Paleta — o unico bloco que muda de dominio para dominio */
  --bg: #e4e0db;
  --surface: #ffffff;
  --surface-2: #f7f5f3;
  --text: #0d0e13;
  --border: #e0ccbb;
  --accent: #0d0e13;
  --accent-ink: #ffffff;
  --accent-hover: #33343c;

  /* Secundario. O cinzento passa AA sobre folha branca (5.08:1) e sobre a
     folha levantada (4.67:1), mas sobre a canva de areia fica em 3.87:1 —
     reprova. Dai dois valores para o mesmo papel, um por cada fundo:
       --text-muted-sheet    sobre --surface e --surface-2
       --text-muted-canvas   sobre --bg — aqui entra a tinta cheia, e a
                             hierarquia faz-se por tamanho e por peso.
     --text-muted e o valor activo e e redefinido faixa a faixa. Num dominio de
     canva escura aponta-se --text-muted-canvas ao cinzento e nada mais muda. */
  --text-muted-sheet: #6e6e71;
  --text-muted-canvas: var(--text);
  --text-muted: var(--text-muted-sheet);

  /* O acento desta casa nao e cromatico: e a propria tinta. Como texto passa
     em qualquer fundo claro (14.67:1 sobre a canva); dentro do painel
     invertido desapareceria, e ai e o linho quente que toma o lugar
     (13.71:1 sobre --panel). Num dominio de acento cromatico os dois valores
     trocam de lado — o acento-letra escurece fora e clareia dentro. */
  --accent-text: var(--accent);
  --accent-text-panel: #e6d7ca;

  /* O mesmo para o acento em enchimento: near-black sobre near-black nao se ve,
     por isso o painel inverte o par. Num dominio cromatico basta apontar
     --accent-panel ao proprio --accent. */
  --accent-panel: var(--panel-text);
  --accent-panel-ink: var(--panel);
  --accent-panel-hover: var(--panel-muted);

  /* Cromado de areia — sublinhados, pontos, marcas. Nunca e texto. */
  --linen: #e6d7ca;

  /* Painel invertido — Clube e rodape */
  --panel: #0d0e13;
  --panel-text: #ffffff;
  --panel-muted: #e0ccbb;
  --panel-line: #33343c;
  --panel-field: #767676;

  /* Camada activa dentro de uma faixa (redefinida por .block--surface) */
  --layer: var(--surface);
  --focus: var(--text);

  /* Tipografia — igual nos 5 dominios */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', Times, serif;
  --font-text: 'Archivo', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 600;
  --w-bold: 700;

  --fs-display: clamp(40px, 6.2vw, 64px);
  --lh-display: 1.05;
  --fs-h2: clamp(28px, 3.4vw, 34px);
  --lh-h2: 1.15;
  --fs-h3: 20px;
  --lh-h3: 1.25;
  --fs-body: 16px;
  --lh-body: 1.6;
  --fs-label: 12px;
  --ls-label: 0.12em;
  --fs-micro: 13px;
  --fs-num: clamp(44px, 7vw, 64px);
  --ls-display: -0.02em;

  /* Espaco e forma */
  --container: 1200px;
  --gutter: 20px;
  --gap: 24px;
  --radius: 4px;
  --radius-pill: 999px;
  --head-h: 64px;
  --band-y: 72px;
  --pad: 24px;

  --shadow:
    rgba(13, 14, 19, 0.01) 0 4px 1px 0,
    rgba(13, 14, 19, 0.04) 0 2px 1px 0,
    rgba(13, 14, 19, 0.06) 0 1px 1px 0;
  /* sombra a subir — o aviso de cookies encosta ao fundo da janela */
  --shadow-up: 0 -1px 1px rgba(13, 14, 19, 0.05);
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --band-y: 96px;
  }
}

@media (min-width: 1024px) {
  :root {
    --head-h: 68px;
    --band-y: 120px;
    --fs-body: 17px;
  }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
dt,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: var(--w-regular);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-display);
  font-optical-sizing: auto;
}

strong,
b {
  font-weight: var(--w-semibold);
}

/* A ligacao em texto corrido nao muda de cor — o fio por baixo e que a marca.
   Segue --text-muted para nunca ficar mais fraca do que o fundo permite: fio
   de tinta sobre a canva, cinzento sobre a folha, linho dentro do painel. */
a {
  color: inherit;
  text-decoration-color: var(--text-muted);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

[tabindex='-1']:focus {
  outline: none;
}

::selection {
  background-color: var(--accent);
  color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
   4. Primitivas
   -------------------------------------------------------------------------- */
.frame {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hidden-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.jump-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background-color: var(--text);
  color: var(--surface);
  font-size: var(--fs-micro);
  font-weight: var(--w-semibold);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: top 0.15s ease;
}

.jump-link:focus {
  top: 12px;
}

/* Rotulo editorial — o degrau mais pequeno da escala */
.brow {
  display: block;
  font-family: var(--font-text);
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  color: var(--text);
}

.brow--quiet {
  color: var(--text-muted);
}

/* Fio com marca de linho a abrir — micro-detalhe, nao e texto */
.seam-line {
  display: block;
  height: 1px;
  border: 0;
  margin: 0;
  background:
    linear-gradient(to right, var(--accent) 0 28px, transparent 28px) no-repeat,
    var(--border);
}

.runtext {
  max-width: 62ch;
  color: var(--text-muted);
}

.runtext p + p {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   5. Controlos
   -------------------------------------------------------------------------- */
.push {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: var(--w-semibold);
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

/* Accao primaria — o unico enchimento de acento do sistema */
.push--solid {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.push--solid:hover {
  background-color: var(--accent-hover);
}

.push--ink {
  background-color: var(--text);
  color: var(--surface);
}

.push--ink:hover {
  background-color: var(--accent-hover);
}

.push--ghost {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}

.push--ghost:hover {
  background-color: var(--layer);
  border-color: var(--text);
}

.push--sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: var(--fs-micro);
}

/* Selo 18+ */
.mark18 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--text);
  border-radius: var(--radius-pill);
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  white-space: nowrap;
}

.mark18--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-text);
  flex: none;
}

.mark18--inverse {
  border-color: var(--panel-line);
  color: var(--panel-text);
}

/* Label-chips — contorno de acento, sem enchimento. Entram a seguir ao cabecalho
   da faixa e guardam a mesma folga que a grelha de cartoes. */
.label-set {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.label-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: var(--w-medium);
  white-space: nowrap;
}

/* Marcas de documento */
.mark-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mark {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--text);
  border-radius: var(--radius-pill);
  font-size: var(--fs-micro);
  font-weight: var(--w-semibold);
}

.mark--off {
  border-color: var(--border);
  border-style: dashed;
  color: var(--text-muted);
  font-weight: var(--w-regular);
}

/* --------------------------------------------------------------------------
   6. Marca e cabecalho
   -------------------------------------------------------------------------- */
.logotype {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  /* alvo de toque: a linha de base manda no alinhamento, o padding na altura */
  padding-block: 6px;
  font-family: var(--font-display);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.logotype__sign {
  font-size: 20px;
  font-weight: var(--w-bold);
  letter-spacing: 0.01em;
  color: var(--accent-text);
}

.logotype__name {
  font-size: 14px;
  font-weight: var(--w-regular);
  letter-spacing: 0.1em;
  color: var(--text);
}

.logotype__line {
  display: none;
  font-family: var(--font-text);
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.logotype--inverse .logotype__sign {
  color: var(--accent-text-panel);
}

.logotype--inverse .logotype__name {
  color: var(--panel-text);
}

@media (min-width: 768px) {
  .logotype__line {
    display: inline-block;
  }
}

/* Entre 1024 e 1200 a navegacao ocupa a linha toda — a assinatura sai */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .logotype__line {
    display: none;
  }
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.masthead--raised {
  box-shadow: var(--shadow);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--head-h);
}

.masthead__nav {
  display: none;
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.masthead__book {
  display: none;
}

.navlist__list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.navlist__link {
  display: inline-block;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  /* 22.4px de linha + 2x11 de folga = 44px de alvo, com o fio colado ao texto */
  padding-block: 11px;
  border-bottom: 1px solid transparent;
}

.navlist__link:hover {
  border-bottom-color: var(--linen);
}

.toggler {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.toggler__bar {
  display: block;
  height: 1px;
  width: 100%;
  background-color: var(--text);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.masthead--open .toggler__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.masthead--open .toggler__bar:nth-child(2) {
  opacity: 0;
}

.masthead--open .toggler__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Painel movel */
.masthead--open .masthead__nav {
  display: block;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 12px var(--gutter) 24px;
  max-height: calc(100dvh - var(--head-h));
  overflow-y: auto;
}

.masthead--open .navlist__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.masthead--open .navlist__item {
  border-top: 1px solid var(--border);
}

.masthead--open .navlist__link {
  display: block;
  padding-block: 14px;
  font-size: var(--fs-body);
  border-bottom: 0;
}

.masthead--open .navlist__item--book {
  padding-top: 20px;
}

@media (min-width: 1024px) {
  .masthead__nav {
    display: block;
  }

  .masthead__book {
    display: inline-flex;
  }

  .toggler,
  .navlist__item--book {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   7. Lead — texto a esquerda, ficha tecnica a direita
   -------------------------------------------------------------------------- */
.lead {
  background-color: var(--surface);
  padding-block: 52px 64px;
  --layer: var(--surface-2);
}

.lead__brow {
  color: var(--text-muted);
}

.lead__title {
  margin-top: 24px;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  max-width: 15ch;
  text-wrap: balance;
}

/* Contraste dentro da linha de display: peso 400 dentro de 600 e um fio de
   linho por baixo. O acento desta casa nao e cor: e peso e cromado. */
.lead__accent {
  font-weight: var(--w-regular);
  color: var(--accent-text);
  text-decoration-line: underline;
  text-decoration-color: var(--linen);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.lead__text {
  margin-top: 32px;
  max-width: 46ch;
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.lead__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.lead__note {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  max-width: 30ch;
}

/* Vela e sol — tracado, nao fotografia. Abre a coluna da ficha tecnica. */
.lead__mark {
  display: grid;
  place-items: center;
  padding-bottom: 8px;
}

.lead__mark svg {
  width: min(100%, 190px);
  height: auto;
  color: var(--text);
}

.lead__facts {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.lead__facts-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}

.lead__facts-key {
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  color: var(--text-muted);
}

.lead__facts-val {
  font-size: var(--fs-body);
  color: var(--text);
}

@media (min-width: 768px) {
  .lead {
    padding-block: 64px 88px;
  }

  .lead__facts-row {
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: baseline;
  }
}

@media (min-width: 1024px) {
  .lead {
    padding-block: 80px 120px;
  }

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

  .lead__main {
    grid-column: 1 / 9;
  }

  .lead__side {
    grid-column: 10 / 13;
    align-self: end;
  }

  .lead__facts-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .lead__title {
    max-width: 13ch;
  }
}

/* --------------------------------------------------------------------------
   8. Blocos — ritmo unico de seccao: brow > titulo > lead > conteudo
   -------------------------------------------------------------------------- */
.block {
  position: relative;
  padding-block: var(--band-y);
  background-color: var(--bg);
  --layer: var(--surface);
  --text-muted: var(--text-muted-canvas);
}

/* Faixa levantada: o que la dentro assenta sobe tambem um degrau */
.block--surface {
  background-color: var(--surface);
  --layer: var(--surface-2);
  --text-muted: var(--text-muted-sheet);
}

.block__title {
  margin-top: 20px;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  max-width: 18ch;
  text-wrap: balance;
}

.block__sub {
  margin-top: 24px;
}

.block__head {
  max-width: 62ch;
}

.block__divider {
  margin-top: 16px;
}

/* Bloco de texto solto no fim de uma faixa */
.block__unit {
  margin-top: 48px;
  max-width: 60ch;
}

.block__unit-title {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.block__unit-text {
  margin-top: 12px;
  color: var(--text-muted);
}

.block__figures {
  margin-top: 48px;
}

@media (max-width: 1023.98px) {
  .block__aside {
    margin-bottom: 32px;
  }
}

@media (min-width: 1024px) {
  .block__head {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: end;
    max-width: none;
  }

  .block__head-main {
    grid-column: 1 / 6;
  }

  .block__head .block__sub {
    grid-column: 7 / 13;
    margin-top: 0;
  }

  /* Prosa a esquerda, painel de dados a direita, nota por baixo */
  .block__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: start;
  }

  .block__main {
    grid-column: 1 / 7;
  }

  .block__grid .signon {
    grid-column: 8 / 13;
    margin-top: 40px;
  }

  .block__note {
    grid-column: 1 / 8;
    margin-top: 64px;
  }

  /* Rotulo a esquerda, corpo estreito a direita */
  .block__split {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
  }

  .block__aside {
    grid-column: 1 / 5;
  }

  .block__body,
  .block__figures {
    grid-column: 6 / 13;
  }

  .block__unit {
    margin-left: auto;
    margin-right: 0;
  }
}

/* --------------------------------------------------------------------------
   9. Signon — pares chave/valor em painel (distancias, regras de acesso)
   -------------------------------------------------------------------------- */
.signon {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--layer);
  padding: var(--pad);
  /* assenta sempre numa folha, logo o cinzento volta a ser legivel */
  --text-muted: var(--text-muted-sheet);
}

.signon__title {
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: var(--w-semibold);
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.signon__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}

.signon__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.signon__key {
  font-size: var(--fs-body);
  color: var(--text);
}

.signon__val {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  font-variant-numeric: lining-nums tabular-nums;
  text-align: right;
}

/* --------------------------------------------------------------------------
   10. Aside-note — nota no fim de uma seccao, fio grosso em cima
   -------------------------------------------------------------------------- */
.aside-note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--text);
  max-width: 62ch;
}

.aside-note__label {
  color: var(--text);
}

.aside-note__text {
  margin-top: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. Panel — grelha de cartoes
   -------------------------------------------------------------------------- */
.panel-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-items: start;
}

.panel {
  background-color: var(--layer);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad);
  /* o cartao e sempre folha, esteja em que faixa estiver */
  --text-muted: var(--text-muted-sheet);
}

.panel__brow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: var(--w-semibold);
  color: var(--text-muted);
  font-variant-numeric: lining-nums tabular-nums;
}

.panel__dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-pill);
  background-color: var(--linen);
  flex: none;
}

.panel__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
}

.panel__glyph svg {
  width: 18px;
  height: 18px;
  display: block;
}

.panel__title {
  margin-top: 12px;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.panel__text {
  margin-top: 12px;
  color: var(--text-muted);
}

.panel__list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--text-muted);
}

/* Marcador desenhado a fio — o conteudo em linha continua a fluir */
.panel__list li {
  position: relative;
  padding-left: 22px;
}

.panel__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 1px;
  background-color: var(--linen);
}

.panel__foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

.panel__foot span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-text);
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: var(--w-semibold);
  color: var(--text-muted);
}

.panel__links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 768px) {
  .panel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .panel-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .panel--wide {
    grid-column: span 2;
  }
}

/* --------------------------------------------------------------------------
   12. Figures — a estatistica e um recurso tipografico
   -------------------------------------------------------------------------- */
.figures {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--text);
}

.figures--quiet {
  border-top-color: var(--border);
}

/* dt precede dd na marcacao; column-reverse poe o numeral por cima do rotulo */
.figures__item {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}

.figures__num {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: var(--fs-num);
  line-height: 0.85;
  letter-spacing: var(--ls-display);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--text);
}

.figures__num--sm {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1;
}

.figures__label {
  display: block;
  margin-top: 16px;
  font-size: var(--fs-micro);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 26ch;
}

.figures__label--caps {
  margin-top: 10px;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: var(--w-semibold);
}

@media (min-width: 768px) {
  .figures {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
  }

  .figures--3 {
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--gap);
  }
}

@media (min-width: 1024px) {
  .figures {
    grid-template-columns: repeat(4, 1fr);
    column-gap: var(--gap);
  }

  .figures--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .figures__item {
    padding-bottom: 32px;
  }
}

/* --------------------------------------------------------------------------
   13. Flight — lista numerada sem caixa (jogo responsavel)
   -------------------------------------------------------------------------- */
.flight {
  margin-top: 48px;
}

.flight__step {
  padding-block: 32px;
  border-top: 1px solid var(--border);
}

.flight__step:last-child {
  border-bottom: 1px solid var(--border);
}

/* O ordinal fica em --text (AA); o linho vai no tracinho, que nao e texto */
.flight__index {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--text);
}

.flight__index::after {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  margin-top: 8px;
  background-color: var(--linen);
}

.flight__name {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.flight__text {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .flight__step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 24px;
  }

  .flight__index {
    padding-top: 6px;
  }

  .flight__name {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .flight__step {
    grid-template-columns: 64px minmax(0, 4fr) minmax(0, 6fr);
    column-gap: 32px;
  }

  .flight__text {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   14. Checkpoint — marca de idade
   -------------------------------------------------------------------------- */
.checkpoint__num {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: var(--fs-num);
  line-height: 0.85;
  letter-spacing: var(--ls-display);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--text);
}

.checkpoint__label {
  display: block;
  margin-top: 12px;
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: var(--w-semibold);
  color: var(--text-muted);
}

.checkpoint__docs {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .checkpoint__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    align-items: start;
  }

  .checkpoint__figure {
    grid-column: 1 / 4;
    border-top: 1px solid var(--text);
    padding-top: 20px;
  }

  .checkpoint__main {
    grid-column: 5 / 12;
  }

  .checkpoint__main .block__title {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   15. Newsletter — painel invertido, o momento escuro do corpo
   -------------------------------------------------------------------------- */
/* O painel inverte o fundo, por isso inverte tambem o acento e o foco */
.newsletter__panel {
  background-color: var(--panel);
  border-radius: var(--radius);
  padding: 40px 24px;
  color: var(--panel-text);
  --focus: var(--panel-text);
  --text-muted: var(--panel-muted);
  --accent-text: var(--accent-text-panel);
  --accent: var(--accent-panel);
  --accent-ink: var(--accent-panel-ink);
  --accent-hover: var(--accent-panel-hover);
}

.newsletter__brow {
  color: var(--panel-muted);
}

.newsletter__title {
  margin-top: 20px;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--panel-text);
  max-width: 18ch;
}

.newsletter__text {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--panel-muted);
}

.newsletter__form {
  margin-top: 32px;
}

.newsletter__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

.newsletter__field {
  display: block;
}

.newsletter__label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: var(--w-semibold);
  color: var(--panel-muted);
}

.newsletter__hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: var(--w-regular);
}

.newsletter__input {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  background-color: transparent;
  border: 1px solid var(--panel-field);
  border-radius: var(--radius);
  color: var(--panel-text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
}

.newsletter__input:hover {
  border-color: var(--panel-muted);
}

.newsletter__input:focus-visible {
  outline: 2px solid var(--accent-text-panel);
  outline-offset: 1px;
  border-color: var(--accent-text-panel);
}

.newsletter__consent {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 60ch;
}

/* A caixa mede 24px (minimo para alvos); o alvo util e a etiqueta ao lado,
   ligada por for= e com a altura da linha toda. */
.newsletter__check {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--accent-text-panel);
}

.newsletter__consent-text {
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--panel-muted);
}

.newsletter__consent-text a {
  color: var(--panel-text);
  text-decoration-color: var(--panel-field);
}

.newsletter__row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.newsletter__small {
  font-size: var(--fs-micro);
  color: var(--panel-muted);
  max-width: 34ch;
}

/* Confirmacao — o JS acrescenta --visible depois de o OneSignal ficar avisado */
.form__success {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--accent-text-panel);
  border-radius: var(--radius);
  max-width: 56ch;
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--panel-muted);
}

.form__success--visible {
  display: block;
}

@media (min-width: 768px) {
  .newsletter__panel {
    padding: 64px 52px;
  }
}

@media (min-width: 1024px) {
  .newsletter__panel {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gap);
    padding: 64px;
  }

  .newsletter__head {
    grid-column: 1 / 5;
  }

  .newsletter__form {
    grid-column: 6 / 13;
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   16. Colophon — rodape
   -------------------------------------------------------------------------- */
.colophon {
  background-color: var(--panel);
  color: var(--panel-muted);
  padding-block: 64px 32px;
  --focus: var(--panel-text);
  --accent-text: var(--accent-text-panel);
}

.colophon__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.colophon__col {
  min-width: 0;
}

.colophon__line {
  margin-top: 16px;
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--panel-muted);
  max-width: 32ch;
}

.colophon__seal {
  margin-top: 20px;
}

.colophon__title {
  margin-bottom: 16px;
  font-family: var(--font-text);
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: var(--w-semibold);
  color: var(--panel-text);
}

.colophon__list li + li {
  margin-top: 12px;
}

.colophon__link {
  font-size: var(--fs-body);
  color: var(--panel-muted);
  text-decoration: none;
}

.colophon__link:hover {
  color: var(--panel-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.colophon__contacts {
  font-style: normal;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--panel-muted);
}

.colophon__contact-line {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  margin-top: 4px;
  color: var(--panel-text);
  text-decoration-color: var(--panel-field);
}

.colophon__contact-line:hover {
  text-decoration-color: var(--panel-text);
}

.colophon__bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-line);
  display: grid;
  gap: 20px;
}

.colophon__care {
  font-size: var(--fs-micro);
  line-height: 1.6;
  color: var(--panel-muted);
  max-width: 78ch;
}

.colophon__care p + p {
  margin-top: 12px;
}

.colophon__care a {
  color: var(--panel-text);
}

.colophon__copy {
  font-size: var(--fs-micro);
  color: var(--panel-muted);
}

@media (min-width: 768px) {
  .colophon {
    padding-block: 80px 32px;
  }

  .colophon__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--gap);
  }

  .colophon__bottom {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   17. Wafer (aviso de cookies) e voltar ao topo — ambos construidos pelo main.js
   -------------------------------------------------------------------------- */
.wafer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 120;
  background-color: var(--surface);
  border-top: 1px solid var(--text);
  box-shadow: var(--shadow-up);
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  --layer: var(--surface-2);
}

.wafer__text {
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 74ch;
}

.wafer__link {
  color: var(--text);
}

.wafer__actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: 24px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--surface);
  border: 1px solid var(--text);
  border-radius: var(--radius-pill);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.to-top svg {
  width: 16px;
  height: 16px;
  display: block;
}

.to-top:hover {
  background-color: var(--surface-2);
}

.to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.has-wafer .to-top {
  bottom: 108px;
}

@media (min-width: 900px) {
  .wafer {
    padding-inline: 40px;
  }

  body.has-wafer .to-top {
    bottom: 96px;
  }
}

/* --------------------------------------------------------------------------
   18. Paginas legais
   -------------------------------------------------------------------------- */
.logbook {
  background-color: var(--surface);
  padding-block: 52px 80px;
  --layer: var(--surface-2);
}

.logbook__head {
  max-width: 72ch;
}

.logbook__title {
  margin-top: 20px;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

.logbook__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: var(--fs-micro);
  color: var(--text-muted);
}

.logbook__divider {
  margin-top: 32px;
}

.logbook__body {
  max-width: 72ch;
}

.logbook__section {
  margin-top: 40px;
}

.logbook__h2 {
  font-size: 22px;
  line-height: 1.25;
}

.logbook__text p {
  margin-top: 12px;
  color: var(--text-muted);
}

.logbook__list {
  margin-top: 16px;
}

.logbook__list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
}

.logbook__list li + li {
  margin-top: 8px;
}

.logbook__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 1px;
  background-color: var(--linen);
}

.logbook__table {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.logbook__table-row {
  display: grid;
  gap: 4px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
}

.logbook__table-name {
  font-size: var(--fs-body);
  color: var(--text);
}

.logbook__table-desc {
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--text-muted);
}

.logbook__table-term {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: var(--w-semibold);
  color: var(--text-muted);
}

.logbook__back {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .logbook {
    padding-block: 64px 120px;
  }

  .logbook__table-row {
    grid-template-columns: 1fr 2fr auto;
    gap: var(--gap);
    align-items: baseline;
  }
}

/* --------------------------------------------------------------------------
   19. Movimento reduzido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
