@import url('./contact-menu.css');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 60;
  padding: 12px;
  background: var(--color-background);
}

.skip-link:focus {
  top: 20px;
}

.navigation {
  position: sticky;
  z-index: 40;
  top: 10px;
  display: flex;
  width: calc(100% - 80px);
  max-width: 1000px;
  min-height: 69px;
  align-items: center;
  justify-content: space-between;
  margin: 10px auto 0;
  padding-left: 40px;
  border-radius: var(--radius-small);
  background: var(--color-background);
  box-shadow:
    0 10px 36px rgb(17 24 39 / 10%),
    0 2px 8px rgb(17 24 39 / 6%);
}

.navigation > a {
  display: flex;
  align-items: center;
}

.navigation .logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  transform: scaleX(-1);
}

.navigation nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  font-size: 18px;
  line-height: 29px;
}

.navigation nav > a,
.nav-contact {
  display: flex;
  align-items: center;
  padding: 20px 32px;
  white-space: nowrap;
}

.navigation nav > a:hover,
.nav-contact:hover {
  color: var(--color-accent-green);
}

.nav-contact {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.site-footer {
  margin-top: var(--footer-spacing, 160px);
  padding: 60px 76px 44px;
  background: var(--color-footer);
  color: var(--color-text);
}

.footer-inner {
  display: flex;
  max-width: 1280px;
  align-items: center;
  gap: 46px;
  margin: auto;
}

.site-footer .footer-balloon {
  display: block;
  width: 180px;
  height: 232px;
  flex-shrink: 0;
  object-fit: contain;
}

.contact-content {
  flex: 1;
  min-width: 0;
}

.contact-content h2 {
  font-family: var(--font-detail);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.contact-links {
  display: flex;
  gap: 46px;
  margin-top: 76px;
}

.contact {
  display: flex;
  height: 45px;
  flex: 1;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s;
}

.contact[href]:hover {
  transform: translateY(-3px);
}

.email {
  background: var(--color-primary);
  color: var(--color-background);
}

.linkedin {
  background: #be500d;
  color: #fff;
}

.resume {
  background: #cf2859;
  color: #fff;
}

@media (max-width: 1199px) {
  .navigation {
    width: calc(100% - 48px);
    padding-left: 24px;
  }

  .navigation nav > a,
  .nav-contact {
    padding: 20px 22px;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .contact-links {
    gap: 20px;
  }

  .contact-content h2 {
    font-size: 32px;
  }

  .site-footer .footer-balloon {
    width: 140px;
    height: auto;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 88px;
  }

  .navigation {
    top: 8px;
    width: calc(100% - 24px);
    min-height: 60px;
    margin-top: 8px;
    padding-left: 12px;
  }

  .navigation .logo {
    width: 36px;
    height: 36px;
  }

  .navigation nav {
    overflow-x: auto;
    font-size: 14px;
    line-height: 20px;
  }

  .navigation nav > a,
  .nav-contact {
    padding: 20px 10px;
  }

  .site-footer {
    margin-top: var(--footer-spacing-mobile, 96px);
    padding: 40px 24px;
  }

  .footer-inner {
    align-items: flex-start;
    gap: 14px;
  }

  .site-footer .footer-balloon {
    width: 70px;
    height: 100px;
  }

  .contact-content h2 {
    font-size: 25px;
  }

  .contact-links {
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
  }

  .contact {
    min-height: 45px;
    flex: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .contact {
    transition: none;
  }
}
