/* --- Base --- */
body {
  font-family: 'Lato', Arial, sans-serif;
  margin: 0;
  background: #f5efe0;
  color: #2c2416;
}

.wrap { max-width: 900px; margin: 0 auto; padding: 28px 20px; }

/* --- Page header --- */
.page-header {
  text-align: center;
  padding: 32px 16px 24px;
}

h1 {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
  color: #1e1609;
  padding-bottom: 14px;
  border-bottom: 2px solid #b89a5a;
}

.epigraph {
  font-style: italic;
  font-size: 0.95rem;
  color: #5a4a30;
  max-width: 680px;
  margin: 16px auto 10px;
  line-height: 1.7;
}

.epigraph-source {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: #7a6040;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.intro {
  font-size: 0.98rem;
  color: #3a2e1c;
  max-width: 680px;
  margin: 10px auto 0;
  line-height: 1.7;
}

/* --- Ornament divider --- */
.ornament {
  text-align: center;
  color: #b89a5a;
  font-size: 1.4rem;
  margin: 6px 0;
  letter-spacing: 0.5em;
  user-select: none;
}

/* --- Cards --- */
.card {
  background: #fdfaf4;
  border: 1px solid #c8b99a;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 10px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

h2 {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e1609;
  margin: 0 0 12px;
}

.card h3 {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 400;
  font-style: italic;
  margin: 16px 0 6px;
  font-size: 1.05rem;
  color: #3a2c18;
}

.card ul {
  margin: 8px 0;
  padding-left: 1.3rem;
}

.card li {
  margin: 7px 0;
  line-height: 1.6;
}

/* --- Controls --- */
label { display: block; margin: 12px 0; }

input[type="range"] {
  width: 320px;
  max-width: 100%;
  vertical-align: middle;
  accent-color: #2d5a3d;
}

select {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.95rem;
  border: 1px solid #c8b99a;
  border-radius: 4px;
  padding: 3px 8px;
  background: #fdfaf4;
  color: #2c2416;
}

pre {
  white-space: pre-wrap;
  font-family: Consolas, 'Lucida Console', monospace;
  font-size: 0.88rem;
  background: #fdf8ee;
  border: 1px solid #c8b99a;
  border-radius: 6px;
  padding: 12px 14px;
  color: #3a2e1c;
}

.small { font-size: 0.9rem; color: #5a4a30; line-height: 1.6; }
.input-sub { font-size: 0.85rem; color: #7a6040; margin-left: 6px; }

/* --- Copy button --- */
button#copy {
  background: #2d5a3d;
  color: #f5efe0;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-bottom: 14px;
}
button#copy:hover  { background: #1e3d28; }
button#copy:active { background: #163020; }

/* --- Challenge result box --- */
.challenge-box {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 6px solid;
  font-size: 0.95rem;
  line-height: 1.6;
}

.challenge-exceptional  { background: #eaf2ea; border-color: #4a7c59; color: #1e3d28; }
.challenge-good         { background: #f2f0e0; border-color: #7a8c3a; color: #3a4418; }
.challenge-modest       { background: #f9f0dc; border-color: #9a6b00; color: #5a3e00; }
.challenge-insufficient { background: #f5e8e8; border-color: #8b2020; color: #5a0e0e; }

.bottombar {
  text-align: center;
  font-size: 11px;
  color: #6e655a;
  padding: 8px;
  border-top: 1px solid #b89a5a;
}
