/* Entardecer em carvão / cobre — prévia interna, CSS puro, sem recursos remotos. */

:root {
  --charcoal: #1E1B18;
  --charcoal-2: #3A342E;
  --paper: #F7F1E5;
  --paper-2: #EADFCB;
  --paper-muted: #CDBFAA;
  --ink-muted: #5E5448;
  --copper: #8B3F28;
  --copper-light: #D9A28C;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --h1: clamp(2.75rem, 1.6rem + 5.6vw, 5.5rem);
  --h2: 2.125rem;
  --body: 1.0625rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.6;
}

p {
  margin: 0;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

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

.location a:focus-visible {
  outline-color: var(--copper);
}

.wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

/* Aviso: não fixo, não cobre foco nem âncoras */
.notice {
  background: var(--paper-2);
  color: var(--ink-muted);
  border-bottom: 1px solid var(--ink-muted);
}

.notice p {
  padding-block: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Cabeçalho */
.site-header {
  background: var(--charcoal);
  color: var(--paper);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  margin-right: auto;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 0.5rem;
  font-size: 1rem;
  text-decoration: none;
  touch-action: manipulation;
}

/* Sublinhado como pseudo-elemento: anima transform (não background-size) */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0;
}

/* CTA: pílula preenchida, 17px semibold, alvo mínimo de 48px */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.cta-light {
  background: var(--paper);
  color: var(--charcoal);
}

.cta-dark {
  background: var(--charcoal);
  color: var(--paper);
}

/* Estrutura de duas colunas: grid de 12 a partir de 1024px */
.split {
  display: grid;
  gap: 2.5rem;
}

.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.photo-wide {
  max-width: 1080px;
}

.photo-tall {
  max-width: 720px;
}

/* Hero escuro */
.hero {
  background: var(--charcoal);
  color: var(--paper);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.eyebrow {
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--paper-muted);
  color: var(--copper-light);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: var(--h1);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

h1 em {
  color: var(--copper-light);
  font-style: italic;
}

.lede {
  max-width: 34ch;
  margin-bottom: 2rem;
  color: var(--paper-muted);
}

/* Localização em papel */
.location {
  background: var(--paper);
  color: var(--charcoal);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.location-media {
  margin: 0;
  max-width: 30rem;
}

figcaption {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: var(--h2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.address-block {
  margin-bottom: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--copper);
}

.address {
  margin-bottom: 0.5rem;
}

.qualifier,
.note {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.note {
  margin-top: 1rem;
}

/* Rodapé */
.site-footer {
  background: var(--charcoal);
  color: var(--paper);
  padding-block: 2rem;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.footer-bar .brand {
  margin-right: 0;
}

.footer-notice {
  flex: 1 1 18rem;
  color: var(--paper-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Hover só com ponteiro fino; sem estados presos em toque */
@media (hover: hover) and (pointer: fine) {
  .cta-light:hover {
    background: var(--paper-2);
  }

  .cta-dark:hover {
    background: var(--charcoal-2);
  }
}

@media (min-width: 600px) {
  :root {
    --h2: 2.75rem;
  }
}

@media (min-width: 768px) {
  :root {
    --body: 1.125rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --h1: clamp(3.25rem, 0.25rem + 5.3vw, 5rem);
    --h2: 3.5rem;
  }

  .wrap {
    width: min(1200px, 100% - 64px);
  }

  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
    align-items: center;
  }

  .col-a {
    grid-column: 1 / 6;
    grid-row: 1;
  }

  .col-b {
    grid-column: 7 / 13;
    grid-row: 1;
  }

  .location-media {
    max-width: none;
  }

  .location-copy {
    align-self: end;
  }
}

/* Movimento: apenas com preferência "no-preference". Base sempre visível. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 700ms var(--ease-out) backwards;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 60ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 120ms;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 180ms;
  }

  .hero-media {
    animation: photo-in 900ms var(--ease-out) 120ms backwards;
  }

  .nav-link::after {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 200ms ease;
  }

  .cta {
    transition: transform 160ms var(--ease-out);
  }

  /* Só pressão real de ponteiro: teclado mantém :focus-visible e fica de fora */
  .cta:active:not(:focus-visible) {
    transform: scale(0.97);
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }

  @keyframes photo-in {
    from {
      opacity: 0.55;
    }
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Movimento reduzido: somente fade de 400ms, sem transformações */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > * {
    animation: fade 400ms ease-out backwards;
  }

  .hero-media {
    animation: fade-soft 400ms ease-out backwards;
  }

  @keyframes fade {
    from {
      opacity: 0;
    }
  }

  @keyframes fade-soft {
    from {
      opacity: 0.55;
    }
  }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .nav-link:hover::after {
    opacity: 1;
  }
}
