/* ============================================================
   BLOG DE ARTUR NEVES DE ASSIS
   Shared site stylesheet — design tokens, typography, components
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  /* Color palette — warm editorial */
  --cream: #F4EFE3;
  --cream-deep: #EBE4D1;
  --ink: #0F1D2E;
  --ink-soft: #1E3048;
  --terracotta: #BE5A34;
  --terracotta-deep: #8A3E1F;
  --gold: #C79852;
  --forest: #2F5147;
  --paper: #FBF8F1;
  --ash: #5C6470;
  --rule: rgba(15, 29, 46, 0.14);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 29, 46, 0.08);
  --shadow-md: 0 8px 28px rgba(15, 29, 46, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 29, 46, 0.18);
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--terracotta); color: var(--paper); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a {
  color: var(--terracotta-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all .2s ease;
}
a:hover { color: var(--terracotta); text-decoration-thickness: 2px; }

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ============================================================
   TOPBAR (shared across site)
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 227, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 48px);
  max-width: 1400px;
  margin: 0 auto;
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: italic;
  text-decoration: none;
  color: var(--ink);
  transition: opacity .2s;
}
.brand:hover { opacity: .7; color: var(--ink); text-decoration: none; }
.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--terracotta);
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: all .2s;
  font-family: 'DM Sans', sans-serif;
}
.nav-links a:hover { background: var(--ink); color: var(--paper); }
.nav-links a.active { background: var(--ink); color: var(--paper); }

@media (max-width: 640px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 10px; font-size: 12px; }
}

/* ============================================================
   FOOTER (shared across site)
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 4vw, 48px);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand h3 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(251, 248, 241, 0.7);
  line-height: 1.6;
  max-width: 38ch;
  font-family: 'Fraunces', serif;
  font-style: italic;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(251, 248, 241, 0.85);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold); text-decoration: none; }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(251, 248, 241, 0.5);
  text-transform: uppercase;
}
.footer-tagline {
  color: var(--gold);
  letter-spacing: 0.25em;
}

/* ============================================================
   UTILITY: ornament divider
   ============================================================ */
.ornament {
  text-align: center;
  margin: 64px 0;
  color: var(--terracotta);
  font-size: 20px;
  letter-spacing: 1em;
}
