/*
 * QuestKit playground — shared styles for all three host pages.
 *
 * Deliberately minimal. The plain and iframe pages should look like a
 * tidy generic site. The WordPress mock has its own page-local
 * overrides on top of this baseline to imitate a noisy WP theme.
 *
 * Shadow DOM isolates QuestKit widgets from this CSS — these rules
 * only style the host pages themselves, not the embedded widgets.
 */

:root {
  --pg-bg: #fafaf7;
  --pg-fg: #1a1a1a;
  --pg-muted: #5a5a5a;
  --pg-border: #d9d9d9;
  --pg-accent: #2563eb;
  --pg-card: #ffffff;
  --pg-radius: 8px;
  --pg-max: 880px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--pg-bg);
  color: var(--pg-fg);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--pg-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.005em;
}

p {
  margin: 0.5rem 0;
  color: var(--pg-fg);
}

p.muted {
  color: var(--pg-muted);
  font-size: 0.9rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--pg-border);
  margin: 2rem 0;
}

code,
kbd {
  background: #f0eee8;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.pg-nav {
  background: var(--pg-card);
  border-bottom: 1px solid var(--pg-border);
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

.pg-nav a {
  color: var(--pg-accent);
  margin-right: 1rem;
  text-decoration: none;
}

.pg-nav a:hover {
  text-decoration: underline;
}

.pg-card {
  background: var(--pg-card);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.pg-note {
  background: #fff7e6;
  border: 1px solid #f3d999;
  border-radius: var(--pg-radius);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #5b4500;
}
