:root {
  --primary: #123859;
  --secondary: #1e5585;
  --offwhite: #fffeeb;
  --ink: #051014;
  --paper: #fff;
  --gradient: linear-gradient(
    42deg,
    #132543,
    #2d71bf 46%,
    rgb(49, 16, 120) 100%
  );
  --theme-name: "light";
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #343334;
    --secondary: hsla(105, 97%, 85%, 0.863);
    --offwhite: #1a171e;
    --ink: #fffcf4;
    --paper: #a0ffa60a;
    --gradient: linear-gradient(
      42deg,
      #0b242f,
      #292c2f 46%,
      rgb(18, 19, 66) 100%
    );
    --theme-name: "dark";
  }
}

/* Universal Styles */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
body {
  font-family: "Poppins", Georgia, "Times New Roman", Times, san-serif;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--offwhite);
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
p {
  max-width: 65ch;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
a {
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold",
    sans-serif;
  font-weight: 400;
  line-height: 1.1;
  overflow-wrap: break-word;
  text-wrap: balance;

}
.section {
  display: flex;
  flex-direction: column;
  padding-top: 1.5rem;
  align-items: center;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-bottom: 1px solid hsla(0, 0%, 91%, 0.44);
  padding: .25rem;
  background-color: var(--paper);
  box-shadow: 2px 4px 12px #00000014;
  gap: 1.5rem;
}
.nav__right {
  display: flex;
  gap: 1rem;
}
.menu__link {
  max-width: 2rem;
}
.nav__link {
  font-size: 1.25rem;
  font-weight: 400;
}
.nav__link:hover {
  text-decoration: underline;
  color: var(--secondary);
}
.nav__logo {
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  font-size: 28px;
}
.nav__logo:hover {
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  transition: all 0.5s ease;
  filter: brightness(1.1);
  transform: scale(1.1);
}
.nav__logo:active {
  filter: brightness(0.3);
}
.nav__logo > h6 {
  opacity: 85%;
}

#logo {
  max-width: 6rem;
  height: 80px;
}


/* Banners */

/* Call to Action */
.calltoaction {
  display: flex;
  align-items: center;
  justify-content: center;
}
.calltoaction > div {
  flex: 1;
}
.cta-text {
  font-size: 2rem;
  font-weight: 300;
}
#birb {
  position: relative;
  right: -32px;
  height: 250px;
  top: 12px;
}
.hand {
  display: inline-block;
  animation: shaka 1s ease-in-out infinite;
  margin-left: 0.5rem;
}
@keyframes shaka {
  0% {
    transform: rotateZ(0deg);
  }
  50% {
    transform: rotateZ(24deg);
  }
  100% {
    transform: rotateZ(0deg);
  }
}
.cta-text > p > a {
  text-decoration: underline;
  color: var(--secondary);
}

.cta-text > p > a:hover {
  filter: hue-rotate(42deg);
  transition-duration: 0.8s;
  color: var(--primary);
}

/* Project Cards */
.card-set {
  /* display: flex;
  flex-flow: row wrap; */
  display: grid;
  overflow: inherit;
  grid-template-columns: repeat(auto-fit, minmax(250px, 400px));
  justify-content: center;
  gap: 2rem;
  max-width: 100vw;
  padding: 10px;
}
article.card {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background-color: var(--paper);
  background-blend-mode: multiply;
  box-shadow: 0px 6px 19px -6px rgba(66, 66, 66, 0.25);
  font-size: 1.25rem;
}
article.card img {
  height: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
article.card:hover, article.card:focus {
  box-shadow: 0px 3px 8px rgba(66, 66, 66, 0.3);
  top: 3px;
  filter: brightness(0.98);
  border: 2px solid var(--secondary);
}
article.card:active {
  box-shadow: none;
  top: 8px;
  filter: brightness(0.9);
}
.card__header {
  font-size: 2rem;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: .25rem;
}

#contact {
  padding: 4rem 0;
}

/* About */
#self-portrait {
  max-height: 250px;
  border-radius: 50%;
  border: 6px solid var(--secondary);
  margin: 1.5rem 0 ;
}
/* Coffee Cat*/
.unionize {
  height: 250px;
}
.coffeecat {
  z-index: 2;
  position: relative;
}
.coffeecat:hover {
  filter: brightness(1.1);
}
.coffeecat:active {
  filter: brightness(0.5);
}
.solidarity {
  display: inline-block;
  position: absolute;
  animation: rotate 20s linear infinite;
  animation-play-state: running;
  z-index: 1;
  opacity: 50%;
  filter: blur(1px);
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(51, 51, 51, 0.1);
  display: grid;
  place-items: center;
  background-color: var(--primary);
  color: white;
}
#footer_logo {
  max-width: 200px;
  position: relative;
  left:1.5rem;
  margin-top: 1rem;
  opacity: 50%;
  
}
.footer__nav {
  display: flex;
  margin-top: 1rem;
  gap: 16px;
}
.footer__nav > li {
  list-style-type: none;
}
.social {
  width: 40px;
  height: 40px;
  opacity: 0.7;
}
.social:hover {
  opacity: 1;
}
#rock_you {
  display: none;
}
li > a:hover {
  text-decoration: underline;
}

/* Article Page Styles */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  margin: 0 auto;
  padding-top: 1rem;
}
.container h1 {
  text-align: center;
  font-size: clamp(24px, 13vw, 72px);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.container p {
  padding: 0 1rem;
  margin-bottom: 1rem;
}
.container > p > a {
  color: var(--secondary);
  border-radius: 0.25em;
  text-decoration: underline;
}
.container > p > a:hover {
  color: var(--ink);
  filter: opacity(0.9);
}
figure {
  padding: 0.5rem 0;
}
.project__image {
  width: clamp(300px, 100vw, 1200px);
}
.project__link {
  font-size: 1.2rem;
  text-decoration: underline;
  filter: opacity(0.8);
}
.project-nav {
  margin: 4em;
  font-weight: 700;
  text-decoration: underline;
}
.youtube {
  width: clamp(300px, 100vw, 1200px);
  aspect-ratio: 16/9;
  iframe {
    width: 100%;
    height: 100%;
  }
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Media Queries */
@media (max-width: 900px) {
  .project__image {
    max-width: 100vw;
    border-radius: 0;
  }
}
@media (max-width: 750px) {
  #work {
    padding: 1.5rem 1rem;
  }
  .calltoaction {
    flex-direction: column;
  }
  #rock_you {
    display: inline-block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  #birb {
    position: relative;
    right: 0;
    height: 200px;
  }
}
@media (max-width: 700px) {
  .container {
    font-size: 1rem;
  }
  article.card img {
    height: auto;
  }
  h6 {
    display: none;
  }
}