* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f3ea;
  color: #1d2521;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

header,
main {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  padding: 24px 0 8px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 2rem;
}

section {
  padding: 20px 0;
}

#question-text {
  min-height: 72px;
  padding: 18px;
  border: 2px solid #26332d;
  border-radius: 8px;
  background: #fffaf0;
  font-size: 1.35rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

#answer-form {
  display: grid;
  gap: 16px;
}

.answer-area {
  display: grid;
  gap: 8px;
}

.answer-area h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.answer-tabs,
#options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 56px;
}

.answer-tabs {
  padding: 12px;
  border: 2px dashed #7e8f87;
  border-radius: 8px;
  background: #ffffff;
}

.empty-answer {
  margin: 0;
  color: #65736c;
}

button {
  min-height: 44px;
  border: 2px solid #26332d;
  border-radius: 8px;
  padding: 8px 14px;
  background: #ffffff;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: #e7f4ee;
}

.difficulty-button.is-active {
  background: #26332d;
  color: #ffffff;
}

.choice-tab {
  background: #fff6d8;
}

.answer-tab {
  background: #caead8;
}

button[type="submit"] {
  justify-self: start;
  background: #26332d;
  color: #ffffff;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

button[type="submit"]:hover,
button[type="submit"]:focus-visible {
  background: #3d5148;
}

.is-hidden {
  display: none;
}

#result-text {
  margin: 0;
  min-height: 1.6em;
  font-weight: 700;
}

.difficulty-button.is-active {
  background: #26332d;
  color: #ffffff;
}
