/* Životopis Dávida Moniša – na obrazovke tmavý ako david-monis.com, pri tlači a v PDF svetlý (A4). */

/* ---------- písma (lokálne, latin + latin-ext kvôli slovenčine) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokeny (rovnaké ako na david-monis.com) ---------- */
:root {
  color-scheme: dark;
  --bg: #07090e;
  --surface: #0e121a;
  --surface-2: #141924;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #eef0f3;
  --text-2: #a9afba;
  --text-3: #727986;
  --accent: #f2a541;
  --accent-hi: #ffbd63;
  --accent-ink: #1b1204;
  --font-display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background-image: radial-gradient(900px 420px at 18% -120px, rgba(242, 165, 65, .10), transparent 70%);
  background-repeat: no-repeat;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1080px, 100% - 2 * var(--pad)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { top: 12px; }
.print-only { display: none; }

/* ---------- horná lišta ---------- */
.topbar { display: flex; align-items: center; gap: 12px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { font-family: var(--font); font-weight: 500; font-size: .8125rem; color: var(--text-3); letter-spacing: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text);
  font-weight: 600; font-size: .875rem; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); border-color: transparent; }
.btn-primary:hover .ic { transform: translateY(2px); }
.btn .ic { transition: transform .3s var(--ease); }
.lang { display: inline-grid; place-items: center; height: 40px; min-width: 46px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--text-2); transition: color .2s, border-color .2s, background-color .2s; }
.lang:hover { color: var(--accent-hi); border-color: rgba(242, 165, 65, .45); background: rgba(242, 165, 65, .08); }

/* ---------- hlavička ---------- */
.head {
  margin-top: 8px; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 36px; align-items: center;
  padding: 32px; border-radius: 28px; background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); border: 1px solid var(--line);
}
.photo { width: 168px; aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; border-radius: 24px; border: 1px solid var(--line-2); }
.head h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); }
.role { margin-top: 10px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--text-2); }
.contacts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.contacts li { display: inline-flex; }
.contacts a, .contacts span {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: var(--text-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.contacts a:hover { color: var(--text); border-color: rgba(242, 165, 65, .4); }
.contacts .ic { width: 15px; height: 15px; color: var(--accent); }

/* ---------- mriežka ---------- */
.grid { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 0 48px; align-items: start; }
main { min-width: 0; }
aside { min-width: 0; padding-top: 12px; }
section { margin-top: 44px; }
.sec-title { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; margin-bottom: 20px; }
.sec-title::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--accent); flex: none; }
.about { font-size: 1.0625rem; color: var(--text-2); max-width: 64ch; }
.about strong { color: var(--text); font-weight: 600; }

