/*
Theme Name: Danstan Portfolio
Theme URI: https://danstanochieng.com
Author: Danstan Ochieng
Description: A Vue, Tailwind, and GSAP-powered WordPress portfolio theme.
Version: 2.1.0
Text Domain: danstan
*/

:root {
  --header-ink: #fff;
  --header-black: #000;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  z-index: 1001;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px;
  margin: 0;
  clip: auto;
  background: white;
  color: black;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--header-ink);
  background: #000;
  transition: background-color .3s ease, box-shadow .3s ease, transform .35s ease;
}

.site-header.is-scrolled {
  background: #000;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
}

.site-header.is-contact {
  transform: translateY(-100%);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto minmax(220px, .72fr);
  align-items: center;
  width: min(calc(100% - 72px), 1840px);
  height: 112px;
  margin-inline: auto;
  gap: clamp(28px, 4vw, 74px);
}

.brand,
.footer-brand {
  color: white;
  font-family: 'Mulish', Arial, sans-serif;
  font-size: clamp(18px, 0.55vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.custom-logo {
  display: block;
  width: auto;
  max-height: 42px;
  filter: brightness(0) invert(1);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.4vw, 66px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  color: white;
  font-family: 'Mulish', Arial, sans-serif;
  font-size: clamp(11px, .92vw, 17px);
  font-weight: 800;
  letter-spacing: .015em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-list a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-list a:focus-visible {
  outline: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: min(100%, 300px);
  min-height: 62px;
  padding: 0 34px;
  border: 2px solid white;
  color: white;
  font-family: 'Mulish', Arial, sans-serif;
  font-size: clamp(11px, .9vw, 17px);
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease;
}

.header-cta:hover {
  background: white;
  color: black;
}

.header-cta:focus-visible {
  outline: none;
}

.menu-toggle {
  display: none;
}

.site-footer {
  padding: 0 0 38px;
  background: #000;
  color: white;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 72px), 1840px);
  margin-inline: auto;
  padding-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, .75);
  font-family: 'Mulish', Arial, sans-serif;
}

.footer-nav,
.footer-contact {
  display: flex;
  align-items: center;
  gap: clamp(32px, 7vw, 130px);
}

.footer-contact {
  gap: clamp(36px, 6vw, 110px);
}

.footer-inner a {
  color: white;
  font-size: clamp(10px, .92vw, 17px);
  font-weight: 800;
  letter-spacing: .015em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .2s ease;
}

.footer-inner a:hover {
  opacity: .58;
}

.prose-page {
  width: min(100% - 48px, 900px);
  min-height: 70vh;
  margin: 160px auto 80px;
  font-family: 'Mulish', Arial, sans-serif;
}

.prose-page h1 {
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: -.06em;
}

.prose-page img {
  max-width: 100%;
  height: auto;
}

.prose-page .entry-content {
  font-size: 18px;
  line-height: 1.8;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: minmax(210px, 1fr) auto minmax(170px, .65fr);
    width: calc(100% - 44px);
    gap: 22px;
  }

  .nav-list {
    gap: 24px;
  }

  .header-cta {
    min-height: 52px;
    padding-inline: 22px;
  }
}

@media (max-width: 850px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    width: calc(100% - 32px);
    height: 78px;
  }

  .brand {
    font-size: 17px;
  }

  .menu-toggle {
    display: block;
    padding: 10px 0 10px 20px;
    border: 0;
    background: none;
    color: white;
    font-family: 'Mulish', Arial, sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    display: none;
    width: 100%;
    padding: 18px 16px 30px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    background: #000;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    font-size: 14px;
  }

  .nav-list a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 30px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 32px);
    padding-top: 28px;
    gap: 32px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 18px 28px;
  }

  .footer-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-email {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .header-inner,
  .footer-inner {
    width: calc(100% - 24px);
  }

  .brand {
    max-width: calc(100vw - 100px);
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}
