*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-bg: #08111e;
  --color-gold: #d4c498;
  --color-white: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.78);
  --max-width: 1200px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--color-white);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

@media (min-width: 768px) {
  .page {
    padding:
      max(1.5rem, env(safe-area-inset-top))
      max(1.5rem, env(safe-area-inset-right))
      max(3rem, env(safe-area-inset-bottom))
      max(1.5rem, env(safe-area-inset-left));
  }
}

.site-header {
  text-align: center;
  margin-bottom: 2rem;
}

.banner {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
}

.intro {
  margin-bottom: 2rem;
  text-align: center;
}

.intro h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-gold);
}

.intro p {
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  color: var(--color-muted);
}

.pdf-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-bg);
  background-color: var(--color-gold);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.pdf-button:hover,
.pdf-button:focus-visible {
  opacity: 0.9;
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.pdf-button-secondary {
  background-color: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.pdf-button-secondary:hover,
.pdf-button-secondary:focus-visible {
  background-color: rgba(212, 196, 152, 0.1);
}

.pdf-viewer-section {
  margin-top: 0.5rem;
}

.pdf-viewer-section h2 {
  display: none;
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gold);
}

.pdf-viewer {
  display: none;
  width: 100%;
  height: 1000px;
  min-height: 500px;
  border: 1px solid rgba(212, 196, 152, 0.3);
  border-radius: 0.375rem;
  background-color: rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .pdf-viewer {
    display: block;
  }

  .pdf-viewer-section h2 {
    display: block;
  }
}

.mobile-hint {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .mobile-hint {
    display: none;
  }
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 196, 152, 0.2);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.site-footer a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-white);
}
