@font-face {
  font-family: 'Seabirds';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/SeabirdsTrial-Book.woff2') format('woff2');
}

@font-face {
  font-family: 'Seabirds';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/SeabirdsTrial-BookItalic.woff2') format('woff2');
}

:root {
  /* Colors */
  --color-bg:     #BBC0C5;
  --color-nav:    white;
  --color-active: #ffd8fd;
  --color-hover:  #DADEE3;
  --color-accent: #5F8ABD;
  --color-bio:    #47A163;

  /* balão "Copied" — sobrescreva por contexto */
  --copy-bg: var(--color-active);
  --copy-fg: var(--color-bio);

  /* Typography */
  --font-nav:          40px;
  --font-nav-mobile:   24px;
  --font-bio:          32px;
  --font-bio-mobile:   24px;
  --tracking-nav: -0.04em;
  --tracking-bio: -0.02em;

  /* Spacing */
  --space:        16px;
  --space-x:      24px;
  --space-mobile: 24px;
  --space-bio-x:  100px;

  /* Image */
  --image-height: 524px;
}

body {
  -moz-osx-font-smoothing: grayscale;   /* Firefox */
  -webkit-font-smoothing: antialiased;  /* WebKit  */
}

@keyframes nav-enter {
  from { opacity: 0; transform: translateY(-140px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes nav-enter-up {
  from { opacity: 0; transform: translateY(140px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-row:first-child .hero-text,
.nav .nav-text {
  animation: nav-enter 1350ms cubic-bezier(0.6, 0, 0, 1) both;
}

.hero-row--bottom .hero-text,
.bottom-text {
  animation: nav-enter-up 1350ms cubic-bezier(0.6, 0, 0, 1) both;
}

html.no-animate .hero-row:first-child .hero-text,
html.no-animate .nav .nav-text,
html.no-animate .hero-row--bottom .hero-text,
html.no-animate .bottom-text {
  animation: none;
}

/* ── Recolher no scroll ───────────────────
   Menu e "and de Lima" saem ao rolar para baixo e voltam ao rolar para cima.
   Dirigido por /nav-scroll.js, que só age se a página tiver o que rolar.

   O transform vai sempre no CONTÊINER (.nav / .hero-row / .bottom), nunca nos
   filhos: os filhos carregam nav-enter / nav-enter-up com fill both, e uma
   animação preenchida vence qualquer transform declarado no mesmo elemento —
   o recolhimento simplesmente não teria efeito. */
.nav,
.hero-row,
.bottom {
  transition: transform 0.4s cubic-bezier(0.6, 0, 0, 1),
              opacity   0.4s cubic-bezier(0.6, 0, 0, 1);
}

.nav.recolhido,
.hero-row.recolhido {
  transform: translateY(calc(-100% - var(--space)));
  opacity: 0;
  pointer-events: none;
}

/* Depois das de cima, e não antes: mesma especificidade, então quem vem por
   último ganha. O rodapé sai para baixo. */
.bottom.recolhido,
.hero-row--bottom.recolhido {
  transform: translateY(calc(100% + var(--space)));
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .hero-row,
  .bottom { transition-duration: 0.01ms; }
}

a.hero-text,
a.nav-text,
.bottom-text {
  transition: color 0.4s ease-in-out;
}

a.hero-text:hover,
a.nav-text:hover {
  color: var(--color-hover);
}

.roll-clip {
  display: block;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.25;
  pointer-events: none;
}

.roll-inner,
.roll-inner--down {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  transition: transform 0.4s cubic-bezier(0.6, 0, 0, 1);
}

/* bottom items start shifted so text 1 is visible, text 2 waits above */
.roll-inner--down {
  transform: translateY(-50%);
}

a.hero-text:hover .roll-inner,
a.nav-text:hover .roll-inner {
  transform: translateY(-50%);
}

/* bottom: on hover, inner slides down — text 2 enters from above */
[data-pair="bottom"].is-hovered .roll-inner--down {
  transform: translateY(0);
}

.hero-text.is-hovered,
.bottom-text.is-hovered {
  color: var(--color-hover);
}


.hero-text.hero-text--active,
.nav-text.nav-text--active {
  color: var(--color-active);
  line-height: 1.25;
}


/* ── Copiar para a área de transferência ──── */
/* Cores vêm de --copy-bg / --copy-fg, sobrescritas por contexto */

.copy-link {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.4s cubic-bezier(0.6, 0, 0, 1);
}

.copy-link:hover { opacity: 0.6; }

/* balão */
.copy-link::after {
  content: 'Copied';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  background: var(--copy-bg);
  color: var(--copy-fg);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) scale(0.96);
  transition: opacity 0.4s cubic-bezier(0.6, 0, 0, 1),
              transform 0.4s cubic-bezier(0.6, 0, 0, 1);
}

/* rabinho do balão */
.copy-link::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: 7px;
  height: 7px;
  background: var(--copy-bg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) rotate(45deg) scale(0.96);
  transition: opacity 0.4s cubic-bezier(0.6, 0, 0, 1),
              transform 0.4s cubic-bezier(0.6, 0, 0, 1);
}

.copy-link.is-copied::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.copy-link.is-copied::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .copy-link::after,
  .copy-link::before { transition-duration: 0.01ms; }
}

/* ── Blur-up (LQIP) ───────────────────────
   Toda foto grande entra desfocada, a partir de uma miniatura de 24px que vai
   embutida no próprio HTML em --lqip (base64: nenhuma requisição a mais, ~150
   bytes por imagem), e ganha nitidez quando o arquivo real termina de
   decodificar. Assim o lugar da imagem nunca fica vazio e nunca há o "pop" de
   uma foto de 1MB aparecendo de uma vez.

   O desfoque é o estado INICIAL, escrito aqui: se o JS não rodar por algum
   motivo, a imagem ainda aparece — só sem a passagem. Quem tira o desfoque é o
   listener de load em captura, no <head> de cada página, que marca .is-loaded.

   O aumento usa a propriedade `scale`, e não `transform`: a foto do /info tem
   um translate próprio (paralaxe no scroll) que seria sobrescrito. */
img.lqip {
  background-image: var(--lqip);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: blur(14px);
  scale: 1.03;   /* engole a franja transparente que o blur cria na borda */
  transition: filter 700ms cubic-bezier(0.6, 0, 0, 1),
              scale  700ms cubic-bezier(0.6, 0, 0, 1);
}

img.lqip.is-loaded {
  filter: blur(0);
  scale: 1;
}

@media (prefers-reduced-motion: reduce) {
  img.lqip { transition-duration: 0.01ms; }
}
