/* Christian Lagao – CV site. Light theme, no external fonts, no JavaScript. */
:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #16202a;
  --muted: #5b6876;
  --line: #e4e8ee;
  --accent: #0d7c86;
  --accent-2: #3b5bdb;
  --accent-soft: #e6f4f5;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 420px at 15% -10%, rgba(13, 124, 134, .14), transparent 70%),
    radial-gradient(900px 380px at 95% -5%, rgba(59, 91, 219, .10), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 28px 16px 56px; }

/* Top bar */
.top { display: flex; justify-content: flex-end; }
.lang a {
  display: inline-block; text-decoration: none; font-size: .85rem; font-weight: 600;
  color: var(--muted); background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px;
}
.lang a:hover { color: var(--accent); border-color: var(--accent); }

/* Hero */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 26px 0 8px; }
.avatar {
  width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center;
  font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(13, 124, 134, .28);
}
h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); line-height: 1.05; margin: 0 0 8px; letter-spacing: -.03em; }
.tagline { font-size: 1.12rem; color: var(--muted); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Key facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.facts .k { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; }
.facts .v { font-weight: 650; }

/* Cards */
section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 18px; margin-top: 20px; }
h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 14px; letter-spacing: -.01em; }
h2::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent-2)); }
section p { margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 26px; }
ul.check { list-style: none; margin: 0 0 10px; padding: 0; }
ul.check li { position: relative; padding-left: 28px; margin: 0 0 8px; }
ul.check li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d7c86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.chips li { background: var(--accent-soft); color: #0b5d64; border-radius: 999px; padding: 6px 13px; font-size: .93rem; font-weight: 600; }

/* Timeline */
.timeline { position: relative; margin: 4px 0 0; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.job { position: relative; margin: 0 0 22px; }
.job::before {
  content: ""; position: absolute; left: -34px; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--card);
}
.job h3 { font-size: 1.02rem; margin: 0; }
.job .meta { color: var(--muted); font-size: .92rem; margin: 2px 0 8px; }
.job ul { margin: 0; padding-left: 1.1em; }
.job li { margin: 0 0 3px; }
.muted { color: var(--muted); }
.edu p { margin: 0 0 14px; }

.print-only { display: none; }
footer { color: var(--muted); font-size: .86rem; text-align: center; margin-top: 30px; }

@media (max-width: 560px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; }
  .avatar { width: 72px; height: 72px; border-radius: 22px; font-size: 1.6rem; }
  section { padding: 22px 18px 14px; }
}
@media print {
  @page { size: A4; margin: 12mm 13mm; }
  body { background: #fff; font-size: 9.6pt; line-height: 1.42; }
  .top, .actions, footer { display: none; }
  .print-only { display: block; margin: 2pt 0 0; font-weight: 600; }
  .wrap { padding: 0; max-width: none; }
  .hero { grid-template-columns: auto 1fr; gap: 12pt; padding: 0; }
  .avatar { width: 46pt; height: 46pt; border-radius: 13pt; font-size: 17pt; box-shadow: none; }
  h1 { font-size: 22pt; margin-bottom: 2pt; }
  .tagline { font-size: 10.5pt; }
  .facts { grid-template-columns: repeat(6, 1fr); gap: 5pt; margin-top: 9pt; }
  .facts li { padding: 5pt 6pt; box-shadow: none; border-radius: 7pt; }
  .facts .k { font-size: 6.5pt; }
  section { box-shadow: none; break-inside: avoid; padding: 8pt 11pt 3pt; margin-top: 7pt; border-radius: 9pt; }
  h2 { font-size: 10.8pt; margin-bottom: 6pt; }
  h2::before { height: 13pt; width: 4pt; }
  section p { margin-bottom: 6pt; }
  ul.check li { margin-bottom: 3pt; padding-left: 20pt; }
  ul.check li::before { width: 13pt; height: 13pt; top: .15em; background-size: 9pt; }
  .chips { margin-bottom: 6pt; gap: 5pt; }
  .chips li { padding: 2pt 8pt; font-size: 8.8pt; }
  .timeline { padding-left: 24pt; }
  .timeline::before { left: 4pt; }
  .job { margin-bottom: 8pt; break-inside: avoid; }
  .job::before { left: -24pt; width: 9pt; height: 9pt; border-width: 2pt; top: 4pt; }
  .job .meta { margin: 0 0 3pt; }
  .edu p { margin-bottom: 6pt; }
  a { color: inherit; text-decoration: none; }
}
