:root {
  color-scheme: light;
  --text: #111;
  --muted: #444;
  --rule: #d8d8d8;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11pt;
  line-height: 1.42;
}

body {
  margin: 0;
  background: #fff;
}

.page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 38px;
}

header {
  margin-bottom: 18px;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 24pt;
  font-weight: 700;
  line-height: 1.05;
}

.headline {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12pt;
}

.contact {
  margin: 0;
  color: var(--muted);
  font-size: 10.5pt;
}

section {
  margin-top: 18px;
}

h2 {
  margin-bottom: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule);
  font-size: 12pt;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 2px;
  font-size: 11.5pt;
  line-height: 1.25;
}

.meta {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10.5pt;
}

p {
  margin-bottom: 8px;
}

ul {
  margin-bottom: 0;
  padding-left: 18px;
}

li {
  margin-bottom: 4px;
}

.role {
  margin-bottom: 12px;
  break-inside: avoid;
}

.skills {
  padding-left: 0;
  list-style: none;
}

.skills li {
  margin-bottom: 3px;
}

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

@media print {
  html {
    font-size: 10.5pt;
  }

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

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


:root {
  color-scheme: light;
  --background: #fff;
  --text: #111;
  --muted: #444;
  --rule: #d8d8d8;
  --button-bg: #fff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0f1115;
  --text: #e8eaf0;
  --muted: #a7adbb;
  --rule: #2b313d;
  --button-bg: #171b22;
  --accent: #8ab4f8;
}

html,
body {
  background: var(--background);
}

a {
  color: inherit;
}

:root[data-theme="dark"] a {
  color: var(--accent);
}

.site-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.language-switcher {
  display: flex;
  gap: 8px;
}

.site-controls button {
  border: 1px solid var(--rule);
  background: var(--button-bg);
  color: var(--text);
  font: inherit;
  padding: 4px 8px;
  cursor: pointer;
}

.site-controls button[aria-pressed="true"] {
  font-weight: 700;
  border-color: var(--text);
}

:root[data-theme="dark"] .site-controls button {
  border-color: #343b49;
}

:root[data-theme="dark"] .site-controls button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
