@font-face {
  font-family: 'Midnight Sans Bold';
  src: url('assets/MidnightSansRDPro-12Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Midnight Sans Regular';
  src: url('assets/MidnightSansRDPro-36Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Flecha';
  src: url('assets/flecha-black.otf') format('opentype');
  font-weight: bold;
  font-style: bold;
}

/* Base Styles */
:root {
  --brand-black: #fff3de;
  --brand-red: #2660a4;
}

body {
  background-color: var(--brand-black);
  color: var(--brand-red);
  position: relative;
}

/* Custom Text Effects */
h1 {
  font-variant-ligatures: discretionary-ligatures;
  text-shadow: 0 0 20px rgba(38, 96, 164, 0.1);
}

/* Animation for the main content appearance */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: fadeIn 1s ease-out forwards;
}

/* Hover effects for nav items */
nav li:hover .border-dotted {
  border-color: currentColor;
  border-bottom-width: 1px;
}

/* Highlight link - underline with wavy hover */
.highlight-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-style: solid;
  transition:
    text-decoration-style 0.3s ease,
    text-underline-offset 0.3s ease;
}

.highlight-link:hover {
  text-decoration-style: wavy;
  text-underline-offset: 4px;
  animation: wave-nudge 0.4s ease forwards;
}

@keyframes wave-nudge {
  0% {
    text-underline-offset: 3px;
  }
  50% {
    text-underline-offset: 5px;
  }
  100% {
    text-underline-offset: 4px;
  }
}
