/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink:        #0A0F1E;
  --paper:      #F0EDE6;
  --gold:       #C8A96E;
  --gold-dim:   #A8894E;
  --indigo:     #2A4FA0;
  --indigo-dim: #1E3A7A;
  --slate:      #6B7A8D;
  --slate-light:#9AABB8;
  --rule:       #D8D3CA;
  --white:      #FFFFFF;
  --bg:         #F7F5F0;

  --serif:  'DM Serif Display', 'Georgia', serif;
  --sans:   'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:   'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --max-w:  920px;
  --pad:    2rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--sans); cursor: pointer; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { display: none; }
.section.active { display: block; }

/* ============================================
   NAV
   ============================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(200,169,110,0.25);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--paper);
  letter-spacing: 0.01em;
}
.nav-logo em {
  font-style: normal;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--slate-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  color: var(--paper);
}

/* ============================================
   HOME — HERO
   ============================================ */
.hero {
  background: var(--ink);
  padding: 0 0 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--pad) 0;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3rem;
  align-items: end;
}

.hero-left { padding-bottom: 3.5rem; }

.hero-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-kicker::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.hero-name {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.05;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.hero-name strong {
  font-weight: 400;
  color: var(--gold);
  display: block;
}

.hero-tagline {
  font-size: 14px;
  color: var(--slate-light);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* right column — vertical accent */
.hero-right {
  border-left: 1px solid rgba(200,169,110,0.3);
  padding: 0 0 3.5rem 2rem;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.5rem;
}

.hero-stat {
  border-bottom: 1px solid rgba(200,169,110,0.15);
  padding-bottom: 1.25rem;
}
.hero-stat:last-child { border-bottom: none; padding-bottom: 0; }

.hero-stat-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 3px;
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* gold rule at bottom of hero */
.hero-rule {
  height: 3px;
  background: var(--gold);
  margin-top: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid rgba(200,169,110,0.4);
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-light);
  background: transparent;
  border-radius: 0;
  transition: all 0.15s;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn svg { width: 13px; height: 13px; }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 500;
}
.btn-primary:hover {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  color: var(--ink);
}

/* light variant (on white bg) */
.btn-light {
  border-color: var(--rule);
  color: var(--slate);
  background: var(--white);
}
.btn-light:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--white);
}

/* ============================================
   HOME — BODY
   ============================================ */
.home-body {
  padding: 3.5rem 0 5rem;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ============================================
   ARTICLE ROW
   ============================================ */
.article-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  cursor: pointer;
}
.article-row:first-child { border-top: 1px solid var(--rule); }
.article-row:hover .art-title { color: var(--indigo); }

.art-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate-light);
  padding-top: 3px;
  letter-spacing: 0.04em;
}

.art-cat {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.art-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 3px;
  transition: color 0.15s;
}

.art-desc {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
}

.art-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--slate-light);
  white-space: nowrap;
  padding-top: 4px;
  text-align: right;
  line-height: 1.6;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-list { margin-top: 0; }

.project-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.project-row:first-child { border-top: 1px solid var(--rule); }
.project-row:hover .proj-title { color: var(--indigo); }

.proj-index {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--rule);
  font-weight: 400;
  line-height: 1;
  padding-top: 2px;
}

.proj-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.proj-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 5px;
  line-height: 1.35;
  transition: color 0.15s;
}

.proj-desc {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.proj-techs { display: flex; gap: 5px; flex-wrap: wrap; }
.proj-tech {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 7px;
  border: 1px solid var(--rule);
  color: var(--slate);
  background: var(--white);
}

.proj-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  padding-top: 2px;
  flex-shrink: 0;
}

.proj-link {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--indigo);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.proj-link:hover { opacity: 0.65; }
.proj-link svg { width: 11px; height: 11px; }

/* ============================================
   HOME — AUTHOR STRIP
   ============================================ */
