/* Designed for Kindle e-ink: high contrast, large tap targets, no transitions. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #000000;
  font-family: Georgia, "Bookerly", "Caecilia", serif;
  font-size: 22px;
  line-height: 1.55;
  -webkit-user-select: none;
  user-select: none;
}

#root {
  width: 100vw;
  min-height: 100vh;
  padding: 32px 48px 96px;
}

.screen { display: none; }
.screen.active { display: block; }

h1, h2 {
  font-weight: normal;
  letter-spacing: 0.5px;
}

h1 { font-size: 32px; margin: 0 0 18px; }
h2 { font-size: 24px; margin: 0 0 24px; }

p { margin: 0 0 18px; }

button {
  background: #ffffff;
  border: 2px solid #000000;
  color: #000000;
  font-family: inherit;
  font-size: 20px;
  padding: 14px 24px;
  margin: 8px 6px 8px 0;
  cursor: pointer;
  -webkit-appearance: none;
  border-radius: 0;
}
button:active { background: #000000; color: #ffffff; }

.muted { color: #555; font-size: 18px; }
.small { font-size: 16px; }

/* Reader */
.section-title {
  font-size: 24px;
  margin: 0 0 28px;
  border-bottom: 1px solid #000;
  padding-bottom: 8px;
}

.paragraph {
  margin: 0 0 22px;
  padding: 6px 8px;
  border-left: 4px solid transparent;
}
.paragraph.highlighted {
  border-left-color: #000;
  background: #eeeeee;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #000;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.footer .progress { flex: 1; text-align: center; }
.footer button { padding: 10px 18px; font-size: 18px; margin: 0; }

/* Summary page */
.summary-page {
  border: 2px dashed #000;
  padding: 24px;
  margin: 16px 0;
}
.summary-label {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid #000;
  padding: 4px 10px;
}
.summary-body { font-style: italic; }
.summary-loading { font-style: italic; color: #555; }

/* Intro / done */
.center { text-align: center; }
.choice-row { display: flex; gap: 12px; justify-content: center; margin: 24px 0; }
.choice-row button { flex: 1; max-width: 200px; }

textarea {
  width: 100%;
  height: 240px;
  font-family: monospace;
  font-size: 12px;
  padding: 12px;
  border: 1px solid #000;
}

.status-line {
  position: fixed;
  top: 8px;
  right: 12px;
  font-size: 14px;
  color: #555;
}
