/*
 * Trinketz treatment for the quiz, following the approved JJ101 dashboard
 * exactly (public/junk-journal/101/trinketz-type.css): same fonts, colour
 * values, Ruthie band, masthead and card width. Loaded after the quiz's own
 * <style>; overrides type, colour and size only. Wording, images, background
 * artwork, questions, scoring and behaviour are untouched.
 */

:root {
  --tk-inter: "Inter", ui-sans-serif, system-ui, sans-serif;
  --tk-playfair: "Playfair Display", Georgia, serif;
  --tk-ruthie: "Ruthie", cursive;
  --tk-cream: #fdfaf3;
  --tk-ivory: #f3ebdb;
  --tk-ink: #3b2e22;
  --tk-teal: #427880;
  --tk-brass: #a8823e;
  --tk-teal-text: color-mix(in srgb, var(--tk-teal) 80%, var(--tk-ink));
  --tk-hair: color-mix(in srgb, var(--tk-brass) 25%, transparent);
  --tk-brown-sugar: color-mix(in srgb, var(--tk-ink) 55%, var(--tk-brass));
}

/* Stack the masthead above the card (the body centred one child in a row). */
body {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1.25rem 2.5rem;
  font-variant-numeric: lining-nums;
}

/* Same width as the JJ101 module card. */
.quiz-root,
.trinketz-quiz-embed {
  max-width: 1000px;
}

/* =========================================================================
   Masthead (as JJ101): small brown logo, Playfair title, Ruthie band
   ========================================================================= */

.tk-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  margin: 0 -1.25rem;
  padding: clamp(56px, 7vw, 96px) 1.25rem clamp(96px, 13vw, 190px);
  text-align: center;
}

.tk-masthead::before {
  content: "";
  display: block;
  width: clamp(96px, 9vw, 124px);
  aspect-ratio: 652 / 269;
  margin: 0 auto 14px;
  background: var(--tk-brown-sugar);
  -webkit-mask: url("trinketz-logo.webp") center / contain no-repeat;
  mask: url("trinketz-logo.webp") center / contain no-repeat;
}

.tk-masthead h1 {
  margin: 0;
  font-family: var(--tk-playfair);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--tk-ink);
}

.tk-ruthie-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  transform: translateY(40%);
  overflow: hidden;
  padding: 80px 0;
  pointer-events: none;
  user-select: none;
}

.tk-ruthie-track {
  display: flex;
  width: max-content;
  will-change: transform;
  font-family: var(--tk-ruthie);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  /* Savera’s bright Ruthie teal, site-wide (owner, 3 Oct 2026). */
  color: #58a7aa;
  opacity: 1;
  font-size: clamp(175px, calc(175px + 231 * (100vw - 375px) / 1225), 406px);
}

.tk-ruthie-run {
  display: flex;
  align-items: baseline;
}

.tk-ruthie-run > span {
  flex-shrink: 0;
  margin-right: 80px;
}

/* =========================================================================
   The card: JJ101's ivory panel (original rounded card, border, shadow)
   ========================================================================= */

.intro-screen,
.question-screen,
.result-screen {
  background: var(--tk-ivory);
  color: var(--tk-ink);
  padding-inline: clamp(22px, 4.5vw, 48px);
}

/* The title and logo now live in the masthead, so the intro card does not
   repeat them. */
.intro-brand-logo,
.intro-title {
  display: none;
}

.intro-hero-img {
  max-width: 520px;
  margin-bottom: 28px;
}

.intro-line,
.result-line-deco,
.final-cta-deco {
  background: var(--tk-brass);
}

.intro-subtitle {
  max-width: 34em;
  font-family: var(--tk-playfair);
  font-style: normal;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.4;
  color: var(--tk-ink);
}

.intro-body,
.result-line,
.bridge-line,
.final-cta-line {
  max-width: 68ch;
  font-family: var(--tk-inter);
  font-size: clamp(16px, 1.25vw, 17px);
  line-height: 1.7;
  color: var(--tk-ink);
}

.result-lines,
.bridge-lines,
.final-cta-lines {
  max-width: 68ch;
}

/* =========================================================================
   Questions
   ========================================================================= */

.back-btn,
.restart-btn {
  font-family: var(--tk-inter);
  font-size: 14px;
  color: color-mix(in srgb, var(--tk-ink) 75%, transparent);
}

.progress-label {
  font-family: var(--tk-inter);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tk-teal-text);
}

.progress-dot {
  background: color-mix(in srgb, var(--tk-brass) 30%, var(--tk-cream));
}

