@font-face {
  font-family: Noto Display;
  src: url("/nacional/serif-regular.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: Noto Display;
  src: url("/nacional/serif-italic.woff") format("woff");
  font-style: italic;
  font-display: swap;
}
:root {
  --verde: #5f988c;
  --verde-escuro: #27534a;
  --tinta: #0a2019;
  --creme: #dad6ae;
  --terracota: #e16045;
  --ocre: #927348;
  --serifada: "Noto Display", Georgia, serif;
  --largura-composicao: 37rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--verde); }
body { margin: 0; color: var(--tinta); font: 1rem/1.48 system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }
:where(h1, h2, h3, p, figure) { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.spread {
  height: 100vh;
  height: 100svh;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}
.poster, .convite { min-height: 100%; }
.poster {
  background: var(--verde);
  color: var(--tinta);
  text-align: center;
}
.poster-inner {
  width: min(100%, var(--largura-composicao));
  margin-inline: auto;
  padding: max(1rem, env(safe-area-inset-top)) .85rem max(1rem, env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
}
.identidade { width: min(100%, 17rem); margin-inline: auto; }
.selo {
  display: grid;
  grid-template-columns: minmax(1rem, 3.2rem) auto minmax(1rem, 3.2rem);
  align-items: center;
  justify-content: center;
  column-gap: .65rem;
  color: inherit;
}
.selo::before, .selo::after { content: ""; height: 1px; background: currentColor; }
.selo img { width: 1.75rem; }
.assinatura { width: 100%; margin-top: .43rem; }
.filtro-visual { position: absolute; overflow: hidden; pointer-events: none; }
h1, h2, h3 { font: italic 400 clamp(2.26rem, 10.25vw, 5rem)/.98 var(--serifada); letter-spacing: -.052em; }
.poster .identidade { width: min(72%, 15.25rem); }
.poster .selo { color: var(--tinta); }
.poster .selo img { width: 1.55rem; }
.retrofit {
  margin-top: .35rem;
  text-align: center;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .31em;
}
.poster h1 {
  margin-top: .85rem;
  font-size: clamp(2rem, min(10.2vw, 6.3svh), 3.95rem);
  line-height: .99;
  letter-spacing: -.048em;
  text-align: center;
}
.poster h1 span { display: block; }
.introducao {
  max-width: 36ch;
  margin: .32rem auto 0;
  font: 1rem/1.3 var(--serifada);
  text-wrap: balance;
}
.gravura {
  margin: .5rem 0 .28rem;
  width: min(100%, 24rem, max(7.75rem, calc(92svh - 23.5rem)));
  position: relative;
}
.gravura img { width: 100%; object-fit: contain; filter: url(#tons-da-gravura); }
.gravura::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--verde), #5f988c00 3.5%, #5f988c00 97%, var(--verde)),
    linear-gradient(90deg, var(--verde), #5f988c00 3%, #5f988c00 97%, var(--verde));
}
.data-local {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: .46rem;
  margin: .62rem 0 0;
  font-size: .8125rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.data-local::before, .data-local::after { content: ""; width: clamp(.5rem, 3vw, 1.5rem); height: 1px; background: currentColor; }
.acao {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid #683924;
  border-radius: .68rem;
  background: var(--terracota);
  color: var(--tinta);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .115em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.acao:hover { background: #eb7356; }
.acao:disabled { opacity: .76; cursor: default; }
.principal {
  width: min(100%, 21rem);
  min-height: 3rem;
  margin-inline: auto;
  padding: .54rem 1rem;
  border: 1px solid var(--ocre);
  border-radius: 2rem;
  font-size: .875rem;
  line-height: 1.24;
  font-weight: 650;
  letter-spacing: .035em;
}
.convite { background: var(--verde); color: var(--tinta); min-width: 0; padding-bottom: env(safe-area-inset-bottom); }
.frontao {
  filter: url(#tons-da-gravura);
  height: clamp(9rem, 28vw, 14rem);
  mask-image: linear-gradient(90deg, transparent, black 17%, black 83%, transparent);
}
.convite-papel {
  position: relative;
  isolation: isolate;
  min-height: 29rem;
  background: var(--creme);
  border-radius: 3.1rem 3.1rem 0 0;
  margin-top: -1.4rem;
  border: 1px solid var(--ocre);
  border-bottom: 0;
}
.convite-papel::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: .29rem .29rem 0;
  border: 1px solid #9273487d;
  border-radius: 2.82rem 2.82rem 0 0;
  border-bottom: 0;
}
.convite-inner { max-width: 33rem; margin-inline: auto; padding: 1.4rem clamp(1.5rem, 7.5vw, 3rem) 1.55rem; }
.convite .identidade { width: min(76%, 14.5rem); }
.convite .selo { color: var(--ocre); }
.convite h2, .confirmacao h3 { text-align: center; font-size: clamp(2.3rem, 9vw, 3.5rem); line-height: .99; }
#titulo-convite { margin-top: 1.2rem; }
.convite-intro { text-align: center; margin: .6rem auto 1.05rem; max-width: 30ch; font: 1rem/1.35 var(--serifada); }
.campo + .campo { margin-top: .67rem; }
.campo label { display: block; font-size: .875rem; letter-spacing: .095em; text-transform: uppercase; font-weight: 720; margin-bottom: .22rem; }
.campo input {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid #577168;
  border-radius: .59rem;
  padding: .48rem .7rem;
  color: var(--tinta);
  background: #f2efcd77;
}
.campo input::placeholder { color: #3e5044; }
:where(input)[aria-invalid="true"] { outline: 2px solid #8f2d20; outline-offset: 1px; }
.erro { margin-top: .3rem; color: #841f16; font-size: .875rem; }
.consentimento { display: flex; align-items: center; min-height: 2.75rem; gap: .56rem; margin-block: .48rem; font-size: .875rem; line-height: 1.35; }
.consentimento input { width: 1.13rem; height: 1.13rem; flex: none; margin: 0; accent-color: var(--verde); }
.confirmacao { border-top: 1px solid #826e50; padding-top: 1.2rem; text-align: center; }
@media (max-width: 51.99rem) and (max-height: 760px) {
  .gravura { width: min(100%, 24rem, max(7.75rem, calc(92svh - 25rem))); }
  .poster h1 { font-size: clamp(1.75rem, min(8.6vw, 5.25svh), 2.35rem); }
}
@media (max-height: 550px) {
  .poster-inner { padding-block: .5rem; }
  .poster .identidade { width: min(68%, 11.6rem); }
  .poster .selo img { width: 1.2rem; }
  .poster h1 { margin-top: .57rem; }
  .poster .data-local { margin-top: .43rem; }
  .poster .introducao { font-size: .9375rem; }
}
@media (min-width: 52rem) {
  .poster-inner {
    min-height: 100%;
    padding-block: 1.3rem;
    align-content: center;
  }
  .poster .identidade { width: min(100%, 17rem); }
  .poster h1 { font-size: clamp(2.35rem, 5.4svh, 3.25rem); }
  .gravura { width: min(100%, 29rem, max(12rem, calc(91svh - 25rem))); }
  .frontao { height: clamp(9rem, 15vw, 14rem); }
  .convite-papel { max-width: var(--largura-composicao); min-height: calc(100svh - clamp(9rem, 15vw, 14rem) + 1.4rem); margin-inline: auto; }
  .convite-inner { padding-inline: clamp(1.7rem, 4vw, 3.2rem); }
}

@media (max-width: 51.99rem) {
  .convite {
    display: flex;
    flex-direction: column;
  }
  .frontao {
    flex: none;
    height: clamp(4.5rem, 16svh, 8.5rem);
    background-position: center 6%;
  }
  .convite-papel {
    flex: 1;
    margin-top: -1.15rem;
    border-radius: 2.3rem 2.3rem 0 0;
  }
  .convite-papel::before { border-radius: 2.04rem 2.04rem 0 0; }
  .convite-inner {
    padding: clamp(.75rem, 2.3svh, 1.25rem) clamp(1.25rem, 6vw, 2.5rem) 1.25rem;
  }
  .convite .identidade { width: min(62%, 11rem); }
  .convite .selo img { width: 1.2rem; }
  .convite .assinatura { margin-top: .25rem; }
  .convite .retrofit { margin-top: .12rem; font-size: .65rem; }
  #titulo-convite {
    margin-top: .55rem;
    font-size: clamp(1.85rem, 7.5vw, 2.8rem);
  }
  .convite-intro { margin: .38rem auto .7rem; }
  .campo + .campo { margin-top: .36rem; }
  .campo label { font-size: .75rem; margin-bottom: .1rem; }
  .campo input { min-height: 2.75rem; }
  .consentimento {
    margin-block: .18rem;
    font-size: .8125rem;
  }
  .convite .acao { min-height: 2.875rem; }
}

/* Mobile: reserve space for the whole engraving, including its crown. */
@media (max-width: 51.99rem) {
  .poster {
    position: relative;
    isolation: isolate;
  }
  .poster-inner {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: max(.85rem, env(safe-area-inset-top));
    padding-bottom: max(.75rem, env(safe-area-inset-bottom));
  }
  .poster-inner > :not(.gravura) {
    position: relative;
    z-index: 1;
  }
  .poster .identidade { width: min(68%, 14.25rem); }
  .poster .selo img { width: 1.35rem; }
  .poster .assinatura { margin-top: .3rem; }
  .poster .retrofit { margin-top: .22rem; font-size: .75rem; }
  .poster h1 {
    margin-top: .7rem;
    font-size: clamp(1.85rem, min(9.4vw, 5.8svh), 3.65rem);
    line-height: .96;
    letter-spacing: -.045em;
  }
  .poster .data-local {
    margin-top: .5rem;
    font-size: .75rem;
    letter-spacing: .13em;
  }
  .poster .data-local::before, .poster .data-local::after { width: .9rem; }
  .poster .introducao {
    max-width: 34ch;
    margin-top: .35rem;
    font-size: .95rem;
    line-height: 1.26;
  }
  .poster .gravura {
    flex: 1 1 0;
    position: relative;
    width: min(94vw, 27.25rem, 57.5svh);
    max-width: 100%;
    min-height: 6.5rem;
    margin: .45rem 0 0;
  }
  .poster .gravura img {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: calc(100% + 1.25rem);
    object-fit: contain;
    object-position: center bottom;
    mask-image: linear-gradient(to bottom, #000 0%, #000 97%, transparent);
    mask-composite: add;
  }
  .poster .principal { flex-shrink: 0; }
  .gravura::after { content: none; }
}
@media (max-width: 51.99rem) and (max-height: 760px) {
  .poster h1 { font-size: clamp(1.65rem, min(8.25vw, 5svh), 2.25rem); }
}
@media (max-width: 51.99rem) and (max-height: 550px) {
  .poster-inner { padding-top: max(.5rem, env(safe-area-inset-top)); }
  .poster .identidade { width: min(66%, 11rem); }
  .poster .selo img { width: 1.1rem; }
  .poster h1 { margin-top: .48rem; }
  .poster .data-local { margin-top: .35rem; }
  .poster .introducao { font-size: .9rem; }
  .poster .gravura { width: min(94vw, 52svh); }
}
@media (max-width: 51.99rem) and (min-height: 790px) {
  .poster-inner { padding-top: max(1.7rem, env(safe-area-inset-top)); }
  .poster h1 { margin-top: .9rem; }
  .poster .introducao { margin-top: .5rem; }
}

/* Creme do lambe-lambe: paleta editorial quente, sem alterar a composicao. */
:root {
  --tinta: #493622;
  --ocre-forte: #73532f;
}
html, .poster, .convite { background: var(--creme); }
.poster .selo, .convite .selo { color: var(--ocre-forte); }
.identidade img { filter: url(#tons-da-marca); }
.gravura::after { content: none; }
.acao {
  background: var(--ocre-forte);
  color: var(--creme);
  border-color: var(--ocre-forte);
}
.acao:hover { background: #624526; }
.principal { border-color: var(--ocre-forte); }
.convite-papel { background: var(--creme); }
.campo input { border-color: #80613b; background: #f2efcd77; }
.campo input::placeholder { color: #685333; }
.consentimento input { accent-color: var(--ocre-forte); }

/* Campanha: creme como papel; ocre na identidade, verde na gravura,
   terracota nos elementos de destaque. */
:root { --tinta: #493622; --ocre-forte: #73532f; --terracota-escura: #9d3c26; }
.poster .identidade {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  column-gap: .9rem;
  align-items: center;
  justify-items: start;
  max-width: 29rem;
}
.poster .identidade .selo {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: block;
  align-self: center;
}
.poster .selo::before, .poster .selo::after { content: none; }
.poster .selo img { width: clamp(1.65rem, 6vw, 2.25rem); }
.poster .identidade .assinatura { grid-column: 1; grid-row: 1; width: min(100%, 15.25rem); margin: 0; }
.poster .retrofit { grid-column: 1; grid-row: 2; margin-top: .25rem; text-align: left; font-size: .7rem; letter-spacing: .31em; }
.poster-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.5rem, 3vw, 1.2rem);
  width: 100%;
  max-width: 29rem;
  text-align: left;
  margin: clamp(.65rem, 2svh, 1.2rem) auto 0;
  border-top: 1px solid var(--ocre);
  padding-top: clamp(.6rem, 1.6svh, 1rem);
}
.poster-copy { min-width: 0; }
.poster .poster-copy h1 {
  margin: 0;
  text-align: left;
  font-size: clamp(1.85rem, min(9.2vw, 5.5svh), 3.5rem);
  line-height: .99;
  letter-spacing: -.04em;
}
.poster .poster-copy .data-local {
  display: block;
  margin: .52rem 0 .28rem;
  color: var(--ocre-forte);
  font-size: .7rem;
  letter-spacing: .16em;
  text-align: left;
}
.poster .data-local::before, .poster .data-local::after { content: none; }
.poster .poster-copy .introducao {
  margin: 0;
  max-width: 35ch;
  font-size: .94rem;
  line-height: 1.25;
  text-align: left;
  text-wrap: pretty;
}
.poster .ano-vertical {
  align-self: start;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--terracota-escura);
  font-size: clamp(2.2rem, min(11vw, 7svh), 3.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.06em;
  font-variant-numeric: lining-nums;
  padding-block: .06em;
}
.acao { background: var(--terracota); color: #251b13; border-color: var(--terracota-escura); }
.acao:hover { background: #d9563c; }
.principal { border-color: var(--terracota-escura); }
.convite .frontao { background-color: var(--creme); }
.campo input { border-color: var(--ocre); }
.consentimento input { accent-color: var(--verde-escuro); }
@media (max-width: 51.99rem) {
  .poster-inner { padding-inline: clamp(1.15rem, 6vw, 2.25rem); }
  .poster .identidade { width: 100%; }
  .poster .gravura { width: min(100%, 27.25rem, 57.5svh); max-width: none; }
}
@media (max-width: 51.99rem) and (max-height: 760px) {
  .poster .poster-copy h1 { font-size: clamp(1.7rem, min(8.6vw, 5.2svh), 2.35rem); }
}
@media (max-width: 51.99rem) and (max-height: 550px) {
  .poster .identidade .assinatura { width: min(100%, 12rem); }
  .poster .selo img { width: 1.55rem; }
  .poster-editorial { margin-top: .45rem; padding-top: .45rem; }
  .poster .poster-copy h1 { font-size: clamp(1.5rem, min(8vw, 5.6svh), 2.15rem); }
  .poster .poster-copy .data-local { margin-top: .35rem; }
  .poster .poster-copy .introducao { font-size: .87rem; }
  .poster .gravura { width: min(100%, 52svh); }
}

/* Revisao de sobriedade: a gravura e o fundo conduzem a composicao. */
:root { color-scheme: light; --terracota-suave: #79513d; }
html, body, .spread { background-color: #dad6ae; }
.poster .ano-vertical { color: var(--ocre-forte); }
.acao {
  background: var(--terracota-suave);
  color: var(--creme);
  border-color: var(--terracota-suave);
}
.acao:hover { background: #684431; }
.principal { border-color: var(--terracota-suave); }
@media (max-width: 51.99rem) {
  .convite-papel { display: flex; flex-direction: column; }
  .convite-inner {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: clamp(.75rem, 2.6svh, 1.35rem);
    padding-bottom: clamp(1rem, 3svh, 1.6rem);
  }
  #titulo-convite {
    margin-top: clamp(.65rem, calc(6svh - 1.75rem), 1.5rem);
    line-height: 1.04;
  }
  .convite-intro {
    margin: clamp(.45rem, calc(4svh - 1rem), 1rem) auto clamp(.85rem, 2.5svh, 1.4rem);
    line-height: 1.38;
  }
  #interesse {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(.35rem, .85svh, .75rem);
  }
  #interesse .campo + .campo { margin-top: 0; }
  #interesse .campo label { margin-bottom: .23rem; }
  #interesse .campo input { min-height: 2.75rem; font-size: 1rem; }
  #interesse .consentimento { margin-block: .1rem; }
  #interesse .acao { flex-shrink: 0; min-height: 3rem; }
  #interesse .erro:not([hidden]) { margin-top: 0; }
  .confirmacao { margin-top: auto; margin-bottom: auto; }
}
@media (max-width: 51.99rem) and (max-height: 600px) {
  .convite-inner { padding-top: .75rem; padding-bottom: 1rem; }
  #titulo-convite { margin-top: .6rem; }
  .convite-intro { margin: .45rem auto .75rem; }
  #interesse { gap: .35rem; }
}

/* Uma unica gravura compartilhada: zoom proporcional e recorte progressivo. */
.convite-fluxo { display: contents; }
.convite { position: relative; overflow: hidden; }
.poster .gravura img, .convite .frontao img {
  filter: url(#tons-da-gravura);
  mask-image: linear-gradient(to bottom, #000 0%, #000 97%, transparent);
  mask-composite: add;
}
.convite .frontao {
  position: relative;
  overflow: hidden;
  background: none;
  filter: none;
  mask-image: none;
}
.convite .frontao img {
  position: absolute;
  top: clamp(-1.8rem, -5vw, -.65rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(112%, 47rem);
  max-width: none;
  height: auto;
}
@media (max-width: 51.99rem) {
  .poster .gravura { container-type: size; }
  .poster .gravura img {
    inset: auto auto -1.25rem 50%;
    width: min(100cqw, calc((100cqh + 1.25rem) * .91872146));
    height: auto;
    max-width: none;
    transform: translateX(-50%);
  }
}
/* Discreet centered handle, with a 44px touch target. */
.voltar-inicio {
  position: absolute;
  z-index: 3;
  top: -1.375rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ocre-forte);
}
.voltar-inicio svg {
  width: 1.5rem;
  height: 1.15rem;
  padding: .08rem .2rem;
  border-radius: .18rem;
  background: var(--creme);
}
.voltar-inicio:disabled { opacity: .55; cursor: default; }

/* One shared timeline: the panel carries its brand as it moves. */
.spread[data-nacional-motion] { overflow: hidden; }
.spread[data-nacional-motion] .convite,
.spread[data-nacional-motion] .convite .frontao { overflow: visible; }
.spread[data-nacional-motion] .convite .frontao { z-index: 1; }
.spread[data-nacional-motion] .convite-papel { z-index: 2; }
.nacional-retorno-preview.poster {
  position: absolute;
  z-index: 1;
  min-height: 0;
  background: transparent;
  pointer-events: none;
}
.nacional-retorno-preview .poster-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
}
