/* css/style.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080b12;
  --bg-card:     #0a1020;
  --border:      #1a3060;
  --border-bright: #3a6ad4;
  --text:        #c0d0f0;
  --text-muted:  #5a7aaa;
  --text-dim:    #4a6a9a;
  --accent:      #6fa3ef;
  --glow:        rgba(60, 120, 255, 0.3);
  --font-serif:  Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-sans:   Arial, Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 48px;
  margin: 48px 0 0;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-bright));
}
.divider-line.rev {
  background: linear-gradient(to left, transparent, var(--border-bright));
}
.divider-icon { color: #3a5a9a; font-size: 18px; }

/* ── Section wrapper ── */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px;
}

/* ── Section label ── */
.section-label {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 48px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(20, 50, 160, 0.35) 0%, transparent 65%);
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 30px var(--glow));
}

.hero-title {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: bold;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 30px rgba(80, 140, 255, 0.4);
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.invite-badge {
  display: inline-block;
  border: 1px solid var(--border);
  background: rgba(10, 20, 40, 0.8);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
}

/* ── Chronicle ── */
.chronicle-body {
  font-size: 16px;
  line-height: 1.9;
  color: #8aabcf;
  font-style: italic;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drop-cap {
  font-size: 52px;
  line-height: 0.8;
  float: left;
  margin-right: 6px;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(80, 140, 255, 0.4);
}

/* ── Council ── */
.council-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.council-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(20, 60, 160, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.council-card:hover {
  border-color: var(--border-bright);
  box-shadow: inset 0 0 20px rgba(20, 60, 160, 0.1),
              0 0 20px rgba(60, 120, 255, 0.15);
}

.council-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1a2a4a;
  border: 2px solid var(--border);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 0 12px rgba(60, 120, 255, 0.2);
}

.council-name {
  font-size: 15px;
  font-weight: bold;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.council-title {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Conquests ── */
.conquests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.conquest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 18px;
  box-shadow: inset 0 0 20px rgba(20, 60, 160, 0.1);
}

.conquest-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.conquest-name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a0c0e8;
  margin-bottom: 8px;
}

.conquest-desc {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid #1a2a4a;
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  color: #2a4a6a;
  font-style: italic;
  background: #060810;
  margin-top: 48px;
}

.footer em { color: #3a5a7a; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .council-grid,
  .conquests-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    letter-spacing: 4px;
  }

  .section {
    padding: 32px 20px;
  }

  .divider {
    padding: 0 20px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .council-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .conquests-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Last conquest card centered when 3 items in 2-col grid */
  .conquest-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.council-card,
.conquest-card {
  animation: fadeUp 0.4s ease both;
}

.council-card:nth-child(1) { animation-delay: 0.05s; }
.council-card:nth-child(2) { animation-delay: 0.10s; }
.council-card:nth-child(3) { animation-delay: 0.15s; }
.council-card:nth-child(4) { animation-delay: 0.20s; }
.council-card:nth-child(5) { animation-delay: 0.25s; }
.council-card:nth-child(6) { animation-delay: 0.30s; }

.conquest-card:nth-child(1) { animation-delay: 0.05s; }
.conquest-card:nth-child(2) { animation-delay: 0.10s; }
.conquest-card:nth-child(3) { animation-delay: 0.15s; }
