:root {
  --cream: #f4efe4;
  --cream-deep: #ece4d4;
  --green: #173a31;
  --green-soft: #1f4a3e;
  --sage: #8c8c6e;
  --sage-deep: #76764f;
  --ink: #20251f;
  --muted: #5d6358;
  --line: rgba(23, 58, 49, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: "Playfair Display", Georgia, serif; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}

/* ---------- Header ---------- */
header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo img { height: 34px; display: block; mix-blend-mode: multiply; }

.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--green);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--sage);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--cream);
  text-decoration: none;
  padding: 14px 26px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--green);
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover { background: transparent; color: var(--green); }

.btn-ghost {
  background: transparent;
  color: var(--green);
}
.btn-ghost:hover { background: var(--green); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  padding: 92px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero .eyebrow { margin-bottom: 26px; }

.hero h1 {
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.01em;
  max-width: 12ch;
}

.hero p.lede {
  margin-top: 28px;
  max-width: 52ch;
  font-size: 19px;
  color: var(--muted);
}

.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Featured ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border: 1px solid var(--line);
  margin: 64px 0;
  background: #fff;
}

.featured .art {
  background:
    linear-gradient(180deg, rgba(23,58,49,0.78), rgba(23,58,49,0.92)),
    url("../img/sketch.svg");
  background-size: cover;
  background-position: center;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
}

.featured .art .tag {
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(244,239,228,0.5);
  padding: 7px 14px;
}

.featured .body {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured .meta {
  font-size: 13px;
  color: var(--sage-deep);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.featured h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.01em;
}

.featured p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}

.featured .read {
  margin-top: 30px;
  text-decoration: none;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.featured .read span { transition: transform 0.25s ease; }
.featured .read:hover span { transform: translateX(6px); }

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-bottom: 40px;
}

.section-head h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--green);
}

.section-head a {
  text-decoration: none;
  color: var(--sage-deep);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Post grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 90px;
}

.card {
  border-top: 2px solid var(--green);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--sage); }
.card:hover h4 { color: var(--sage-deep); }

.card .cat {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}

.card h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--green);
  margin: 14px 0 12px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}

.card .meta {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--sage); display: inline-block; }

/* ---------- Artigo (post individual) ---------- */
.wrap.narrow { max-width: 760px; }

.article { padding-top: 64px; }

.article-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 22px;
}
.article-eyebrow a { color: var(--sage-deep); text-decoration: none; }
.article-eyebrow a:hover { color: var(--green); }
.article-eyebrow span { margin: 0 4px; opacity: 0.6; }

.article h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.01em;
}

.article-meta {
  margin-top: 22px;
  font-size: 14px;
  color: var(--sage-deep);
  letter-spacing: 0.04em;
}

.article-cover {
  margin: 44px 0 8px;
  height: clamp(280px, 46vw, 520px);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.article-lede {
  margin-top: 44px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-body {
  margin-top: 36px;
  font-size: 18px;
  line-height: 1.75;
  color: #2c322a;
}
.article-body > * + * { margin-top: 22px; }
.article-body h2, .article-body h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  color: var(--green);
  line-height: 1.2;
  margin-top: 40px;
}
.article-body h2 { font-size: 30px; }
.article-body h3 { font-size: 24px; }
.article-body a { color: var(--sage-deep); }
.article-body blockquote {
  border-left: 3px solid var(--sage);
  padding-left: 22px;
  color: var(--muted);
  font-style: italic;
}
.article-body img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li + li { margin-top: 8px; }

.article-back {
  display: inline-block;
  margin: 52px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  width: 100%;
  color: var(--green);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.article-back:hover { color: var(--sage-deep); }

/* ---------- Paginador ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 28px 0 90px;
  margin-top: 8px;
}
.pager a {
  color: var(--green);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.pager a:hover { color: var(--sage-deep); }
.pager-pos { color: var(--muted); font-size: 13px; letter-spacing: 0.05em; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--green);
  color: var(--cream);
  padding: 72px 0;
}

.newsletter .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.1;
}
.newsletter p { margin-top: 16px; color: rgba(244,239,228,0.72); max-width: 42ch; }

.form-row { display: flex; gap: 12px; }
.form-row input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(244,239,228,0.4);
  color: var(--cream);
  padding: 16px 18px;
  font-size: 15px;
  font-family: inherit;
}
.form-row input::placeholder { color: rgba(244,239,228,0.5); }
.form-row button {
  background: var(--sage);
  border: none;
  color: var(--green);
  padding: 0 28px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}
.form-row button:disabled { opacity: 0.6; cursor: default; }
.nl-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.nl-msg { margin-top: 14px; font-size: 14px; min-height: 1.1em; color: rgba(244,239,228,0.72); }
.nl-msg.ok { color: #d7e8c6; }
.nl-msg.err { color: #f1c7c0; }

/* ---------- Footer ---------- */
footer {
  background: var(--cream-deep);
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.foot img { height: 26px; opacity: 0.9; mix-blend-mode: multiply; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .featured { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .newsletter .inner { grid-template-columns: 1fr; }
}
