/* Shared CV styles — public GitHub Pages */
:root {
  --ink: #121212;
  --muted: #5a5a5a;
  --line: #e4e4e4;
  --accent: #1a4d3e;
  --max: 40rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f6f3;
  font-family: "IBM Plex Sans", Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ink);
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.lang {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
}

.lang a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.lang a:not([aria-current="page"]):hover {
  color: var(--accent);
}

header h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.role {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.meta {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.meta a {
  color: var(--muted);
}

.meta a:hover {
  color: var(--accent);
}

section {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

section h2 {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary {
  margin: 0;
  font-size: 0.95rem;
}

.award {
  margin: 0;
  font-size: 0.95rem;
}

.award strong {
  font-weight: 600;
}

.skills {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.skills li + li {
  margin-top: 0.35rem;
}

.skills span {
  font-weight: 600;
}

.job,
.project {
  margin: 0 0 1.15rem;
}

.job:last-child,
.project:last-child {
  margin-bottom: 0;
}

.job-head,
.project-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  align-items: baseline;
}

.job-head h3,
.project-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.when {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
}

.sub {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
}

ul.bullets {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

ul.bullets li + li {
  margin-top: 0.2rem;
}

.note {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
}

@media print {
  /* Compact one-page layout for the A4 PDF */
  html {
    font-size: 11px;
  }

  body {
    background: #fff;
    line-height: 1.3;
  }

  .page {
    padding: 0;
    max-width: none;
  }

  .lang {
    display: none;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .meta a,
  .sub a,
  .award a {
    color: var(--accent);
  }

  header h1 {
    font-size: 1.7rem;
  }

  .meta {
    margin-top: 0.4rem;
  }

  section {
    margin-top: 0.85rem;
    padding-top: 0.6rem;
  }

  section h2 {
    margin-bottom: 0.4rem;
  }

  .job,
  .project {
    margin-bottom: 0.6rem;
    break-inside: avoid;
  }

  .sub {
    margin: 0.05rem 0 0.15rem;
  }

  ul.bullets {
    margin-top: 0.15rem;
  }

  ul.bullets li + li {
    margin-top: 0.1rem;
  }

  /* Personal projects: name and description on one line */
  .mini {
    margin-bottom: 0.25rem;
  }

  .mini .project-head,
  .mini .sub {
    display: inline;
  }

  .mini .project-head h3 {
    display: inline;
  }

  .mini .project-head::after {
    content: " · ";
    color: var(--muted);
  }
}
