/* ==========================================================================
   <ReRolled> guild site
   1. Design tokens (Nocturne design system)
   2. Base elements
   3. Shared components (buttons, tags)
   4. Page sections
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------- 1. Tokens ---------- */
:root {
  --color-bg: #161826;
  --color-page: #101220;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --color-red: #8f3b3b;
  --color-red-light: #c98c8c;

  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;

  --color-accent-100: #f5f4ff;
  --color-accent-200: #e7e5fe;
  --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc;
  --color-accent-500: #968ae0;
  --color-accent-600: #796cbf;
  --color-accent-700: #5d5294;
  --color-accent-800: #423a6a;
  --color-accent-900: #2b2741;

  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;

  --space-1: 2.8px;
  --space-2: 5.6px;
  --space-3: 8.4px;
  --space-4: 11.2px;

  --radius-md: 8px;
  --shadow-sm: 0 0 0 1px #3f424d;

  --pad-x: clamp(16px, 4vw, 48px);
  --section-gap: clamp(48px, 8vw, 88px);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

p { margin: 0; }
img { display: block; max-width: 100%; }
figure { margin: 0; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-400); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

strong { color: var(--color-neutral-100); font-weight: 500; }

/* ---------- 3. Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
  font-family: var(--font-heading); font-weight: 500;
  font-size: 14px; line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn-lg { font-size: 15px; padding: 11px 20px; }

.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }

.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { color: var(--color-text); background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

.tag {
  display: inline-flex; align-items: center;
  font-size: 11px; letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 6px;
}
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

.mono-note {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-neutral-500);
}

/* ---------- 4. Page ---------- */
.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--color-page);
  box-shadow: var(--shadow-sm);
}

.section { padding: 0 var(--pad-x) var(--section-gap); }

.section-head {
  display: flex; align-items: baseline; flex-wrap: wrap;
  justify-content: space-between;
}

/* nav */
.topnav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px clamp(14px, 2.4vw, 28px);
  padding: 14px var(--pad-x);
  position: relative; z-index: 3;
}
.topnav-brand {
  margin-right: auto;
  font-family: var(--font-heading); font-weight: 500;
  font-size: 19px; letter-spacing: -0.01em;
}
.topnav-link { color: var(--color-neutral-300); font-size: 14px; }

/* hero */
@keyframes drift {
  0%   { transform: translate3d(-2%, 0, 0) scale(1.02); opacity: .42; }
  50%  { transform: translate3d(2%, -1%, 0) scale(1.06); opacity: .62; }
  100% { transform: translate3d(-2%, 0, 0) scale(1.02); opacity: .42; }
}

