@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/thmanyahsans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/thmanyahsans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("/fonts/thmanyah/thmanyahserifdisplay-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --canvas: #c5beb2;
  --paper: #f4f0e7;
  --paper-deep: #e8e1d5;
  --ink: #201d18;
  --muted: #6d675e;
  --rule: rgba(32, 29, 24, 0.34);
  --brick: #7f4035;
  --brick-dark: #5d2d26;
  --green: #435b49;
  --highlight: #ded36c;
  --focus: #7f4035;
  --display: "Thmanyah Serif Display", "Geeza Pro", "Times New Roman", serif;
  --body: "Thmanyah Sans", "Geeza Pro", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 4px),
    var(--canvas);
  font-family: var(--body);
  line-height: 1.65;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header,
footer {
  width: min(100% - 56px, 1224px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 13px;
}

.site-header {
  min-height: 72px;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 20px;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-mark circle { fill: currentColor; }

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.brand strong {
  font-weight: 700;
}

.assessment-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.assessment-nav a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 5px;
}

.assessment-nav .language-switcher {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--ink);
  text-decoration: none;
}

.assessment-nav .nav-action {
  padding: 11px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.quiz-mobile-menu { position: relative; z-index: 20; display: none; }
.quiz-mobile-menu summary {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid var(--ink);
  cursor: pointer;
  list-style: none;
  align-content: center;
  gap: 4px;
}
.quiz-mobile-menu summary::-webkit-details-marker { display: none; }
.quiz-mobile-menu summary span { display: block; width: 100%; height: 1px; background: var(--ink); }
.quiz-mobile-menu[open] summary span:first-child { transform: translateY(5px) rotate(45deg); }
.quiz-mobile-menu[open] summary span:nth-child(2) { opacity: 0; }
.quiz-mobile-menu[open] summary span:last-child { transform: translateY(-5px) rotate(-45deg); }
.quiz-mobile-menu > nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  width: calc(100vw - 20px);
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 5px 0 rgba(32,29,24,.18);
}
.quiz-mobile-menu > nav > a {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(32,29,24,.25);
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}
.mobile-language-links { display: grid; grid-template-columns: 1fr 1fr; direction: ltr; }
.mobile-language-links a {
  padding: 18px 20px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.mobile-language-links a + a { border-left: 1px solid var(--ink); }
.mobile-language-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }

main {
  min-height: calc(100vh - 137px);
}

.screen {
  position: relative;
  width: min(100% - 56px, 1224px);
  margin-inline: auto;
}

.dossier-paper {
  position: relative;
  z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(32,29,24,0.012) 0, rgba(32,29,24,0.012) 1px, transparent 1px, transparent 3px),
    var(--paper);
  box-shadow: 0 5px 10px rgba(32, 29, 24, 0.14);
}

.intro-screen {
  min-height: calc(100vh - 137px);
  display: grid;
  place-items: center;
  padding-block: 72px 104px;
}

.paper-stack {
  position: absolute;
  inset: 54px 3% 82px;
  z-index: 0;
  background: var(--paper-deep);
  transform: rotate(1.2deg);
  box-shadow:
    -18px 18px 0 rgba(244, 240, 231, 0.68),
    0 4px 8px rgba(32, 29, 24, 0.12);
}

.content {
  width: min(100%, 960px);
  padding: 46px 54px 48px;
}

.file-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 46px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(43px, 6vw, 78px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

mark {
  color: inherit;
  background:
    linear-gradient(transparent 56%, var(--highlight) 56%, var(--highlight) 92%, transparent 92%);
}

.lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--ink);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.9;
}

.what-you-get {
  margin: 40px 0 34px;
  padding: 22px 0;
  border-block: 1px solid var(--rule);
  background: transparent;
}

.what-you-get::after {
  content: none;
}

.what-you-get p {
  margin: 0 0 10px;
  color: var(--brick);
  font-size: 19px;
  font-weight: 700;
}

.what-you-get ul {
  margin: 0;
  padding-inline-start: 22px;
}

.primary-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--paper);
  background: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.primary-button:hover {
  color: #fff;
  background: var(--brick);
}

.primary-button:disabled {
  cursor: not-allowed;
  color: rgba(244, 240, 231, 0.58);
  background: #777168;
}

