/* cnvene.app: the app's palette and type (Palette in Theme.swift, Outfit). */
@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(/assets/fonts/Outfit-Regular.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(/assets/fonts/Outfit-Medium.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(/assets/fonts/Outfit-SemiBold.ttf) format("truetype"); }

:root {
  --bg: #0E0D12;
  --glow: #2B2340;
  --card: #1A1820;
  --line: #2A2733;
  --text: #F2F0F7;
  --muted: #8A8597;
  --on-accent: #16141C;
  --lavender: #B9A4F5;
  --butter: #F4D27A;
  --pink: #F2A0C0;
  --mint: #8FE3C3;
  --blue: #8EC9F5;
  --coral: #F59E8E;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(ellipse 90% 520px at 50% -80px, var(--glow), transparent 70%), var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 17px/1.55 Outfit, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lavender); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }
img { display: block; }

.page { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 20px; }
.nav .brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav .links { margin-left: auto; display: flex; gap: 18px; font-size: 15px; white-space: nowrap; }
.nav .links a { color: var(--muted); text-decoration: none; }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--text); }

/* Landing */
.hero { text-align: center; padding: 48px 0 40px; }
.hero .icon { width: 132px; height: 132px; border-radius: 30px; margin: 0 auto 26px; box-shadow: 0 18px 60px rgba(185, 164, 245, .22); }
.hero h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.08; font-weight: 600; margin: 0 0 14px; letter-spacing: -.01em; }
.hero p { color: var(--muted); font-size: 19px; max-width: 520px; margin: 0 auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 27px; font-weight: 500; text-decoration: none; }
.button.primary { background: var(--text); color: var(--on-accent); }
.button.secondary { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.button[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

.section { padding: 34px 0; }
.section h2 { font-size: 26px; font-weight: 600; margin: 0 0 18px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.game { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 16px; padding: 14px; }
.game img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.game h3 { margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.game p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.tag { font-size: 12px; font-weight: 500; color: var(--on-accent); background: var(--mint); border-radius: 8px; padding: 1px 7px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--card); border-radius: 16px; padding: 18px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--butter); color: var(--on-accent); font-weight: 600; margin-bottom: 10px; }
.steps strong { display: block; font-weight: 600; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Text pages */
.doc { padding: 26px 0 20px; }
.doc h1 { font-size: 36px; font-weight: 600; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 30px; font-size: 15px; }
.doc h2 { font-size: 21px; font-weight: 600; margin: 34px 0 8px; }
.doc p, .doc li { color: #D9D5E3; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.card { background: var(--card); border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.card p { margin: 0; }
details { background: var(--card); border-radius: 16px; padding: 4px 20px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 500; padding: 14px 0; }
details p { margin: 0 0 16px; }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 36px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
footer .spacer { flex: 1; }

@media (max-width: 560px) {
  .nav .links { gap: 14px; }
  .nav .links .wide { display: none; }
  .hero { padding-top: 28px; }
  .hero br { display: none; }
  .hero p { font-size: 17px; }
  .actions { flex-direction: column; align-items: stretch; }
}
