:root {
  --ink: #1f2933;
  --muted: #52606d;
  --line: #d9e2ec;
  --soft: #f5f7fa;
  --panel: #ffffff;
  --accent: #284b63;
  --accent-soft: #dce8f0;
  --sidebar: #eef3f7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #dde3e8;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

body {
  padding: 12px 0;
}

.page {
  width: 210mm;
  height: 297mm;
  margin: 0 auto;
  padding: 8mm;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.18);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 28mm;
  gap: 4.5mm;
  align-items: center;
  padding-bottom: 4mm;
  border-bottom: 0.9mm solid var(--accent);
}

.hero-photo-wrap {
  width: 28mm;
  height: 34mm;
  overflow: hidden;
  border: 0.5mm solid var(--line);
  background: var(--soft);
  justify-self: end;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: 21pt;
  line-height: 1.05;
}

.headline {
  margin: 1.2mm 0 1.6mm;
  color: var(--muted);
  font-size: 10.2pt;
  font-weight: 700;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2mm 1.8mm;
  margin: 2mm 10mm 0;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 1.8mm;
  min-height: 7mm;
  padding: 1mm 1.6mm;
  border: 0.35mm solid var(--line);
  border-radius: 2mm;
  background: #f8fafc;
  font-size: 8.2pt;
  color: var(--muted);
  font-weight: 600;
}

.hero-site-item {
  align-items: flex-start;
}

.hero-site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4mm 1.8mm;
}

.hero-site-links a {
  color: var(--accent);
  display: inline-flex;
    align-items: center;
  text-decoration: none;
}

.hero-site-links a:hover {
  text-decoration: underline;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 4.8mm;
  padding: 0.6mm 1.8mm;
  border: 0.35mm solid #bfd2e0;
  border-radius: 999px;
  background: #eef5fa;
  font-size: 7.7pt;
  font-weight: 700;
  white-space: nowrap;
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.8mm;
  height: 4.8mm;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 8pt;
  line-height: 1;
  font-weight: 700;
  flex: 0 0 auto;
}

.hero-icon svg {
  width: 3.1mm;
  height: 3.1mm;
}

.intro-strip {
  margin-top: 3mm;
  padding: 2.2mm 3.2mm;
  border: 0.4mm solid rgb(112, 185, 228);
  border-left: 0.8mm solid var(--accent);
  border-radius: 2mm;
  font-weight: 500;
  background: #d2e8ff;
}

.intro-strip p {
  margin: 0;
  font-size: 8.5pt;
  line-height: 1.24;
}

.layout {
  display: grid;
  grid-template-columns: 74mm 1fr;
  gap: 4.5mm;
  margin-top: 3.5mm;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 3mm;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 3mm;
}

.card,
.section-block {
  border: 0.5mm solid var(--line);
  border-radius: 2mm;
  background: var(--panel);
  padding: 2.6mm 3mm;
}

.sidebar .card {
  background: var(--sidebar);
}

h2 {
  margin: 0 0 1.8mm;
  color: var(--accent);
  font-size: 10pt;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 0.9mm;
  border-bottom: 0.5mm solid var(--accent);
}

h3 {
  margin: 0;
  font-size: 9.2pt;
  line-height: 1.2;
}

p,
li,
span {
  font-size: 8.3pt;
  line-height: 1.24;
}

.plain-list,
.section-block ul {
  margin: 0;
  padding-left: 3.8mm;
}

.tight-list {
  display: grid;
  gap: 0.7mm;
}

.skills-grid {
  display: grid;
  gap: 2.2mm;
}

.skill-col h3 {
  margin-bottom: 1.1mm;
}

.software-groups {
  display: grid;
  gap: 1.4mm;
}

.software-group {
  display: grid;
  gap: 0.8mm;
}

.software-group-title {
  margin: 0;
  font-size: 7.1pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8mm;
}

.software-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5mm;
  padding: 0.55mm 1.1mm;
  border: 0.3mm solid currentColor;
  border-radius: 1.3mm;
  background: #fff;
  font-size: 7.1pt;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.accent-lectra {
  color: #416a6e;
  background: #f1f7f7;
}

.accent-adobe {
  color: #8f4a42;
  background: #fbf3f1;
}

.accent-office {
  color: #466953;
  background: #f1f7f2;
}

.accent-other {
  color: #5b6270;
  background: #f3f5f8;
}

.skill-meter-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.9mm;
}

.skill-meter-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16mm;
  align-items: center;
  gap: 1.2mm;
}

.skill-meter-label {
  display: inline-flex;
  align-items: center;
  gap: 1.2mm;
  min-width: 0;
  font-weight: 600;
}

.skill-meter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4mm;
  height: 4mm;
  color: var(--accent);
  flex: 0 0 auto;
}

.skill-meter-icon svg {
  width: 100%;
  height: 100%;
}

.skill-meter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55mm;
}

.skill-meter span {
  display: block;
  height: 2.4mm;
  border-radius: 999px;
  background: #d7e0e7;
}

.skill-meter .is-filled {
  background: var(--accent);
}

.entry-sub,
.entry p {
  margin: 0.8mm 0 0;
}

.entry + .entry {
  margin-top: 2.3mm;
  padding-top: 2.3mm;
  border-top: 0.35mm solid var(--line);
}

.entry-head {
  display: flex;
  justify-content: space-between;
  gap: 4mm;
  align-items: baseline;
}

.entry-head span {
  color: var(--muted);
  font-size: 8.2pt;
  font-weight: 700;
  white-space: nowrap;
}

.entry-sub {
  color: var(--muted);
}

.entry-links {
  margin: 0.7mm 0 0;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 4.6mm;
  padding: 0.55mm 1.6mm;
  border: 0.3mm solid #bfd2e0;
  border-radius: 999px;
  background: #f4f8fb;
  color: var(--accent);
  font-size: 7.4pt;
  font-weight: 700;
  text-decoration: none;
}

.entry-link:hover {
  text-decoration: underline;
}

.entry ul {
  margin-top: 0.9mm;
}

.compact-entry + .compact-entry {
  margin-top: 1.4mm;
}

.compact ul,
.compact .plain-list {
  margin-bottom: 0;
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  html,
  body {
    background: #fff;
  }

  body {
    padding: 0;
  }

  .hero-meta li {
    background: #fff;
  }

  .hero-chip {
    background: #fff;
  }

  .entry-link {
    background: #fff;
  }

  .page {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 8mm;
    box-shadow: none;
  }
}