.hero {
  position: relative;
  min-height: clamp(470px, 62vh, 590px);
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
  border-block: 1px solid rgba(233, 233, 237, .08);
  background: #0b0d18;
}
.hero-bg, .hero-vignette, .hero-fade { position: absolute; inset: 0; }
.hero-bg {
  z-index: -4;
  background: url('images/orgrimmar-hero.png') 57% 47% / cover no-repeat;
  filter: saturate(.72) brightness(.72) contrast(1.05);
  transform: scale(1.01);
}
.hero-glow {
  position: absolute;
  z-index: -3;
  inset: -12%;
  background:
    radial-gradient(36% 48% at 77% 28%, rgba(183, 157, 105, .18), transparent 72%),
    radial-gradient(46% 58% at 62% 74%, rgba(100, 79, 153, .18), transparent 74%);
  mix-blend-mode: screen;
  filter: blur(20px);
  animation: drift 30s ease-in-out infinite;
}
.hero-vignette {
  z-index: -2;
  background:
    linear-gradient(90deg,
      rgba(8, 10, 20, .98) 0%,
      rgba(8, 10, 20, .91) 28%,
      rgba(8, 10, 20, .64) 50%,
      rgba(8, 10, 20, .18) 78%,
      rgba(8, 10, 20, .28) 100%),
    radial-gradient(110% 115% at 62% 42%, transparent 38%, rgba(7, 9, 17, .68) 100%);
}
.hero-fade {
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(10, 12, 22, .22) 0%,
    transparent 42%,
    rgba(10, 12, 22, .18) 67%,
    rgba(16, 18, 32, .94) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  padding: clamp(66px, 9vw, 104px) var(--pad-x) clamp(62px, 8vw, 92px);
}
.hero-content {
  width: min(650px, 72%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 11px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: #c4a875;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.hero-eyebrow > span:not(.hero-eyebrow-line) { color: rgba(196, 168, 117, .48); }
.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  margin-right: 3px;
  background: linear-gradient(90deg, #d1b36f, #8d7242);
  box-shadow: 0 0 12px rgba(209, 179, 111, .28);
}

.hero-title {
  width: min(610px, 100%);
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  margin: 0 0 23px;
  line-height: 1;
}
.hero-logo {
  display: block;
  width: min(520px, 88%);
  aspect-ratio: 600 / 128;
  overflow: hidden;
  margin-left: -3.2%;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .32));
}
.hero-logo img {
  width: 100%;
  height: auto;
  margin-top: -13.5%;
}
.hero-again {
  display: block;
  flex: 0 0 auto;
  width: clamp(92px, 9vw, 118px);
  margin-left: -13px;
  padding-bottom: 1px;
  transform: rotate(-3deg);
  filter: drop-shadow(0 2px 9px rgba(76, 61, 126, .62));
}
.hero-again img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-lede {
  max-width: 540px;
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.38;
  letter-spacing: -.012em;
  color: #f2f0f5;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .65);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions .btn {
  min-height: 46px;
  padding-inline: 21px;
  border-radius: 7px;
  font-size: 14px;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hero-actions .btn:hover { transform: translateY(-1px); }
.hero-actions .btn-primary {
  color: #fff;
  border-color: #9c8cef;
  background: linear-gradient(135deg, #7767c8, #594aa2);
  box-shadow: 0 8px 26px rgba(77, 61, 149, .34), inset 0 1px rgba(255, 255, 255, .14);
}
.hero-actions .btn-primary:hover {
  color: #fff;
  border-color: #b8adf3;
  background: linear-gradient(135deg, #8677d6, #6655b2);
  box-shadow: 0 10px 30px rgba(77, 61, 149, .46), inset 0 1px rgba(255, 255, 255, .18);
}
.hero-actions .btn-secondary {
  color: var(--color-neutral-200);
  border-color: rgba(233, 233, 237, .19);
  background: rgba(10, 12, 22, .52);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(8px);
}
.hero-actions .btn-secondary:hover {
  color: #fff;
  border-color: rgba(233, 233, 237, .34);
  background: rgba(22, 24, 39, .76);
}

/* split layout (side label + main column) */
.split { display: flex; flex-wrap: wrap; gap: clamp(26px, 4vw, 64px); }
.split-side {
  flex: 0 1 300px; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.split-main { flex: 1 1 min(460px, 100%); min-width: 0; }
.side-kicker { color: var(--color-accent); }
.side-mark { width: 40px; height: 2px; background: var(--color-accent); }
.side-note { font-size: 13px; line-height: 1.6; color: var(--color-neutral-500); }

/* manifesto */
.manifesto {
  padding: clamp(48px, 9vw, 96px) var(--pad-x) clamp(44px, 7vw, 80px);
}
.manifesto-body {
  display: flex; flex-direction: column; gap: 28px;
  max-width: 760px;
}
.manifesto-lead {
  font-size: clamp(21px, 2.9vw, 30px); line-height: 1.35; letter-spacing: -0.015em;
  color: var(--color-neutral-100); text-wrap: pretty;
}
.body-text {
  font-size: 17px; line-height: 1.72;
  color: var(--color-neutral-300); text-wrap: pretty;
}
.signoff {
  display: flex; gap: 32px;
  padding-top: 12px; margin-top: 8px;
  border-top: 1px solid var(--color-neutral-900);
}
.signoff-text {
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px; line-height: 1.7;
  color: var(--color-neutral-400);
}

/* roster */
.roster {
  padding: clamp(24px, 3.6vw, 44px) clamp(20px, 3.6vw, 44px) clamp(24px, 3.4vw, 40px);
  border-radius: 12px;
  background: linear-gradient(160deg, #1a1c2c 0%, #141626 60%, #16121c 100%);
  box-shadow: var(--shadow-sm);
}
.roster-head { gap: 10px 24px; margin-bottom: clamp(24px, 3.4vw, 36px); }
.roster-title { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.025em; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 1px;
  background: var(--color-neutral-800);
  border-radius: 8px; overflow: hidden;
  margin-bottom: 36px;
}
.stat {
  background: #151725;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-num {
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(32px, 4vw, 44px); line-height: 1;
  color: var(--color-accent-300);
}
.stat-num--red { color: var(--color-red-light); }
.stat-label { font-size: 13px; color: var(--color-neutral-400); }

.roster-text {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: clamp(20px, 3vw, 44px);
  max-width: 980px;
}
.roster-text p {
  font-size: 16px; line-height: 1.75;
  color: var(--color-neutral-300); text-wrap: pretty;
}

/* launch plan */
.plan {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--color-neutral-900);
  border-radius: 10px; overflow: hidden;
}
.plan-row {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 10px clamp(16px, 2.4vw, 28px);
  padding: clamp(22px, 3vw, 30px) clamp(18px, 3vw, 32px);
  background: #141626;
}
.plan-num { font-family: var(--font-mono); font-size: 13px; color: var(--color-accent-400); }
.plan-num--red { color: var(--color-red-light); }
.plan-body {
  flex: 1 1 min(300px, 100%); min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.plan-body h4 { font-size: clamp(18px, 2.1vw, 21px); }
.plan-body p { font-size: 15px; line-height: 1.65; color: var(--color-neutral-400); }
.plan-when {
  margin-left: auto; text-align: right;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--color-neutral-500);
}

/* screenshots */
.evidence-head { gap: 8px 20px; margin-bottom: 22px; }
.evidence-title { font-size: clamp(24px, 3.1vw, 32px); letter-spacing: -0.02em; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 20px;
}
.shot { display: flex; flex-direction: column; gap: 10px; }
.shot-frame {
  height: clamp(165px, 28vw, 220px);
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--color-neutral-700);
  background: #0f1120;
}
.shot-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) brightness(.92);
}
.shot figcaption { font-size: 11px; color: var(--color-neutral-500); }

/* realm + who */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.info-card {
  padding: clamp(22px, 3.4vw, 36px);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 22px;
}
.info-card h3 { font-size: clamp(22px, 2.7vw, 28px); letter-spacing: -0.02em; }
.info-card p { font-size: 15px; line-height: 1.7; color: var(--color-neutral-300); }
.info-card--realm { background: linear-gradient(150deg, #1c1622 0%, #15161f 70%); }
.info-card--who { background: #15172a; }

.realm-kicker { display: flex; align-items: center; gap: 10px; }
.realm-kicker h6 { color: var(--color-red-light); }
.realm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-red); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.who-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.who-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px; line-height: 1.6;
  color: var(--color-neutral-300);
}
.who-list li::before {
  content: "—";
  position: absolute; left: 0; top: 0.15em;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--color-accent-400);
}

/* CTA */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 88px) var(--pad-x) clamp(60px, 9vw, 96px);
  background: linear-gradient(135deg, #262a60 0%, #1e2150 55%, #241a2c 100%);
}
.cta-glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 60% at 20% 40%, rgba(53,59,128,.85), transparent 70%),
    radial-gradient(35% 50% at 80% 70%, rgba(143,59,59,.35), transparent 70%);
  animation: drift 34s ease-in-out infinite;
}
.cta-inner {
  position: relative;
  display: flex; align-items: flex-end; flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px clamp(24px, 4vw, 48px);
}
.cta-text {
  max-width: 640px; min-width: 0;
  flex: 1 1 min(420px, 100%);
  display: flex; flex-direction: column; gap: 18px;
}
.cta-text h6 { color: var(--color-accent-200); }
.cta-text h2 { font-size: clamp(27px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.03em; }
.cta-text p { font-size: 17px; line-height: 1.7; color: var(--color-accent-200); }

.cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 8px;
  border: 1px solid var(--color-accent-300);
  color: var(--color-accent-100);
  background: rgba(245,244,255,.06);
  font-family: var(--font-heading); font-weight: 500; font-size: 17px;
}
.cta-button:hover {
  color: var(--color-accent-100);
  background: rgba(245,244,255,.14);
  border-color: var(--color-accent-200);
}
.cta-handle {
  padding-left: 4px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--color-accent-300);
}