.author-strip {
  background: var(--ink);
  padding: 1.75rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  border-top: 3px solid var(--gold);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.author-monogram {
  width: 44px;
  height: 44px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  font-weight: 400;
  flex-shrink: 0;
}

.author-strip-name {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 3px;
}
.author-strip-desc {
  font-size: 13px;
  color: var(--slate-light);
  line-height: 1.5;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-hero {
  background: var(--ink);
  padding: 3.5rem 0 0;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 2.5rem;
}
.page-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.page-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.page-sub {
  font-size: 14px;
  color: var(--slate-light);
  font-weight: 300;
  max-width: 500px;
  line-height: 1.65;
}
.page-rule {
  height: 3px;
  background: var(--gold);
}

.page-body { padding: 3rem 0 5rem; }

/* ============================================
   SOBRE
   ============================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.about-bio p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.about-bio p:last-child { margin-bottom: 0; }

.about-bio p strong {
  color: var(--indigo);
  font-weight: 600;
}

.about-quote {
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1.25rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
  font-style: italic;
}

.skills-section { margin-top: 2.5rem; }
.skills-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 0.75rem;
}
.skills-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  color: var(--slate);
  background: var(--white);
}

/* Sidebar */
.sidebar-card {
  border: 1px solid var(--rule);
  background: var(--white);
  margin-bottom: 1rem;
}
.sidebar-card-header {
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.sidebar-card-body { padding: 1rem 1.25rem; }
.sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 0.6rem;
  line-height: 1.45;
}
.sidebar-item:last-child { margin-bottom: 0; }
.sidebar-dot {
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

/* ============================================
   ARTIGOS — filtros
   ============================================ */
.filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 10px;
  padding: 5px 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  color: var(--gold);
  border-color: var(--ink);
}

/* Article card full */
.article-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.article-card:first-child { border-top: 1px solid var(--rule); }
.article-card:hover .art-title { color: var(--indigo); }
.article-card-inner {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0 1.5rem;
  align-items: start;
}
.art-tags { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.art-tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 7px;
  border: 1px solid var(--rule);
  color: var(--slate);
  background: var(--white);
}

/* ============================================
   ARTIGO — leitura
   ============================================ */
.artigo-hero {
  background: var(--ink);
  padding: 3.5rem 0 0;
}
.artigo-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 2.5rem;
}
.artigo-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.artigo-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 680px;
}
.artigo-meta-bar {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0.06em;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.artigo-meta-bar span { display: flex; align-items: center; gap: 5px; }

.artigo-body-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 4rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
  align-items: start;
}

