:root {
  color-scheme: light;
  font-family: Arial, "Helvetica Neue", sans-serif;
  background: #f5f6f8;
  color: #16181d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button {
  font: inherit;
}

.shell {
  width: min(760px, calc(100vw - 32px));
  margin: 36px auto;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #d7dce5;
}

a {
  color: #214f9f;
}

.hero {
  padding: 24px 0;
  border-bottom: 1px solid #d7dce5;
}

.eyebrow {
  margin: 0 0 8px;
  color: #667085;
  font-size: 14px;
}

h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.definition {
  margin: 20px 0 0;
  min-height: 84px;
  line-height: 1.7;
  font-size: 20px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.meta span {
  padding: 8px 10px;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  background: #ffffff;
  color: #424b5f;
}

.controls,
.speed {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.controls button,
.speed button {
  min-height: 48px;
  border: 1px solid #c8cfdb;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.controls #playButton {
  border-color: #237b54;
  color: #17633f;
}

.controls #pauseButton {
  border-color: #9f7130;
  color: #75501f;
}

.controls #explainButton {
  border-color: #214f9f;
  color: #214f9f;
  font-weight: 700;
}

.tutor-insight-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  background: #ffffff;
}

.tutor-insight-panel h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.tutor-insight-panel pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.7;
}

.speed button.active {
  border-color: #2f65c8;
  background: #eef4ff;
  color: #214f9f;
}

.voice-picker {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: #667085;
}

.voice-picker select {
  min-height: 42px;
  border: 1px solid #c8cfdb;
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
  padding: 0 10px;
}

.status {
  min-height: 24px;
  color: #667085;
}

@media (max-width: 620px) {
  h1 {
    font-size: 38px;
  }

  .controls,
  .speed {
    grid-template-columns: 1fr 1fr;
  }
}
