:root {
  --navy: #0B1F3A;
  --gold: #C8A24A;
  --bg: #FAF8F3;
  --muted: #5B6779;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--navy);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.logo { width: min(460px, 82vw); height: auto; }
.rule { width: 56px; height: 3px; background: var(--gold); margin: 36px 0 32px; }
.about { max-width: 600px; font-size: 1.15rem; color: var(--muted); }
.footer { padding: 32px 24px 28px; text-align: center; border-top: 1px solid rgba(11,31,58,.1); }
.links { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.links a {
  color: var(--navy);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.links a:hover, .links a:focus-visible { border-color: var(--gold); outline: none; }
.divider { color: var(--gold); }
.copy { margin-top: 18px; font-size: .75rem; color: var(--muted); }

/* gentle entrance */
.hero > * { opacity: 0; transform: translateY(14px); animation: rise .8s ease forwards; }
.hero > :nth-child(2) { animation-delay: .15s; }
.hero > :nth-child(3) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero > * { animation: none; opacity: 1; transform: none; } }

/* Joke popup */
dialog {
  border: none;
  border-radius: 16px;
  padding: 28px 32px 32px;
  max-width: min(420px, 90vw);
  margin: auto;
  background: var(--bg);
  color: var(--navy);
  text-align: center;
  box-shadow: 0 20px 60px rgba(11, 31, 58, .35);
}
dialog::backdrop { background: rgba(11, 31, 58, .55); }
dialog img { width: 220px; max-width: 70%; height: auto; }
dialog h2 { font-size: 1.6rem; margin: 4px 0 8px; }
dialog p { color: var(--muted); margin-bottom: 22px; }
dialog button {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 26px;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
dialog button:hover, dialog button:focus-visible { background: #17345c; outline: 2px solid var(--gold); outline-offset: 2px; }