.progress-dot.done {
  background: var(--tk-teal);
}

.progress-dot.cur {
  background: color-mix(in srgb, var(--tk-teal) 55%, var(--tk-cream));
}

/* Question prompts: JJ101's module-title style at a question scale. */
.question-prompt {
  font-family: var(--tk-playfair);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--tk-ink);
}

.question-hint {
  font-family: var(--tk-inter);
  font-style: italic;
  font-size: 14px;
  color: var(--tk-ink);
}

/* Answers: Cream cards on the ivory sheet with a faint brass hairline, as
   JJ101's cards; selected answers take the teal. */
.answer-card {
  background: var(--tk-cream);
  border-color: var(--tk-hair);
}

.answer-card:hover {
  background: #fff;
}

.answer-card.sel {
  background: color-mix(in srgb, var(--tk-teal) 10%, var(--tk-cream));
  border-color: var(--tk-teal);
}

.answer-letter {
  font-family: var(--tk-inter);
  font-weight: 600;
  font-size: 13px;
  color: var(--tk-ink);
  background: var(--tk-ivory);
}

.answer-card.sel .answer-letter {
  color: var(--tk-cream);
  background: var(--tk-teal);
}

.answer-label {
  font-family: var(--tk-inter);
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1.5;
  color: var(--tk-ink);
}

.validation-msg {
  font-family: var(--tk-inter);
  font-size: 14px;
  color: var(--tk-teal-text);
}

/* =========================================================================
   Results
   ========================================================================= */

.result-heading {
  font-family: var(--tk-playfair);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--tk-ink);
}

.bridge-heading,
.final-cta-heading {
  font-family: var(--tk-playfair);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--tk-ink);
}

/* =========================================================================
   Buttons: functional actions in Trinketz teal with a Cream label (4.76:1);
   the quiz's brass + white measured ~3:1, below AA. The secondary action is
   an outline in teal.
   ========================================================================= */

.intro-btn,
.continue-btn,
.primary-cta {
  font-family: var(--tk-inter);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tk-cream);
  background: var(--tk-teal);
}

.intro-btn:hover,
.intro-btn:focus-visible,
.continue-btn:hover,
.continue-btn:focus-visible,
.primary-cta:hover,
.primary-cta:focus-visible {
  background: var(--tk-teal-text);
}

.secondary-cta {
  font-family: var(--tk-inter);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tk-teal-text);
  border-color: var(--tk-teal-text);
}

.secondary-cta:hover,
.secondary-cta:focus-visible {
  background: color-mix(in srgb, var(--tk-teal) 10%, transparent);
}

:focus-visible {
  outline-color: var(--tk-teal);
}

/* =========================================================================
   End of the results: podcast + blog (as JJ101 Module 1), then three CTAs
   (as JJ101's end-of-module promotion). Replaces the two placeholder
   buttons.
   ========================================================================= */

.tk-quiz-more {
  max-width: 560px;
  margin: 2rem auto 0;
  text-align: left;
}

.tk-quiz-more-heading {
  margin: 0 0 12px;
  font-family: var(--tk-playfair);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--tk-ink);
}

.tk-quiz-more .video-card {
  display: flex;
  flex-direction: column;
  background: var(--tk-cream);
  border: 1px solid var(--tk-hair);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(59, 46, 34, 0.14);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tk-quiz-more .video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(59, 46, 34, 0.22);
}

.tk-quiz-more .vc-body {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 15px;
}

.tk-quiz-more .vc-tag {
  margin-bottom: 5px;
  font-family: var(--tk-inter);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tk-teal-text);
}

.tk-quiz-more .vc-title {
  font-family: var(--tk-inter);
  font-size: 15px;
  line-height: 1.45;
  color: var(--tk-ink);
}

.tk-quiz-more .vc-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-top: 10px;
  font-family: var(--tk-inter);
  font-size: 13px;
  color: var(--tk-teal-text);
}

.tk-quiz-more .vc-play::before {
  content: "";
  border-left: 9px solid var(--tk-teal-text);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.tk-quiz-blog {
  margin: 14px 0 0;
  font-family: var(--tk-inter);
  font-size: clamp(16px, 1.25vw, 17px);
  line-height: 1.7;
  color: var(--tk-ink);
}

.tk-quiz-blog a {
  color: var(--tk-teal-text);
  text-decoration-color: color-mix(in srgb, var(--tk-teal) 45%, transparent);
  text-underline-offset: 3px;
}

/* Three CTAs: one row on wide screens, stacked on phones. */
.tk-promos {
  display: grid;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--tk-brass);
}

