@font-face {
  font-family: 'Source Code VF';
  src: url('SourceCodeVF-Upright.ttf.woff2') format('woff2-variations');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --paper: #f7f4e8;
  --ink: #10100f;
  --hairline: rgba(16, 16, 15, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Code VF', 'Courier New', monospace;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.language-switch {
  position: fixed;
  z-index: 20;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  border: 2px solid var(--ink);
  background: rgba(247, 244, 232, 0.95);
  padding: 0.48rem 0.6rem;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
}

.language-switch a {
  text-decoration: none;
  opacity: 0.36;
}

.language-switch a[aria-current='page'] {
  opacity: 1;
}

.language-switch a:hover,
.language-switch a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.desktop-canvas {
  position: relative;
  width: min(100%, 1240px);
  aspect-ratio: 2481 / 3509;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.full-cv,
.instagram-patch {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.instagram-patch {
  position: absolute;
  inset: 0;
  clip-path: inset(48.85% 82.4% 48.35% 4.35%);
  pointer-events: none;
}

.contact-hotspot {
  position: absolute;
  z-index: 3;
  left: 4.55%;
  width: 18.2%;
  border-radius: 1px;
}

.contact-hotspot:hover {
  background: rgba(255, 255, 255, 0.12);
  outline: 1px dashed rgba(16, 16, 15, 0.42);
}

.contact-hotspot:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.phone-hotspot {
  top: 45.85%;
  height: 2.02%;
}

.email-hotspot {
  top: 47.55%;
  height: 1.92%;
}

.instagram-hotspot {
  top: 49.12%;
  height: 1.92%;
}

.mobile-cv {
  display: none;
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
    line-height: 1.45;
  }

  .desktop-canvas {
    display: none;
  }

  .mobile-cv {
    display: block;
    padding: 76px 18px 54px;
  }

  .language-switch {
    top: 14px;
    right: 18px;
  }

  .profile-column {
    display: grid;
    grid-template-columns: minmax(112px, 0.75fr) minmax(0, 1.25fr);
    column-gap: 20px;
    padding: 0 0 50px;
  }

  .portrait {
    position: relative;
    grid-row: 1 / span 4;
    width: 100%;
    aspect-ratio: 105.914 / 121.38;
    margin: 0;
    overflow: hidden;
    background: #d4d4d1;
  }

  .portrait img {
    position: absolute;
    top: -160.6%;
    left: -25.9%;
    width: 562.6%;
    max-width: none;
    height: auto;
  }

  .heavy-rule {
    width: 100%;
    height: 7px;
    margin-bottom: 22px;
    background: var(--ink);
  }

  .profile-column .heavy-rule {
    align-self: start;
    margin: 0 0 19px;
  }

  .profile-column h1 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.01em;
  }

  address {
    display: grid;
    gap: 0;
    margin: 0;
    font-size: 13px;
    font-style: normal;
  }

  address a {
    width: max-content;
    max-width: 100%;
    text-decoration: none;
  }

  address a:hover,
  address a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .profile-note,
  .intro {
    grid-column: 1 / -1;
  }

  .profile-note {
    margin-top: 25px;
    padding: 17px 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    font-size: 16px;
  }

  .intro {
    margin: 25px 0 0;
  }

  .content-column {
    display: grid;
    gap: 42px;
  }

  .content-column + .content-column {
    margin-top: 42px;
  }

  .cv-section h2 {
    margin: 0 0 22px;
    font-size: clamp(42px, 13vw, 58px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.055em;
    text-transform: lowercase;
  }

  .section-body > :first-child {
    margin-top: 0;
  }

  .section-body > :last-child {
    margin-bottom: 0;
  }

  .entry + .entry {
    margin-top: 18px;
  }

  .entry h3,
  .underlined-label {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.22;
  }

  .entry .hairline,
  .underlined-label {
    border-bottom: 1px solid var(--hairline);
  }

  .entry .hairline {
    margin: 3px 0 6px;
  }

  .entry p,
  .cv-section p,
  .plain-list,
  .availability p {
    margin: 0;
  }

  .cando-section .section-body p + p {
    margin-top: 1.5em;
  }

  .plain-list {
    padding: 0;
    list-style: none;
  }

  .interests-label {
    margin-top: 19px;
    margin-bottom: 9px;
  }

  .availability .heavy-rule {
    margin-bottom: 28px;
  }

  .signoff {
    margin: 44px 0 0;
    text-align: right;
  }

  .original-layout .desktop-canvas {
    display: block;
    width: 100%;
    margin: 0;
  }

  .original-layout .mobile-cv {
    display: none;
  }

  .original-layout .language-switch {
    top: 7px;
    right: 7px;
    border-width: 1px;
    padding: 0.28rem 0.38rem;
    font-size: 9px;
  }
}

@media print {
  .language-switch,
  .mobile-cv {
    display: none;
  }

  .desktop-canvas {
    display: block;
    width: 100%;
    margin: 0;
  }
}
