:root {
  --bg: #f5f0ea;
  --surface: rgba(255,255,255,0.72);
  --text: #171414;
  --muted: #6f6762;
  --line: rgba(23,20,20,0.12);
  --dark: #111111;
  --accent: #8e1f2d;
  --shadow: 0 24px 60px rgba(31, 24, 20, 0.12);
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(212,183,160,0.24), transparent 36%),
    radial-gradient(circle at right 10%, rgba(142,31,45,0.08), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(245,240,234,0.82);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand small {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--dark);
  transition: 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.hero {
  padding: 34px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.hero-visual {
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 720px;
}

.hero-copy {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.48)),
    linear-gradient(145deg, rgba(142,31,45,0.06), transparent 42%);
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.55);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: rgba(23,20,20,0.32);
}

.hero-copy h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.7rem, 8vw, 6.2rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 640px;
}

.hero-copy p {
  max-width: 560px;
  font-size: 1.02rem;
  color: var(--muted);
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-light {
  border-color: rgba(17,17,17,0.12);
  background: rgba(255,255,255,0.7);
  color: var(--dark);
}

.btn-dark:hover,
.btn-light:hover {
  transform: translateY(-2px);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.meta-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(23,20,20,0.07);
}

.meta-card span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.meta-card strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  background:
    linear-gradient(180deg, rgba(245,240,234,0.1), rgba(17,17,17,0.16)),
    url('https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
}

.hero-badge {
  position: absolute;
  top: 30px;
  left: 30px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-panel {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: min(360px, calc(100% - 52px));
  background: rgba(17,17,17,0.76);
  color: #fff;
  border-radius: 28px;
  padding: 24px;
  backdrop-filter: blur(16px);
}

.hero-panel small {
  display: block;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  font-size: 0.72rem;
}

.hero-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 12px;
}

.hero-panel p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.section {
  padding: 42px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.section-header span {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.96;
  font-weight: 600;
  max-width: 620px;
}

.section-header p {
  max-width: 420px;
  color: var(--muted);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.feature-card,
.stack-card,
.trend-card,
.story-card,
.timeline-card,
.newsletter {
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(23,20,20,0.08);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 610px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(17,17,17,0.02), rgba(17,17,17,0.48)),
    url('https://images.unsplash.com/photo-1496747611176-843222e1e57c?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  display: flex;
  align-items: end;
  padding: 32px;
  color: #fff;
}

.feature-content {
  max-width: 520px;
}

.feature-content small {
  display: inline-block;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.72);
  font-size: 0.74rem;
}

.feature-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.94;
  font-weight: 600;
  margin-bottom: 16px;
}

.feature-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.84);
  margin-bottom: 24px;
}

.stack-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}

.mini-story {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mini-story:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-story img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 18px;
}

.mini-story span,
.story-copy span,
.trend-copy span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.mini-story h4,
.story-copy h3,
.trend-card h3,
.timeline-card h3,
.newsletter h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1;
}

.mini-story h4 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.mini-story p,
.story-copy p,
.trend-card p,
.timeline-card p,
.newsletter p,
.trend-copy p {
  color: var(--muted);
  font-size: 0.95rem;
}

.trend-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.trend-card img,
.story-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.trend-copy,
.story-copy {
  padding: 22px;
}

.trend-card h3,
.story-copy h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.timeline-card {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

.timeline-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.year-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.year-pill.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.timeline-image {
  min-height: 360px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(17,17,17,0.02), rgba(17,17,17,0.3)),
    url('https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
}

.newsletter {
  margin-top: 24px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(130deg, rgba(17,17,17,0.96), rgba(54,34,28,0.9));
  color: #fff;
}

.newsletter p {
  color: rgba(255,255,255,0.74);
  max-width: 620px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: end;
}

.newsletter-form input {
  min-width: 260px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 999px;
  padding: 15px 18px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.54);
}

.footer {
  padding: 34px 0 48px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .hero-grid,
  .editorial-grid,
  .timeline-card,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual {
    min-height: unset;
  }

  .trend-grid,
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter-form {
    justify-content: start;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    min-height: 76px;
  }

  .nav {
    gap: 14px;
  }

  .hero-copy {
    padding: 30px;
  }

  .hero-copy h1 {
    font-size: 3.3rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .trend-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .mini-story {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .newsletter {
    padding: 26px;
  }

  .newsletter-form input {
    width: 100%;
    min-width: 0;
  }
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at top left, rgba(212,183,160,0.28), transparent 34%),
    linear-gradient(135deg, #f5f0ea, #e8ded2);
}

.login-box {
  width: min(460px, 100%);
  padding: 42px;
  border-radius: 34px;
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
  border: 1px solid rgba(23,20,20,0.08);
}

.login-box h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 12px;
}

.login-box p {
  color: var(--muted);
  margin-bottom: 28px;
}

.login-box form {
  display: grid;
  gap: 14px;
}

.login-box label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-box input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  outline: none;
  font-size: 1rem;
}

.alert-error {
  background: rgba(142,31,45,0.1);
  color: #8e1f2d;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.admin-panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px 1fr;
  background: #f5f0ea;
}

.admin-sidebar {
  background: #111;
  color: #fff;
  padding: 32px;
}

.admin-sidebar h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.admin-sidebar p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
}

.admin-sidebar nav {
  display: grid;
  gap: 12px;
}

.admin-sidebar nav a {
  padding: 13px 14px;
  border-radius: 16px;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  transition: 0.3s;
}

.admin-sidebar nav a:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.admin-content {
  padding: 46px;
}

.admin-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 12px;
}

.admin-content > p {
  color: var(--muted);
  max-width: 700px;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.admin-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
  border: 1px solid rgba(23,20,20,0.08);
}

.admin-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.admin-card p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .admin-panel {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
  }

  .admin-cards {
    grid-template-columns: 1fr;
  }
}

.news-page {
  padding-bottom: 60px;
}

.news-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 30px;
  margin-top: 30px;
}

.news-header {
  max-width: 800px;
  margin-top: 30px;
}

.news-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  line-height: 1;
  margin: 15px 0;
}

.news-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.news-content {
  margin-top: 40px;
}

.news-resumo {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 25px;
}

.news-texto {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 800px;
}

.news-page {
  padding-bottom: 70px;
}

.news-hero {
  padding-top: 34px;
}

.news-hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.news-header {
  max-width: 900px;
  margin-top: 34px;
}

.news-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  font-weight: 600;
  margin: 18px 0;
}

.news-date {
  color: var(--muted);
}

.news-content {
  margin-top: 36px;
}

.news-content .container {
  max-width: 900px;
}

.news-resumo {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
}

.news-texto {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text);
}

.trend-card,
.story-card,
.mini-story,
.feature-card,
.timeline-card {
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trend-card:hover,
.story-card:hover,
.mini-story:hover,
.feature-card:hover,
.timeline-card:hover {
  transform: translateY(-4px);
}

.trend-card:hover h3,
.story-card:hover h3,
.mini-story:hover h4,
.feature-card:hover h3,
.timeline-card:hover h3 {
  opacity: .88;
}

