* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Jost', sans-serif;
  background: #faf7f1;
  color: #2e2a24;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: #fff;
  border-bottom: 1px solid #ece5d8;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 1.3rem;
  color: #8a5a1e;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #4a4436;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: #4a4436;
  line-height: 0;
}

.menu-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: #4a4436;
  align-self: flex-end;
  margin-bottom: 1.5rem;
  line-height: 0;
}

.nav-overlay {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 78%;
    max-width: 300px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.12);
  }

  nav.open {
    transform: translateX(0);
  }

  nav a {
    margin-left: 0;
    margin-bottom: 1.4rem;
    font-size: 1.05rem;
  }

  nav .btn-outline {
    margin-top: 0.5rem;
  }

  .menu-close {
    display: inline-flex;
  }

  .nav-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
  }
}

.btn-outline {
  border: 1px solid #b8862c;
  color: #b8862c !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
}

.btn-google img {
  width: 18px;
  height: 18px;
}

.hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 600;
  max-width: 640px;
  margin: 0 auto 0.75rem;
}

.hero p {
  color: #6b6154;
}

.feed {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: #fff;
  border: 1px solid #ece5d8;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #4a4436;
  margin-bottom: 0.5rem;
}

.card-head .material-icons {
  font-size: 1.1rem;
  color: #b8862c;
}

.card-head .uf {
  color: #9a9184;
  font-weight: 400;
}

.card-head .date {
  margin-left: auto;
  color: #9a9184;
  font-size: 0.85rem;
}

.trecho {
  color: #4a4436;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.tag {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #9a9184;
  margin-bottom: 0.4rem;
}

.tag .material-icons { font-size: 1rem; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #4a4436;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.meta .material-icons {
  font-size: 1rem;
  color: #b8862c;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #b8862c;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.link .material-icons {
  font-size: 1rem;
}

.brand { text-decoration: none; }

.article-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.article-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0.75rem 0 1rem;
}

.article-body p {
  line-height: 1.7;
  color: #3a352c;
  margin-bottom: 1rem;
}

.article-fade {
  position: relative;
  max-height: 140px;
  overflow: hidden;
}

.article-fade::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(transparent, #faf7f1);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #b8862c;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.gate {
  background: #fff;
  border: 1px solid #ece5d8;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 0.5rem;
}

.gate h3 { font-weight: 600; margin-bottom: 0.4rem; }
.gate p { color: #6b6154; margin-bottom: 1rem; }

.gate-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.auth-card {
  background: #fff;
  border: 1px solid #ece5d8;
  border-radius: 10px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-card h1 { font-size: 1.4rem; font-weight: 600; }

.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: #4a4436;
}

.auth-card input {
  padding: 0.6rem 0.75rem;
  border: 1px solid #ece5d8;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.auth-switch {
  font-size: 0.85rem;
  color: #6b6154;
  text-align: center;
}

.form-error {
  background: #fbe9e7;
  color: #a13c2a;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.dica-hero {
  height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.dica-hero-overlay {
  width: 100%;
  background: linear-gradient(transparent, rgba(20, 15, 8, 0.82));
  padding: 3rem 1.5rem 1.5rem;
}

.dica-hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.materia-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #b8862c;
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.materia-badge .material-icons { font-size: 1rem; }

.dica-hero-title {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.quote-box {
  position: relative;
  background: #fff;
  border-left: 4px solid #b8862c;
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.5rem 3.2rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(46, 42, 36, 0.06);
}

.quote-icon {
  position: absolute;
  top: 1.1rem;
  left: 1rem;
  color: #d8b672;
  font-size: 1.6rem;
}

.quote-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b8862c;
  margin-bottom: 0.5rem;
}

.quote-text {
  font-size: 1.05rem;
  font-style: italic;
  color: #2e2a24;
  line-height: 1.6;
}

.gabarito-box {
  background: #2e2a24;
  color: #f3ede0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.gabarito-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #d8b672;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .dica-hero { height: 240px; }
  .dica-hero-title { font-size: 1.5rem; }
}

.card-with-thumb {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.card-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.card-with-thumb .card-body {
  flex: 1;
  min-width: 0;
}

@media (max-width: 480px) {
  .card-thumb { width: 64px; height: 64px; }
}
