/* The public home page (cyphervoid.com): dark violet and gold, art from /app/art.
   Fonts are self-hosted (the CSP allows only same-origin fonts). Works from 360px wide. */
@font-face { font-family: 'Cinzel'; src: url('fonts/cinzel-latin.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('fonts/rubik-latin.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --night: #140c2b;
  --deep: #1b1238;
  --panel: #251852;
  --chip: #3a2670;
  --line: #4a3a7a;
  --text: #efe9ff;
  --soft: #d6cdf5;
  --lilac: #b9a6ff;
  --gold: #f2b134;
  --gold-light: #ffd66b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Rubik', system-ui, sans-serif; color: var(--text); background: var(--night); }
img { max-width: 100%; }
a { color: var(--gold-light); }
a:hover { color: #ffe9a8; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.display { font-family: 'Cinzel', Georgia, serif; font-weight: 900; color: #fff; margin: 0; }
.eyebrow { margin: 0; font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 14px; letter-spacing: 3px; color: var(--gold-light); text-transform: uppercase; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 32px; border-radius: 999px;
  font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 19px; letter-spacing: 1px;
  text-decoration: none; color: #2a1600; background: var(--gold);
  border: 2px solid #ffe08f; box-shadow: 0 0 0 4px rgba(242, 177, 52, 0.25);
}
.btn:hover { color: #2a1600; background: #ffc94d; }
.btn.ghost { background: transparent; color: #fff; border-color: var(--lilac); box-shadow: none; }
.btn.ghost:hover { color: #fff; background: rgba(185, 166, 255, 0.15); }
.btn.small { min-height: 44px; font-size: 15px; padding: 0 20px; }

/* Hero banner: Malakor's Call art on the right, a dark scrim behind the text. */
.banner { background: var(--night) url('/app/art/banners/abyss_call.webp') right center / cover no-repeat; }
.banner-scrim { background: linear-gradient(90deg, var(--night) 0%, rgba(20, 12, 43, 0.92) 38%, rgba(20, 12, 43, 0.15) 70%, rgba(20, 12, 43, 0) 100%); padding: 0 16px 120px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--gold-light); }
.nav-home img { display: block; width: 48px; height: 48px; }
.banner-body { padding-top: 56px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.banner-body .logo { width: 100%; max-width: 520px; height: auto; }
.banner-body h1 { max-width: 560px; font-size: 56px; line-height: 1.05; }
.banner-body .lead { max-width: 500px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.note { margin: 0; font-size: 15px; color: var(--lilac); }

section { padding: 96px 16px; }
.center { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }

/* The roster: six portrait tabs and one panel. */
.roster { background: var(--deep); }
.roster .wrap { display: flex; flex-direction: column; gap: 40px; }
.roster h2 { font-size: 44px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tab {
  width: 104px; height: 104px; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: 20px; border: 3px solid var(--line); background: #26194d; opacity: 0.85;
}
.tab img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tab[aria-selected="true"] { border-color: var(--gold); background: var(--chip); opacity: 1; box-shadow: 0 0 0 4px rgba(242, 177, 52, 0.3); }
.hero-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 40px; }
.hero-panel > img { flex: 1 1 240px; min-width: 0; max-width: min(380px, 100%); height: auto; }
.hero-text { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--chip); color: var(--text); }
.chips .rarity[data-rarity="Mythic"] { color: #ff8fa3; }
.chips .rarity[data-rarity="Legendary"] { color: var(--gold-light); }
.chips .rarity[data-rarity="Epic"] { color: #c9a6ff; }
.hero-text h3 { font-size: 40px; line-height: 1.1; }
.ult { margin: 0; font-size: 14px; letter-spacing: 2px; font-weight: 700; color: var(--gold-light); text-transform: uppercase; }

.arena { padding: 0; background: var(--night) url('/app/art/arena.webp') center / cover no-repeat; }
.arena-scrim { background: rgba(20, 12, 43, 0.55); padding: 140px 16px; }
.arena .center { max-width: 640px; margin: 0 auto; gap: 20px; }
.arena h2 { font-size: 48px; text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6); }
.arena p { margin: 0; font-size: 20px; line-height: 1.55; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }

.guilds .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; }
.card { margin: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--deep); }
.card img { display: block; width: 100%; height: 280px; object-fit: cover; }
.card figcaption { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.card strong { font-family: 'Cinzel', Georgia, serif; font-size: 26px; color: #fff; }
.card span { font-size: 17px; line-height: 1.55; color: var(--soft); }

.join { background: var(--deep); border-top: 1px solid var(--line); }
.join .center { max-width: 720px; margin: 0 auto; gap: 20px; }
.join h2 { font-size: 40px; }

footer { background: #0d0820; padding: 40px 16px; color: var(--lilac); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 720px) {
  .banner { background-position: 70% center; }
  .banner-scrim { background: rgba(20, 12, 43, 0.82); padding-bottom: 72px; }
  .banner-body { padding-top: 24px; }
  .banner-body h1 { font-size: 38px; }
  .nav-links { gap: 18px; }
  section { padding: 64px 16px; }
  .roster h2, .join h2 { font-size: 32px; }
  .arena h2 { font-size: 36px; }
  .arena-scrim { padding: 96px 16px; }
  .tab { width: 76px; height: 76px; border-radius: 16px; }
  .hero-panel { padding: 24px; gap: 24px; }
  .hero-text h3 { font-size: 30px; }
  .card img { height: 200px; }
}
