/* playsw.app. No JavaScript anywhere, and the fonts are served from this host, so nothing here
   sends a visitor's IP to a third party. The one deliberate exception is on a user page, where
   game covers load from IGDB's image servers (Roman, 2026-09-22) — the privacy policy says so.
   Keep everything else first-party. */

@font-face {
  font-family: Manrope;
  src: url("fonts/Manrope-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("fonts/Manrope-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("fonts/Manrope-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  /* The app icon's gradient: orange top-left to purple bottom-right. */
  --brand-from: #fd9305;
  --brand-to: #b153d8;

  --bg: #ffffff;
  --bg-sunk: #f6f5f8;
  --ink: #16141a;
  --ink-soft: #55505e;
  --rule: #e6e3ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121016;
    --bg-sunk: #1a171f;
    --ink: #f4f2f7;
    --ink-soft: #a9a2b5;
    --rule: #2b2733;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* A hairline of the brand gradient across the top, instead of painting the whole page with it. */
body::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
}

.bar {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 26px 0 0;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 8px;
  display: block;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 68px 0 64px;
}

h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.033em;
}

.lede {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: 19px;
  color: var(--ink-soft);
}

.cta { margin: 34px 0 0; }

/* No App Store id yet — the app has not been submitted, so there is nothing honest to link to.
   Swap this span for the real badge link once it exists. */
.badge {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
}

.steps {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 80px;
}

.steps article {
  background: var(--bg-sunk);
  padding: 28px 26px;
}

.steps h2 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

.steps b {
  font-weight: 600;
  color: var(--ink);
}

.steps i {
  font-style: normal;
  font-weight: 600;
}

/* The legal pages, written by scripts/export-legal.py into the same shell as the landing. */

.prose {
  padding: 46px 0 80px;
}

.prose h1 {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  margin-bottom: 26px;
}

.prose h2 {
  margin: 48px 0 12px;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.02em;
  scroll-margin-top: 20px;
}

.prose h3 {
  margin: 32px 0 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  scroll-margin-top: 20px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 14px;
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

/* A nested list sits inside its parent item; it needs the gap above, not below. */
.prose li > ul,
.prose li > ol {
  margin: 8px 0 0;
}

.prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.prose a {
  color: inherit;
  text-decoration-color: var(--brand-to);
  text-underline-offset: 2px;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1px 5px;
}

.prose .updated {
  font-size: 15px;
}

.foot {
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  padding-bottom: 46px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-weight: 600;
  font-size: 15px;
}

.foot a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.foot a:hover {
  border-bottom-color: var(--brand-to);
}

.fine {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

@media (min-width: 620px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

/* The user pages (playsw.app/<username>), rendered by the API — see server/src/publicPageHtml.ts.
   The markup lives there; the look lives here, so a page stays part of the site. */

.pf-head { padding: 44px 0 6px; }

.pf-name {
  display: inline;
  margin: 0;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.pf-badge {
  display: inline-block;
  vertical-align: 6px;
  margin-left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.pf-meta {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.pf-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 44px 0 0;
}

.pf-section h2 {
  margin: 0;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.pf-count {
  color: var(--ink-soft);
  font-size: 15px;
}

.pf-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}

.pf-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-sunk);
}

.pf-list li + li { border-top: 1px solid var(--rule); }

/* Both the real cover and the letter placeholder for a game we have no artwork for. */
.pf-cover {
  flex: 0 0 auto;
  width: 52px;
  height: 69px;
  border-radius: 6px;
  object-fit: cover;
  background: linear-gradient(150deg, #cdc7d6, #a79fb5);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pf-cover {
    background: linear-gradient(150deg, #4b4457, #332e3d);
  }
}

.pf-title { flex: 1; min-width: 0; }
.pf-title b { display: block; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.pf-title span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 14px; }

.pf-offer { flex: 0 0 auto; text-align: right; }
.pf-offer b { display: block; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.pf-offer span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }

.pf-cta { margin: 34px 0 0; }

.pf-empty {
  margin: 18px 0 0;
  padding: 26px 22px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--bg-sunk);
  color: var(--ink-soft);
}

.pf-note {
  margin: 30px 0 60px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 14px;
}
