:root {
  --bg: #fff7fb;
  --card: #ffffff;
  --ink: #3b1d3a;
  --muted: #8a6a86;
  --accent: #ff5c8a;
  --accent-dark: #e83f71;
  --btn: #c8285e;
  --btn-hover: #a91f4f;
  --pop: #ffc542;
  --line: #f3dbe8;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .08);
  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--font-head); font-size: 22px; color: var(--ink); text-decoration: none; }
.brand-heart { color: var(--accent); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:hover { color: var(--ink); }

/* hero = the quiz itself */
.hero { padding-top: 32px; padding-bottom: 48px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 12px; }
.hero h1 { font-size: 48px; }
.lede { color: var(--muted); font-size: 18px; max-width: 70ch; margin: 0 0 24px; }

.quiz-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 32px;
  max-width: 760px;
}

.engage { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.share-msg { color: var(--muted); font-size: 14px; }

/* buttons */
.btn, .dq-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--btn); color: #fff;
  border: 0; border-radius: var(--radius);
  font: 600 18px var(--font-body);
  cursor: pointer;
}
.btn:hover, .dq-btn:hover { background: var(--btn-hover); }
.btn-ghost {
  min-height: 44px; padding: 0 16px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: 600 16px var(--font-body); cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-ghost[aria-pressed="true"] { background: #ffe3ec; border-color: var(--accent); color: var(--btn-hover); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--pop); outline-offset: 2px;
}

/* article */
.prose { padding-top: 16px; padding-bottom: 48px; }
.prose > * { max-width: 70ch; }
.prose h2 { font-size: 28px; margin-top: 48px; }
.prose h3 { font-size: 22px; margin-top: 32px; }
.prose p, .prose li { color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; max-width: 760px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.page h1 { font-size: 36px; margin-top: 16px; }
.back { margin-top: 32px; }

/* types grid: the one decorative element of the site is the dere heart meter, used in results */
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.type-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

/* faq */
.faq { padding-bottom: 48px; }
.faq h2 { font-size: 28px; }
.faq-item { max-width: 760px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq-item summary { font-weight: 600; cursor: pointer; }
.faq-item p { margin: 8px 0 0; color: var(--ink); }

/* comments */
.comments { padding-bottom: 64px; }
.comments h2 { font-size: 28px; }
.c-form { display: grid; gap: 12px; max-width: 760px; }
.c-form input, .c-form textarea {
  font: 16px var(--font-body); color: var(--ink);
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.c-form textarea { min-height: 96px; resize: vertical; }
.c-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.c-form:not([data-gf-replying]) [data-gf-reply-cancel] { display: none; }
.c-msg, .c-replying { color: var(--muted); font-size: 14px; margin: 0; }
.c-list { max-width: 760px; margin-top: 24px; }
.c-list[data-gf-empty]::before { content: "No comments yet. Be the first to post your dere type!"; color: var(--muted); }
.c-item { border-top: 1px solid var(--line); padding: 16px 0; }
.c-item[data-gf-owner] { background: #fff1f6; padding: 16px; border-radius: var(--radius); }
.c-head { margin: 0; font-size: 14px; color: var(--muted); }
.c-head strong { color: var(--ink); font-size: 16px; }
.c-owner { display: none; background: var(--pop); color: var(--ink); border-radius: 8px; padding: 0 8px; font-size: 12px; }
[data-gf-owner] > .c-head .c-owner { display: inline; }
.c-text { margin: 4px 0; }
.c-to { color: var(--accent-dark); font-weight: 600; }
.c-reply { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 0; font: 600 14px var(--font-body); }
.c-replies { margin-left: 24px; }

/* footer */
.foot { background: var(--card); border-top: 1px solid var(--line); padding: 32px 0; }
.foot-in p { margin: 0 0 8px; }
.foot-brand { font-family: var(--font-head); font-size: 18px; }
.foot-note, .foot-copy { color: var(--muted); font-size: 14px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.foot-links a { color: var(--ink); font-size: 14px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 30px; }
  .lede { font-size: 16px; }
  .quiz-card { padding: 16px; }
  .nav { gap: 16px; }
  .type-grid { grid-template-columns: 1fr; }
  .btn, .dq-btn { width: 100%; }
}
