/* ════════════════════════════════════════════════════════════════════════════
   DREAMCRAFT
   ────────────────────────────────────────────────────────────────────────────
   The site reads like a chronicle made visible. Vintage paper background,
   pixel-display font for marks and titles, serif body for long prose.
   Aura speaks in dark purple italic — same voice convention as in-game.

   Aesthetic decisions:
   - Single dominant color: dark purple (#3a234a → #5d3c79) for Aura accents
   - Off-black ink for body text on aged paper
   - Display font: Jersey 15 (kept from original — establishes pixel-modded feel)
   - Body font: Crimson Text — serif, readable, sits naturally on paper texture
   - Section labels are small caps, letter-spaced — like chapter glyphs in a
     printed book
   - Generous vertical rhythm; sections are pages, not panels
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Colors ──────────────────────────────────────────────────────────── */
  --ink:           #1f1810;        /* primary text — almost black, warm */
  --ink-soft:      #4a3d2c;        /* secondary text */
  --ink-faded:    rgba(31, 24, 16, 0.55);  /* dates, meta */
  --paper-shade:   rgba(31, 24, 16, 0.08);
  --paper-line:    rgba(31, 24, 16, 0.18);
  --aura-deep:     #3a234a;        /* Aura voice — deep purple */
  --aura-mid:      #5d3c79;
  --aura-glow:     #8e6cb0;
  --warn:          #8b2c1a;        /* offline / error */
  --good:          #3a5a2e;        /* online */
  --gold:          #8b6d2c;        /* highlight */

  /* ── Typography ──────────────────────────────────────────────────────── */
  --font-display:  'Jersey 15', system-ui, sans-serif;
  --font-body:     'Crimson Text', 'Iowan Old Style', Georgia, serif;

  /* ── Spacing ─────────────────────────────────────────────────────────── */
  --section-pad-y: 5rem;
  --content-max:   72ch;
  --content-wide:  84ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: url(vintage_paper.png);
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  overflow-x: hidden;
}

/* A subtle grain overlay on top of the paper, so even sections without
   imagery feel like part of the same physical surface. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(31, 24, 16, 0.04) 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(31, 24, 16, 0.03) 1px, transparent 2px);
  background-size: 7px 7px, 11px 11px;
  mix-blend-mode: multiply;
}

/* ─── NAV BAR ──────────────────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.85rem 2rem;
  background: rgba(28, 22, 16, 0.92);
  border-bottom: 1px solid var(--aura-deep);
  backdrop-filter: blur(4px);
}

.nav-link {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #d8cdb8;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s ease;
  position: relative;
  padding: 0.15rem 0;
}

.nav-link:hover {
  color: var(--aura-glow);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--aura-glow);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-home { color: var(--aura-glow); }

.nav-cta {
  color: var(--ink);
  background: #d8cdb8;
  padding: 0.3rem 1rem;
  margin-left: 0.5rem;
}

.nav-cta:hover { background: var(--aura-glow); color: var(--ink); }

/* ─── SECTIONS ─────────────────────────────────────────────────────────── */

.section {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--section-pad-y) 2rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--aura-deep);
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 2.4rem;
}

.section-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--aura-deep);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.section-intro {
  font-style: italic;
  color: var(--ink-soft);
  max-width: var(--content-max);
  margin-bottom: 2.5rem;
}

/* ─── HERO ─────────────────────────────────────────────────────────────── */

.section-welcome {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-mark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  letter-spacing: 0.18em;
  color: var(--ink);
  text-shadow:
    1px 1px 0 rgba(58, 35, 74, 0.15),
    2px 2px 12px rgba(58, 35, 74, 0.08);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.hero-line {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--aura-deep);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}

.hero-body {
  max-width: var(--content-max);
  margin: 0 auto 3rem;
  text-align: left;
}

.hero-body p {
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.hero-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  float: left;
  line-height: 0.85;
  padding: 0.25rem 0.6rem 0 0;
  color: var(--aura-deep);
}

/* ─── MC STATUS BLOCK ──────────────────────────────────────────────────── */

