:root {
  color-scheme: dark;
  --bg: #14181d;
  --surface: #1b222a;
  --surface-end: #202b36;
  --text: #f0f2f4;
  --muted: #b2bdc8;
  --accent: #a8c3da;
  --line: #374450;
  --hover: #263541;
  font-family: system-ui, sans-serif;
  font-synthesis: none;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #fff;
  --surface-end: #e1eaf1;
  --text: #17222d;
  --muted: #475767;
  --accent: #345b7d;
  --line: #c5d0da;
  --hover: #e4edf4;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
html[lang="en"] span[lang="pl"], html[lang="pl"] span[lang="en"] { display: none; }
a { color: var(--accent); text-underline-offset: .24em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 1; padding: 8px 14px; background: var(--surface); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; border-bottom: 1px solid var(--line); }
.brand, .site-nav a, .profile-link { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 650; letter-spacing: -.02em; }
.monogram { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; }
.monogram::before, .profile-monogram { background: var(--accent); mask: url("monogram.svg") center / contain no-repeat; }
.monogram::before { content: ""; width: 80%; aspect-ratio: 1; }
.site-nav, .controls { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--muted); font-size: .875rem; }
.site-nav a:hover { color: var(--text); }
.controls { gap: 8px; }
button { border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: .8125rem; padding: 6px 10px; min-height: 36px; white-space: nowrap; cursor: pointer; }
button:hover { background: var(--hover); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .5fr); align-items: center; gap: clamp(28px, 7vw, 100px); padding-block: clamp(36px, 6vw, 76px); }
.tagline { color: var(--accent); font-size: clamp(.95rem, 2vw, 1.2rem); margin: 0 0 14px; font-weight: 600; }
h1 { font-size: clamp(3.15rem, 7.5vw, 6.4rem); letter-spacing: -.075em; line-height: .94; margin: 0; }
h1 span { color: var(--accent); }
.intro { max-width: 60ch; margin: 26px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.1rem); }
.profile { display: flex; flex-direction: column; padding: clamp(20px, 3vw, 32px); background: linear-gradient(140deg, var(--surface), var(--surface-end)); border: 1px solid var(--line); border-radius: 14px; }
.profile-monogram { width: clamp(76px, 11vw, 124px); aspect-ratio: 1; margin: 0 0 12px; }
.profile-role { border-top: 1px solid var(--line); padding-top: 17px; }
.profile-role p { margin: 0; }
.profile-role p:first-child { font-weight: 650; }
.muted { color: var(--muted); font-size: .875rem; }
.profile-link { align-self: flex-start; margin-top: 18px; border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px; font-size: .875rem; }
.profile-link:hover { background: var(--hover); }
.section { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 3fr); gap: 22px; border-top: 1px solid var(--line); padding-block: clamp(24px, 4vw, 42px); scroll-margin-top: 12px; }
h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.045em; line-height: 1.2; }
h3 { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.45; }
.skills-list { list-style: none; padding: 0; margin: 0; }
.skills-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.skills-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.skills-list li:nth-child(-n+2) { padding-top: 0; }
.skills-list p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }




.education p { margin: 0; }
.footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-block: 18px; font-size: .9rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  body, .profile, button, a { transition: background-color .18s, color .18s, border-color .18s; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { gap: 12px; min-height: 68px; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .profile { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; }
  .profile-monogram { width: 54px; margin: 0; }
  .profile-role { padding: 0; border: 0; }
  .profile-link { grid-column: 2; justify-self: start; margin-top: 12px; }
  .section { grid-template-columns: 1fr; }
}
@media (max-width: 450px) {
  .brand { gap: 6px; font-size: .875rem; }
  .brand .monogram { width: 26px; height: 26px; }
  .controls { gap: 4px; }
  button { padding-inline: 7px; }
  .skills-list { grid-template-columns: 1fr; }
  .skills-list li:nth-child(2) { padding-top: 12px; }

}
