/* ===================================================
   AEGISULF Hub - Global Configuration
   =================================================== */
html {
  color-scheme: dark;
}

:root {
  /* 品牌色彩 */
  --primary-accent: #e63946;
  --primary-accent-glow: rgba(230, 57, 70, 0.45);

  /* Translucent cards: keep the artwork visible behind them */
  --card-bg: rgba(8, 7, 14, 0.22);
  --card-bg-hover: rgba(230, 57, 70, 0.2);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-border-hover: rgba(230, 57, 70, 0.65);

  /* 文字 */
  --text-main: #f0f0f5;
  --text-sub: #c8c6d4;
  --text-highlight: #ffffff;

  /* 尺寸 */
  --max-content-width: 580px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-full: 9999px;

  /* 動畫 */
  --trans-speed: 0.22s;
  --trans-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================
   Reset & Base Styles
   =================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #050408;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ===================================================
   Full Page Scrollable Background (頂部錨定 + 跟隨頁面自然滾動)
   =================================================== */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  min-height: 100%;
  background: 
    radial-gradient(circle at 50% 15%, rgba(5, 4, 8, 0.1) 0%, rgba(5, 4, 8, 0.5) 75%),
    linear-gradient(to bottom, transparent 0%, rgba(5, 4, 8, 0.75) 100%),
    url('assets/hero.webp') center top / cover no-repeat;
  pointer-events: none;
}

/* ===================================================
   Header & Profile Card (精準淨空頂部狼頭五官)
   =================================================== */
.hero-section {
  width: 100%;
  /* 頂部徹底淨空 26vh，完整露出狼耳、發光怒目、鼻樑與全部白獠牙 */
  padding-top: max(26vh, 210px);
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.6rem 1.25rem;
  max-width: var(--max-content-width);
  width: 100%;
  /* 座落在下顎與胸口交界處，加上柔和暗底保護文字識別 */
  background: radial-gradient(ellipse at 50% 50%, rgba(5, 4, 8, 0.8) 0%, rgba(5, 4, 8, 0.35) 65%, transparent 90%);
  border-radius: 20px;
}

.logo-wrapper {
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.4rem;
  padding: 0.25rem 0.75rem;
}

.profile-logo {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(230, 57, 70, 0.75)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9));
}

.logo-paths path {
  fill: #06050a;
  stroke: #e63946;
  stroke-width: 4.5px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.profile-bio {
  font-size: 0.88rem;
  color: var(--text-sub);
  max-width: 420px;
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* ===================================================
   Main Content Layout
   =================================================== */
.main-container {
  width: 100%;
  max-width: var(--max-content-width);
  padding: 0.5rem 1.2rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===================================================
   雙欄緊湊網格 + 超透光玻璃
   =================================================== */
.links-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.link-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--trans-speed) var(--trans-ease), background var(--trans-speed) var(--trans-ease), border-color var(--trans-speed) var(--trans-ease), box-shadow var(--trans-speed) var(--trans-ease);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.link-card:active {
  transform: translateY(0);
}

/* 縮圖方塊 */
.thumb-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--trans-speed) var(--trans-ease), border-color var(--trans-speed) var(--trans-ease);
}

.brand-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--trans-speed) var(--trans-ease);
}

