/* Spice Up blog — shared stylesheet.
   Every colour pair here is checked against the #100f18 background for
   WCAG AA contrast (4.5:1 for body text, 3:1 for large text and UI borders). */

:root {
  --bg:         #100f18;
  --surface:    rgba(255, 255, 255, 0.04);
  --border:     rgba(255, 255, 255, 0.14);
  --text:       #f0e2eb;  /* 15.2:1 */
  --text-body:  #c4afc0;  /*  9.3:1 */
  --text-muted: #a08fa6;  /*  6.3:1 */
  --accent:     #ff77bb;  /*  7.8:1 */
  --accent-dim: #c0105a;
  --grad:       linear-gradient(135deg, #c0105a, #9c27b0);
  --focus:      #ffd166;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
  line-height: 1.7;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link — visible only once it takes focus. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--accent);
  padding: 0.6rem 1rem;
  border-radius: 0 0 12px 0;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; margin-bottom: 0.5rem; line-height: 1.2; }
h2 { font-size: 1.35rem; font-weight: 600; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--accent); }

p  { margin-bottom: 1rem; color: var(--text-body); }
ul, ol { margin: 0.5rem 0 1rem 1.5rem; color: var(--text-body); }
li { margin-bottom: 0.4rem; }
strong { color: var(--text); }

.meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.meta time { color: inherit; }

/* ── Site bar ─────────────────────────────────────────────── */
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.site-bar__brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.site-bar__brand:hover { text-decoration: underline; }

.btn-play {
  background: var(--grad);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-play:hover { filter: brightness(1.12); }

/* ── Breadcrumbs ──────────────────────────────────────────── */
.crumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.crumbs ol { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; }
.crumbs li { margin: 0; display: flex; gap: 0.4rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--text-muted); }
.crumbs [aria-current="page"] { color: var(--text-muted); }

/* ── Calls to action ──────────────────────────────────────── */
.cta {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  margin: 1.5rem 0;
}
.cta:hover { filter: brightness(1.12); }

/* Inline "play this game" panel dropped into the body of a post. */
.play-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.play-card h2, .play-card h3 { margin-top: 0; font-size: 1.1rem; color: var(--text); }
.play-card p { margin-bottom: 1rem; }
.play-card .cta { margin: 0; }

.tip {
  background: rgba(192, 16, 90, 0.12);
  border-left: 3px solid var(--accent-dim);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}
.tip p:last-child { margin-bottom: 0; }

/* ── Question lists ───────────────────────────────────────── */
.question-list { list-style: none; margin-left: 0; counter-reset: q; }
.question-list li { counter-increment: q; display: flex; gap: 0.75rem; margin-bottom: 0.6rem; }
.question-list li::before {
  content: counter(q) ".";
  color: var(--accent);
  font-weight: 600;
  min-width: 2rem;
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.badge--gentle  { background: rgba(100, 180, 100, 0.2); color: #7ecf7e; }
.badge--playful { background: rgba(100, 140, 220, 0.2); color: #7eaaef; }
.badge--spicy   { background: rgba(220, 80, 80, 0.2);   color: #ef7e7e; }
.badge--wild    { background: rgba(192, 16, 90, 0.25);  color: var(--accent); }

/* ── Post lists (blog index + related posts) ──────────────── */
.post-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0; }
.post-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s;
  margin: 0;
}
.post-item:hover { border-color: rgba(255, 119, 187, 0.55); }
.post-item a { display: block; text-decoration: none; padding: 1.25rem 1.5rem; }
.post-item a:hover h3 { text-decoration: underline; }
.post-item h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 0 0 0.3rem; }
.post-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.site-footer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.site-footer li { margin: 0; }
.site-footer p { color: var(--text-muted); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