@media (min-width: 900px) {
  .tk-promos {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.tk-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: center;
}

.tk-promo-line {
  margin: 0;
  max-width: 22em;
  font-family: var(--tk-playfair);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.4;
  color: var(--tk-ink);
}

/* The homepage's primary action (.tk-cta-primary), as in JJ101. */
.tk-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 0.85em 1.4em;
  font-family: var(--tk-inter);
  font-size: clamp(14px, 1.1vw, 15px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--tk-ink);
  background: transparent;
  border: 1px solid var(--tk-ink);
  border-radius: 0;
  transition: background-color 400ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 400ms cubic-bezier(0.22, 1, 0.36, 1),
    color 400ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tk-promo-arrow {
  width: 1.15em;
  height: 0.5em;
  flex: none;
  color: var(--tk-brass);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1), color 400ms ease;
}

.tk-promo-cta:hover,
.tk-promo-cta:focus-visible {
  background: var(--tk-brass);
  border-color: var(--tk-brass);
  color: var(--tk-cream);
  border-radius: 999px;
}

.tk-promo-cta:hover .tk-promo-arrow,
.tk-promo-cta:focus-visible .tk-promo-arrow {
  color: var(--tk-cream);
  transform: translateX(0.18em);
}

/* =========================================================================
   The Trinketz "T" seal (as JJ101): a Deep Teal disc with the authentic T
   mark in Cream, pressed in when Continue is clicked (trinketz-quiz.js).
   ========================================================================= */

.tk-seal {
  position: fixed;
  z-index: 60;
  right: 8vw;
  bottom: 16vh;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at 32% 30%,
    color-mix(in srgb, var(--tk-teal) 70%, var(--tk-cream)),
    var(--tk-teal) 55%,
    var(--tk-teal-text));
  box-shadow: 0 6px 16px rgba(59, 46, 34, 0.35), inset 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.tk-seal::before {
  content: "";
  width: 40%;
  aspect-ratio: 215 / 284;
  background: var(--tk-cream);
  -webkit-mask: url("/brand/trinketz-mark.webp") center / contain no-repeat;
  mask: url("/brand/trinketz-mark.webp") center / contain no-repeat;
}

.tk-seal.tk-seal-pop {
  display: flex;
  animation: tk-sealpress 0.8s ease both;
}

@keyframes tk-sealpress {
  0% { transform: scale(1.7); opacity: 0; }
  35% { transform: scale(0.94); opacity: 1; }
  55% { transform: scale(1.03); }
  80% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tk-promo-cta,
  .tk-promo-arrow {
    transition: none;
  }

  .tk-seal.tk-seal-pop {
    display: none;
  }
}

/* =========================================================================
   Public page content (owner, 3 Oct 2026): the quiz is a public resource.
   Back link, and "About this quiz" — the questions and the eleven results
   as ordinary HTML, built from the quiz's own data
   (migration/tools/quiz_static_html.cjs).
   ========================================================================= */
.tk-back {
  position: absolute;
  top: 14px;
  left: max(28px, 4vw); /* clear of the paper's dark edge */
  z-index: 30;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: #3b2e22;
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 46, 34, 0.4);
  padding-bottom: 2px;
}
.tk-back:hover,
.tk-back:focus-visible { border-bottom-color: #3b2e22; }

.js .tk-nojs { display: none; }

.tk-quiz-about {
  box-sizing: border-box;
  max-width: 720px;
  margin: 72px auto 96px;
  padding: 0 24px;
  color: #3b2e22;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
}
.tk-quiz-about h2 {
  margin: 48px 0 16px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.tk-quiz-about h2:first-child { margin-top: 0; }
.tk-quiz-about h3 {
  margin: 0 0 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tk-quiz-about p { margin: 0 0 12px; }
.tk-quiz-about a { color: inherit; text-underline-offset: 3px; }
.tk-quiz-about details {
  margin: 20px 0 8px;
  border-top: 1px solid rgba(59, 46, 34, 0.25);
  border-bottom: 1px solid rgba(59, 46, 34, 0.25);
  padding: 14px 0;
}
.tk-quiz-about summary {
  cursor: pointer;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tk-quiz-about ol { margin: 14px 0 0 22px; padding: 0; }
.tk-quiz-about li { margin-bottom: 8px; }
.tk-quiz-type {
  padding: 20px 0;
  border-top: 1px solid rgba(59, 46, 34, 0.18);
}
