/* Sora Font */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/sora-v17-latin_latin-ext-regular.woff2') format('woff2');
}

/* Material Symbols Outlined */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('/fonts/material-symbols-outlined-v315-latin-regular.woff2') format('woff2');
}

body {
  font-family: 'Sora', sans-serif;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

#page-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #131e1f;
  transition: opacity 0.4s ease;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(36, 124, 129, 0.2);
  border-top-color: #247c81;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.article-block {
  animation: fadeIn 0.6s ease both;
}

.article-block:nth-child(1) {
  animation-delay: 0.05s;
}

.article-block:nth-child(2) {
  animation-delay: 0.15s;
}

.article-block:nth-child(3) {
  animation-delay: 0.25s;
}

.article-block:nth-child(4) {
  animation-delay: 0.35s;
}

.article-block:nth-child(5) {
  animation-delay: 0.45s;
}

/* Logo theming: white-background PNG works on light mode as-is.
   On dark mode we invert the white parts using mix-blend-mode.
   The teal/primary parts stay visible on both modes. */
.site-logo {
  height: 80px;
  /* Even more prominent starting height */
  width: auto;
  mix-blend-mode: normal;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .site-logo {
  height: 36px;
  /* Shrunk height */
}

.dark .site-logo {
  /* Invert to make white bg black, then invert again to get white, 
     but keep the teal hue - use a combined filter */
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(148deg);
}

.site-logo-footer {
  height: 32px;
  width: auto;
}

.dark .site-logo-footer {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(148deg);
}

/* Markdown-style bold in text */
.prose-text strong {
  font-weight: 700;
  color: #247c81;
}

#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: block;
}

/* Cookie Banner Glassmorphism */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  border-radius: 1.5rem;
  padding: 1.5rem;
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark #cookie-banner {
  background: rgba(19, 30, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

#cookie-banner.show {
  transform: translateY(0);
}

@media (min-width: 640px) {
  #cookie-banner {
    width: 420px;
    right: auto;
  }
}