:root {
  color-scheme: light;
  --ink: #261933;
  --muted: #575060;
  --plum: #512061;
  --line: #ded5e6;
  --surface: #fff;
  --cool: #f6f0fa;
  font: 100%/1.55 system-ui,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at 68% 7%,#ede3f7,transparent 38rem),linear-gradient(170deg,#fcfaff,#f7f5fa 58%,#eef5f4);
  color: var(--ink);
}

a {
  color: var(--plum);
}

button {
  font: inherit;
}

a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible {
  outline: 3px solid #5f43b6;
  outline-offset: 4px;
}

.skip {
  position: absolute;
  top: .5rem;
  left: 1rem;
  transform: translateY(-160%);
  padding: .5rem;
  background: white;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

.shell {
  width: min(100% - 3rem,72rem);
  margin-inline: auto;
}

.masthead {
  height: 5.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  color: var(--ink);
}

nav {
  display: flex;
  gap: clamp(.8rem,3vw,2rem);
  font-size: .93rem;
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

nav a:hover,.quiet:hover {
  text-decoration: underline;
  text-underline-offset: .25rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem,6vw,5rem);
  padding-block: clamp(2.75rem,7vw,6rem);
}

.eyebrow {
  margin: 0 0 .65rem;
  color: #5e3771;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

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

h1,h2,h3 {
  margin: .1em 0 .25em;
  line-height: 1.05;
  letter-spacing: -.05em;
}

h1 {
  font-size: clamp(3.4rem,7.8vw,7rem);
  font-weight: 800;
}

h1 em {
  font-style: normal;
  color: #6f2b80;
}

h2 {
  font-size: clamp(2.15rem,4.6vw,3.7rem);
}

h3 {
  font-size: clamp(1.4rem,2.6vw,1.8rem);
  line-height: 1.15;
}

.intro {
  max-width: 33rem;
  font-size: clamp(1.06rem,2vw,1.24rem);
  color: var(--muted);
  margin: 1.2rem 0 1.5rem;
}

.art {
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid #cbbbd8;
  background: #e2d9eb;
  box-shadow: 0 18px 44px #39254318;
}

.art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.12;
  object-fit: cover;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1rem 1.35rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .6rem 1.15rem;
  background: var(--plum);
  color: white;
  border: 1px solid var(--plum);
  border-radius: .65rem;
  text-decoration: none;
  font-weight: 720;
  cursor: pointer;
}

.button:hover {
  background: #391545;
}

.quiet {
  font-weight: 720;
  text-underline-offset: .22rem;
}

.practice,.state {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.section-intro {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.section-intro p:last-child,.onward p {
  color: var(--muted);
  margin: 0;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  gap: 1rem;
  align-items: start;
}

.quiz,.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: clamp(1rem,3.4vw,2rem);
}

.quiz {
  min-height: 24rem;
}

.quiz p {
  margin: .75rem 0;
}

.quiz .eyebrow {
  margin-top: 0;
}

.context {
  color: var(--muted);
}

fieldset {
  display: grid;
  gap: .55rem;
  border: 0;
  padding: 0;
  margin: 1rem 0;
  min-inline-size: 0;
}

legend {
  font-weight: 750;
  margin-bottom: .65rem;
}

label.option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  padding: .66rem .8rem;
  cursor: pointer;
}

label.option:has(:checked) {
  border-color: var(--plum);
  background: #f5ecfa;
}

label.option.is-right {
  border-color: #357267;
  background: #eaf7f1;
}

input[type=radio] {
  width: 1.12rem;
  height: 1.12rem;
  flex: none;
  margin: .2rem 0 0;
  accent-color: var(--plum);
}

.result {
  margin-block: 1rem;
  padding: .8rem 1rem;
  border-radius: .6rem;
  background: #eff6f3;
  color: #214c43;
}

.result p:first-child {
  margin-top: 0;
}

.result p:last-child {
  margin-bottom: 0;
}

.review {
  background: #faf6fc;
}

.review h3 {
  margin-bottom: .7rem;
}

details {
  border-bottom: 1px solid var(--line);
  padding: .85rem 0;
}

details:last-child {
  border: 0;
}

summary {
  font-weight: 730;
  cursor: pointer;
}

details p {
  margin: .75rem 0;
  color: #493e52;
}

details a,.result a {
  font-weight: 650;
  text-underline-offset: .18rem;
}

.rail {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .75rem;
}

.rail a {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: #ffffffa8;
  text-decoration: none;
  min-height: 6.2rem;
}

.rail a:hover {
  border-color: var(--plum);
  background: #fff;
}

.rail span {
  color: var(--muted);
  font-size: .9rem;
}

.onward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem;
  background: #e4f1ed;
  border: 1px solid #c6ddd7;
  border-radius: 1rem;
}

.onward h2 {
  font-size: clamp(1.75rem,4vw,2.6rem);
}

.onward .button {
  flex: none;
}

.footer {
  padding: 2rem 0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: .9rem;
}

.footer p {
  margin: 0;
}

.footer span {
  white-space: nowrap;
}

@media(max-width:780px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .art img {
    aspect-ratio: 1.65;
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .rail {
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width:480px) {
  .shell {
    width: calc(100% - 2rem);
  }
  .masthead {
    height: 4.6rem;
  }
  nav {
    gap: .65rem;
    font-size: .86rem;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .onward,.footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .onward {
    padding: 1rem;
  }
  .rail a {
    padding: .8rem;
  }
}

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