@font-face {
  font-family: Manrope;
  src: url("manrope-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  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: Manrope;
  src: url("manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  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;
}

:root {
  color-scheme: dark;
  --surface: #171c20;
  --ink: #f0f1ef;
  --copy: #d3d9da;
  --muted: #a9b4b8;
  --rule: #465359;
  --photo: #646e72;
  --gutter: clamp(2rem, 6.5vw, 8.75rem);
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.6 Manrope, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.one-page {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}

.profile {
  display: grid;
  grid-template-rows: auto 1fr;
  padding-inline: var(--gutter);
}

.languages {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 0.2rem;
  margin-block-start: clamp(1.4rem, 5vh, 3.75rem);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.11em;
}

.languages a {
  position: relative;
  display: grid;
  min-width: 2.5rem;
  min-height: 2.75rem;
  place-items: center;
  text-decoration: none;
}

.languages a:first-child { margin-inline-start: -0.58rem; }
.languages a:hover, .languages a[aria-current] { color: var(--ink); }
.languages > span { color: #819095; }

.languages a[aria-current]::after {
  position: absolute;
  inset: auto 0.65rem 0.50rem;
  border-bottom: 1px solid currentColor;
  content: "";
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 2.75rem clamp(3rem, 9vh, 7rem);
}

h1 {
  font-size: clamp(5rem, 9.1vw, 10rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.062em;
}

h1 span { display: block; }

.bio {
  width: 100%;
  max-width: 37ch;
  margin-block-start: clamp(2rem, 5vh, 3.5rem);
  color: var(--copy);
  font-size: clamp(1.03rem, 1.48vw, 1.31rem);
  line-height: 1.59;
  text-wrap: pretty;
}

html[lang="pl"] .bio[lang="en"],
html[lang="en"] .bio[lang="pl"] { display: none; }

.education {
  margin-block-start: 1.2rem;
  border-block-start: 1px solid var(--rule);
  padding-block-start: 1.15rem;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.13vw, 1.02rem);
  line-height: 1.66;
}

.portrait {
  position: relative;
  background: var(--photo);
}

.portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.missing { padding: var(--gutter); }
.missing p { margin-block: 1.35rem; }
.missing a { text-underline-offset: 0.2em; }

@media (max-width: 48rem) {
  :root { --gutter: clamp(1.25rem, 5.9vw, 3rem); }

  .one-page { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .profile, .intro { display: contents; }
  .languages { grid-row: 1; margin: 0.62rem var(--gutter) 0; }
  h1 {
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.24em;
    margin: 0.42rem var(--gutter) 1.35rem;
    font-size: clamp(2.72rem, 10.9vw, 5.15rem);
    line-height: 1;
    letter-spacing: -0.05em;
  }
  .portrait { grid-row: 3; aspect-ratio: 1.14; }
  .bio {
    grid-row: 4;
    width: auto;
    max-width: 43ch;
    margin: 1.4rem var(--gutter) 2.2rem;
  }
}
