/* a voz — clone estático do site Squarespace (medidas tiradas do original a 1280 e 375 px) */

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/eb-garamond.woff2) format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/eb-garamond-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/cormorant-garamond.woff2) format('woff2');
}

:root {
  --castanho: #a3826c;
  --branco: #fff;
  --texto: 'EB Garamond', 'Adobe Garamond Pro', Garamond, Georgia, serif;
  --titulo: 'Cormorant Garamond', 'EB Garamond', Garamond, Georgia, serif;
  --margem: 3vw;
  --cabecalho: clamp(190px, 158.1px + 8.5vw, 267px);
  --corpo: clamp(17.95px, 17.48px + 0.124vw, 19.07px);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--castanho);
  color: var(--branco);
  font-family: var(--texto);
  font-size: var(--corpo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--titulo); font-weight: 500; margin: 0; }
p { margin: 0 0 1em; }

.so-leitor {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Cabeçalho ---------- */

.cabecalho {
  position: relative;
  height: var(--cabecalho);
}

.cabecalho nav {
  position: absolute;
  left: var(--margem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16.6px;
}

.cabecalho nav a {
  text-decoration: none;
  padding: 1.9px 0;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 1.9px) / 0 1px;
}
.cabecalho nav a:hover { opacity: .7; }
.cabecalho nav a[aria-current="page"] { background-size: 100% 1px; }

/* O logótipo é uma imagem do título original (o tipo de letra é licenciado). */
.logo {
  position: absolute;
  top: 50%;
  left: calc(50% - 106px);
  width: clamp(163px, 129.9px + 8.84vw, 243px);
}
.logo img { width: 100%; height: auto; }

.burger {
  display: none;
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 37px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: currentColor;
  transition: transform .25s ease;
}
.burger span:first-child { top: 13px; }
.burger span:last-child { top: 23px; }
.menu-aberto .burger span:first-child { transform: translateY(5px) rotate(62deg); }
.menu-aberto .burger span:last-child { transform: translateY(-5px) rotate(-62deg); }

.menu-movel { display: none; }

@media (max-width: 799px) {
  .cabecalho nav { display: none; }
  .burger { display: block; z-index: 30; }
  .logo { left: 25px; z-index: 30; }

  .menu-movel {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 20;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding-top: var(--cabecalho);
    background: var(--castanho);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
  }
  .menu-aberto .menu-movel { opacity: 1; visibility: visible; }
  .menu-movel a {
    font-size: 31.9px;
    line-height: 1.3;
    text-decoration: none;
  }
  .menu-aberto { overflow: hidden; }
}

/* ---------- Páginas ---------- */

main { padding-bottom: 80px; }

.coluna {
  width: 70.5%;
  max-width: 1100px;
  margin: 0 auto;
}

/* início */
.inicio { padding-top: 13px; }
.inicio p { margin: 0 0 3.2em; }

/* informações */
.perguntas { width: 69.6%; padding-top: 42px; }
.perguntas details { border-top: 1px solid rgba(255, 255, 255, .25); }
.perguntas details:last-child { border-bottom: 1px solid rgba(255, 255, 255, .25); }
.perguntas summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: 1.06em;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary h2 { font: inherit; }
.perguntas summary::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin: -4px 3px 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.perguntas details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.perguntas .resposta { padding: 0 0 15px; font-size: 16px; line-height: 1.6; }
.perguntas .resposta p:last-child { margin-bottom: 0; }

/* a autora */
.autora {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 var(--margem);
  padding-top: 42px;
}
.autora .bio { width: 40%; font-size: 16px; line-height: 1.6; }
.autora .bio h1 { font-weight: 400; font-size: clamp(27.7px, 24.9px + 0.745vw, 34.4px); line-height: 1.33; margin: 0 0 27px; }
.autora .foto { width: 50%; margin: 0; }
.autora .foto img { width: 100%; height: auto; aspect-ratio: 1500 / 1001; background: rgba(0, 0, 0, .06); }

/* media e contacto */
.centro { text-align: center; padding-top: 85px; }
.centro h1 { font-weight: 400; font-size: clamp(38px, 28px + 2.66vw, 62px); line-height: 1.23; margin-bottom: 32px; }
.centro.contacto h1 { font-size: clamp(31px, 25.8px + 1.39vw, 43.6px); line-height: 1.3; }
.video {
  width: 77.2%;
  margin: 45px auto 0;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, .1);
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

.botao {
  display: inline-block;
  padding: 17.6px 29.4px;
  border: 0;
  border-radius: 0;
  background: var(--branco);
  color: var(--castanho);
  font-family: var(--titulo);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity .15s ease;
}
.botao:hover { opacity: .8; }
.botao.castanho { background: var(--castanho); color: var(--branco); }
.botao[disabled] { opacity: .5; cursor: default; }

@media (max-width: 799px) {
  main { padding-bottom: 56px; }
  .coluna, .perguntas, .video { width: auto; margin-left: 23px; margin-right: 23px; }
  .inicio p { margin-bottom: 2em; }
  .autora { flex-direction: column-reverse; margin: 0 23px; gap: 35px; }
  .autora .bio, .autora .foto { width: 100%; }
  .centro { padding-top: 48px; }
}

/* ---------- Formulário de contacto (janela) ---------- */

.janela {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 40px;
  border: 0;
  background: #fff;
  color: var(--castanho);
  font-family: var(--texto);
  overflow: auto;
}
.janela::backdrop { background: rgba(0, 0, 0, .45); }
.janela h2 { font-weight: 400; font-size: 34.4px; line-height: 1.33; margin-bottom: 44px; }
.janela .fechar {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--castanho);
  font: 22px/22px Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.janela fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.janela legend, .janela .campo > label { display: block; padding: 0; margin-bottom: 6px; font-size: 19px; }
.janela .par { display: flex; gap: 8px; }
.janela .par > div { flex: 1; }
.janela .par label { display: block; font-size: 15px; margin-bottom: 4px; }
.janela .obrig { opacity: .75; font-size: .85em; margin-left: 4px; }
.janela .campo { margin-bottom: 14px; }
.janela input, .janela textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fafafa;
  color: #000;
  font-family: var(--texto);
  font-size: 19px;
  line-height: 1.6;
}
.janela textarea { min-height: 100px; resize: vertical; display: block; }
.janela input:focus, .janela textarea:focus { outline: 2px solid var(--castanho); outline-offset: 1px; }
.janela .mel { position: absolute; left: -9999px; }
.janela .enviar { text-align: center; margin-top: 20px; }
.janela .estado { margin: 16px 0 0; text-align: center; font-size: 17px; min-height: 1.6em; }
.janela .estado.erro { color: #a3352c; }
.janela .obrigado { font-size: 19px; text-align: center; padding: 30px 0 10px; }

@media (max-width: 560px) {
  .janela { padding: 32px 22px; }
  .janela .par { flex-direction: column; gap: 10px; }
}
