/* CV dokumen A4: lembar bersih di layar, pas satu halaman A4 saat dicetak/PDF. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0066cc;
  --hairline: #d2d2d7;
  --backdrop: #ececf0;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--backdrop);
  font-size: 14px;
  line-height: 1.5;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Bilah atas: hanya di layar */
.topbar {
  max-width: 210mm;
  margin: 0 auto;
  padding: 18px 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar a.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.topbar a.back:hover { color: var(--accent); }
.topbar a.download {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}
.topbar a.download:hover { background: var(--accent); }

/* Lembar A4 */
.sheet {
  background: #fff;
  width: 100%;
  max-width: 210mm;
  min-height: 297mm;
  margin: 0 auto 40px;
  padding: 17mm 18mm 15mm;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.13);
}

.cv-name {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.cv-role {
  font-size: 14.5px;
  color: var(--accent);
  font-weight: 600;
  margin: 3px 0 0;
}
.cv-contact {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.cv-contact a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.cv-contact a:hover { color: var(--accent); text-decoration: underline; }
.cv-contact .sep { margin: 0 7px; color: var(--hairline); }

.cv-head { border-bottom: 2.2px solid var(--ink); padding-bottom: 13px; }

section { margin-top: 19px; }
h2.cv-sec {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--hairline);
}
p { margin: 0; }
.summary { font-size: 13px; color: #333336; }

.skill-row {
  display: flex;
  gap: 14px;
  font-size: 13px;
  padding: 3.5px 0;
}
.skill-row dt {
  flex: 0 0 148px;
  font-weight: 600;
  color: var(--ink);
}
.skill-row dd { margin: 0; color: #333336; }
dl.skills { margin: 0; }

.project { margin-bottom: 13px; }
.project:last-child { margin-bottom: 0; }
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
}
.project-head h3 { font-size: 14px; font-weight: 600; margin: 0; }
.project-head a {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.project-head a:hover { text-decoration: underline; }
.project p { font-size: 13px; color: #333336; margin-top: 2px; }
.project .tech { font-size: 12px; color: var(--muted); margin-top: 2px; }

.edu-title { font-size: 13.5px; font-weight: 600; }
.edu p { font-size: 13px; color: #333336; margin-top: 2px; }

.foot-note {
  max-width: 210mm;
  margin: 0 auto;
  padding: 0 6px 26px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.foot-note a { color: var(--muted); }

/* Layar sempit */
@media (max-width: 760px) {
  .sheet { min-height: 0; padding: 26px 20px 30px; margin-bottom: 22px; }
  .cv-name { font-size: 23px; }
  .skill-row { flex-direction: column; gap: 0; padding: 5px 0; }
  .skill-row dt { flex-basis: auto; }
  .topbar, .foot-note { padding-left: 16px; padding-right: 16px; }
}

/* Cetak / PDF: hanya lembar, pas A4 */
@page { size: A4; margin: 0; }
@media print {
  body { background: #fff; }
  .topbar, .foot-note { display: none; }
  .sheet { box-shadow: none; margin: 0; width: auto; min-height: 0; }
}
