/* Living World Online — the public site.
 *
 * One stylesheet for every page, so the front page, the guide, the updates
 * and the alpha pages cannot drift apart. The palette is the game's own dark
 * theme: the site is where the game is sold, and it is sold at night.
 */

:root {
  --abyss:   #07090F;
  --deep:    #0C1019;
  --surface: #141924;
  --raised:  #1B2130;
  --line:    #303A4D;

  --text:  #EDF1F7;
  --muted: #9AA6BC;
  --faint: #64708A;

  --gold:    #F2B544;
  --gold-2:  #FFDFA0;
  --cyan:    #3FD0E0;
  --violet:  #9B6BFF;
  --emerald: #3DD68C;
  --rose:    #FF6B9D;
  --crimson: #E5484D;

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A slow drift of light behind everything, so the page is not a flat
   rectangle of near-black. */
body::before {
  content: '';
  position: fixed;
  inset: -30vh -20vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48vw 48vw at 50% -6%, rgba(242,181,68,.15), transparent 62%),
    radial-gradient(42vw 42vw at 88% 30%, rgba(63,208,224,.09), transparent 60%),
    radial-gradient(54vw 54vw at 12% 88%, rgba(155,107,255,.09), transparent 64%);
  animation: drift 38s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-2%, 2.5%, 0) scale(1.07); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse { to { box-shadow: 0 0 0 9px rgba(242,181,68,0); } }
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  * { animation: none !important; transition: none !important; }
}

a { color: var(--cyan); }
a:hover { color: var(--text); }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- header / nav --------------------------------------------------------- */
.top {
  padding: 26px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { height: 32px; width: auto; display: block; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .3em;
  font-size: 14px;
  line-height: 1;
  color: var(--gold);
  text-transform: uppercase;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 4px;
}

nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
nav a.here { color: var(--text); background: rgba(255,255,255,.07); }
nav a.apply {
  color: #1A1204;
  background: linear-gradient(96deg, var(--gold), var(--gold-2));
  font-weight: 700;
  font-family: var(--display);
}
nav a.apply:hover { filter: brightness(1.08); color: #1A1204; }

/* The alpha ribbon: the one thing every page says first. */
.ribbon {
  margin: 18px 0 0;
  padding: 11px 18px;
  border: 1px solid rgba(242,181,68,.38);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(242,181,68,.16), rgba(242,181,68,.05) 40%, rgba(63,208,224,.06));
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text);
}
.ribbon .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.ribbon .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(242,181,68,.6);
  animation: pulse 2.6s ease-out infinite;
}
.ribbon .spacer { flex: 1; }
.ribbon a { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ribbon a:hover { color: var(--gold-2); }

/* ---- type ----------------------------------------------------------------- */
.eyebrow {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0 0 14px;
}
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(25px, 4.2vw, 38px);
  letter-spacing: -.022em;
  margin: 0 0 40px;
  line-height: 1.2;
}
h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -.008em;
}
.lede { font-size: clamp(16px, 2.1vw, 18.5px); color: var(--muted); max-width: 60ch; margin: 0 0 24px; }
.centred { text-align: center; }
.centred .lede { margin-left: auto; margin-right: auto; }

em.glow {
  font-style: normal;
  background: linear-gradient(96deg, var(--gold), var(--gold-2), var(--gold));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

section { padding: 72px 0; border-top: 1px solid var(--line); }
section.tight { padding: 48px 0; }

/* ---- cards ---------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--surface), rgba(20,25,36,.5));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .3s ease, transform .3s ease;
}
.card:hover { border-color: rgba(242,181,68,.3); transform: translateY(-3px); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card p + p { margin-top: 10px; }

.rule { width: 30px; height: 3px; border-radius: 2px; margin-bottom: 18px; }
.r-gold    { background: var(--gold); }
.r-cyan    { background: var(--cyan); }
.r-violet  { background: var(--violet); }
.r-emerald { background: var(--emerald); }
.r-rose    { background: var(--rose); }

/* ---- buttons -------------------------------------------------------------- */
.cta {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  background: linear-gradient(96deg, var(--gold), var(--gold-2));
  color: #1A1204;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 10px 34px rgba(242,181,68,.22);
  transition: filter .2s ease, transform .2s ease;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-2px); color: #1A1204; }
.cta.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.cta.ghost:hover { border-color: var(--muted); color: var(--text); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: 13.5px; color: var(--faint); margin: 14px 0 0; }
.cta-note a { color: var(--muted); }

/* ---- pills ---------------------------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(20,25,36,.6);
}
.pill.on { color: var(--text); border-color: rgba(63,208,224,.4); }

/* ---- footer --------------------------------------------------------------- */
.signoff { border-top: 1px solid var(--line); padding: 56px 0 10px; text-align: center; }
.signoff img { height: 74px; width: auto; opacity: .85; }
footer {
  padding: 20px 0 56px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--cyan); }

@media (max-width: 620px) {
  .top { padding-top: 18px; }
  section { padding: 52px 0; }
  section.tight { padding: 36px 0; }
  .card { padding: 23px; }
  nav a { padding: 7px 10px; font-size: 13px; }
}
