:root {
  color-scheme: dark;
  font-size: clamp(16px, 2.8vw, 24px);
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  height: auto;
}

body {
  display: block;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #005b4d;
  color: #fff;
  font-family:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Noto Sans TC", sans-serif;
}

#app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  max-width: none;
  overflow: visible;
}

.hero-image {
  display: block;
  height: auto;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0;
  padding: 0;
  list-style: none;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav li {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.48rem;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link.is-active {
  color: #7a3321;
  background: linear-gradient(180deg, #fdb73d 0%, #f9e850 49.5%, #fcc342 88%);
}

#page-content {
  display: block;
  min-height: 14rem;
}

#page-content img {
  max-width: 100%;
}

#site-footer > footer {
  display: block;
}

noscript {
  display: block;
  padding: 2rem;
  text-align: center;
}

@media (max-width: 640px) {
  .main-nav {
    justify-content: flex-start;
  }

  .nav-link {
    min-height: 2.4rem;
    padding-inline: 0.55rem;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
