:root {
  color-scheme: light;
  --ink: #20231f;
  --muted: #646b63;
  --paper: #f8f7f2;
  --white: #ffffff;
  --forest: #214b3b;
  --forest-dark: #173529;
  --burgundy: #792f42;
  --line: #d8d9d2;
  --soft-green: #e8efe9;
  --focus: #be6b32;
  --shadow: 0 20px 50px rgba(32, 35, 31, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-header nav a,
.site-header nav span {
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
}

.site-header nav [aria-current="page"] {
  color: var(--white);
  background: var(--forest);
}

.experience {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 52px 0 64px;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
}

.eyebrow,
.dimension {
  margin: 0 0 14px;
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
.principles h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.02;
}

h1 {
  max-width: 700px;
  font-size: clamp(2.7rem, 5.5vw, 5.4rem);
}

.promise {
  margin: 24px 0 8px;
  color: var(--forest);
  font-size: 1.14rem;
  font-weight: 750;
}

.lede {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.clara-note {
  max-width: 520px;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
}

.clara-note img {
  width: 88px;
  height: 88px;
  display: block;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 7px 24px rgba(32, 35, 31, 0.15);
}

.clara-note figcaption {
  display: grid;
  gap: 4px;
}

.clara-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.clara-note span {
  color: var(--muted);
  font-size: 0.85rem;
}

.scorecard {
  min-height: 590px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.question-panel,
.result-panel {
  min-height: 590px;
  padding: clamp(28px, 5vw, 52px);
}

.question-panel {
  display: flex;
  flex-direction: column;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-row span:first-child {
  color: var(--ink);
  font-weight: 750;
}

.progress-track {
  height: 4px;
  margin: 12px 0 50px;
  overflow: hidden;
  background: #ecece7;
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--burgundy);
  transition: width 220ms ease;
}

.question-panel h2 {
  max-width: 700px;
  min-height: 96px;
  margin: 0 0 32px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.17;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(74px, 1fr));
  border: 1px solid var(--line);
}

.scale-option {
  min-height: 96px;
  padding: 12px 8px;
  display: grid;
  gap: 7px;
  place-content: center;
  color: var(--muted);
  background: var(--white);
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.scale-option:last-child {
  border-right: 0;
}

.scale-option:hover {
  background: var(--soft-green);
}

.scale-option[aria-pressed="true"] {
  color: var(--white);
  background: var(--forest);
}

.scale-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.scale-option span:last-child {
  font-size: 0.72rem;
  font-weight: 700;
}

.status {
  min-height: 24px;
  margin: 14px 0;
  color: var(--burgundy);
  font-size: 0.84rem;
}

.question-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.question-actions {
  margin-top: auto;
  justify-content: space-between;
}

.button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--forest);
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--forest);
}

.button-primary:hover {
  background: var(--forest-dark);
}

.button-secondary {
  color: var(--forest);
  background: transparent;
}

.button:disabled {
  color: #92978f;
  border-color: var(--line);
  cursor: not-allowed;
}

.result-heading {
  margin-bottom: 20px;
  display: flex;
  gap: 22px;
  align-items: center;
}

.score {
  min-width: 112px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.8rem;
  line-height: 1;
  color: var(--forest);
}

.result-heading p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.result-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.08;
}

.result-body {
  max-width: 640px;
  color: var(--muted);
}

.result-panel h3 {
  margin: 30px 0 12px;
  font-size: 0.9rem;
}

.dimension-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.dimension-list li > div:first-child {
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
}

.meter {
  height: 5px;
  background: #ecece7;
}

.meter span {
  height: 100%;
  display: block;
  background: var(--forest);
}

.reflection-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.reflection-list li + li {
  margin-top: 7px;
}

.disclaimer {
  margin: 24px 0 18px;
  padding-left: 13px;
  color: var(--muted);
  border-left: 3px solid var(--burgundy);
  font-size: 0.76rem;
}

.text-link {
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 750;
  text-underline-offset: 3px;
}

.principles {
  padding: 78px max(20px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(38px, 7vw, 90px);
  background: var(--forest-dark);
  color: var(--white);
}

.principles .eyebrow {
  color: #d8a7b3;
}

.principles h2 {
  max-width: 430px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.principle-grid article {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 16px;
}

.principle-grid span {
  color: #d8a7b3;
  font-size: 0.75rem;
  font-weight: 800;
}

.principle-grid h3 {
  margin: 20px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.principle-grid p {
  margin: 0;
  color: #cfdbd4;
  font-size: 0.88rem;
}

footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 130px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  font-size: 0.8rem;
}

footer > p:first-child {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.social-links a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.footer-note {
  max-width: 260px;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 900px) {
  .experience {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .introduction {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 22px;
  }

  .introduction > :not(.clara-note) {
    grid-column: 1;
  }

  .clara-note {
    grid-column: 2;
    grid-row: 1 / span 5;
    width: 170px;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .clara-note img {
    width: 112px;
    height: 112px;
  }

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

  footer {
    grid-template-columns: 1fr;
    padding: 28px 0;
    text-align: center;
  }

  .footer-note {
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-header,
  .experience,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .experience {
    min-height: auto;
    padding: 34px 0 42px;
    gap: 34px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .introduction {
    display: block;
  }

  .clara-note {
    width: auto;
    margin-top: 26px;
    grid-template-columns: 72px 1fr;
  }

  .clara-note img {
    width: 72px;
    height: 72px;
  }

  .scorecard,
  .question-panel,
  .result-panel {
    min-height: 0;
  }

  .question-panel,
  .result-panel {
    padding: 24px 18px;
  }

  .progress-row span:last-child {
    display: none;
  }

  .progress-track {
    margin-bottom: 34px;
  }

  .question-panel h2 {
    min-height: 0;
    margin-bottom: 24px;
    font-size: 1.72rem;
  }

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

  .scale-option {
    min-height: 52px;
    padding: 8px 14px;
    grid-template-columns: 34px 1fr;
    place-content: center stretch;
    align-items: center;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scale-option:last-child {
    border-bottom: 0;
  }

  .scale-number {
    font-size: 1.15rem;
  }

  .question-actions .button {
    flex: 1;
  }

  .result-heading {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .score {
    min-width: 0;
    font-size: 3rem;
  }

  .principles {
    padding-top: 56px;
    padding-bottom: 56px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
