/* cv.motorcular.online — one column, type-led, light/dark from the system setting. */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --faint: #b4b4b4;
  --line: #e6e6e6;
  --btn-bg: #111111;
  --btn-text: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #ececec;
    --muted: #9b9b9b;
    --faint: #565656;
    --line: #2a2a2a;
    --btn-bg: #ececec;
    --btn-text: #0b0b0b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 40px 22px 56px; }
@media (min-width: 720px) { .wrap { padding-top: 80px; } }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--faint);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p, ul { margin: 0; }
h1 { font-size: 1.625rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: 1rem; line-height: 1.6; font-weight: 500; }
.title { margin-top: 6px; color: var(--muted); text-wrap: balance; }
.body p, .body li { text-wrap: pretty; }
.meta { margin-top: 2px; color: var(--muted); }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }
.small { font-size: .875rem; }

/* Top line: back link on the left, the other language on the right. */
.top { display: flex; align-items: baseline; gap: 16px; margin-bottom: 36px; font-size: .875rem; }
.top a { color: var(--muted); text-decoration: none; }
.top a:hover { color: var(--text); }
.top .lang { margin-left: auto; }

.contact { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 16px; font-size: .9375rem; }
.contact a { color: var(--muted); }
.contact a:hover { color: var(--text); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; font-size: .9375rem; }
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
}
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { opacity: 1; box-shadow: inset 0 0 0 1px var(--muted); }

/* Sections: a small grey label, then the content; side by side on wide screens. */
.row { margin-top: 56px; }
.label { margin-bottom: 14px; font-size: .8125rem; font-weight: 500; color: var(--muted); }
@media (min-width: 720px) {
  .row { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 32px; }
  .label { margin: 0; line-height: 1.6rem; }
}

.body p + p, .body p + ul, .body ul + p { margin-top: 10px; }
.body ul { padding-left: 1.15em; }
.body li { margin-top: 6px; }
.body li::marker { color: var(--faint); }
.body strong { font-weight: 600; }
.body em { font-style: normal; color: var(--muted); }

/* One job: role, then organisation and place, then dates; the dates move up beside the role on wider screens. */
.job { display: flex; flex-direction: column; margin-top: 34px; }
.body > .job:first-child { margin-top: 0; }
.body .job p { margin-top: 0; color: var(--muted); }
.job .org strong { color: var(--text); font-weight: 500; }
.job .when { font-size: .9375rem; font-variant-numeric: tabular-nums; }
.body .job + p, .body .job + ul { margin-top: 10px; }
@media (min-width: 560px) {
  .job { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; }
  .job .what { grid-area: 1 / 1; }
  .job .when { grid-area: 1 / 2; white-space: nowrap; }
  .job .org { grid-area: 2 / 1 / 3 / 3; }
}

.person + .person, .item + .item { margin-top: 30px; }
.person .actions { margin-top: 12px; }
.item p { margin-top: 4px; }
.who { margin-left: 6px; color: var(--muted); font-weight: 400; font-size: .875rem; }

footer { margin-top: 80px; font-size: .8125rem; color: var(--muted); }
footer a { color: inherit; }

/* The digital business card: always light, like the printed one. */
.bcard {
  max-width: 440px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 12px 32px rgba(0, 0, 0, .08);
}
.bcard a { color: inherit; text-decoration: none; }
.bc-face { position: relative; display: flex; flex-direction: column; min-height: 196px; padding: 22px 22px 16px; }
.bc-logo { display: block; width: 172px; height: auto; }
.bc-person { margin: auto 0; padding: 18px 0 30px; text-align: center; }
.bc-name { font-size: 1.1875rem; letter-spacing: .01em; }
.bc-name b { font-weight: 600; }
.bc-role { margin-top: 2px; font-size: .9375rem; color: #555555; }
.bc-phone { margin-top: 2px; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.bc-brand { position: absolute; right: 18px; bottom: 14px; }
.bc-brand img { display: block; width: 96px; height: auto; }
.bc-strip { padding: 10px 16px; background: #3c3c3c; color: #ffffff; font-size: .8125rem; text-align: center; }
.bc-strip a { color: #ffffff; white-space: nowrap; }
@media (max-width: 440px) { .bc-strip .sep { display: none; } .bc-strip a { display: block; } }
@media (prefers-color-scheme: dark) { .bcard { box-shadow: none; } }

@page { size: A4; margin: 13mm 13mm 14mm; }
@media print {
  :root { --bg: #ffffff; --text: #111111; --muted: #5a5a5a; --faint: #b0b0b0; --line: #dddddd; }
  body {
    font-family: "Inter PDF", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.42;
  }
  .wrap { max-width: none; padding: 0; }
  .top, .actions, footer { display: none; }
  a { text-decoration: none; }
  h1 { font-size: 18pt; }
  h3 { line-height: 1.42; }
  .title, .meta { margin-top: 0.8mm; }
  .contact { margin-top: 2.5mm; gap: 0 5mm; font-size: 8.5pt; }
  .contact a { color: var(--text); }
  .row { display: grid; grid-template-columns: 24mm minmax(0, 1fr); column-gap: 5mm; margin-top: 6mm; }
  .label { margin: 0; font-size: 8pt; line-height: 12.8pt; }
  .job { margin-top: 3.8mm; break-inside: avoid; break-after: avoid; }
  .job .when { font-size: 8.5pt; }
  .body li { margin-top: 0.9mm; break-inside: avoid; }
  .body p + p, .body p + ul, .body ul + p, .body .job + p, .body .job + ul { margin-top: 1.5mm; }
}
