/* The landing page: the launcher's palette (Tools/Launcher/App.axaml) and the game's serif, Alegreya SC (SIL OFL, fonts/OFL.txt). */
@font-face {
  font-family: "Alegreya SC";
  src: url("/fonts/alegreya-sc-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --parchment: #e6dac2;
  --dim: #9a8d7a;
  --gold: #d9ae6a;
  --gold-bright: #f4d398;
  --night: #0f1526;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--night); }
body {
  margin: 0;
  color: var(--parchment);
  font: 18px/1.6 Georgia, "Times New Roman", serif;
  background:
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(106, 44, 126, 0.3), transparent 70%),
    linear-gradient(var(--night), #0f1526 50%, #170c24);
  min-height: 100vh;
}
.lang, footer { font-family: "Alegreya SC", Georgia, serif; font-weight: 700; }

.hero { position: relative; min-height: min(92vh, 56.25vw + 120px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.logo { position: relative; z-index: 1; width: min(720px, 88vw); margin: 0 auto 24px; line-height: 0; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.7)); }
.logo img { display: block; width: 100%; height: auto; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 21, 38, 0.35), transparent 22%, transparent 45%, rgba(15, 21, 38, 0.85) 82%, var(--night));
}

.lang { position: absolute; z-index: 2; top: 16px; right: 20px; display: flex; gap: 14px; font-size: 16px; }
.lang a { color: var(--parchment); opacity: 0.7; text-decoration: none; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.lang a:hover { opacity: 1; color: var(--gold-bright); }
.lang a[aria-current="true"] { opacity: 1; color: var(--gold-bright); }

main { max-width: 1040px; margin: 0 auto; padding: 8px 24px 0; }
.card, .about { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.card p { margin: 0 0 6px; }
.card .gap { margin-top: 22px; }
.card .except { color: var(--gold-bright); font-style: italic; font-size: 1.15em; }
.cta { margin: 34px auto 0; text-align: center; }
.signup {
  display: inline-block;
  padding: 10px 30px;
  color: #1d1408;
  font: 700 20px "Alegreya SC", Georgia, serif;
  text-decoration: none;
  background: linear-gradient(#ffe9b8, #e2ae5c 55%, #b57b35);
  border: 1px solid var(--gold-bright);
  border-radius: 4px;
}
.signup:hover { box-shadow: 0 0 18px rgba(255, 179, 71, 0.45); }
.offline { margin: 0; color: var(--gold-bright); }
.invite { margin: 10px 0 0; color: var(--dim); font-size: 15px; }
.about { margin-top: 32px; margin-bottom: 0; color: var(--dim); font-size: 16px; text-align: center; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0 0; }
.gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(217, 174, 106, 0.35); border-radius: 4px; }

footer { margin-top: 48px; padding: 20px 16px 28px; color: var(--dim); font-size: 14px; text-align: center; border-top: 1px solid rgba(217, 174, 106, 0.18); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { min-height: 78vh; }
  .hero-img { object-position: 45% 30%; }
  .logo { margin-bottom: 16px; }
  main { padding: 4px 16px 0; }
  .gallery { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
}
