:root {
  color-scheme: light;
  --ink: #2e2229;
  --muted: #685961;
  --berry: #682743;
  --berry-dark: #502039;
  --paper: #fffcf8;
  --wash: #f8f3ed;
  --rose: #f7e9eb;
  --line: #d7c9c9;
  --serif: "Baskervville", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--wash); font: 1rem/1.55 var(--sans); }
.wrap { width: min(100% - 2.25rem, 69rem); margin-inline: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3, legend, dt { font-family: var(--serif); font-weight: 400; }
em { color: var(--berry); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .23em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #9d446b; outline-offset: 3px; }
.masthead { background: var(--berry-dark); color: #fff6ee; }
.masthead-inner, nav, .quiz-actions, .result-actions { display: flex; align-items: center; }
.masthead-inner { min-height: 3.35rem; justify-content: space-between; }
.wordmark { font: 1.65rem/1 var(--serif); letter-spacing: -.05em; text-decoration: none; }
nav { gap: 1.3rem; }
nav a { padding-block: .65rem; font-size: .84rem; text-decoration: none; }
nav a:hover, .text-button:hover:not(:disabled) { text-decoration: underline; }
.masthead :focus-visible { outline-color: #ffdae4; }
.site-footer { padding-block: .75rem 1.5rem; border-top: 1px solid var(--line); color: var(--berry); }
.site-footer a { text-decoration: underline; }
.info-page { padding-block: 2rem 3rem; }
.info-page h1 { margin: 0 0 1.25rem; font-size: clamp(2.5rem, 6vw, 4rem); }
.info-page p { max-width: 62ch; margin: 0 0 1rem; }
.quiz-spread, .result-spread { display: grid; gap: 1.2rem; padding-block: 1.65rem 2.25rem; }
.eyebrow, .card-label { color: var(--berry); font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .65em; }
.dot { width: .55em; height: .55em; border-radius: 50%; background: var(--berry); }
h1, #result-title { margin-block: .6rem; font-size: clamp(2.8rem, 7.3vw, 5.6rem); line-height: .99; letter-spacing: -.055em; text-wrap: balance; }
.intro > p:last-child, .result-stories { max-width: 40ch; color: var(--muted); line-height: 1.5; }
.paper { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-top: 3px solid var(--berry); border-radius: .15rem; background: var(--paper); box-shadow: 0 3px 0 #eae0da; }
progress { display: block; width: 100%; height: .22rem; margin: .52rem 0 1rem; border: none; appearance: none; background: #ecdfdf; color: var(--berry); }
progress::-webkit-progress-bar { background: #ecdfdf; }
progress::-webkit-progress-value { background: var(--berry); }
progress::-moz-progress-bar { background: var(--berry); }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
legend { padding: 0; width: 100%; font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.18; letter-spacing: -.025em; }
legend:focus, #result-title:focus { outline: none; }
.choices { display: grid; gap: .4rem; margin-top: 1rem; }
.choice { display: flex; align-items: center; gap: .7rem; min-height: 2.8rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: .25rem; cursor: pointer; }
.choice:hover { border-color: #ad8795; }
.choice:has(input:checked) { background: var(--rose); border-color: var(--berry); box-shadow: inset 0 0 0 1px var(--berry); }
.choice input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--berry); }
.points { margin-left: auto; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.quiz-actions { justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.primary, .secondary, .text-button { min-height: 2.75rem; border-radius: .25rem; font-size: .92rem; font-weight: 600; }
.primary, .secondary { padding: .65rem 1rem; border: 1px solid var(--berry); }
.primary { background: var(--berry); color: white; }
.primary:hover:not(:disabled) { background: var(--berry-dark); }
.primary:disabled { background: #e9dfe1; color: #6d5962; border-color: #e9dfe1; }
.secondary, .text-button { color: var(--berry); background: transparent; }
.secondary:hover { background: var(--rose); }
.text-button { border: 0; padding: .5rem .15rem; }
.text-button:disabled { color: #82757a; }
button span { margin-inline: .12em; }
#result-title { font-style: italic; color: var(--berry); }
.result-stories p + p { margin-top: .6rem; }
.result-card h3 { font-size: 1.6rem; letter-spacing: -.035em; }
.score-list { margin: .65rem 0 1.15rem; }
.score-row { display: grid; align-items: center; grid-template-columns: 5.25rem 1fr; gap: .75rem; padding-block: .28rem; }
.score-row dt { font: .92rem var(--sans); }
.score-row dd { display: flex; align-items: center; gap: .7rem; }
.score-track { flex: 1; height: .4rem; background: #eee4e2; border-radius: 5px; overflow: hidden; }
.score-fill { display: block; height: 100%; background: #b49aa4; }
.leader dt { color: var(--berry); font-weight: 700; }
.leader .score-fill { background: var(--berry); }
.score-value { font-size: .84rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.result-actions { flex-wrap: wrap; gap: .5rem; }
#shared-note { margin-bottom: 1rem; }
.copy-status:not(:empty), #manual-copy { margin-top: .75rem; }
#manual-copy label, .copy-status { font-size: .9rem; }
textarea { width: 100%; margin-top: .3rem; padding: .55rem; font-size: 1rem; color: var(--ink); }
.reference, .notes { padding-block: 1.75rem 2rem; border-top: 1px solid #bda9ad; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.65rem); line-height: 1.15; letter-spacing: -.04em; }
.guide-list { display: grid; gap: 1.1rem 2.2rem; margin-top: 1.15rem; }
.guide-list > div { padding-top: .65rem; border-top: 1px solid var(--line); }
.guide-list dt { color: var(--berry); font-size: 1.4rem; }
.guide-list dd, .notes p { color: var(--muted); }
.notes { display: grid; gap: 2rem; }
.notes .section-title { margin-bottom: 1rem; }
#scoring p + p { margin-top: .65rem; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2em; color: var(--berry); }
details[open] summary::after { content: "−"; }
details p { margin-bottom: 1rem; }
@media (min-width: 42rem) {
  .wrap { width: min(100% - 4rem, 69rem); }
  .masthead-inner { min-height: 4rem; }
  .paper { padding: 1.6rem; }
  .quiz-spread, .result-spread { gap: 2rem; padding-block: 2.75rem; }
  .guide-list { grid-template-columns: repeat(2, 1fr); }
  .notes { grid-template-columns: 1fr 1.15fr; gap: 3rem; }
}
@media (min-width: 54rem) {
  .quiz-spread, .result-spread { grid-template-columns: 1fr 1.06fr; align-items: start; gap: clamp(3rem, 7vw, 6rem); padding-block: 3.6rem; }
  .intro, .result-intro { padding-top: 1.1rem; }
  h1, #result-title { margin-block: 1.1rem; }
  .intro > p:last-child, .result-stories { font-size: 1.12rem; }
  .reference, .notes { padding-block: 2.5rem; }
  .guide-list { grid-template-columns: repeat(3, 1fr); gap: 1.3rem 2.3rem; }
}
/* Companion pages use the same paper, rules and type as the original quiz. */
.dere {
  --berry: #315b50;
  --berry-dark: #244c45;
  --rose: #e3eee7;
  --line: #c2cfc4;
  --wash: #f2f5ef;
  --ink: #203a34;
  --muted: #4d615a;
}
.dere .paper { box-shadow: 0 3px 0 #dce5dc; }
.dere .score-fill { background: #91aea0; }
.dere .leader .score-fill { background: var(--berry); }
.dere .score-track, .dere progress { background: #dfe8df; }
.dere progress::-webkit-progress-bar { background: #dfe8df; }
.dere .primary:disabled { background: #e0e7e0; border-color: #e0e7e0; color: #4d615a; }
.masthead nav { gap: clamp(.55rem, 2.7vw, 1.55rem); }
.masthead nav a { font-size: .875rem; white-space: nowrap; }
.masthead nav a[aria-current] { text-decoration: underline; text-underline-offset: .4em; }
.wordmark { white-space: nowrap; }
.site-footer nav, .other-sins { flex-wrap: wrap; gap: .15rem 1.2rem; }
.site-footer nav a { font-size: .9rem; }
#intro-text { max-width: 40ch; color: var(--muted); line-height: 1.5; }
#quiz-title:focus { outline: none; }
.result-mode h1 { color: var(--berry); font-style: italic; overflow-wrap: anywhere; }
.result-mode h1 a { text-decoration-thickness: .035em; text-underline-offset: .11em; }
.result-card h2 { font-size: 1.6rem; letter-spacing: -.035em; }
#result-image { display: block; width: min(100%, 22.5rem); height: auto; margin: 1rem auto 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cross-quiz { display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem; border-top: 1px solid var(--line); padding: .8rem 0; color: var(--berry); }
.cross-quiz a { font-weight: 600; }
.cross-quiz span[aria-hidden] { color: var(--muted); font-size: .88rem; }
.guide-list dd p + p { margin-top: .65rem; }
.sin-guide { max-width: 47rem; margin-inline: auto; padding-bottom: 2.5rem; }
.guide-intro { padding-block: clamp(2rem, 6vw, 4.5rem) 1.85rem; border-bottom: 1px solid var(--line); }
.guide-intro h1 { max-width: 18ch; margin-block: .7rem 1rem; font-size: clamp(2.55rem, 6.2vw, 4.7rem); line-height: 1.04; }
.guide-lead { max-width: 63ch; font: 1.18rem/1.58 var(--serif); }
.guide-cta { display: inline-block; text-decoration: none; margin-top: 1rem; }
.guide-cta:hover { background: var(--berry-dark); }
.article-body { max-width: 65ch; }
.article-body h2, .info-page h2, .other-sins h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); letter-spacing: -.035em; line-height: 1.17; }
.article-body h2, .info-page h2 { margin: 1.65rem 0 .7rem; }
.article-body p { margin-bottom: .95rem; line-height: 1.65; }
.other-sins { border-top: 1px solid var(--line); align-items: baseline; padding: 1rem 0; }
.other-sins h2 { flex-basis: 100%; }
.other-sins a { text-decoration: underline; color: var(--berry); font-size: 1rem; }
.info-page { max-width: 48rem; margin-inline: auto; }
@media (max-width: 38rem) {
  .masthead-inner { column-gap: .65rem; flex-wrap: wrap; }
  .wordmark { font-size: 1.35rem; padding-block: .65rem; }
  .masthead nav a { font-size: .86rem; }
  .result-actions .text-button { margin-left: .35rem; }
}
@media (min-width: 54rem) {
  #intro-text { font-size: 1.12rem; }
}
