@font-face { font-family: "Bagel Fat One"; src: url(/fonts/bagel-fat-one.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/fonts/atkinson-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/fonts/atkinson-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #2B0A3D;
  --white: #FFFFFF;
  --butter: #FFE14D;
  --theme: #FFE14D;
  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--theme);
  color: var(--ink);
  font: 400 1.125rem/1.5 var(--body);
}
body > main { flex: 1; }
body.plain { background: var(--white); }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; }
h1:focus, h2:focus { outline: none; }
a { color: inherit; text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
button { font: inherit; color: inherit; }

.site-header { padding: 16px; }
.wordmark { font: 400 1.375rem/1 var(--display); text-decoration: none; }
.home .site-header { display: none; }

/* Die-cut sticker: white body, thin ink outline. Used for quiz cards and results. */
.sticker {
  display: block;
  background: var(--theme);
  border: 8px solid var(--white);
  border-radius: 32px;
  box-shadow: 0 0 0 3px var(--ink);
  text-decoration: none;
}

/* Home */
.hero { padding: 40px 16px 32px; max-width: 60rem; margin: 0 auto; }
.hero-title { font-size: clamp(5.5rem, 29vw, 15rem); line-height: .86; margin: 0 0 .2em; letter-spacing: -.01em; }
.hero-sub { max-width: 30rem; font-size: 1.25rem; margin: 0; }
.quiz-list {
  list-style: none;
  margin: 0 auto;
  padding: 16px 16px 64px;
  max-width: 60rem;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.quiz-list li:nth-child(odd) .quiz-card { transform: rotate(-1.25deg); }
.quiz-list li:nth-child(even) .quiz-card { transform: rotate(1deg); }
.quiz-card { padding: 22px 20px; height: 100%; transition: transform .12s; }
.quiz-list li .quiz-card:hover, .quiz-list li .quiz-card:focus-visible { transform: rotate(0) scale(1.02); }
.quiz-card-emoji { display: block; font-size: 3rem; line-height: 1.2; }
.quiz-card-title { display: block; font: 400 1.75rem/1.1 var(--display); margin: 6px 0 10px; }
.quiz-card-meta { display: block; font-size: 1rem; }

/* Quiz */
.quiz { width: 100%; max-width: 34rem; margin: 0 auto; padding: 8px 16px 48px; overflow-x: clip; } /* the tilted result sticker must not widen the page */
.intro-emoji { font-size: 4.5rem; line-height: 1.1; margin: 8px 0; }
.quiz h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
.lede { font-size: 1.25rem; }
.fine { font-size: 1rem; margin-top: 10px; }
.about-title { font-size: 1.5rem; margin-top: 48px; }

.btn {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 26px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: var(--butter); }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: progress; background: var(--white); }
.btn-primary { background: var(--ink); color: var(--white); text-align: center; }
.btn-primary:hover { background: var(--ink); text-decoration: underline; }
.btn-primary:disabled { background: var(--ink); color: var(--white); }
.btn-link { display: inline-block; min-height: 44px; margin-top: 12px; padding: 8px 0; background: none; border: 0; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }

/* The stamp card: one hole per question, punched as you answer. */
.punch-card { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; background: var(--white); border: 3px solid var(--ink); border-radius: 18px; }
.punch { flex: 1 0 auto; max-width: 28px; aspect-ratio: 1; min-width: 16px; border: 3px solid var(--ink); border-radius: 50%; }
.punched { background: var(--ink); }
.q-count { margin: 18px 0 4px; font-size: 1rem; }
.q-text { font-size: clamp(1.75rem, 7.5vw, 2.5rem); }
.choices { display: grid; gap: 10px; }

.field { margin: 16px 0; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field select { width: 100%; min-height: 48px; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--white); border: 3px solid var(--ink); border-radius: 14px; }
.field + .btn-primary { margin-top: 24px; }

/* Result */
.result-sticker { background: var(--white); text-align: center; padding: 24px 16px; transform: rotate(-1deg); animation: slap .32s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes slap { from { transform: rotate(-6deg) scale(1.12); opacity: 0; } }
.result-emoji { font-size: 5rem; line-height: 1.1; margin: 0; }
.result-name { font-size: clamp(2.25rem, 10vw, 3.25rem); margin: 8px 0 0; }
.result-meme { font-size: clamp(1.875rem, 8.75vw, 2.75rem); margin: 8px 0 0; }
.result-name-small { font: 400 1.25rem/1.2 var(--display); margin: 12px 0 0; }
.result-score { font: 400 clamp(1.75rem, 8vw, 2.5rem)/1.1 var(--display); margin: 12px 0 0; }
.result-copy { margin-top: 28px; }
.result-copy p { margin: 0 0 .75em; }
.bright-side { background: var(--white); border: 3px solid var(--ink); border-radius: 18px; padding: 14px 16px; margin: 20px 0; }
.stats { margin: 20px 0; }
.stats p { margin: 0 0 .5em; }
.stat-main { font: 400 1.5rem/1.2 var(--display); }
.matches { margin: 20px 0; }
.match { margin: 0 0 .25em; }
.tag-friend { font: 400 1.375rem/1.2 var(--display); margin: 24px 0 0; }
.actions { display: grid; gap: 10px; margin-top: 24px; }
.actions .btn { text-align: center; }
.actions .btn-link { justify-self: center; }
.status { min-height: 1.5em; margin: 12px 0 0; overflow-wrap: anywhere; }

/* Stays out of the way: in the page flow, never sticky, and hidden until it has an ad in it. */
.ad-slot { width: 100%; max-width: 34rem; margin: 8px auto; padding: 0 16px; }
.ad-slot:empty { display: none; }
.ad-slot:not(:empty) { display: grid; place-items: center; min-height: 100px; border: 2px dashed var(--ink); border-radius: 12px; width: calc(100% - 32px); }
.ad-slot[hidden] { display: none; }

/* Plain pages */
.prose { width: 100%; max-width: 38rem; margin: 0 auto; padding: 8px 16px 64px; }
.prose h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.5em; }

.site-footer { background: var(--ink); color: var(--white); padding: 24px max(16px, calc((100% - 60rem) / 2 + 16px)) 32px; font-size: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 10px; }
.site-footer a { display: inline-block; padding: 8px 0; color: var(--butter); }
.site-footer p { margin: 0; max-width: 40rem; }
.site-footer :focus-visible { outline-color: var(--butter); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.t-how-delulu-are-you{--theme:#8CF0C0}.t-how-much-aura-do-you-have{--theme:#C9B6FF}.t-whats-your-toxic-trait{--theme:#FF9CCF}
