/* ===== Dere Quiz — pastel quiz-app design ===== */
:root {
  --bg: #fdf8fb;
  --bg-a: #fff1f5;
  --bg-b: #f2ebff;
  --ink: #3b2237;
  --ink-soft: #6d5160;
  --rose: #d94f7e;
  --rose-dark: #9e2e50;
  --rose-soft: #fbe3ec;
  --violet-dark: #5d3ba0;
  --card: #fff;
  --line: #ecd9e4;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 14px 34px rgba(90, 40, 70, 0.12);
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 15% -10%, var(--bg-a), transparent 60%),
    radial-gradient(1100px 520px at 90% 0%, var(--bg-b), transparent 55%),
    #fdf8fb;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 10;
}
.skip:focus { left: 8px; }

/* header */
.site-head { padding: 18px 16px 0; }
.site-head-in {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  box-shadow: 0 4px 14px rgba(90, 40, 70, 0.12);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rose-dark);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark::before { content: "❤ "; color: var(--rose); }
.pill-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.pill-nav a {
  display: inline-block;
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.pill-nav a:hover { background: var(--rose-soft); color: var(--rose-dark); }

/* main column */
main { max-width: 880px; margin: 26px auto 0; padding: 0 16px 40px; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  line-height: 1.18;
  margin: 0 0 10px;
  color: var(--ink);
}
h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 34px 0 10px;
  color: var(--ink);
}
h1 span { color: var(--rose); }

.standfirst {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 62ch;
}

/* player */
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 640px) { .stage { aspect-ratio: 16 / 10; } }
.stage iframe { border: 0; width: 100%; height: 100%; display: block; }

.cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(420px 220px at 20% 15%, var(--rose-soft), transparent 70%),
    radial-gradient(420px 220px at 85% 90%, var(--bg-b), transparent 70%),
    var(--card);
}
.cover-glyphs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cover-glyphs span {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(90, 40, 70, 0.12);
}
.cover-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-dark);
  font-weight: 700;
}
.play-btn {
  min-height: 56px;
  padding: 12px 30px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-dark), var(--violet-dark));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(90, 40, 70, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.play-btn:hover { filter: brightness(0.95); }
.play-btn:focus-visible { outline: 3px solid var(--rose-dark); outline-offset: 3px; }
.play-icon {
  width: 0;
  height: 0;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.cover-note { font-size: 0.8rem; color: var(--ink-soft); }

.loader {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--card);
}
[data-gf-state="loading"] .loader { display: flex; }
[data-gf-state="loading"] .cover { display: none; }
.loader-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid var(--rose-soft);
  border-top-color: var(--rose);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-size: 0.9rem; color: var(--ink-soft); }

/* action strip */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 4px;
}
.strip-btn {
  min-height: 48px;
  padding: 8px 18px;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.strip-btn:hover { border-color: var(--rose); color: var(--rose-dark); }
.strip-btn:focus-visible { outline: 3px solid var(--rose-dark); outline-offset: 2px; }
.strip-msg { font-size: 0.82rem; color: var(--ink-soft); }

/* prose */
.prose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 30px;
}
.prose p { max-width: 68ch; margin: 12px 0; }
.prose a { color: var(--rose-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ol, .prose ul { max-width: 68ch; padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose blockquote {
  margin: 14px 0;
  padding: 12px 18px;
  background: var(--rose-soft);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.lede-list li { margin: 12px 0; }
.pull {
  margin: 18px 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--rose-soft), var(--bg-b));
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.type-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.type-chips li {
  background: var(--rose-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
}
.type-chips b { display: block; color: var(--rose-dark); font-family: var(--font-display); font-size: 1.02rem; }

/* cta band */
.cta-band {
  margin: 26px 0 8px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--rose-dark), var(--violet-dark));
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(90, 40, 70, 0.18);
}
.cta-band p { margin: 0; font-weight: 600; }
.cta-band a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 24px;
  background: #fff;
  color: var(--rose-dark);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
}
.cta-band a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* faq */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0 16px;
  margin: 10px 0;
}
.faq details[open] { background: var(--rose-soft); }
.faq summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
}

/* footer */
.site-foot { padding: 10px 16px 44px; }
.foot-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 6px 18px rgba(90, 40, 70, 0.12);
}
.foot-card strong { font-family: var(--font-display); color: var(--rose-dark); }
.foot-card p { margin: 8px 0; font-size: 0.88rem; color: var(--ink-soft); max-width: 62ch; }
.foot-card nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; }
.foot-card nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.88rem; }
.foot-card nav a:hover { color: var(--rose-dark); text-decoration: underline; }
.foot-base { border-top: 1px dashed var(--line); padding-top: 12px; }

@media (max-width: 560px) {
  .site-head-in { border-radius: var(--radius); padding: 12px 14px; }
  .prose { padding: 20px 16px 24px; }
  .stage { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader-ring { animation: none; border-top-color: var(--rose-dark); }
}

/* comments */
.comments { margin-top: 10px; }
.comment-form textarea {
  width: 100%;
  max-width: 68ch;
  min-height: 72px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}
.comment-form textarea:focus-visible { outline: 3px solid var(--rose-dark); outline-offset: 2px; }
.comment-form button { margin-top: 10px; }
.comment-list { list-style: none; margin: 14px 0 0; padding: 0; max-width: 68ch; }
.comment-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 8px 0;
  font-size: 0.92rem;
  background: #fff;
}
.comment-list .who { font-weight: 700; color: var(--rose-dark); font-size: 0.85rem; }
