/* ============================================================
   WAYLIGHT COMMONWEALTH — PUBLIC INFORMATION EDITION (FINAL)
============================================================ */

/* ROOT VARIABLES ------------------------------------------- */
:root {
  --bg: #f3f0e8;               /* grid background (outside frame) */
  --bg-soft: #fdfbf6;          /* clean paper inside the frame */
  --grid-line: rgba(183, 167, 144, 0.28);

  --border: rgba(138, 121, 99, 0.95);
  --border-soft: rgba(183, 167, 144, 0.45);

  --accent: #e0b567;
  --accent-soft: #f7e5c3;
  --accent-deep: #2b5c73;

  --text-main: #2b2b2b;
  --text-muted: #6d6459;

  --frame-inner: rgba(0,0,0,0.10);
  --frame-outer: rgba(0,0,0,0.25);
}

/* RESET ---------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GRID BACKGROUND (OUTSIDE THE FRAME ONLY) ---------------- */
body {
  font-family: "Georgia", serif;
  color: var(--text-main);
  background-color: var(--bg);

  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* MINISTRY POSTER FRAME ------------------------------------ */
.wl-frame {
  max-width: 1300px;
  margin: 40px auto;
  padding-top: 20px;
  padding-bottom: 30px;

  background: var(--bg-soft);   /* CLEAN PAPER INSIDE */
  border: 6px solid var(--frame-outer);
  box-shadow: 0 0 0 3px var(--frame-inner);
}

/* PAGE CONTAINER ------------------------------------------- */
.wl-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 26px;
}

/* HEADER --------------------------------------------------- */
.wl-header {
  background: var(--bg-soft);
  border-bottom: 2px solid var(--border);
  padding: 16px 0;
}

.wl-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wl-site-title {
  font-size: 1.8rem;
  color: var(--accent-deep);
}

.wl-nav a {
  text-decoration: none;
  color: var(--accent-deep);
  margin-left: 20px;
}

.wl-nav a:hover {
  text-decoration: underline;
}

/* HERO (full-width plaque inside frame) -------------------- */
.wl-hero {
  background: var(--bg-soft);

  /* Make hero reach edge-to-edge inside frame */
  margin-left: -26px;
  margin-right: -26px;

  padding: 70px 26px 40px;
  text-align: center;

  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.wl-hero-title {
  font-size: 2.4rem;
  margin-bottom: 12px;
  color: var(--accent-deep);
}

.wl-hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.wl-primary-btn {
  padding: 12px 26px;
  background: var(--accent);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid var(--accent-deep);
  text-decoration: none;
  transition: 0.25s ease;
}

.wl-primary-btn:hover {
  transform: translateY(-2px);
}

/* HERO FADE ----------------------------------------------- */
.wl-hero-fade {
  height: 85px;
  background: linear-gradient(var(--bg-soft), transparent);
}

/* EMBLEM --------------------------------------------------- */
.wl-image-section {
  text-align: center;
  padding: 20px 0 10px;
}

.wl-realm-image {
  max-width: 420px;
  border: 3px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: var(--bg-soft);

  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 0 0 6px rgba(255,255,255,0.85);
}

/* ANTHEM LINK (delayed reveal) ---------------------------- */
.wl-anthem {
  margin-top: 16px;
}

.wl-anthem a {
  text-decoration: none;
  font-style: italic;
  color: var(--accent-deep);
}

.wl-anthem a:hover {
  text-decoration: underline;
}

/* REALMS --------------------------------------------------- */
.wl-realms {
  padding: 40px 0 80px;
}

.wl-section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--accent-deep);
  margin-bottom: 34px;
}

.wl-realm-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.wl-realm-card {
  background: var(--bg-soft);
  border: 2px solid var(--border-soft);
  padding: 24px;
  border-radius: 12px;
  transition: 0.25s ease;
  text-decoration: none;
  color: var(--text-main);
}

.wl-realm-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 6px 18px rgba(224, 181, 103, 0.35);
}

/* FOOTER --------------------------------------------------- */
.wl-footer {
  background: var(--bg-soft);
  border-top: 2px solid var(--border);
  text-align: center;
  padding: 26px 10px;
  margin-top: 70px;
}

.wl-smallprint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ANIMATIONS ---------------------------------------------- */
.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.fade-up-slow {
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
}

.fade-up-slower {
  opacity: 0;
  animation: fadeUp 1.4s ease forwards;
}

.fade-up-discovery {
  opacity: 0;
  animation: fadeUp 1.8s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE ---------------------------------------------- */
@media (max-width: 700px) {
  .wl-hero-title { font-size: 2rem; }
  .wl-realm-image { max-width: 300px; }
}

@media (max-width: 480px) {
  .wl-hero-title { font-size: 1.7rem; }
  .wl-realm-card { padding: 16px; }
}
