/* DeskMoth studio site - one stylesheet for every page.
   Black ground, paper text, amber for actions. Colour beyond that comes
   from the games themselves: each game's section is lit by a blurred copy
   of its own screenshot. Headlines use the system's own display face;
   small labels use JetBrains Mono (the brand font), served from this site. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #070707;
  --panel: #101010;
  --paper: #F5EEE2;
  --muted: #9A9A9A;
  --faint: #6A6A6A;
  --rule:  #1F1F1F;
  --amber: #FFB547;

  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wide: 72rem;
}

* { box-sizing: border-box; }

html { background: var(--black); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--paper);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

p { margin: 0 0 1rem; }
a { color: var(--amber); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1rem;
}

/* ---- buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 0.95rem/1 var(--sans);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--amber); color: #120C02; }
.button.primary:hover { background: #FFC46B; }
.button.ghost { color: var(--paper); border-color: rgba(245, 238, 226, 0.25); }
.button.ghost:hover { border-color: rgba(245, 238, 226, 0.6); }
.button.small { padding: 0.6rem 1rem; font-size: 0.85rem; }
.button .arrow { transition: transform 0.15s; }
.button:hover .arrow { transform: translateX(2px); }

/* ---- the bar across the top of every page ---- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 7, 7, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 5.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font: 700 1.1rem/1 var(--display);
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
  margin-right: auto;
}
.brand img.logo { height: 4.4rem; width: auto; margin: 0.2rem 0 0 -0.5rem; }
footer .brand img.logo { height: 4rem; }
.bar nav { display: flex; gap: 1.75rem; font-size: 0.92rem; }
.bar nav a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--paper); }

/* ---- home: the opening ---- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
/* the lamp light, low behind the headline */
.hero::before {
  content: "";
  position: absolute;
  inset: -10rem auto auto -10rem;
  width: 44rem;
  height: 36rem;
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.09), transparent);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: min(34rem, 80vh);
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.hero h1 {
  font: 800 clamp(2.3rem, 4.4vw, 3.6rem)/1.05 var(--display);
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { font-size: 1.08rem; color: var(--muted); max-width: 30rem; margin-bottom: 2.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* two phones, fanned, each lit by its own game */
.fan {
  position: relative;
  height: 29rem;
}
.fan .phone { position: absolute; top: 50%; width: 12.5rem; }
.fan .phone.back  { left: 52%; transform: translate(-8%, -54%) rotate(8deg); opacity: 0.92; }
.fan .phone.front { left: 8%;  transform: translate(0, -48%) rotate(-5deg); }
.fan::before, .fan::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}
.fan::before { left: 0; top: 18%; background: #16505C; }
.fan::after  { right: -2rem; top: 8%; background: #6B4B3A; }

/* a plain phone shape around a screenshot - no maker's details */
.phone {
  position: relative;
  z-index: 1;
  aspect-ratio: 9 / 19.5;
  border-radius: 2.4rem;
  padding: 0.55rem;
  background: linear-gradient(145deg, #2A2A2A, #0C0C0C 40%, #1A1A1A);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 60px -20px rgba(0, 0, 0, 0.9),
    0 60px 120px -40px rgba(0, 0, 0, 0.8);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.9rem;
}

/* ---- home: the games ---- */

.section { padding: 6rem 0; }
.section-head { margin-bottom: 3rem; }
.section-head h2 {
  font: 800 clamp(1.9rem, 3.4vw, 2.6rem)/1.1 var(--display);
  letter-spacing: -0.03em;
  margin: 0;
}

.feature {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  border: 1px solid var(--rule);
  border-radius: 1.75rem;
  padding: 3.5rem;
  margin-bottom: 1.75rem;
  background: var(--panel);
}
/* the game's own colours, blurred into a light behind it */
.feature::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background: var(--art) center / cover no-repeat;
  filter: blur(80px) saturate(140%);
  opacity: 0.5;
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 7, 7, 0.15), rgba(7, 7, 7, 0.85) 60%);
}
.feature.flip::after { background: linear-gradient(270deg, rgba(7, 7, 7, 0.15), rgba(7, 7, 7, 0.85) 60%); }
.feature.flip .media { order: 2; }
.feature .media { display: flex; justify-content: center; }
.feature .phone { width: 15rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.25rem;
}
.status::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--faint); }
.status.live { color: var(--paper); }
.status.live::before { background: #5BD18B; box-shadow: 0 0 10px #5BD18B; }

.feature h3 {
  font: 800 clamp(2.2rem, 4vw, 2.9rem)/1.05 var(--display);
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
.feature .copy p { color: #C9C4BB; font-size: 1.1rem; max-width: 28rem; }
.platforms {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  max-width: 26rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.platforms li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.platforms li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.platforms b { color: var(--paper); font-weight: 500; }
.platforms span { color: var(--muted); }

/* ---- help band ---- */

.band {
  border-top: 1px solid var(--rule);
  padding: 4rem 0;
}
.band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.band h2 { font: 700 1.6rem/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 0.35rem; }
.band p { color: var(--muted); margin: 0; }

/* ---- long-form pages: support, privacy, delete account ---- */

.doc {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.doc h1 { font: 800 clamp(2.2rem, 6vw, 3rem)/1.05 var(--display); letter-spacing: -0.03em; margin: 0 0 0.75rem; }
.doc h2 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 3rem 0 1rem;
}
.doc h3 { font: 600 1.08rem/1.35 var(--sans); margin: 1.75rem 0 0.35rem; }
.doc .updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.doc ul, .doc ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.doc li { margin-bottom: 0.45rem; }
.doc p, .doc li { color: #D9D3C9; }
.doc strong { color: var(--paper); }
.doc code { font-family: var(--mono); font-size: 0.9em; }

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

footer {
  border-top: 1px solid var(--rule);
  padding: 3.5rem 0 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.cols h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1rem;
}
.cols ul { list-style: none; margin: 0; padding: 0; }
.cols li { margin-bottom: 0.55rem; }
.cols a { color: var(--muted); text-decoration: none; }
.cols a:hover { color: var(--paper); }
.cols .brand { margin-bottom: 0.9rem; }
.legal { border-top: 1px solid var(--rule); padding-top: 1.5rem; font-size: 0.82rem; color: var(--faint); margin: 0; }

/* ---- smaller screens ---- */

@media (max-width: 60rem) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 3.5rem; gap: 1rem; }
  .fan { height: 27rem; }
  .fan .phone { width: 11.5rem; }
  .fan .phone.front { left: 50%; transform: translate(-95%, -48%) rotate(-6deg); }
  .fan .phone.back  { left: 50%; transform: translate(-5%, -54%) rotate(7deg); }
  .feature { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; gap: 2rem; }
  .feature.flip .media { order: 0; }
  .feature::after, .feature.flip::after { background: linear-gradient(180deg, rgba(7, 7, 7, 0.1), rgba(7, 7, 7, 0.85) 55%); }
  .feature .phone { width: 12.5rem; }
  .cols { grid-template-columns: 1fr 1fr; }
  .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .bar { gap: 1rem; }
  .brand img.logo { height: 3.8rem; }
  .bar nav { gap: 1.1rem; font-size: 0.88rem; }
  .top .button { display: none; }
  .section { padding: 4rem 0; }
}