.mc-status {
  display: inline-block;
  background: rgba(28, 22, 16, 0.94);
  color: #d8cdb8;
  padding: 1.2rem 2rem;
  margin-top: 1rem;
  border: 1px solid var(--aura-deep);
  text-align: left;
  min-width: 280px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.mc-status-label {
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  color: var(--aura-glow);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.mc-status-body {
  line-height: 1.5;
}

.mc-online  { color: #6fdc6f; font-weight: bold; }
.mc-offline { color: #ff7c7c; font-weight: bold; }
.mc-error   { color: #d4b06a; }

.mc-motd {
  margin: 0.6rem 0;
  font-size: 1rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--aura-mid);
}

.mc-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.95rem;
  color: #b5a98e;
  margin-top: 0.4rem;
}
.mc-detail strong { color: var(--aura-glow); font-weight: normal; margin-right: 0.3rem; }

/* ─── GALLERY ──────────────────────────────────────────────────────────── */

.section-gallery {
  padding-top: 2rem;
}

.gallery {
  position: relative;
  max-width: 900px;
  margin: 1.5rem auto 0;
  background: rgba(28, 22, 16, 0.88);
  padding: 1rem;
  border: 1px solid var(--aura-deep);
  box-shadow: 0 8px 32px rgba(31, 24, 16, 0.3);
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(28, 22, 16, 0.7);
  color: var(--aura-glow);
  border: 1px solid var(--aura-deep);
  font-size: 1.4rem;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  z-index: 2;
  transition: all 0.15s ease;
}
.nav-arrow:hover { background: var(--aura-deep); color: #fff; }
.nav-arrow.prev { left: 1.5rem; }
.nav-arrow.next { right: 1.5rem; }

.dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(216, 205, 184, 0.4);
  cursor: pointer;
  transition: all 0.15s ease;
}
.dot.active { background: var(--aura-glow); transform: scale(1.3); }

/* ─── NEWS ─────────────────────────────────────────────────────────────── */

.section-news { max-width: var(--content-max); }

.news-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.news-entry {
  position: relative;
  padding: 1.5rem 1.8rem 1.5rem 2.2rem;
  background: rgba(255, 251, 240, 0.45);
  border-left: 3px solid var(--ink-soft);
}

.news-date {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 0.5rem;
}

.news-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
}

.news-body {
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.65;
}

/* Aura's voice — italic, deep purple, attribution in small caps. */
.news-entry-aura {
  border-left-color: var(--aura-deep);
  background: rgba(58, 35, 74, 0.05);
}

.news-entry-aura .news-body {
  font-style: italic;
  color: var(--aura-deep);
}

.news-entry-aura .news-title { color: var(--aura-deep); }

.news-attribution {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--aura-mid);
}

.news-empty {
  text-align: center;
  font-style: italic;
  color: var(--ink-faded);
  padding: 2rem;
}

/* ─── VIDEOS ───────────────────────────────────────────────────────────── */

.section-videos { max-width: 1000px; }

.video-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 2rem;
}

.video-entry {
  background: rgba(28, 22, 16, 0.06);
  padding: 1.8rem;
  border: 1px solid var(--paper-line);
}

.video-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.video-date {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ink);
  flex: 1;
}

.video-entry video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  background: #000;
  border: 1px solid var(--ink-soft);
}

.video-description {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--ink);
  font-style: italic;
}

.video-download {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--aura-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--aura-deep);
  padding-bottom: 1px;
}
.video-download:hover { color: var(--aura-mid); border-bottom-color: var(--aura-mid); }

.video-empty {
  text-align: center;
  font-style: italic;
  color: var(--ink-faded);
  padding: 2rem;
}

/* ─── CHRONICLE ────────────────────────────────────────────────────────── */

.section-chronicle { max-width: var(--content-max); }

.chronicle-empty {
  text-align: center;
  font-style: italic;
  color: var(--aura-deep);
  font-size: 1.3rem;
  padding: 3rem 1rem;
  line-height: 1.8;
}

.chronicle-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.chronicle-era-heading {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--aura-deep);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--aura-deep);
}

.chronicle-entries {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.chronicle-entry {
  padding: 1.2rem 1.4rem;
  background: rgba(255, 251, 240, 0.4);
  border-left: 2px solid var(--aura-mid);
}

.chronicle-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chronicle-category {
  color: var(--aura-deep);
  padding: 0.1rem 0.5rem;
  background: rgba(58, 35, 74, 0.1);
  border: 1px solid var(--aura-mid);
}

.chronicle-date { color: var(--ink-faded); }

.chronicle-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.chronicle-body {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ─── JOIN ─────────────────────────────────────────────────────────────── */

.section-join { max-width: var(--content-max); padding-bottom: 6rem; }

.join-steps {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 2rem;
}

.join-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 251, 240, 0.4);
  border: 1px solid var(--paper-line);
}

.join-step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--aura-deep);
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
}

.join-step-text { flex: 1; }

.join-step-text strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  display: block;
  margin-bottom: 0.4rem;
}

.join-step-text a {
  color: var(--aura-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--aura-deep);
}
.join-step-text a:hover { color: var(--aura-mid); }

.server-ip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  background: rgba(28, 22, 16, 0.92);
  color: #d8cdb8;
  padding: 0.2rem 0.7rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--aura-deep);
}

.join-step-note {
  display: block;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

/* ─── FOOTER ───────────────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2rem 4rem;
  border-top: 1px solid var(--paper-line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer a { color: var(--aura-deep); text-decoration: none; border-bottom: 1px solid var(--aura-deep); }

.footer-aura {
  margin-top: 1rem;
  font-style: italic;
  color: var(--aura-deep);
  letter-spacing: 0.06em;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .navbar { gap: 1rem; padding: 0.7rem 1rem; flex-wrap: wrap; }
  .nav-link { font-size: 1.15rem; }
  .nav-cta { margin-left: 0; padding: 0.2rem 0.8rem; }

  .section { padding: 3rem 1.2rem; }
  .section-welcome { padding-top: 3.5rem; }

  .hero-mark { font-size: clamp(2.8rem, 13vw, 4.5rem); letter-spacing: 0.1em; }

  .nav-arrow.prev { left: 0.4rem; }
  .nav-arrow.next { right: 0.4rem; }

  .video-meta { flex-direction: column; gap: 0.3rem; }

  .join-step { flex-direction: column; gap: 0.6rem; }
}
