:root {
  color-scheme: light;
  --charcoal: #312b2d;
  --muted: #6d6266;
  --plum: #6f2947;
  --burgundy: #8d3650;
  --blush: #f5d7d3;
  --blush-soft: #fbefec;
  --paper: #fffaf7;
  --warm: #f4ece6;
  --line: #dfd2cc;
  --focus: #b64d67;
  --shadow: 0 20px 60px rgba(49, 43, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(111, 41, 71, 0.1), rgba(245, 215, 211, 0.28)),
    var(--paper);
  color: var(--charcoal);
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.55;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.assessment {
  width: min(100%, 860px);
  background: rgba(255, 250, 247, 0.92);
  border: 1px solid rgba(111, 41, 71, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel {
  padding: clamp(24px, 5vw, 54px);
}

.topline {
  color: var(--burgundy);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  font-weight: 500;
}

h1 {
  margin-top: 14px;
  max-width: 12ch;
  font-size: clamp(2.35rem, 9vw, 5.4rem);
}

h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 7vw, 4rem);
}

h3 {
  margin-top: 20px;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
}

p {
  margin: 16px 0 0;
  font-size: 1.05rem;
}

.intro-copy {
  margin-top: 28px;
  max-width: 650px;
}

.intro-copy p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary,
.secondary,
.choice,
.test-button {
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 14px 18px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.primary {
  background: var(--plum);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.secondary {
  background: transparent;
  color: var(--plum);
  border-color: rgba(111, 41, 71, 0.32);
}

.primary:hover,
.secondary:hover,
.choice:hover,
.test-button:hover {
  transform: translateY(-1px);
}

.primary:focus-visible,
.secondary:focus-visible,
.choice:focus-visible,
.test-button:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(182, 77, 103, 0.36);
  outline-offset: 3px;
}

.progress-wrap {
  padding: 22px clamp(24px, 5vw, 54px) 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.progress {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--warm);
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--plum), var(--burgundy));
  border-radius: inherit;
  transition: width 220ms ease;
}

.question-card {
  animation: lift 220ms ease both;
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-text {
  max-width: 760px;
}

.choices {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.choice {
  width: 100%;
  min-height: 64px;
  background: white;
  color: var(--charcoal);
  border-color: var(--line);
  text-align: left;
  font-size: 1rem;
}

.choice[aria-pressed="true"],
.choice.selected {
  background: var(--blush-soft);
  border-color: var(--plum);
  color: var(--plum);
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.textarea {
  width: 100%;
  min-height: 180px;
  margin-top: 30px;
  padding: 18px;
  resize: vertical;
  color: var(--charcoal);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.05rem;
}

.result {
  display: grid;
  gap: 34px;
}

.result-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.result-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.result-label {
  color: var(--burgundy);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-block p {
  max-width: 720px;
}

.secondary-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.secondary-list li {
  padding: 13px 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.secondary-list strong {
  color: var(--plum);
}

.secondary-list p {
  margin-top: 6px;
  color: var(--muted);
}

.video-box {
  display: block;
  width: 100%;
  max-width: 420px;
  min-height: 220px;
  margin-top: 20px;
  background: var(--charcoal);
  border-radius: 8px;
  aspect-ratio: 9 / 16;
}

.invitation {
  background: var(--blush-soft);
  border-top: 1px solid var(--line);
}

.invitation strong {
  color: var(--plum);
}

.result-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 18px clamp(24px, 5vw, 54px) 30px;
  background: var(--blush-soft);
}

.text-link {
  min-height: 36px;
  padding: 4px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(109, 98, 102, 0.35);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.text-link:hover {
  color: var(--plum);
  border-bottom-color: var(--plum);
}

.test-mode {
  border-top: 1px solid rgba(111, 41, 71, 0.18);
  background: #fff;
  padding: 20px clamp(24px, 5vw, 54px);
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.test-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
}

select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--charcoal);
  background: var(--paper);
}

.test-button {
  align-self: end;
  background: var(--charcoal);
  color: white;
  border-color: var(--charcoal);
  font-family: Arial, sans-serif;
}

.hidden {
  display: none;
}

@media (min-width: 760px) {
  .choices.scale {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .choices.scale .choice {
    min-height: 96px;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .shell {
    align-items: stretch;
    padding: 0;
  }

  .assessment {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }
}
