:root {
  --color-page-bg: #f6f7f5;
  --color-surface: #ffffff;
  --color-ink: #0c1f1f;
  --color-muted: #4d5d60;
  --color-accent: #1d5d52;
  --color-accent-dark: #0f3b36;
  --color-border: #dde5df;
  --font-base: 'Inter', 'Segoe UI', sans-serif;
  --max-width: 760px;
}

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

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-ink);
  background-color: var(--color-page-bg);
  line-height: 1.7;
  min-height: 100vh;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.3;
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}

.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(246, 247, 245, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-photo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(15, 59, 54, 0.3);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-label {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.brand-tagline {
  font-size: 0.8rem;
  margin: 0;
  color: var(--color-muted);
}

.menu-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  display: none;
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 4px 0;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  font-weight: 500;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1.3fr;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 4rem);
  margin: 0 auto;
  max-width: 1200px;
}

.hero-image {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 59, 54, 0.15);
  aspect-ratio: 4 / 3;
  max-height: 420px;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}

.hero-image img {
  height: 100%;
  object-fit: cover;
}

.hero-text {
  align-self: center;
}

.hero-category {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.post {
  margin: 0 auto 4rem;
  padding: clamp(1.5rem, 4vw, 4rem);
  max-width: var(--max-width);
  background: var(--color-surface);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 59, 54, 0.08);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.post-category-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(29, 93, 82, 0.09);
  color: var(--color-accent);
  font-weight: 600;
}

.site-footer {
  background: var(--color-ink);
  color: #f5fffb;
  padding: clamp(2rem, 4vw, 4rem);
}

.newsletter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 0 auto 2rem;
  max-width: 1100px;
}

.newsletter-content h2 {
  margin-bottom: 0.75rem;
}

.newsletter-content p {
  color: rgba(245, 255, 251, 0.9);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form label {
  font-size: 0.9rem;
  color: rgba(245, 255, 251, 0.9);
}

.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 255, 251, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.form-row input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-row input:focus-visible {
  outline: 2px solid #9af0df;
  outline-offset: 2px;
}

.form-row button {
  background: var(--color-accent);
  border: none;
  border-radius: 12px;
  color: #fff;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.form-row button:hover,
.form-row button:focus-visible {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.newsletter-hint {
  font-size: 0.8rem;
  color: rgba(245, 255, 251, 0.65);
  margin: 0;
}

.form-message {
  min-height: 1.5rem;
  font-size: 0.9rem;
  margin: 0;
}

.form-message.is-success {
  color: #9ef7cb;
}

.form-message.is-error {
  color: #ffb3b3;
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  margin: 0;
  color: rgba(245, 255, 251, 0.7);
}

/* ---------- Layout responsivo ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    display: none;
    padding-top: 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row button {
    width: 100%;
  }
}

/* ---------- Utilidades ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ajuste rápido de espaçamento do artigo */
.post p:last-child {
  margin-bottom: 0;
}

