/* RareSloth landing — palette lifted from Furdemption's lava and rock tiles. */
:root {
  --lava: #e9891c;
  --lava-bright: #f5b041;
  --lava-deep: #b8381f;
  --rock: #3b2a33;
  --rock-deep: #2a1d25;
  --rock-light: #5c4a54;
  --stone: #9a9298;
  --bone: #f5ebdd;
  --bone-dim: #d8ccbc;
  --crown: #f2b233;
  --ice: #5a9ae0;

  --display: "Pirata One", "Times New Roman", serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 40px);
  --rim: 0 0 0 3px var(--lava-deep), 0 10px 0 var(--lava-deep);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--bone);
  background: var(--rock-deep);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lava-bright); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--crown); }
:focus-visible { outline: 3px solid var(--crown); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lava-bright);
  margin-bottom: 0.75rem;
}

/* ---------- Lava field ---------- */
.lava {
  position: relative;
  isolation: isolate;
  background-color: var(--lava);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 226, 150, 0.35) 0 6px, transparent 7px),
    radial-gradient(circle at 70% 60%, rgba(255, 226, 150, 0.28) 0 5px, transparent 6px),
    radial-gradient(circle at 45% 80%, rgba(255, 226, 150, 0.22) 0 4px, transparent 5px),
    radial-gradient(circle at 85% 15%, rgba(255, 226, 150, 0.22) 0 4px, transparent 5px),
    repeating-linear-gradient(45deg, rgba(184, 56, 31, 0.14) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(-45deg, rgba(184, 56, 31, 0.14) 0 2px, transparent 2px 46px);
  background-size: 260px 260px, 320px 320px, 280px 280px, 300px 300px, auto, auto;
  color: var(--rock-deep);
}
.lava::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 210, 120, 0.35), transparent 60%);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { from { opacity: 0.6; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lava::after { animation: none; } }

/* Rock slab: the game's ground tile, complete with its molten rim. */
.slab {
  background: var(--rock);
  color: var(--bone);
  border-radius: 14px;
  box-shadow: var(--rim);
  padding: clamp(24px, 4vw, 48px);
}

/* ---------- Header ---------- */
.site-head {
  background: var(--rock-deep);
  border-bottom: 3px solid var(--lava-deep);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bone);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.5rem;
}
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; gap: clamp(0.9rem, 2.5vw, 1.75rem); flex-wrap: wrap; }
.site-nav a { color: var(--bone-dim); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.site-nav a:hover { color: var(--crown); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.hero-slab { display: grid; gap: 1.25rem; }
.hero-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-title img { width: clamp(64px, 9vw, 96px); border-radius: 22%; box-shadow: 0 6px 0 var(--rock-deep); }
.hero-title h1 { margin: 0; }
.hero-title .sub { font-family: var(--display); font-size: clamp(1.2rem, 2.5vw, 1.7rem); color: var(--lava-bright); display: block; }
.lede { font-size: 1.2rem; max-width: var(--measure); color: var(--bone); }
.returning {
  border-left: 4px solid var(--crown);
  padding: 0.5rem 0 0.5rem 1rem;
  color: var(--bone-dim);
  font-size: 0.98rem;
}
.returning strong { color: var(--crown); }
.cta-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.app-store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bone);
  color: var(--rock-deep);
  text-decoration: none;
  font-weight: 800;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 5px 0 var(--lava-deep);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.app-store:hover { color: var(--rock-deep); transform: translateY(2px); box-shadow: 0 3px 0 var(--lava-deep); }
.app-store svg { width: 22px; height: 22px; }
.app-store small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.cta-note { color: var(--bone-dim); font-size: 0.95rem; margin: 0; }

.phone {
  justify-self: center;
  width: min(300px, 70vw);
  aspect-ratio: 886 / 1920;
  border-radius: 36px;
  padding: 10px;
  background: var(--rock-deep);
  box-shadow: 0 0 0 3px var(--rock-light), 0 24px 40px -12px rgba(42, 29, 37, 0.7);
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 112px) 0; }
.section-head { max-width: var(--measure); margin-bottom: clamp(24px, 4vw, 48px); }
.section-head p { color: var(--bone-dim); font-size: 1.1rem; }

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.25rem;
  scrollbar-color: var(--lava-deep) transparent;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  border-radius: 18px;
  box-shadow: 0 0 0 3px var(--rock-light), 0 8px 0 var(--rock-deep);
}
.shots figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bone-dim);
}
.shots figcaption span { color: var(--stone); font-weight: 600; }

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.features li {
  background: var(--rock);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.25rem 1.1rem;
  border-left: 5px solid var(--lava);
}
.features strong { display: block; font-family: var(--display); font-size: 1.4rem; margin-bottom: 0.2rem; }
.features span { color: var(--bone-dim); font-size: 0.98rem; }

.wide-preview video {
  border-radius: 18px;
  box-shadow: var(--rim);
  width: 100%;
}
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: clamp(24px, 4vw, 48px);
}
.quotes blockquote { margin: 0; }
.quotes p { font-family: var(--display); font-size: 1.6rem; line-height: 1.2; color: var(--bone); }
.quotes cite { font-style: normal; color: var(--lava-bright); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Studio ---------- */
.studio .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.studio-mark { width: min(220px, 50vw); }
.games { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.games li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(245, 235, 221, 0.15);
}
.games li span:last-child { color: var(--bone-dim); text-align: right; }
.games li.now { color: var(--crown); }
.games li.now span:last-child { color: var(--crown); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--rock-deep);
  border-top: 3px solid var(--lava-deep);
  padding: 2rem 0;
  color: var(--bone-dim);
  font-size: 0.9rem;
}
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-foot a { color: var(--bone-dim); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 80px) 0; }
.legal .slab { max-width: 76ch; margin-inline: auto; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.legal h2 { font-size: 1.75rem; margin-top: 2.25rem; }
.legal .meta { color: var(--bone-dim); font-size: 0.95rem; margin-bottom: 2rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { order: -1; width: min(240px, 60vw); }
  .studio .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero-title { flex-direction: column; align-items: flex-start; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; }
}