.primary-button:focus-visible,
.text-button:focus-visible,
.answer-option:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.privacy-note {
  display: inline-block;
  margin: 12px 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.assessment-screen {
  min-height: calc(100vh - 137px);
  display: grid;
  place-items: center;
  padding-block: 64px 88px;
}

.assessment-back-sheet,
.result-back-sheet {
  position: absolute;
  inset: 46px 8% 68px;
  z-index: 0;
  background: #e7dfd2;
  transform: rotate(-1.25deg);
  box-shadow:
    18px 14px 0 rgba(244, 240, 231, 0.62),
    0 4px 8px rgba(32, 29, 24, 0.12);
}

.assessment-shell {
  width: min(100%, 920px);
  padding: 38px 48px 42px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
}

.progress-row span:last-child {
  color: var(--brick);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 1px;
  overflow: visible;
  background: var(--rule);
}

.progress-bar {
  position: relative;
  width: 12.5%;
  height: 4px;
  top: -1px;
  background: var(--brick);
  transition: width 180ms ease;
}

fieldset {
  min-width: 0;
  margin: 54px 0 0;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  padding: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.question-help {
  max-width: 700px;
  min-height: 56px;
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 16px;
}

.answer-options {
  display: grid;
  border-top: 1px solid var(--rule);
}

.answer-option {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-align: right;
  transition: background-color 140ms ease, color 140ms ease;
}

.answer-option:hover {
  background: rgba(222, 211, 108, 0.18);
}

.answer-option.selected {
  color: var(--ink);
  background:
    linear-gradient(transparent 22%, rgba(222, 211, 108, 0.78) 22%, rgba(222, 211, 108, 0.78) 82%, transparent 82%);
}

.choice-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-inline-start: 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.selected .choice-mark {
  position: relative;
  border-color: var(--brick);
  background: var(--brick);
}

.selected .choice-mark::after {
  content: "✓";
  position: absolute;
  inset: -7px -2px auto auto;
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.text-button {
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  background: transparent;
}

.text-button:hover {
  color: var(--ink);
}

.error-message {
  margin: 14px 0 0;
  color: var(--brick);
  font-size: 13px;
}

.result-screen {
  padding-block: 70px 104px;
}

.result-back-sheet {
  inset: 48px 5% 82px;
  transform: rotate(0.8deg);
}

.result-shell {
  width: min(100%, 1000px);
  margin-inline: auto;
  padding: 44px 54px 50px;
}

.result-summary {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--ink);
}

.step-label {
  margin: 0 0 18px;
  color: var(--brick);
  font-size: 13px;
  font-weight: 700;
}

.result-summary h1 {
  font-size: clamp(42px, 5.5vw, 68px);
}

.score-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.score-line > span {
  color: var(--muted);
}

.score-line strong {
  color: var(--brick);
  font-family: var(--display);
  font-size: 52px;
  line-height: 1;
}

.score-total {
  color: var(--muted);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
}

.result-details > section {
  padding-block: 34px;
  border-bottom: 1px solid var(--rule);
}

.result-details h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
}

.result-details p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.priority-section {
  position: relative;
}

.priority-section::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 9%;
  width: 92px;
  height: 20px;
  background: rgba(94, 94, 80, 0.38);
  transform: rotate(-4deg);
}

.priority-section h2 span {
  color: var(--brick);
  background:
    linear-gradient(transparent 58%, rgba(222, 211, 108, 0.82) 58%, rgba(222, 211, 108, 0.82) 95%, transparent 95%);
}

.category-row {
  display: grid;
  grid-template-columns: 90px 1fr 54px;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.category-track {
  height: 5px;
  overflow: hidden;
  background: rgba(32, 29, 24, 0.16);
}

.category-fill {
  height: 100%;
  background: var(--brick);
}

.category-number {
  direction: ltr;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.actions-section ol {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
  border-top: 1px solid var(--rule);
}

.actions-section li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.actions-section li::before {
  content: counter(steps, decimal-leading-zero);
  color: var(--brick);
  font-weight: 700;
}

.audit-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.audit-cta .primary-button {
  flex: 0 0 auto;
}

.restart-button {
  margin-top: 26px;
}

footer {
  min-height: 65px;
  border-top: 1px solid var(--ink);
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .assessment-nav { display: none; }
  .quiz-mobile-menu { display: block; }
}

@media (max-width: 720px) {
  .site-header,
  footer,
  .screen {
    width: min(100% - 28px, 1224px);
  }

  .site-header {
    min-height: 64px;
  }

  .assessment-nav { display: none; }
  .quiz-mobile-menu { display: block; }

  .site-header > span,
  footer span:last-child {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .intro-screen,
  .assessment-screen {
    place-items: start;
    padding-block: 38px 62px;
  }

  .paper-stack,
  .assessment-back-sheet,
  .result-back-sheet {
    inset: 28px 2% 40px;
  }

  .content,
  .assessment-shell,
  .result-shell {
    padding: 28px 22px 32px;
  }

  .file-meta {
    margin-bottom: 30px;
  }

  h1 {
    font-size: 43px;
  }

  .what-you-get {
    padding-inline: 22px 18px;
  }

  fieldset {
    margin-top: 38px;
  }

  legend {
    font-size: 34px;
  }

  .question-help {
    min-height: 0;
  }

  .result-screen {
    padding-block: 44px 72px;
  }

  .priority-section::after {
    display: none;
  }

  .category-row {
    grid-template-columns: 64px 1fr 44px;
    gap: 10px;
  }

  .audit-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-cta .primary-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