/* 品牌配色 */
.icon-spotify .brand-icon { color: #1db954; }

.icon-applemusic .brand-icon { color: #fa243c; }

.icon-bandcamp .brand-icon { color: #629aa9; }

.icon-youtube .brand-icon { color: #ff0000; }

.icon-soundcloud .brand-icon { color: #ff5500; }

.icon-x .brand-icon { color: #ffffff; }

.icon-kofi .brand-icon { color: #ff5e5b; }

/* 文字區域 (隱藏副標題以維持超緊湊佈局) */
.link-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.link-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-highlight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  font-size: 0.95rem;
  color: #a9a7b8;
  transition: transform var(--trans-speed) var(--trans-ease), color var(--trans-speed) var(--trans-ease);
  flex-shrink: 0;
}

.icon-youtube .link-arrow,
.icon-soundcloud .link-arrow {
  font-size: 0.78rem;
  opacity: 0.85;
}

/* Ko-fi：橫跨雙欄全寬壓軸 (保留副標題) */
.highlight-card {
  grid-column: span 2;
  border-color: rgba(230, 57, 70, 0.35);
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.15) 0%, rgba(8, 7, 14, 0.3) 100%);
  padding: 0.85rem 1.1rem;
}

.link-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================================================
   Modals (SoundCloud & YouTube Lightbox)
   =================================================== */
.sc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.sc-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sc-modal-card {
  background: rgba(14, 12, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(230, 57, 70, 0.35);
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(230, 57, 70, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.sc-modal-overlay.active .sc-modal-card {
  transform: translateY(0) scale(1);
}

.sc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  background: rgba(8, 7, 12, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sc-modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-highlight);
  text-align: center;
  width: 100%;
  margin-left: 32px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.sc-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.sc-modal-close:hover {
  background: rgba(230, 57, 70, 0.25);
  border-color: var(--primary-accent);
  color: #ffffff;
}

.sc-modal-body {
  width: 100%;
  overflow-y: auto;
  min-height: 0;
  line-height: 0;
  background: #08070c;
}

.sc-modal-body iframe {
  border: 0;
  display: block;
}

.sc-modal-footer {
  padding: 1rem 1.25rem;
  background: rgba(8, 7, 12, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
}

.sc-external-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #ff5500, #cc4400);
  color: #ffffff;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 15px rgba(255, 85, 0, 0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.sc-external-btn:hover {
  background: linear-gradient(135deg, #ff6a1a, #e64d00);
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.5);
  transform: translateY(-1px);
}

.sc-external-btn--yt {
  background: linear-gradient(135deg, #e63946, #b3001b);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.35);
}

.sc-external-btn--yt:hover {
  background: linear-gradient(135deg, #ee4a56, #c4001f);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.sc-btn-icon {
  width: 20px;
  height: 20px;
}

/* YouTube Video 內嵌容器 (16:9) */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================================================
   Footer
   =================================================== */
.footer {
  margin-top: auto;
  padding: 1.25rem 1rem max(1rem, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.76rem;
  color: #a09eae;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.footer-mail {
  color: #c2c0ce;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
  transition: color var(--trans-speed) var(--trans-ease), border-color var(--trans-speed) var(--trans-ease), text-shadow var(--trans-speed) var(--trans-ease);
}

.footer-mail:hover {
  color: var(--primary-accent);
  border-bottom-color: var(--primary-accent);
  text-shadow: 0 0 8px var(--primary-accent-glow);
}

/* ===================================================
   RWD
   =================================================== */
@media (max-width: 480px) {
  .hero-section {
    /* 手機窄螢幕狼頭比例偏大，下移 28vh (約 220px) 確保五官徹底露頭 */
    padding-top: max(28vh, 220px);
  }
  
  .logo-wrapper {
    max-width: 270px;
  }
  
  .logo-paths path {
    stroke-width: 3.5px;
  }

  .profile-bio {
    font-size: 0.82rem;
  }

  .links-section {
    gap: 0.6rem;
  }

  .link-card {
    padding: 0.7rem 0.75rem;
    gap: 0.5rem;
  }

  .thumb-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  
  .brand-icon {
    width: 17px;
    height: 17px;
  }

  .link-title {
    font-size: 0.82rem;
  }
}

/* Narrow phones (~360px): keep both columns inside the viewport */
@media (max-width: 400px) {
  .main-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .links-section {
    gap: 0.5rem;
  }

  .link-card {
    padding: 0.7rem 0.6rem;
    gap: 0.4rem;
  }

  .thumb-box {
    width: 30px;
    height: 30px;
  }

  .link-title {
    font-size: 0.78rem;
  }

  .link-arrow {
    font-size: 0.8rem;
  }

  .highlight-card {
    padding: 0.8rem 0.8rem;
  }
}

@media (max-width: 340px) {
  .link-card:not(.highlight-card) .link-arrow {
    display: none;
  }
}

@media (hover: hover) {
  .link-card:hover {
    transform: translateY(-2px);
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px var(--primary-accent-glow);
  }
  .icon-spotify:hover .thumb-box { background: rgba(29, 185, 84, 0.2); border-color: rgba(29, 185, 84, 0.5); }
  .icon-spotify:hover { border-color: rgba(29, 185, 84, 0.5); }
  .icon-applemusic:hover .thumb-box { background: rgba(250, 36, 60, 0.2); border-color: rgba(250, 36, 60, 0.5); }
  .icon-applemusic:hover { border-color: rgba(250, 36, 60, 0.5); }
  .icon-bandcamp:hover .thumb-box { background: rgba(98, 154, 169, 0.2); border-color: rgba(98, 154, 169, 0.5); }
  .icon-bandcamp:hover { border-color: rgba(98, 154, 169, 0.5); }
  .icon-youtube:hover .thumb-box { background: rgba(255, 0, 0, 0.2); border-color: rgba(255, 0, 0, 0.5); }
  .icon-youtube:hover { border-color: rgba(255, 0, 0, 0.5); }
  .icon-soundcloud:hover .thumb-box { background: rgba(255, 85, 0, 0.2); border-color: rgba(255, 85, 0, 0.5); }
  .icon-soundcloud:hover { border-color: rgba(255, 85, 0, 0.5); }
  .icon-x:hover .thumb-box { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); }
  .icon-x:hover { border-color: rgba(255, 255, 255, 0.5); }
  .icon-kofi:hover .thumb-box { background: rgba(255, 94, 91, 0.2); border-color: rgba(255, 94, 91, 0.5); }
  .icon-kofi:hover { border-color: rgba(255, 94, 91, 0.5); }
  .link-card:hover .brand-icon {
    transform: scale(1.08);
  }
  .link-card:hover .link-arrow {
    color: var(--primary-accent);
    transform: translate(2px, -2px);
  }
}

/* ===================================================
   Share button & toast
   =================================================== */
.share-btn {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background: rgba(8, 7, 14, 0.45);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background var(--trans-speed) var(--trans-ease), border-color var(--trans-speed) var(--trans-ease), transform var(--trans-speed) var(--trans-ease);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-btn:active {
  transform: scale(0.94);
}

@media (hover: hover) {
  .share-btn:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 1000;
  transform: translate(-50%, 12px);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(14, 12, 20, 0.95);
  border: 1px solid rgba(230, 57, 70, 0.45);
  color: var(--text-highlight);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--trans-ease), transform 0.25s var(--trans-ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===================================================
   Accessibility
   =================================================== */
:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }

  /* No motion: show the finished state statically */
  .eye-glow.ready {
    opacity: 0.7;
  }

  .full-moon .eye-glow.ready {
    opacity: 0.95;
  }

  .link-card:hover,
  .link-card:active,
  .sc-external-btn:hover {
    transform: none;
  }
}

/* ===================================================
   Animations: logo ignite & wolf eye breathing
   =================================================== */
.logo-paths path {
  animation: ignite 0.9s ease-out both;
}

/* Reading order A E G I S U L F (DOM order is G U A E S I L F) */
.logo-paths path:nth-child(3) { animation-delay: 0.10s; } /* A */
.logo-paths path:nth-child(4) { animation-delay: 0.22s; } /* E */
.logo-paths path:nth-child(1) { animation-delay: 0.34s; } /* G */
.logo-paths path:nth-child(6) { animation-delay: 0.46s; } /* I */
.logo-paths path:nth-child(5) { animation-delay: 0.58s; } /* S */
.logo-paths path:nth-child(2) { animation-delay: 0.70s; } /* U */
.logo-paths path:nth-child(7) { animation-delay: 0.82s; } /* L */
.logo-paths path:nth-child(8) { animation-delay: 0.94s; } /* F */

@keyframes ignite {
  0%   { opacity: 0; stroke: #3a0d12; }
  15%  { opacity: 0.9; stroke: #ff6b75; }
  28%  { opacity: 0.25; stroke: #5a141b; }
  45%  { opacity: 1; stroke: #ff5560; }
  60%  { opacity: 0.6; stroke: #9c2530; }
  100% { opacity: 1; stroke: #e63946; }
}

.profile-logo {
  animation: logo-glow 1.2s ease-out 0.5s both;
}

@keyframes logo-glow {
  from { filter: drop-shadow(0 0 0 rgba(230, 57, 70, 0)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9)); }
  to   { filter: drop-shadow(0 0 12px rgba(230, 57, 70, 0.75)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9)); }
}

/* Position/size are set by JS (--s = image scale) */
.eye-glow {
  position: absolute;
  z-index: -1;
  --s: 0.5;
  width: calc(var(--s) * 130px);
  height: calc(var(--s) * 130px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 110, 110, 0.95) 0%,
    rgba(255, 35, 50, 0.6) 16%,
    rgba(230, 20, 40, 0.24) 38%,
    transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
}

.eye-glow.ready {
  animation: eye-breathe 3.6s ease-in-out infinite;
}

@keyframes eye-breathe {
  0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.8); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.2); }
}

/* ===================================================
   Language toggle, featured release, footer links
   =================================================== */
.lang-btn {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  z-index: 10;
  height: 40px;
  padding: 0 0.95rem;
  border-radius: var(--radius-full);
  font: 600 0.8rem/1 'Inter', sans-serif;
  letter-spacing: 0.04em;
  color: var(--text-main);
  background: rgba(8, 7, 14, 0.45);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background var(--trans-speed) var(--trans-ease), border-color var(--trans-speed) var(--trans-ease);
}

@media (hover: hover) {
  .lang-btn:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
  }
}

.featured-card {
  grid-column: span 2;
  min-width: 0;
  padding: 0.4rem 0.55rem 0.55rem;
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform var(--trans-speed) var(--trans-ease), background var(--trans-speed) var(--trans-ease), border-color var(--trans-speed) var(--trans-ease);
}

.featured-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.1rem 0.35rem;
}

.featured-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.featured-all {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--trans-speed) var(--trans-ease);
}

.featured-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.featured-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

.featured-label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-accent);
  font-weight: 700;
}

.featured-status {
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(230, 57, 70, 0.5);
  background: rgba(230, 57, 70, 0.18);
  white-space: nowrap;
}

@media (hover: hover) {
  .featured-all:hover {
    color: var(--primary-accent);
  }

  .featured-card:hover {
    transform: translateY(-2px);
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
  }
}

@media (max-width: 400px) {
  .featured-main {
    gap: 0.55rem;
  }

  .featured-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

.footer-nav {
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
}

.footer-credit {
  margin-bottom: 0.3rem;
}

.footer-nav a,
.footer-credit a {
  color: #c2c0ce;
  text-decoration: none;
}

@media (hover: hover) {
  .footer-nav a:hover,
  .footer-credit a:hover {
    color: var(--primary-accent);
  }
}

/* Short viewports: tighten vertical spacing so everything stays on one screen */
@media (max-height: 800px) {
  .hero-section {
    padding-top: max(22vh, 165px);
    padding-bottom: 0.6rem;
  }

  .main-container {
    padding-top: 0.25rem;
  }

  .links-section {
    gap: 0.6rem;
  }

  .link-card {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .highlight-card {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .featured-card {
    padding-top: 0.3rem;
    padding-bottom: 0.45rem;
  }

  .featured-top {
    padding-bottom: 0.25rem;
  }

  .footer {
    padding-top: 0.9rem;
  }

  .footer-credit {
    margin-bottom: 0.15rem;
  }
}

/* ===================================================
   Moon phase (footer) & full-moon eye
   =================================================== */
.moon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.45rem;
  vertical-align: -2px;
}

.moon svg {
  display: block;
}

/* around full moon the eye burns brighter and breathes faster */
.full-moon .eye-glow.ready {
  animation: eye-breathe-full 2.6s ease-in-out infinite;
}

@keyframes eye-breathe-full {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.95); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.55); }
}
