/* ============================================
   Rotina Clara — Stylesheet
   ============================================ */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F2EEE6;
  --text: #1A1915;
  --text-soft: #5C5952;
  --text-muted: #8A877F;
  --accent: #3D5A40;
  --accent-soft: #E8EBE5;
  --line: #E5E0D5;
  --shadow: 0 1px 3px rgba(26, 25, 21, 0.06), 0 8px 24px rgba(26, 25, 21, 0.04);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 4px;
  --maxw-content: 680px;
  --maxw-wide: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(61, 90, 64, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(61, 90, 64, 0.02) 0%, transparent 40%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

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

/* ============================================
   Header
   ============================================ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(250, 247, 242, 0.92);
}

.header-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: none;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand:hover { border-bottom: none; }

.brand-dot {
  color: var(--accent);
  font-style: italic;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  border-bottom: none;
  transition: color .15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  border-bottom: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

@media (max-width: 700px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: var(--maxw-content);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding: 64px 0 96px;
}

@media (max-width: 700px) {
  main { padding: 40px 0 64px; }
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

h1 {
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 20px;
}

h2 {
  font-size: 30px;
  margin-top: 56px;
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 22px;
  color: var(--text);
}

ul, ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

strong { font-weight: 600; }

em { font-style: italic; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--text-soft);
}

code {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

@media (max-width: 700px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; margin-top: 44px; }
  h3 { font-size: 20px; }
  body { font-size: 16px; }
}

/* ============================================
   Home — Hero
   ============================================ */

.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 500;
  max-width: 700px;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 580px;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
  border-bottom: none;
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 700px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 17px; }
}

/* ============================================
   Home — Pillars
   ============================================ */

.pillars {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 34px;
  margin-bottom: 48px;
  max-width: 520px;
  letter-spacing: -0.02em;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar {
  padding: 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.pillar-icon {
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}

.pillar h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.pillar p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 0;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .pillars { padding: 48px 0; }
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-title { font-size: 26px; margin-bottom: 32px; }
}

/* ============================================
   Home — Featured Posts
   ============================================ */

.featured {
  padding: 72px 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}

.post-card {
  border-bottom: none;
  color: var(--text);
  display: block;
}

.post-card:hover { border-bottom: none; }

.post-card:hover h3 {
  color: var(--accent);
}

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  font-weight: 500;
}

.post-card h3 {
  font-size: 24px;
  margin: 0 0 12px;
  transition: color .15s ease;
  line-height: 1.25;
}

.post-card p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .post-grid { grid-template-columns: 1fr; gap: 32px; }
  .post-card h3 { font-size: 20px; }
}

/* ============================================
   Blog Index
   ============================================ */

.blog-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
}

.blog-header h1 {
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 16px;
}

.blog-header p {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 0;
}

.blog-list .post-grid {
  gap: 48px;
}

@media (max-width: 700px) {
  .blog-header { padding: 40px 0 32px; margin-bottom: 40px; }
  .blog-header h1 { font-size: 34px; }
  .blog-header p { font-size: 17px; }
}

/* ============================================
   Post Article
   ============================================ */

.article-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-header .post-meta {
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 44px;
  font-weight: 500;
  max-width: 640px;
}

.article-header .lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.45;
  margin-top: 20px;
  max-width: 600px;
}

.article-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  padding: 10px 10px 0 0;
  color: var(--accent);
}

.article-body ul li,
.article-body ol li {
  margin-bottom: 10px;
}

.article-footer {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.article-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .article-header h1 { font-size: 32px; }
  .article-header .lead { font-size: 19px; }
  .article-body p:first-of-type::first-letter { font-size: 52px; }
}

/* ============================================
   Simple pages (Sobre, Contato, Legal)
   ============================================ */

.page-header {
  padding: 48px 0 32px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: 44px;
  font-weight: 500;
}

.page-content p {
  margin-bottom: 20px;
}

.page-content h2 {
  margin-top: 48px;
}

.contact-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px 0;
}

.contact-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-box a {
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 500;
}

@media (max-width: 700px) {
  .page-header h1 { font-size: 32px; }
  .page-header { padding: 32px 0 24px; margin-bottom: 32px; }
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--bg-alt);
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand .brand {
  font-size: 24px;
  display: inline-flex;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-soft);
  font-size: 15px;
  max-width: 340px;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-soft);
  font-size: 15px;
  border-bottom: none;
}

.footer-col a:hover { color: var(--accent); border-bottom: none; }

.footer-bottom {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding: 40px 0 24px; }
}
