/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1A56DB;
  --black:   #111111;
  --gray:    #555555;
  --light:   #888888;
  --rule:    #111111;
  --bg:      #ffffff;
  --tech-bg: #F0F4FF;
  --tech-cl: #1A56DB;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
}

body {
  background: #f2f2f0;
  font-family: var(--font-sans);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

/* ── Page Shell ───────────────────────────────────────── */
.page {
  background: var(--bg);
  max-width: 780px;
  margin: 40px auto;
  padding: 56px 64px;
  box-shadow: 0 2px 32px rgba(0,0,0,0.10);
}

@media print {
  @page { margin: 12mm 14mm; size: A4 portrait; }

  body { background: #fff; }
  .page {
    margin: 0;
    padding: 0;
    box-shadow: none;
    max-width: 100%;
  }

  /* Compactar espaçamentos */
  section                { margin-bottom: 10px; }
  .header                { margin-bottom: 10px; padding-bottom: 0; }
  .section-title         { margin-bottom: 6px; padding-bottom: 3px; font-size: 9px; }
  .name                  { font-size: 28px; margin-bottom: 2px; }
  .title                 { font-size: 11px; margin-bottom: 6px; }
  .contact               { font-size: 10px; }
  .summary               { font-size: 11px; line-height: 1.5; }
  .objetivo              { font-size: 11px; }
  .entry                 { margin-bottom: 8px; }
  .entry-title           { font-size: 11px; }
  .entry-meta            { font-size: 10px; }
  .project-name          { font-size: 11px; }
  .project-link          { font-size: 10px; }
  ul li                  { font-size: 10.5px; line-height: 1.45; margin-bottom: 2px; }
  .tech                  { font-size: 9.5px; padding: 0 4px; }
  .skill-row             { font-size: 10.5px; gap: 8px; }
  .skill-label           { min-width: 100px; }
  .skills-grid           { gap: 4px; }
  .cert-list li          { font-size: 10.5px; margin-bottom: 3px; }
  .status                { font-size: 9px; }
}

/* ── Header ───────────────────────────────────────────── */
.header {
  margin-bottom: 16px;
  padding-bottom: 0;
}

.name {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}

.title {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.contact {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  align-items: center;
}

.contact a {
  color: var(--gray);
  text-decoration: none;
}

.contact a:hover {
  color: var(--black);
}

.sep {
  margin: 0 8px;
  color: var(--light);
}

/* ── Sections ─────────────────────────────────────────── */
section {
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--rule);
}

/* ── Objetivo ─────────────────────────────────────────── */
.objetivo {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

/* ── External link icon ───────────────────────────────── */
.project-link {
  font-size: 12.5px;
  color: var(--gray);
  font-weight: 400;
}

.project-link a {
  color: var(--gray);
  text-decoration: none;
}

.project-link a:hover {
  color: var(--blue);
}

/* ── Summary ──────────────────────────────────────────── */
.summary {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.75;
  color: #333;
}

/* ── Entries ──────────────────────────────────────────── */
.entry {
  margin-bottom: 16px;
}

.entry:last-child { margin-bottom: 0; }

.entry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  margin-bottom: 6px;
}

.entry-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

.entry-meta {
  font-size: 12.5px;
  color: var(--gray);
}

/* Project name links — no underline, no blue */
.project-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
}

.project-name:hover {
  color: var(--blue);
}

/* ── Lists ────────────────────────────────────────────── */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  font-size: 13.5px;
  color: #333;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--light);
}

/* Tech tags inline */
.tech {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tech-cl);
  background: var(--tech-bg);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  white-space: nowrap;
}

/* ── Skills Grid ──────────────────────────────────────── */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.skill-row {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}

.skill-label {
  font-weight: 600;
  color: var(--black);
  min-width: 130px;
  flex-shrink: 0;
}

.skill-value {
  color: #333;
}

/* ── Cert List ────────────────────────────────────────── */
.cert-list li {
  font-size: 13.5px;
  color: #333;
  margin-bottom: 6px;
}

.status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  margin-left: 6px;
}

.status.ongoing {
  color: var(--blue);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
  .page { padding: 28px 20px; margin: 0; box-shadow: none; }
  .name { font-size: 30px; }
  .contact { flex-direction: column; gap: 3px; }
  .sep { display: none; }
  .entry-header { flex-direction: column; gap: 2px; }
  .skill-row { flex-direction: column; gap: 2px; }
  .skill-label { min-width: unset; }
}