.artigo-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}
.artigo-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
}
.artigo-body h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 2rem 0 0.75rem; }
.artigo-body p { margin-bottom: 1.25rem; }
.artigo-body strong { font-weight: 600; }
.artigo-body ul, .artigo-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.artigo-body li { margin-bottom: 0.4rem; }
.artigo-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-style: italic;
  background: var(--white);
}
.artigo-body pre {
  background: var(--ink);
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  font-size: 13px;
  font-family: var(--mono);
  line-height: 1.7;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.artigo-body code {
  background: var(--white);
  color: var(--indigo);
  padding: 2px 6px;
  font-size: 13px;
  font-family: var(--mono);
  border: 1px solid var(--rule);
}
.artigo-body pre code { background: none; color: inherit; padding: 0; border: none; }
.artigo-body a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.artigo-body hr { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }

.artigo-sidebar { position: sticky; top: 72px; }
.artigo-sidebar-card {
  border: 1px solid var(--rule);
  background: var(--white);
  margin-bottom: 1rem;
}
.artigo-sidebar-header {
  padding: 0.6rem 1rem;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.artigo-sidebar-body { padding: 1rem; font-size: 12px; color: var(--slate); line-height: 1.6; }

/* ============================================
   CONTATO
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
}

.contact-intro {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.contact-list { display: flex; flex-direction: column; gap: 6px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink);
  transition: all 0.15s;
}
.contact-link:hover {
  border-color: var(--indigo);
  background: #f4f6fb;
}
.contact-link:hover .contact-name { color: var(--indigo); }

.contact-icon {
  width: 32px;
  display: flex;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-info { flex: 1; }
.contact-name { font-size: 13px; font-weight: 500; color: var(--ink); transition: color 0.15s; }
.contact-handle { font-family: var(--mono); font-size: 11px; color: var(--slate); margin-top: 1px; }
.contact-arrow { color: var(--slate-light); }
.contact-arrow svg { width: 14px; height: 14px; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--ink);
  border-top: 3px solid var(--gold);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--paper);
}
.footer-brand em { font-style: normal; color: var(--gold); }
.footer-right {
  text-align: right;
}
.footer-slogan {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.footer-year { font-family: var(--mono); font-size: 10px; color: var(--slate); }

/* ============================================
   ADMIN overrides (keeps admin working)
   ============================================ */
.admin-body { background: #f4f6f8; }
.admin-nav { background: var(--ink); border-bottom: 1px solid rgba(200,169,110,0.25); }
.admin-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.admin-logo { font-family: var(--serif); font-size: 15px; color: var(--paper); font-weight: 400; }
.admin-logo span { color: var(--gold); }
.admin-nav-links { display: flex; gap: 1.5rem; align-items: center; }
.admin-nav-links a { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.5); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.15s; }
.admin-nav-links a:hover { color: var(--paper); }
.admin-badge { font-family: var(--mono); font-size: 10px; background: var(--gold); color: var(--ink); padding: 2px 8px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.admin-title { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--ink); }
.admin-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.admin-editor-box { background: #fff; border: 1px solid #dde3ea; }
.admin-sidebar-box { background: #fff; border: 1px solid #dde3ea; margin-bottom: 1rem; }
.admin-box-header { padding: 1rem 1.25rem; border-bottom: 1px solid #dde3ea; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7a8d; display: flex; justify-content: space-between; align-items: center; }
.admin-box-body { padding: 1.25rem; }
.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7a8d; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 8px 10px; border: 1px solid #dde3ea; background: #fff; font-family: var(--sans); font-size: 13px; color: var(--ink); outline: none; transition: border-color 0.15s; border-radius: 0; appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--indigo); }
.field textarea { resize: vertical; min-height: 80px; }
.editor-toolbar { display: flex; gap: 2px; padding: 0.6rem 0.75rem; border-bottom: 1px solid #dde3ea; background: #f4f6f8; flex-wrap: wrap; }
.tb-btn { padding: 5px 9px; font-size: 12px; font-family: var(--sans); font-weight: 500; color: #5a6a7a; background: #fff; border: 1px solid #dde3ea; cursor: pointer; transition: all 0.12s; border-radius: 0; line-height: 1; }
.tb-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.tb-sep { width: 1px; background: #dde3ea; margin: 0 4px; align-self: stretch; }
#editor { width: 100%; min-height: 420px; padding: 1.25rem 1.5rem; font-family: var(--sans); font-size: 14px; color: var(--ink); line-height: 1.8; outline: none; border: none; resize: none; }
.preview-area { padding: 1.5rem; min-height: 420px; font-size: 14px; line-height: 1.85; color: #3d4e5e; display: none; }
.preview-area.active { display: block; }
.editor-area.preview-mode #editor { display: none; }
.editor-area.preview-mode .preview-area { display: block; }
.editor-tabs { display: flex; border-bottom: 1px solid #dde3ea; }
.editor-tab { padding: 10px 16px; font-size: 12px; font-weight: 500; color: #6b7a8d; cursor: pointer; border: none; background: none; font-family: var(--sans); border-bottom: 2px solid transparent; transition: all 0.15s; letter-spacing: 0.03em; }
.editor-tab.active { color: var(--ink); border-bottom-color: var(--gold); }
.admin-article-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid #dde3ea; }
.admin-article-item:last-child { border-bottom: none; }
.admin-art-title { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 2px; line-height: 1.3; }
.admin-art-meta { font-family: var(--mono); font-size: 11px; color: #6b7a8d; }
.admin-art-actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-art-btn { font-size: 11px; padding: 4px 8px; border: 1px solid #dde3ea; background: #fff; color: #5a6a7a; cursor: pointer; font-family: var(--sans); transition: all 0.12s; }
.admin-art-btn:hover { border-color: var(--ink); color: var(--ink); }
.admin-art-btn.danger:hover { border-color: #c0392b; color: #c0392b; background: #fdf2f2; }
.login-screen { position: fixed; inset: 0; background: var(--ink); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.login-box { background: #fff; padding: 2.5rem; width: 340px; }
.login-logo { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--ink); margin-bottom: 0.25rem; }
.login-logo span { color: var(--gold); }
.login-sub { font-family: var(--mono); font-size: 10px; color: #6b7a8d; margin-bottom: 2rem; letter-spacing: 0.06em; text-transform: uppercase; }
.login-error { font-size: 12px; color: #c0392b; margin-top: 0.5rem; min-height: 16px; }
.btn-block { width: 100%; justify-content: center; padding: 10px; font-size: 13px; }
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--ink); color: var(--paper); padding: 10px 18px; font-size: 13px; z-index: 9999; opacity: 0; transform: translateY(8px); transition: all 0.2s; pointer-events: none; border-left: 3px solid var(--gold); }
.toast.show { opacity: 1; transform: translateY(0); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.admin-stat { background: #fff; border: 1px solid #dde3ea; padding: 1rem 1.25rem; }
.admin-stat-num { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--ink); }
.admin-stat-label { font-family: var(--mono); font-size: 10px; color: #6b7a8d; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 720px) {
  :root { --pad: 1.25rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 52px; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid rgba(200,169,110,0.2);
    padding: 1rem var(--pad) 1.5rem; gap: 1rem; z-index: 99;
  }
  .nav-toggle { display: block; }

  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-name { font-size: 36px; }
  .hero-right { display: none; }

  .article-row,
  .article-card-inner,
  .project-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .art-index, .proj-index { display: none; }
  .proj-links { flex-direction: row; align-items: center; }

  .about-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .artigo-body-wrap { grid-template-columns: 1fr; gap: 0; }
  .artigo-sidebar { display: none; }

  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-right { text-align: center; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .hero-name { font-size: 28px; }
  .page-title, .artigo-title { font-size: 26px; }
}
