:root {
  --fundo: #f3efe6;
  --tinta: #1c1915;
  --muted: #5e574c;
  --cartao: #fffdf8;
  --linha: #e4dccf;
  --acento: #0f6e56;
  --acento-escuro: #0b5341;
  --erro: #8d2b2b;
  --erro-fundo: #f8e8e4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--tinta);
  background:
    radial-gradient(circle at top left, #efe6d4 0, transparent 42%),
    var(--fundo);
}

a { color: inherit; }

.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 8vw;
  border-bottom: 1px solid var(--linha);
}

.marca {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

nav { display: flex; gap: 1.25rem; }

nav a { text-decoration: none; color: var(--muted); }

nav a:hover { color: var(--tinta); }

main {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.hero h1,
.cartao h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0.4rem 0 0.8rem;
}

.selo {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--acento);
}

.lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.botao {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--acento);
  color: white;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font: inherit;
  cursor: pointer;
}

.botao:hover { background: var(--acento-escuro); }

.botao.secundario {
  background: transparent;
  color: var(--tinta);
  border: 1px solid var(--linha);
}

.grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.grade article,
.cartao {
  background: var(--cartao);
  border: 1px solid var(--linha);
  border-radius: 18px;
  padding: 1.25rem 1.3rem 1.4rem;
}

.cartao { max-width: 440px; }

.grade h2 { margin: 0 0 0.4rem; font-size: 1.05rem; }

.grade p { margin: 0; color: var(--muted); line-height: 1.45; }

form { display: grid; gap: 0.35rem; margin-top: 1rem; }

label { font-size: 0.9rem; margin-top: 0.45rem; }

input[type="text"],
input[type="password"] {
  width: 100%;
  border: 1px solid var(--linha);
  background: #fff;
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  font: inherit;
}

input:focus {
  outline: 2px solid #b7ddd2;
  border-color: var(--acento);
}

.erro {
  background: var(--erro-fundo);
  color: var(--erro);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.lista { color: var(--muted); line-height: 1.5; padding-left: 1.1rem; }
