:root {
  color-scheme: light;
  --navy: #051e39;
  --gold: #b39051;
  --dark-gold: #8f713d;
  --diploma: #f9f6e5;
  --line: #d9d0bb;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: #fcfbf7;
  color: var(--navy);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--navy); }
button, input { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: .6rem;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--dark-gold); border-color: var(--dark-gold); color: #fff; }
button:disabled { background: #e3dfd5; border-color: #e3dfd5; color: #66717d; cursor: not-allowed; }
button:focus-visible, .button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
button.secondary { background: #fff; color: var(--navy); }
button.secondary:hover { background: var(--diploma); color: var(--navy); }
.shell { width: min(100% - 2rem, 850px); margin-inline: auto; }
.site-header { border-bottom: 3px solid var(--gold); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.brand { font-weight: 800; letter-spacing: -.025em; color: var(--navy); }
main { padding-block: 2.2rem 5rem; }
h1, h2 { line-height: 1.2; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: .3rem 0 1rem; }
h2 { font-size: 1.18rem; margin: 0 0 1rem; }
p { margin: .6rem 0 1.1rem; }
.hero { padding: .8rem .2rem 1.2rem; }
.hero > p:not(.eyebrow) { max-width: 700px; color: #344c65; font-size: 1.1rem; }
.hero.compact { padding-bottom: 1rem; }
.eyebrow { color: var(--dark-gold); text-transform: uppercase; letter-spacing: .11em; font-size: .73rem; font-weight: 800; margin: 0 0 .4rem; }
.card { background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 18px #051e390c; border-radius: .85rem; padding: clamp(1.3rem, 3vw, 2rem); margin: 1.1rem 0; }
.instructions-card { background: var(--diploma); border-left: 5px solid var(--gold); }
.instructions-card p:last-child { margin-bottom: 0; }
.muted { color: #465a71; }
.trial-top { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.trial-top h1 { margin-bottom: .5rem; }
.pill { display: inline-block; white-space: nowrap; padding: .35rem .75rem; border-radius: 2rem; background: var(--diploma); color: var(--navy); font-size: .85rem; font-weight: 700; margin-bottom: .7rem; }
.progress-track { height: .55rem; border-radius: 2rem; background: #e9e5db; overflow: hidden; margin: .5rem 0 1.6rem; }
.progress-track span { display: block; height: 100%; background: var(--gold); }
.reading-card h2 { color: var(--dark-gold); }
.reading-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }
.rating-card { margin-top: 1.8rem; border-top: 4px solid var(--gold); }
.rating-field { margin: 0 0 2rem; }
.rating-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.1rem; font-weight: 700; }
.score-entry { display: flex; align-items: center; gap: .4rem; font-size: .9rem; color: #455a70; }
.score-entry input { width: 5.7rem; padding: .55rem .7rem; border: 1px solid #a89a76; border-radius: .4rem; color: var(--navy); text-align: right; font-weight: 700; appearance: textfield; -moz-appearance: textfield; }
.score-entry input::-webkit-inner-spin-button, .score-entry input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper { display: flex; flex-direction: column; gap: 2px; }
.stepper button { width: 1.8rem; height: 1.25rem; padding: 0; border-radius: .22rem; font-size: .68rem; line-height: 1; }
.stepper button:disabled { background: #e3dfd5; border-color: #e3dfd5; }
.slider-control { margin: 1.15rem 0 .35rem; }
.tick-row { position: relative; height: .55rem; margin-inline: .55rem; }
.tick-row span { position: absolute; top: 0; width: 1px; height: .5rem; background: var(--dark-gold); transform: translateX(-50%); }
input[type="range"] { display: block; width: 100%; margin: .2rem 0; accent-color: var(--gold); cursor: pointer; }
.scale-labels { display: flex; justify-content: space-between; gap: 1rem; color: #53657a; font-size: .82rem; }
.scale-labels span:last-child { text-align: right; }
.centered { text-align: center; }
.finish-card { padding-block: 3rem; }
.finish-icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--diploma); color: var(--dark-gold); font-size: 2rem; line-height: 3.5rem; margin: 0 auto 1.3rem; }
.finish-card form { margin: 1.5rem 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .75rem .5rem; border-bottom: 1px solid #e4dece; }
thead th { font-size: .8rem; color: #53657a; white-space: nowrap; }
tbody th { font-weight: 650; }

@media (max-width: 550px) {
  main { padding-top: 1.4rem; }
  .trial-top { align-items: start; }
  .pill { margin-top: 1rem; }
  .rating-heading { align-items: start; flex-direction: column; gap: .55rem; }
  .scale-labels { font-size: .75rem; }
}
