/* The studio site: the Awakened app's own colors (apps/mobile/src/theme.ts, the default theme). */
:root {
  color-scheme: dark;
  --void: #050711;
  --panel: #11182b;
  --panel-2: #0b1122;
  --border: rgba(56, 189, 248, 0.22);
  --mana: #38bdf8;
  --arcane: #7c3aed;
  --arcane-soft: #a78bfa;
  --text: #f8fafc;
  --muted: #94a3b8;
}

* { box-sizing: border-box; }

html { background: var(--void); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(800px 420px at 95% 0%, rgba(56, 189, 248, 0.16), transparent 70%),
    var(--void);
  background-repeat: no-repeat;
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mana); text-underline-offset: 3px; }
a:hover { color: #7dd3fc; }
:focus-visible { outline: 2px solid var(--mana); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 780px; margin: 0 auto; padding: 24px 16px 48px; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; }
.crumbs span { color: var(--muted); font-weight: 400; }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--mana); }
header.top .brand {
  font-weight: 900; font-size: 19px; letter-spacing: 0.4px; text-decoration: none;
  background: linear-gradient(90deg, var(--arcane-soft), var(--mana));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
header.top nav a { margin-left: 14px; font-weight: 700; font-size: 14px; text-decoration: none; }

.hero { padding: 56px 0 8px; }
.app-icon { display: block; width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 10px 40px rgba(124, 58, 237, 0.45); margin-bottom: 20px; }
.kicker { color: var(--mana); font-size: 12px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: clamp(32px, 7vw, 50px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.5px; }
h2 { font-size: 22px; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 4px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; max-width: 620px; }
.muted { color: var(--muted); }

.store {
  display: inline-block; border-radius: 999px; padding: 11px 20px; font-weight: 800; text-decoration: none;
  background: linear-gradient(90deg, var(--arcane), #2563eb); color: var(--text);
}
.store.soon { background: transparent; border: 1px solid var(--mana); color: var(--mana); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 20px 0; }
.card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.card .icon { font-size: 26px; }
.card h3 { margin: 8px 0 4px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.premium { border-color: rgba(124, 58, 237, 0.55); }
.rank {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 20px;
  background: rgba(124, 58, 237, 0.2); color: var(--arcane-soft); border: 1px solid rgba(167, 139, 250, 0.45);
}

.apps { display: grid; gap: 12px; margin: 16px 0; }
.app {
  display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 20px; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.15s;
}
.app:hover { border-color: var(--arcane-soft); transform: translateY(-2px); color: var(--text); }
.app img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.app h3 { margin: 0 0 2px; font-size: 19px; }
.app p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; color: var(--mana); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }

article h1 { margin-top: 40px; font-size: clamp(28px, 6vw, 40px); }
article h2 { border-top: 1px solid var(--border); padding-top: 24px; }
article li { margin: 4px 0; }
article p, article li { overflow-wrap: anywhere; }
.updated { color: var(--muted); font-size: 14px; }

/* Values the owner still has to fill in before publishing. */
mark.todo { background: #fbbf24; color: #050711; padding: 0 4px; border-radius: 4px; font-weight: 700; }

footer { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 16px; color: var(--muted); font-size: 14px; }
footer a { margin-right: 14px; display: inline-block; }
footer p { margin: 8px 0 0; }
