:root {
  color-scheme: light dark;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #1c1c1c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.direct-redirect {
  width: min(640px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
}

.direct-redirect p {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: #4a4a4a;
}

.loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.loading-indicator .dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #141e30, #243b55);
  animation: loading-bounce 1.2s infinite ease-in-out;
}

.loading-indicator .dot-2 {
  animation-delay: 0.15s;
}

.loading-indicator .dot-3 {
  animation-delay: 0.3s;
}

@keyframes loading-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.65;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.site-header {
  background: linear-gradient(135deg, #141e30, #243b55);
  color: #ffffff;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.site-title {
  margin: 0;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.open-pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: #141e30;
  background-color: #ffffff;
  box-shadow: 0 6px 18px rgba(20, 30, 48, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.open-pdf-button:hover,
.open-pdf-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 30, 48, 0.25);
}

.open-pdf-button:active {
  transform: translateY(0);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.flipbook-wrapper {
  width: min(100vw, 960px);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.pdf-viewer {
  width: min(100vw, 960px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdf-viewer h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.5vw + 1rem, 1.75rem);
  color: #243b55;
  text-align: center;
}

.pdf-frame {
  width: 100%;
  aspect-ratio: 17 / 11;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(20, 30, 48, 0.12);
  max-height: calc(100vh - 240px);
}

.pdf-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#flipbook {
  width: 100%;
  max-width: 864px;
  aspect-ratio: 800 / 1100;
}

#flipbook .page {
  width: 100%;
  height: 100%;
}

#flipbook img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
  color: #4a4a4a;
}

.loading-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: rgba(245, 245, 245, 0.88);
  backdrop-filter: blur(2px);
  border-radius: 6px;
  color: #243b55;
  font-weight: 600;
  text-align: center;
}

.loading-message span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #56657f;
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
  }

  .open-pdf-button {
    width: 100%;
    max-width: 280px;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }

  #flipbook {
    max-width: 100%;
  }

  .pdf-frame {
    aspect-ratio: 3 / 4;
    max-height: calc(100vh - 220px);
  }
}

