/* ============================================================
   Aconchego Lar — design system (cozy / magazine, mobile-first)
   Palette chaleureuse : crème, terracota, sálvia, marrom escuro
   ============================================================ */
:root {
  --bg:        #FBF7F1;
  --surface:   #FFFFFF;
  --ink:       #2E2A26;
  --muted:     #8A8178;
  --terra:     #B85C38;
  --terra-dk:  #9C4A2C;
  --sage:      #7C8C6B;
  --line:      #ECE4D9;
  --shadow:    0 6px 24px rgba(46,42,38,.07);
  --radius:    14px;
  --maxw:      1080px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--serif); font-weight: 800; font-size: 1.45rem;
  color: var(--ink); letter-spacing: -.3px;
}
.logo span { color: var(--terra); }
.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--ink); font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px;
}
.nav a:hover { color: var(--terra); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---------- Tags / chips ---------- */
.cat {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--terra-dk); margin-bottom: 8px;
}

/* ---------- Hero ---------- */
.hero { padding: 32px 0 12px; }
.hero-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px;
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.hero-body { padding: 30px 28px; display: flex; flex-direction: column; justify-content: center; }
.hero-body h1 {
  font-family: var(--serif); font-size: 2.1rem; line-height: 1.15;
  margin: 6px 0 12px; letter-spacing: -.5px;
}
.hero-body p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Section ---------- */
.section { padding: 36px 0; }
.section-title {
  font-family: var(--serif); font-size: 1.4rem; margin: 0 0 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after { content:""; flex:1; height:1px; background: var(--line); }

/* ---------- Grid de cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.card:hover { transform: translateY(-3px); }
.card a { color: inherit; }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 16px 18px 20px; }
.card-body h3 {
  font-family: var(--serif); font-size: 1.16rem; line-height: 1.25;
  margin: 6px 0 10px;
}
.byline { font-size: .8rem; color: var(--muted); }
.byline strong { color: var(--ink); font-weight: 600; }

/* ---------- Article ---------- */
.article { background: var(--surface); }
.article-head { max-width: 760px; margin: 0 auto; padding: 40px 20px 20px; }
.article-head h1 {
  font-family: var(--serif); font-size: 2.4rem; line-height: 1.15;
  margin: 10px 0 16px; letter-spacing: -.5px;
}
.author-row { display: flex; align-items: center; gap: 12px; }
.author-row img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.author-row .meta { font-size: .85rem; color: var(--muted); }
.author-row .meta strong { color: var(--ink); display: block; font-size: .92rem; }
.article-hero { max-width: 1080px; margin: 22px auto; padding: 0 20px; }
.article-hero img { width: 100%; border-radius: var(--radius); }
.article-hero figcaption { font-size: .78rem; color: var(--muted); margin-top: 8px; text-align: center; }
.article-body { max-width: 720px; margin: 0 auto; padding: 8px 20px 40px; font-size: 1.08rem; }
.article-body h2 { font-family: var(--serif); font-size: 1.6rem; margin: 34px 0 12px; }
.article-body p { margin: 0 0 18px; }
.article-body ul { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.tipbox {
  background: #F4F6EF; border-left: 4px solid var(--sage);
  border-radius: 10px; padding: 18px 20px; margin: 26px 0;
}
.tipbox strong { color: var(--sage); }

/* ---------- Author bio (E-E-A-T) ---------- */
.author-bio {
  max-width: 720px; margin: 30px auto; padding: 22px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; gap: 18px; align-items: flex-start;
}
.author-bio img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; flex: none; }
.author-bio h4 { margin: 0 0 4px; font-family: var(--serif); }
.author-bio p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #E9E1D6; margin-top: 50px;
  padding: 40px 0 28px; font-size: .9rem;
}
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-family: var(--serif); color: #fff; margin: 0 0 12px; }
.site-footer a { color: #CDBFAE; }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: var(--terra); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; color: #A99C8B; font-size: .8rem; }

/* ---------- Responsive (mobile-first Discover) ---------- */
@media (max-width: 820px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-card img { min-height: 220px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 22px; }
  .article-head h1 { font-size: 1.8rem; }
  .hero-body h1 { font-size: 1.6rem; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
