/* Órbita — modern-magazine
   Container 1140px, Playfair Display headings, double-row header, overlay hero, horizontal-thumb cards, pill nav. */

:root {
  --c-primary: #2D3142;
  --c-accent: #EF8354;
  --c-bg: #FAFAF8;
  --c-text: #1F2933;
  --c-muted: #5C6773;
  --c-line: #E1E5EA;
  --c-surface: #FFFFFF;
  --c-soft: #F1F0EC;
  --container: 1140px;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: #d96a35; text-decoration: underline; }

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

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Double-row header (categorias + logo) ---------- */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 40; }
.header-top {
  background: var(--c-primary);
  color: #fff;
  font-size: 13px;
}
.header-top .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.header-top a { color: #C9CFDA; text-decoration: none; font-weight: 600; letter-spacing: 0.3px; }
.header-top a:hover { color: var(--c-accent); }
.cat-row { display: flex; gap: 22px; flex-wrap: wrap; }
.cat-row a[aria-current="page"] { color: var(--c-accent); }
.header-meta { font-size: 12px; color: #9BA3B0; letter-spacing: 0.5px; text-transform: uppercase; }

.header-main { padding: 20px 0; text-align: center; border-bottom: 1px solid var(--c-line); }
.brand-name {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -1px;
  margin: 0;
}
.brand-name a { color: inherit; text-decoration: none; }
.brand-name .dot { color: var(--c-accent); }
.brand-tag {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--c-muted);
  font-size: 15px;
  margin: 6px 0 0;
}

/* ---------- Pill nav ---------- */
.pill-nav { padding: 14px 0; border-bottom: 1px solid var(--c-line); background: var(--c-surface); }
.pill-nav .wrap { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pill {
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--c-soft);
  color: var(--c-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.pill:hover { background: var(--c-primary); color: #fff; text-decoration: none; }
.pill[aria-current="page"] { background: var(--c-accent); color: #fff; }

/* ---------- Overlay hero (imagem + texto sobreposto) ---------- */
.hero { padding: 28px 0 16px; }
.hero-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: var(--c-primary);
}
.hero-card .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card .overlay {
  position: relative;
  z-index: 1;
  padding: 40px;
  background: linear-gradient(0deg, rgba(31,41,51,0.92) 0%, rgba(31,41,51,0.35) 70%, rgba(31,41,51,0) 100%);
  width: 100%;
  color: #fff;
}
.hero-card .kicker {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}
.hero-card h1 {
  font-family: var(--font-heading);
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 12px;
  max-width: 760px;
  color: #fff;
}
.hero-card h1 a { color: #fff; text-decoration: none; }
.hero-card h1 a:hover { color: var(--c-accent); text-decoration: none; }
.hero-card p { margin: 0; font-size: 17px; max-width: 640px; color: #E1E5EA; }
.hero-meta { margin-top: 14px; font-size: 13px; color: #C9CFDA; }

/* ---------- Section ---------- */
.section { padding: 40px 0; }
.section-head { border-bottom: 2px solid var(--c-primary); padding-bottom: 10px; margin-bottom: 26px; display: flex; align-items: baseline; justify-content: space-between; }
.section-head h2 { font-family: var(--font-heading); font-size: 26px; margin: 0; color: var(--c-primary); }
.section-head .more { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--c-accent); }

/* ---------- Magazine grid ---------- */
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mag-card { display: flex; flex-direction: column; }
.mag-card .thumb-wrap { border-radius: 10px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 16 / 10; }
.mag-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.mag-card .kicker {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-accent); margin: 0 0 8px;
}
.mag-card h3 {
  font-family: var(--font-heading); font-size: 22px; line-height: 1.22; margin: 0 0 10px; color: var(--c-text);
}
.mag-card h3 a { color: inherit; text-decoration: none; }
.mag-card h3 a:hover { color: var(--c-accent); text-decoration: none; }
.mag-card p { margin: 0 0 10px; font-size: 15px; color: var(--c-muted); }
.mag-card .meta { font-size: 13px; color: var(--c-muted); }

/* ---------- Horizontal-thumb cards (featured secondary) ---------- */
.horiz-list { display: grid; grid-template-columns: 1fr; gap: 22px; }
.h-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  overflow: hidden;
}
.h-card .thumb-wrap { height: 100%; min-height: 150px; }
.h-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.h-card .body { padding: 18px 22px 18px 0; }
.h-card .kicker {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-accent); margin: 0 0 6px;
}
.h-card h3 { font-family: var(--font-heading); font-size: 21px; line-height: 1.22; margin: 0 0 8px; color: var(--c-text); }
.h-card h3 a { color: inherit; text-decoration: none; }
.h-card h3 a:hover { color: var(--c-accent); }
.h-card p { margin: 0 0 8px; font-size: 15px; color: var(--c-muted); }
.h-card .meta { font-size: 13px; color: var(--c-muted); }

/* ---------- Article page ---------- */
.article { padding: 36px 0 50px; max-width: 820px; }
.article-head { margin-bottom: 24px; border-bottom: 1px solid var(--c-line); padding-bottom: 22px; }
.article .kicker {
  display: inline-block; background: var(--c-accent); color: #fff;
  padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin: 0 0 14px;
}
.article h1 {
  font-family: var(--font-heading); font-size: 42px; line-height: 1.15; margin: 0 0 16px; color: var(--c-text); letter-spacing: -0.5px;
}
.byline { font-size: 15px; color: var(--c-muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.byline strong { color: var(--c-text); }
.author-chip { display: inline-flex; align-items: center; gap: 8px; }
.author-chip img { width: 30px; height: 30px; border-radius: 50%; }
.article-cover { width: 100%; border-radius: 12px; margin: 0 0 24px; }
.article-body { font-size: 18px; line-height: 1.75; }
.article-body p { margin: 0 0 20px; }
.article-body h2 { font-family: var(--font-heading); font-size: 27px; margin: 34px 0 12px; color: var(--c-primary); }
.article-body blockquote {
  margin: 28px 0; padding: 20px 26px; background: var(--c-soft);
  border-left: 5px solid var(--c-accent); border-radius: 0 8px 8px 0;
  font-family: var(--font-heading); font-size: 21px; color: var(--c-primary); font-style: italic;
}
.article-body ul { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.dropcap::first-letter {
  font-family: var(--font-heading); font-size: 64px; line-height: 0.85; float: left;
  padding: 6px 10px 0 0; color: var(--c-accent); font-weight: 700;
}
.author-box {
  margin-top: 40px; padding: 22px; background: var(--c-soft); border-radius: 10px;
  display: flex; gap: 16px; align-items: center;
}
.author-box img { width: 60px; height: 60px; border-radius: 50%; }
.author-box h3 { font-family: var(--font-heading); margin: 0 0 4px; font-size: 18px; color: var(--c-primary); }
.author-box p { margin: 0; font-size: 15px; color: var(--c-text); }

/* ---------- Articles archive ---------- */
.archive { padding: 36px 0 50px; }

/* ---------- Prose (about / legal) ---------- */
.prose { padding: 36px 0 50px; max-width: 760px; }
.prose h1 { font-family: var(--font-heading); font-size: 38px; margin: 0 0 8px; color: var(--c-text); letter-spacing: -0.5px; }
.prose .lede { font-family: var(--font-heading); font-style: italic; font-size: 21px; color: var(--c-muted); margin: 0 0 28px; }
.prose h2 { font-family: var(--font-heading); font-size: 26px; margin: 34px 0 12px; color: var(--c-primary); }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.contact-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 10px; padding: 20px; border-top: 4px solid var(--c-accent); }
.contact-card h3 { font-family: var(--font-heading); margin: 0 0 6px; font-size: 18px; color: var(--c-primary); }
.contact-card p { margin: 0; font-size: 14.5px; color: var(--c-muted); }

/* ---------- Footer (three-col) ---------- */
.site-footer { background: var(--c-primary); color: #C9CFDA; padding: 46px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand h3 { font-family: var(--font-heading); font-size: 28px; margin: 0 0 10px; color: #fff; }
.footer-brand h3 .dot { color: var(--c-accent); }
.footer-brand p { margin: 0; font-size: 14px; color: #9BA3B0; max-width: 320px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-accent); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #C9CFDA; font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid #3D4456; font-size: 12.5px; color: #7A828F; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-cookie { margin-top: 16px; font-size: 12px; color: #7A828F; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mag-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .mag-grid { grid-template-columns: 1fr; }
  .h-card { grid-template-columns: 1fr; }
  .h-card .body { padding: 0 18px 18px; }
  .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 340px; }
  .hero-card h1 { font-size: 30px; }
  .article h1 { font-size: 30px; }
  .brand-name { font-size: 34px; }
  .header-meta { display: none; }
}