/* footer */
.footer {
  padding: 28px var(--pad-x) 40px;
  display: flex; align-items: center; flex-wrap: wrap;
  justify-content: space-between; gap: 10px 24px;
  font-size: 13px; color: var(--color-neutral-500);
}

@media (max-width: 760px) {
  .hero {
    min-height: 520px;
    align-items: flex-end;
  }
  .hero-bg {
    background-position: 62% 48%;
    filter: saturate(.68) brightness(.62) contrast(1.06);
  }
  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(8, 10, 20, .9), rgba(8, 10, 20, .38)),
      linear-gradient(180deg, rgba(8, 10, 20, .28), rgba(8, 10, 20, .96) 86%);
  }
  .hero-inner {
    padding-top: 100px;
    padding-bottom: 48px;
  }
  .hero-content { width: 100%; }
  .hero-eyebrow {
    margin-bottom: 18px;
    font-size: 9px;
    letter-spacing: .15em;
  }
  .hero-eyebrow-line { width: 28px; }
  .hero-title {
    width: min(560px, 100%);
    margin-bottom: 20px;
  }
  .hero-logo { width: min(460px, 87%); }
  .hero-again {
    width: clamp(78px, 21vw, 102px);
    margin-left: -8px;
  }
  .hero-lede {
    max-width: 470px;
    margin-bottom: 22px;
    font-size: clamp(18px, 5vw, 22px);
  }
}

@media (max-width: 460px) {
  .topnav-link { display: none; }
  .hero { min-height: 500px; }
  .hero-title {
    display: block;
    margin-bottom: 16px;
  }
  .hero-logo {
    width: 100%;
    max-width: 390px;
    margin-left: -5%;
  }
  .hero-again {
    display: block;
    width: max-content;
    margin: -4px 0 0 auto;
    padding-right: 5%;
  }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 150px; }
}

/* respect users who turn off animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow, .cta-glow { animation: none; }
}