/* položky (práca, vzdelanie, kurzy) */
.entry { position: relative; padding: 0 0 24px 22px; border-left: 1px solid var(--line-2); }
.entry:last-child { padding-bottom: 4px; }
.entry::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.entry-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.entry h3 { font-family: var(--font); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.when { font-size: .875rem; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.org { margin-top: 2px; font-size: .9375rem; color: var(--accent); font-weight: 500; }
.entry ul { margin-top: 8px; display: grid; gap: 4px; }
.entry li, .entry p.note { position: relative; padding-left: 16px; color: var(--text-2); font-size: .9375rem; }
.entry li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 2px; border-radius: 2px; background: var(--text-3); }
.entry p.note { padding-left: 0; margin-top: 6px; }
.entry a.cert { color: var(--text-3); font-size: .8125rem; border-bottom: 1px solid var(--line-2); }
.entry a.cert:hover { color: var(--accent-hi); border-color: var(--accent); }

/* roky práce popri škole */
.years { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0 0 28px; }
.year { padding: 12px 12px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.year b { display: block; font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: -.02em; }
.year span { display: block; margin-top: 4px; font-size: .75rem; line-height: 1.4; color: var(--text-2); }
.years-cap { grid-column: 1 / -1; margin-top: 4px; font-size: .875rem; color: var(--text-3); }

/* projekty */
.projects { display: grid; gap: 14px; }
.proj { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.mono { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: .9375rem; letter-spacing: -.02em; border: 1px solid; }
.mono-g1 { color: #ffd7a8; background: linear-gradient(145deg, #3a2417, #1c130d); border-color: rgba(242, 165, 65, .4); }
.mono-rp { color: #c9dbff; background: linear-gradient(145deg, #17233c, #0e1424); border-color: rgba(127, 168, 255, .38); }
.mono-sd { color: #d6f5e4; background: linear-gradient(145deg, #15301f, #0c1a12); border-color: rgba(90, 217, 154, .35); }
.proj h3 { font-size: 1.25rem; }
.proj .meta { margin-top: 2px; font-size: .875rem; color: var(--text-3); }
.proj p.desc { margin-top: 8px; font-size: .9375rem; color: var(--text-2); }
.tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 500; color: var(--text-2); background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.proj a.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .875rem; font-weight: 600; color: var(--accent); }
.proj a.link:hover { color: var(--accent-hi); }
.proj a.link .ic { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.proj a.link:hover .ic { transform: translate(2px, -2px); }

/* bočný panel */
.panel { margin-top: 16px; padding: 22px 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.panel:first-child { margin-top: 32px; }
.panel h2 { font-size: 1.1875rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel h2::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--accent); flex: none; }
.skill-group + .skill-group { margin-top: 14px; }
.skill-group h3 { font-family: var(--font); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.skill-group .tags { margin-top: 8px; }
.skill-group .tags li { font-size: .8125rem; padding: 5px 11px; color: var(--text); }
.facts { display: grid; gap: 12px; }
.facts li { font-size: .9375rem; color: var(--text-2); }
.facts b { display: block; color: var(--text); font-weight: 600; }
.plain { display: grid; gap: 6px; }
.plain li { font-size: .9375rem; color: var(--text-2); }
.plain li b { color: var(--text); font-weight: 600; }
.vol h3 { font-family: var(--font); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.vol .when { display: block; margin-top: 2px; }
.vol ul { margin-top: 10px; }

footer { margin: 64px 0 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .8125rem; color: var(--text-3); }
footer a:hover { color: var(--accent-hi); }

/* ---------- menšie obrazovky ---------- */
@media (max-width: 920px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 0; }
  .panel, .panel:first-child { margin-top: 0; }
  aside { margin-top: 44px; }
}
@media (max-width: 680px) {
  .brand small { display: none; }
  .btn-label-long { display: none; }
  .head { grid-template-columns: 1fr; gap: 20px; padding: 22px 18px 24px; border-radius: 24px; }
  .photo { width: 112px; border-radius: 20px; }
  .years { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  aside { grid-template-columns: minmax(0, 1fr); }
  .proj { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .entry { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- tlač a PDF: svetlý, A4 ---------- */
@page { size: A4; margin: 11mm 12mm 12mm; }
@media print {
  :root {
    color-scheme: light;
    --bg: #fff; --surface: #fff; --surface-2: #fff;
    --line: #e4e6eb; --line-2: #d3d7de;
    --text: #12151b; --text-2: #3a404b; --text-3: #6a717e;
    --accent: #b5620a; --accent-hi: #b5620a;
  }
  html { font-size: 11.3px; }
  body { background: #fff; line-height: 1.5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar, .skip, footer .no-print { display: none !important; }
  .print-only { display: inline; }
  .wrap { width: auto; }
  .head { margin-top: 0; padding: 0 0 14px; gap: 22px; grid-template-columns: 96px minmax(0, 1fr); border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: none; }
  .photo { width: 96px; border-radius: 14px; border: 0; }
  .head h1 { font-size: 2.6rem; }
  .role { margin-top: 4px; }
  .contacts { margin-top: 10px; gap: 4px 14px; }
  .contacts a, .contacts span { padding: 0; border: 0; background: none; color: var(--text-2); }
  .grid { margin-top: 0; grid-template-columns: minmax(0, 1fr) 60mm; gap: 0 9mm; }
  aside { display: block; padding-top: 0; margin-top: 0; }
  section { margin-top: 16px; }
  .sec-title { font-size: 1.35rem; margin-bottom: 10px; }
  .about { font-size: 1rem; max-width: none; }
  .entry { padding-bottom: 10px; break-inside: avoid; }
  .entry::before { background: #fff; }
  main { padding-left: 6px; }
  .years { gap: 4px; margin-bottom: 14px; break-inside: avoid; }
  .year { padding: 6px 7px 7px; border-radius: 8px; border-top-width: 2px; }
  .year b { font-size: 1rem; }
  .year span { font-size: .78rem; }
  .projects { gap: 8px; }
  .proj { padding: 10px 12px; gap: 12px; border-radius: 12px; grid-template-columns: 34px minmax(0, 1fr); break-inside: avoid; }
  .mono { width: 34px; height: 34px; border-radius: 9px; font-size: .85rem; }
  .mono-g1 { color: #8a4a06; background: #fdf0e0; border-color: #f1c58d; }
  .mono-rp { color: #23458f; background: #eaf0ff; border-color: #b9cbf3; }
  .mono-sd { color: #1c6b43; background: #e6f6ee; border-color: #a9dcc1; }
  .proj h3 { font-size: 1.15rem; }
  .proj p.desc { margin-top: 4px; }
  .tags { margin-top: 6px; gap: 4px; }
  .tags li { padding: 1px 7px; background: #f4f5f7; }
  .proj a.link { margin-top: 6px; }
  .proj a.link .ic { display: none; }
  .panel, .panel:first-child { margin-top: 0; padding: 0 0 12px; border: 0; border-radius: 0; background: none; break-inside: avoid; }
  .panel + .panel { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .panel h2 { font-size: 1.2rem; margin-bottom: 8px; }
  .skill-group + .skill-group { margin-top: 8px; }
  .skill-group .tags { margin-top: 4px; }
  .skill-group .tags li { padding: 1px 7px; font-size: .85rem; }
  .facts { gap: 7px; }
  footer { margin: 16px 0 0; padding-top: 8px; font-size: .78rem; }
  a { color: inherit; }
}
