@font-face {
  font-family: "Unica 77 LL";
  src:
    url("../fonts/Unica77LLSub-Regular.woff2") format("woff2"),
    url("../fonts/Unica77LLSub-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Unica 77 LL";
  src:
    url("../fonts/Unica77LLSub-Medium.woff2") format("woff2"),
    url("../fonts/Unica77LLSub-Medium.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --background: #f8f8f6;
  --text: #1a1a1a;
  --focus: #555552;
  --pronunciation-underline: rgba(26, 26, 26, 0.24);
  --pronunciation-underline-active: rgba(26, 26, 26, 0.42);
  --content-left: 200px;
  --content-top: 100px;
  --measure: 595px;
  --logo-to-intro: 100px;
  --intro-to-contact: 60px;
  --contact-to-social: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--background);
  color: var(--text);
  font-family: "Unica 77 LL", Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #e8eafd;
  color: var(--text);
}

.site-shell {
  width: 100%;
  min-height: 100svh;
  padding: var(--content-top) 48px 96px var(--content-left);
}

.identity-mark {
  display: block;
  width: 60px;
  height: 60px;
  margin-bottom: var(--logo-to-intro);
  margin-left: -3px;
  text-decoration: none;
}

.identity-mark__fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.introduction {
  width: min(100%, var(--measure));
}

.introduction__statement {
  max-width: var(--measure);
  margin: 0 0 var(--intro-to-contact);
  font-size: 24px;
  font-weight: 400;
  line-height: 33px;
}

.contact-block {
  margin: 0 0 var(--contact-to-social);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.contact-block p {
  margin: 0;
}

a {
  color: inherit;
}

.link-iff,
.link-email {
  text-decoration: none;
}

.link-iff {
  color: #555a66;
  text-decoration: none;
  transition: color 200ms ease-out;
}

.link-iff:hover,
.link-iff:focus-visible {
  color: var(--text);
}

.link-email {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
.pronunciation:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 1px;
}

.pronunciation {
  position: relative;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.pronunciation::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--pronunciation-underline);
  transition: background-color 180ms ease-out;
}

.pronunciation:hover::after,
.pronunciation:focus-visible::after {
  background: var(--pronunciation-underline-active);
}

.pronunciation__tooltip {
  position: absolute;
  left: 1px;
  bottom: calc(100% + 16px);
  z-index: 2;
  width: max-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: "Unica 77 LL", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  box-shadow: none;
  transition: opacity 200ms ease-out, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pronunciation:hover .pronunciation__tooltip,
.pronunciation:focus .pronunciation__tooltip {
  opacity: 1;
  transform: translateY(0);
}

.pronunciation.is-auto-hidden .pronunciation__tooltip {
  opacity: 0;
  transform: translateY(4px);
}


.linkedin-link {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: -4px;
  text-decoration: none;
  opacity: 0.68;
  place-items: center;
  transition: opacity 180ms ease;
}

.linkedin-link__icon {
  display: block;
  width: 16px;
  height: 16px;
}

.linkedin-link:hover,
.linkedin-link:focus-visible {
  opacity: 1;
}


/*
  Responsive system
  -----------------
  Desktop remains unchanged above 860px.

  Breakpoint 1 (<=860px):
  Preserve the desktop typography and 595px measure while reducing the
  page margins and logo-to-introduction interval.

  Breakpoint 2 (<=680px):
  The 595px measure no longer fits comfortably with generous margins, so
  the composition shifts into its compact layout: narrower page margins,
  a slightly smaller mark, and a modest type reduction while preserving
  the same hierarchy and spacing logic.
*/
@media (max-width: 860px) {
  :root {
    --content-left: clamp(48px, 8vw, 64px);
    --content-top: 80px;
    --logo-to-intro: 80px;
  }

  .site-shell {
    padding-right: 40px;
    padding-bottom: 72px;
  }
}

@media (max-width: 680px) {
  :root {
    --content-left: 28px;
    --content-top: 56px;
    --logo-to-intro: 64px;
    --intro-to-contact: 48px;
  }

  .site-shell {
    padding-right: 28px;
    padding-bottom: 56px;
  }

  .identity-mark {
    width: 52px;
    height: 52px;
  }

  .introduction__statement {
    font-size: 22px;
    line-height: 30px;
  }
}


@media (max-width: 420px) {
  :root {
    --content-left: 24px;
    --content-top: 44px;
    --logo-to-intro: 56px;
    --intro-to-contact: 44px;
  }

  .site-shell {
    padding-right: 24px;
    padding-bottom: 48px;
  }

  .identity-mark {
    width: 48px;
    height: 48px;
  }

  .introduction__statement {
    font-size: 20px;
    line-height: 28px;
  }
}


@media (max-width: 359px) {
  .introduction__statement {
    font-size: 19px;
    line-height: 27px;
  }
}


@media (forced-colors: active) {
  .pronunciation::after {
    background: CanvasText;
  }

  .link-iff {
    color: LinkText;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .pronunciation__tooltip {
    transform: none;
  }
}

