/* Wildmere's public page.
 *
 * The palette is the game's own — the warm browns and gold of the interface
 * against the near-black of its sky. A site that looks nothing like the thing
 * it is selling makes the download feel like it came from somewhere else.
 *
 * No framework and no build step. This is three files on a small box, and a
 * toolchain to produce them would be more moving parts than the site has.
 */

:root {
  --ink: #0d0f13;
  --ink-2: #14171d;
  --panel: #1b1f27;
  --line: #2b323e;
  --frame: #3d3125;
  --text: #e8e6e1;
  --dim: #9aa1ad;
  --gold: #d9a441;
  --gold-dim: #a97f2f;
  --ok: #5fb87a;
  --bad: #c9584f;
  --sea: #16323a;
  --radius: 10px;
  --wrap: 1000px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* `hidden` has to beat any `display` a class sets, or an element that has not
   loaded yet still takes up space. The download button set `display:
   inline-block` and rendered as an empty gold pill before the release list
   arrived. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #f0c268; }

code {
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: 0.85em;
  color: var(--dim);
}

.muted { color: var(--dim); }

/* --- masthead ------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 15, 19, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text);
}
.brand span { color: var(--gold); }
.masthead nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 14.5px;
}
.masthead nav a { color: var(--dim); }
.masthead nav a:hover { color: var(--text); }

/* --- hero ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: 92px 0 76px;
  overflow: hidden;
  /* A horizon rather than a photograph: a warm low sun over dark water, which
     is what the game actually looks like at the hour it opens on. */
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(217, 164, 65, 0.20) 0%, transparent 58%),
    radial-gradient(80% 60% at 50% 100%, var(--sea) 0%, transparent 70%),
    linear-gradient(180deg, #0b0d11 0%, #131820 55%, #0d0f13 100%);
}
/* A faint band where the sea would meet the sky. It does more for the mood
   than an illustration would, and it cannot go out of date. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.45), transparent);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-weight: 700;
}

.lede {
  max-width: 56ch;
  margin: 0 0 34px;
  font-size: 17.5px;
  color: #c9cdd5;
}
.lede em { color: var(--text); font-style: normal; font-weight: 600; }

.downloads { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.cta {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #e0ac48, #bf8c2e);
  color: #1a1408;
  font-weight: 700;
  font-size: 15.5px;
  border: 1px solid #f0c268;
  box-shadow: 0 8px 24px rgba(217, 164, 65, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cta:hover {
  color: #1a1408;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(217, 164, 65, 0.3);
}
.cta:active { transform: translateY(1px); box-shadow: none; }

.download-note { margin: 0; font-size: 14px; color: var(--dim); }

.facts {
  display: flex;
  gap: 40px;
  margin: 46px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.facts div { margin: 0; }
.facts dt {
  font-size: 11.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dim);
}
.facts dd {
  margin: 4px 0 0;
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* --- worlds ---------------------------------------------------------- */

section { padding: 68px 0; }
section h2 {
  margin: 0 0 26px;
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.worlds { background: var(--ink-2); border-block: 1px solid var(--line); }

.world-list { display: flex; flex-direction: column; gap: 10px; }
.world {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.world .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bad);
  flex: none;
}
.world.up .dot {
  background: var(--ok);
  /* A quiet pulse. It is the one thing on the page that is genuinely live, so
     it is the one thing that earns motion. */
  box-shadow: 0 0 0 0 rgba(95, 184, 122, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(95, 184, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 184, 122, 0); }
}
.world .name { font-weight: 600; }
.world .region, .world .count { color: var(--dim); font-size: 14px; }
.world .count { margin-left: auto; font-variant-numeric: tabular-nums; }
.world .tag {
  font-size: 11px;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--frame);
  color: var(--gold);
}

/* Respect a reader who has asked for less movement. The pulse is decoration;
   the colour already says the same thing. */
@media (prefers-reduced-motion: reduce) {
  .world.up .dot { animation: none; }
  html { scroll-behavior: auto; }
  .cta { transition: none; }
}

/* --- patch notes ----------------------------------------------------- */

.release {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.release:first-child { border-top: 0; padding-top: 0; }

.release header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.release .version {
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid var(--frame);
  color: var(--gold);
}
.release h3 { margin: 0; font-size: 23px; font-weight: 650; }
.release time { margin-left: auto; color: var(--dim); font-size: 14px; }

.release .summary {
  max-width: 68ch;
  margin: 0 0 22px;
  color: #c4c9d1;
}

.changes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px 34px;
}
.change-group h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.change-group ul { margin: 0; padding-left: 18px; }
.change-group li { margin-bottom: 6px; color: #c9cdd5; }
.change-group li::marker { color: var(--frame); }

/* --- footer ---------------------------------------------------------- */

footer {
  padding: 34px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
footer p { margin: 0 0 6px; }

@media (max-width: 620px) {
  .hero { padding: 60px 0 50px; }
  .facts { gap: 26px; }
  .release time { margin-left: 0; width: 100%; }
}
