:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --paper-soft: #f3efe7;
  --ink: #1d2530;
  --muted: #6c6255;
  --line: rgba(29, 37, 48, 0.12);
  --accent: #245f7a;
  --shadow: 0 24px 70px rgba(29, 37, 48, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.95), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 58%, var(--paper-soft) 100%);
}

body.modal-open {
  overflow: hidden;
}

button {
  font: inherit;
}

.page {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.25rem);
}

.anthem-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(29, 37, 48, 0.08);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.anthem-button:hover,
.anthem-button:focus-visible {
  border-color: rgba(36, 95, 122, 0.34);
  outline: none;
  color: var(--accent);
}

.poster-button {
  display: grid;
  width: min(100%, 54rem);
  max-height: calc(100svh - 3rem);
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.poster {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 3rem);
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(29, 37, 48, 0.12));
}

.poster-button:focus-visible {
  outline: 3px solid rgba(36, 95, 122, 0.45);
  outline-offset: 0.35rem;
  border-radius: 1rem;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(18, 22, 28, 0.42);
  backdrop-filter: blur(9px);
}

.modal-shell[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(100%, 34rem);
  max-height: min(42rem, calc(100svh - 2rem));
  overflow: auto;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.75rem;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.modal-close span {
  display: block;
  transform: translateY(-0.08rem);
  font-size: 1.65rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--line);
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.modal-kicker {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
}

.modal h2 {
  margin: 1.3rem 0 0.8rem;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.anthem-copy {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  font-size: clamp(1.05rem, 3.8vw, 1.28rem);
  line-height: 1.48;
}

.anthem-copy p {
  margin: 0;
}

@media (max-width: 520px) {
  .page {
    padding: 3.75rem 0.6rem 1rem;
  }

  .anthem-button {
    top: 0.75rem;
    right: 0.75rem;
  }

  .poster-button,
  .poster {
    max-height: calc(100svh - 4.75rem);
  }

  .modal {
    border-radius: 0.65rem;
  }
}
