/* RIMERS Studios: the studio's brand kit on the web. Ember & Basalt colours, Metamorphous for the
   wordmark (self-hosted, so the site loads nothing from anyone else), warm basalt with a faint
   ember glow at the top, like the studio splash, and the meteors from Run Wild's icon. One dark
   look on purpose: the brand lives on basalt. */

@font-face {
  font-family: "Metamorphous";
  src: url("/fonts/Metamorphous-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #141214;
  --glow: #3a2419;     /* ember worked into basalt, for the glow at the top */
  --basalt: #231f20;
  --panel: #1e1a1d;
  --line: #3a3236;
  --amber: #f2a93b;
  --ember: #e2683c;
  --cream: #f6ebd3;
  --text: #efe7de;
  --muted: #b7aca4;
  --display: "Metamorphous", Georgia, "Times New Roman", serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(140% 70% at 50% 0%, var(--glow) 0%, var(--basalt) 42%, var(--night) 80%) no-repeat, var(--night);
  color: var(--text);
  font: 400 17px/1.6 var(--ui);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand img { width: 40px; height: 40px; }
.brand span { font: 700 18px/1 var(--display); letter-spacing: .14em; color: var(--amber); }
.brand small { font: 400 11px/1 var(--display); letter-spacing: .38em; color: var(--cream); margin-left: 2px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 72px 88px; text-align: center; }
.lockup { display: inline-flex; flex-direction: column; align-items: stretch; gap: 10px; position: relative; z-index: 1; }
.lockup .mark { width: clamp(84px, 18vw, 120px); height: auto; align-self: center; margin-bottom: 18px; }
.lockup .name {
  margin: 0;
  font: 700 clamp(56px, 15vw, 128px)/1 var(--display);
  letter-spacing: .04em;
  color: var(--amber);
  white-space: nowrap;
}
.lockup .rule { height: clamp(3px, .7vw, 6px); background: var(--ember); border-radius: 3px; }
.lockup .word {
  font: 400 clamp(14px, 3.4vw, 28px)/1 var(--display);
  letter-spacing: .42em;
  margin-right: -.42em;
  color: var(--cream);
  text-align: right;
  text-transform: uppercase;
}
.tagline { position: relative; z-index: 1; margin: 34px auto 0; max-width: 34ch; color: var(--muted); font-size: clamp(17px, 2.4vw, 20px); text-wrap: balance; }

/* meteors, like the ones on Run Wild's icon: the head leads, the tail trails up and to the right,
   and each falls from upper right to lower left. `left`/`top` place the head where it appears. */
.sky { position: absolute; inset: 0; pointer-events: none; }
.meteor {
  position: absolute;
  width: clamp(110px, 18vw, 200px);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fff6d8, var(--amber) 15%, rgba(226, 104, 60, .85) 45%, rgba(200, 52, 28, 0));
  transform-origin: 0 50%;
  opacity: 0;
  animation: fall 9s linear infinite;
}
.meteor::after {
  content: "";
  position: absolute;
  left: -3px; top: -3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff6d8;
  box-shadow: 0 0 10px 4px rgba(242, 169, 59, .75);
}
@keyframes fall {
  0%   { opacity: 0; transform: rotate(-28deg) translateX(0); }
  2%   { opacity: 1; }
  10%  { opacity: 1; transform: rotate(-28deg) translateX(-280px); }
  13%  { opacity: 0; transform: rotate(-28deg) translateX(-360px); }
  100% { opacity: 0; transform: rotate(-28deg) translateX(-360px); }
}
.meteor:nth-child(1) { top: 8%;  left: 82%; animation-delay: 0s; }
.meteor:nth-child(2) { top: 24%; left: 62%; animation-delay: 1.6s; width: clamp(80px, 13vw, 150px); }
.meteor:nth-child(3) { top: 4%;  left: 40%; animation-delay: 3.1s; }
.meteor:nth-child(4) { top: 36%; left: 94%; animation-delay: 4.5s; width: clamp(90px, 15vw, 170px); }
.meteor:nth-child(5) { top: 14%; left: 24%; animation-delay: 6.2s; width: clamp(70px, 11vw, 130px); }
.meteor:nth-child(6) { top: 30%; left: 76%; animation-delay: 7.4s; }
@media (prefers-reduced-motion: reduce) { .meteor { display: none; } }

/* ---------- sections ---------- */
section { padding-block: 40px 56px; }
/* headings use the body face: Metamorphous's lowercase u reads as a v ("Rvn"), so it is kept for the wordmark */
h2 { font: 700 clamp(26px, 4vw, 34px)/1.2 var(--ui); color: var(--cream); margin: 0 0 22px; letter-spacing: -.01em; text-wrap: balance; }
.label { font: 700 12px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ember); margin: 0 0 12px; }

.game {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.game img { width: 100%; height: auto; border-radius: 22%; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.game h3 { font: 700 clamp(24px, 3.4vw, 30px)/1.2 var(--ui); margin: 0 0 6px; color: var(--cream); }
.game .meta { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.game p { margin: 0 0 14px; max-width: 62ch; }
.game ul { margin: 0 0 20px; padding-left: 20px; display: grid; gap: 6px; max-width: 62ch; }
.game li::marker { color: var(--amber); }
.pill {
  display: inline-block;
  font: 600 14px/1 var(--ui);
  color: var(--basalt);
  background: var(--amber);
  border-radius: 999px;
  padding: 10px 16px;
}

/* ---------- long text (privacy, support) ---------- */
.doc { padding-block: 24px 64px; }
.doc article { max-width: 68ch; }
.doc h1 { font: 800 clamp(32px, 6vw, 46px)/1.15 var(--ui); letter-spacing: -.02em; color: var(--cream); margin: 18px 0 8px; text-wrap: balance; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: clamp(22px, 3.2vw, 26px); margin: 40px 0 12px; }
.doc h3 { font: 700 18px/1.35 var(--ui); color: var(--cream); margin: 26px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }
.doc li::marker { color: var(--amber); }
.doc .summary { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.doc .summary ul { margin: 8px 0 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc .table { overflow-x: auto; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--cream); font-weight: 600; }
.email { font-weight: 600; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 24px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 24px 36px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .game { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .game img { max-width: 140px; }
  .hero { padding-block: 48px 64px; }
  .nav { gap: 14px; }
}
