/* Fontes servidas daqui (latin, que cobre o português): sem esperar o Google Fonts. Licença OFL. */
@font-face {
  font-family: 'Big Shoulders Display';
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/big-shoulders-display.woff2) format('woff2');
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk.woff2) format('woff2');
}

:root {
  --verde: #1d3a30;
  --verde-escuro: #142a22;
  --verde-claro: #e3ebe6;
  --latao: #b8893b;
  --latao-escuro: #8d6623;
  --latao-claro: #f3e9d4;
  --papel: #f5f5f1;
  --branco: #ffffff;
  --tinta: #17201b;
  --cinza: #5d6862;
  --cinza-claro: #9aa29d;
  --linha: #dcded7;
  --vinho: #8a2b2b;
  --vinho-claro: #f6e4e2;
  --azul-poste: #213f74;
  --poste-branco: #ffffff;
  /* papéis: o tema (/tema.css) sobrescreve estes valores */
  --marca: var(--verde);
  --sobre-marca: #ffffff;
  --sobre-verde: #ffffff;
  --sobre-latao: var(--tinta);
  --linha-fraca: #eef0ea;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --texto: 'Schibsted Grotesk', system-ui, sans-serif;

  --poste: repeating-linear-gradient(-45deg, var(--vinho) 0 9px, var(--poste-branco) 9px 18px, var(--azul-poste) 18px 27px, var(--poste-branco) 27px 36px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--papel);
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--latao);
  outline-offset: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--verde);
  color: var(--sobre-verde);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.15s,
    transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:hover {
  background: var(--verde-escuro);
}

.btn:disabled {
  background: var(--linha);
  color: var(--cinza-claro);
  cursor: not-allowed;
}

.btn-sec {
  background: transparent;
  color: var(--verde);
  box-shadow: inset 0 0 0 1.5px var(--verde);
}

.btn-sec:hover {
  background: var(--verde-claro);
}

.campo {
  display: block;
  margin-bottom: 18px;
}

.campo span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.campo input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--linha);
  border-radius: 10px;
  background: var(--branco);
  font-size: 17px;
}

.campo input:focus {
  outline: none;
  border-color: var(--verde);
}

.campo small {
  display: block;
  margin-top: 6px;
  color: var(--cinza);
  font-size: 13px;
}

.erro {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--vinho-claro);
  color: var(--vinho);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Foto no lugar da inicial, em qualquer avatar */
.avatar {
  overflow: hidden;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
