/* Base comum a edhyghellen.com e aos subdomínios dos projetos.
   Cada página define as próprias cores em :root (--fundo, --tinta, --apagado, --destaque, --sobre-destaque). */

/* As fontes (Bricolage Grotesque e Instrument Sans) são carregadas por <link> no <head> de cada página. */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--destaque); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.moldura { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* botão principal */
.botao {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.35em;
  border-radius: 999px;
  background: var(--destaque);
  color: var(--sobre-destaque);
  font-weight: 650;
  text-decoration: none;
  line-height: 1.2;
  transition: transform .15s ease, filter .15s ease;
}
.botao:hover { filter: brightness(1.08); }
.botao:active { transform: scale(.97); }
.botao-secundario {
  background: transparent;
  color: var(--tinta);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

/* situação do projeto (teste fechado, no ar...) */
.situacao {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .9375rem;
  color: var(--apagado);
}
.situacao::before {
  content: ""; width: .6em; height: .6em; border-radius: 50%;
  background: var(--cor-situacao, var(--destaque));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cor-situacao, var(--destaque)) 25%, transparent);
}

/* celular com uma captura de tela dentro */
.celular {
  border-radius: 34px;
  padding: 9px;
  background: #050611;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 60px -20px rgb(0 0 0 / .55);
  overflow: hidden;
}
.celular img { border-radius: 26px; width: 100%; }

/* rodapé dos subdomínios */
.rodape-projeto {
  padding-block: 56px 40px;
  border-top: 1px solid var(--linha);
  font-size: .9375rem;
  color: var(--apagado);
}
.rodape-projeto .moldura { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.rodape-projeto a { color: var(--tinta); }

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