/* =============================================================================
   ASHEN COVENANT - World of Warcraft Guild Template
   Gold / parchment classic guild HQ. Edit :root colours and js/config.js.
   ============================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --bg: #07090e;
  --bg-2: #0c1018;
  --bg-3: #121821;
  --surface: rgba(12, 16, 24, 0.88);
  --text: #f3ead7;
  --text-2: #c4b89a;
  --text-3: #8a7f68;
  --accent: #f0c75e;
  --accent-soft: #d4a84a;
  --accent-hot: #e8a04a;
  --online: #7dcf6a;
  --alliance: #4a8fd4;
  --border: rgba(243, 234, 215, 0.1);
  --border-strong: rgba(240, 199, 94, 0.38);
  --radius: 6px;
  --radius-lg: 12px;
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --header-h: 72px;
  --container: 1140px;
  --parchment-glow: rgba(240, 199, 94, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(240, 199, 94, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(74, 143, 212, 0.05), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #f7d98a;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #1a1408;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* Demo banner - remove when deploying for a real guild */
.demo-banner {
  position: relative;
  z-index: 300;
  background: #0f131c;
  border-bottom: 1px solid var(--border-strong);
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-2);
}

.demo-banner a {
  font-weight: 700;
  margin-left: 0.35rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(7, 9, 14, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
}

.logo strong {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.logo span {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-list {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 0.45rem 0.8rem;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(240, 199, 94, 0.08);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
  }

  .nav {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 9, 14, 0.97);
    padding: 1.25rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    overflow-y: auto;
    z-index: 199;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    padding: 0.9rem 1rem;
    font-size: 1.1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-actions {
    flex-direction: column;
    margin-top: 1rem;
  }

  .nav-actions .btn {
    width: 100%;
    min-height: 44px;
  }
}

body.nav-open {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(180deg, #f5d57a 0%, var(--accent) 45%, var(--accent-soft) 100%);
  color: #1a1408;
  border-color: rgba(255, 240, 200, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.btn--primary:hover {
  background: linear-gradient(180deg, #fbe6a0 0%, #f5d070 50%, #e8b84a 100%);
  color: #1a1408;
  box-shadow: 0 0 28px rgba(240, 199, 94, 0.35);
}

.btn--secondary {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.7rem;
}

.btn--lg {
  padding: 0.95rem 1.5rem;
  font-size: 0.82rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 14, 0.94) 0%, rgba(7, 9, 14, 0.72) 42%, rgba(7, 9, 14, 0.4) 68%, rgba(7, 9, 14, 0.78) 100%),
    linear-gradient(180deg, rgba(7, 9, 14, 0.4) 0%, transparent 35%, rgba(7, 9, 14, 0.92) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--parchment-glow);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin-bottom: 1rem;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.75);
  max-width: 14ch;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 460px;
  margin-bottom: 1.75rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 0 rgba(125, 207, 106, 0.5);
  animation: pulse 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(125, 207, 106, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(125, 207, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(125, 207, 106, 0);
  }
}

/* Guild status panel (side card) */
.guild-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(240, 199, 94, 0.08) inset;
  overflow: hidden;
}

.guild-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  background:
    linear-gradient(90deg, rgba(240, 199, 94, 0.12), transparent 60%),
    rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.guild-panel__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font);
  color: var(--online);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guild-panel__body {
  padding: 1.2rem 1.1rem 1.35rem;
}

.guild-panel__dl {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.guild-panel__dl > div {
  padding: 0.7rem 0.85rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.guild-panel__dl dt {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.25rem;
}

.guild-panel__dl dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.guild-panel__name {
  font-family: var(--display) !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.06em;
  color: var(--accent) !important;
}

.guild-panel__progress {
  margin: 0.35rem 0 1rem;
}

.guild-panel__progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-2);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
}

.guild-panel__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.guild-panel__meta dt {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.2rem;
}

.guild-panel__meta dd {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.faction--alliance {
  color: var(--alliance);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0 2.5rem;
  }

  .hero__bg img {
    object-position: center top;
  }

  .guild-panel {
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--dark {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-header h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  margin-bottom: 0.65rem;
}

.section-header p {
  color: var(--text-2);
  font-size: 1.05rem;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Feature tiles */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.feature-tile {
  padding: 1.35rem 1.25rem;
  background:
    linear-gradient(165deg, rgba(240, 199, 94, 0.06), transparent 40%),
    var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-tile:hover {
  border-color: var(--border-strong);
}

.feature-tile__icon {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.feature-tile h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.feature-tile p {
  font-size: 0.92rem;
  color: var(--text-2);
}

.feature-tile ul {
  margin-top: 0.65rem;
}

.feature-tile li {
  font-size: 0.85rem;
  color: var(--text-3);
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-tile li:last-child {
  border-bottom: none;
}

@media (max-width: 800px) {
  .feature-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .feature-strip {
    grid-template-columns: 1fr;
  }
}

/* Needs / schedule row */
.needs-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.needs-card,
.schedule-card {
  padding: 1.5rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.needs-card h3,
.schedule-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.needs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.need-tag {
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--text-2);
  background: rgba(240, 199, 94, 0.06);
}

.schedule-rows {
  display: grid;
  gap: 0.65rem;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row dt {
  color: var(--text-3);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-row dd {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

@media (max-width: 700px) {
  .needs-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

@media (max-width: 800px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-column: auto;
  }
}

/* Split feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 11;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__copy h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.split__copy p {
  color: var(--text-2);
  margin-bottom: 1rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.5rem;
}

.badge {
  padding: 0.35rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.55), rgba(7, 9, 14, 0.96));
}

.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 auto 0.6rem;
}

.page-hero p {
  color: var(--text-2);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* Rules sections */
.rules-stack {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.rule-section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--accent);
}

.rule-section h2 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
  color: var(--accent);
}

.rule-section p,
.rule-section li {
  color: var(--text-2);
  font-size: 0.95rem;
}

.rule-section ul,
.rule-section ol {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.rule-section li {
  list-style: disc;
  margin: 0.35rem 0;
}

.rule-section ol li {
  list-style: decimal;
}

/* Staff grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.staff-card {
  background:
    linear-gradient(165deg, rgba(240, 199, 94, 0.07), transparent 45%),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s ease;
}

.staff-card:hover {
  border-color: var(--border-strong);
}

.staff-card__avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a2418, #141820);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.staff-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.staff-card__role {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.staff-card__bio {
  font-size: 0.88rem;
  color: var(--text-3);
}

@media (max-width: 800px) {
  .staff-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
}

.cta-band__inner {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 199, 94, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(18, 24, 33, 0.95), var(--bg-2));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.cta-band__inner h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.cta-band__inner p {
  color: var(--text-2);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band__inner .btn-group {
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 3rem 0 1.75rem;
  background: #05070b;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid > div > p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-top: 0.65rem;
  max-width: 300px;
}

.footer-col h3 {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.85rem;
  font-family: var(--font);
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--text-2);
  font-size: 0.9rem;
  margin: 0.4rem 0;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-credit {
  flex: 1 1 100%;
  margin: 0.5rem 0 0;
  text-align: center;
}

.footer-credit a {
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-credit a:hover {
  color: var(--accent);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.25rem 0;
  }

  .page-hero {
    padding: 2.75rem 0 2rem;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Mobile polish */
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    max-width: none;
  }

  .page-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2rem);
  }

  .hero-lead,
  .page-hero p,
  .section-header p {
    font-size: 1rem;
  }

  .guild-panel {
    max-width: 100%;
  }

  .guild-panel__meta {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 0.75rem;
  }

  .guild-panel__meta > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
  }

  .guild-panel__meta dt {
    margin-bottom: 0;
  }

  .btn {
    white-space: normal;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    width: 100%;
  }

  .logo strong {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }

  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .cta-band__inner {
    padding: 2.25rem 1.15rem;
  }

  .rule-section {
    padding: 1.15rem;
  }
}
