/* ==========================================================================
   Blog do Oráculo Mycroft — Editorial Stylesheet
   Paleta: Noir Mycroft (deep navy + dourado) · Serif display + Sans body
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a1628;
  --bg-elev: #0f1d36;
  --bg-card: #122444;
  --border: #1f3a5f;
  --border-soft: #1a2e4d;
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gold: #c9a84c;
  --gold-soft: #f0d78c;
  --accent: #3b82f6;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 30px -8px rgba(201, 168, 76, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 168, 76, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(59, 130, 246, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layout wrapper (auto-applied via max-width on direct children) -- */
body > nav,
body > header,
body > h1,
body > h2,
body > h3,
body > p,
body > ol,
body > ul,
body > article,
body > table,
body > div,
body > section,
body > footer {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ---------- Navegação superior ------------------------------------------- */
body > nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  font-weight: 500;
}

body > nav::before {
  content: 'M';
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
  margin-right: 0.5rem;
  font-weight: 400;
  font-style: italic;
}

body > nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

body > nav a:hover { color: var(--gold); }

body > nav a + a { margin-left: 0; }

/* ---------- Cabeçalho / Hero -------------------------------------------- */
body > header {
  border: none;
  padding-top: 2rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

body > header h1,
body > h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 1rem;
}

body > header h1::after,
body > h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 1.25rem;
  border-radius: 2px;
}

body > header p,
body > h1 + p.muted {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ---------- Tipografia de seções ---------------------------------------- */
h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 3rem auto 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

h2::before {
  content: '§';
  color: var(--gold);
  font-style: italic;
  margin-right: 0.6rem;
  opacity: 0.7;
  font-size: 0.85em;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gold-soft);
  margin: 2rem 0 0.5rem;
  letter-spacing: 0.005em;
}

p { margin: 0 0 1.1rem; }

strong { color: var(--text); font-weight: 600; }
em { color: var(--gold-soft); font-style: italic; }

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  transition: all 0.2s ease;
}

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

.muted {
  color: var(--text-muted);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

/* ---------- Listas ------------------------------------------------------ */
ol, ul { padding-left: 1.5rem; margin: 1rem auto 1.5rem; }
ol li, ul li { margin-bottom: 0.6rem; }
ol li::marker { color: var(--gold); font-weight: 600; }
ul li::marker { color: var(--gold); }

/* ---------- Artigos da home (cards) ------------------------------------- */
article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem;
  margin: 1rem auto 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

article::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.04), transparent 60%);
  pointer-events: none;
}

article:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

article h2 {
  border: none;
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 1.5rem;
}

article h2::before { content: none; }

article h2 a {
  color: var(--text);
  border: none;
}

article h2 a:hover { color: var(--gold); }

article p.muted { margin: 0; }

/* ---------- Grid de rodadas / cards ------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem auto 2rem;
  max-width: 820px;
  padding: 0 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: all 0.25s ease;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--text);
}

.card h3 a { color: var(--text); border: none; }
.card h3 a:hover { color: var(--gold); }

.card p.muted { margin: 0; font-size: 0.85rem; }

/* ---------- Tabela ------------------------------------------------------ */
table {
  width: calc(100% - 2.5rem);
  border-collapse: collapse;
  margin: 1.5rem auto;
  font-size: 0.94rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

th, td {
  padding: 0.85rem 1rem;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}

th {
  background: var(--bg-elev);
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(201, 168, 76, 0.04); }

/* ---------- CTA -------------------------------------------------------- */
.cta {
  display: inline-block;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--bg) !important;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -8px rgba(201, 168, 76, 0.5);
  border: none;
}

/* ---------- Footer (se houver) ----------------------------------------- */
body > footer {
  margin-top: 4rem;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Responsivo ------------------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  body > nav { gap: 1rem; flex-wrap: wrap; }
  article { padding: 1.25rem; }
  h2 { margin-top: 2.25rem; }
}

/* ---------- Selection -------------------------------------------------- */
::selection { background: var(--gold); color: var(--bg); }
