:root {
  color-scheme: light;
  --ink: #42291f;
  --paper: #fff8ec;
  --rust: #a44735;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}
header,
footer,
main {
  max-width: 760px;
  margin: auto;
  padding: 24px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dfc6aa;
}
a {
  color: var(--rust);
}
.brand {
  font:
    italic 28px Georgia,
    serif;
  text-decoration: none;
  color: var(--ink);
}
.brand-icon {
  width: 65px;
  vertical-align: middle;
  margin-right: 8px;
}
header nav {
  font-size: 15px;
}
main {
  min-height: 70vh;
  padding: 45px 24px 70px;
}
.stage > h1,
.reading-card h1 {
  font:
    48px/1.12 Georgia,
    serif;
  letter-spacing: -1.5px;
  margin: 10px 0 24px;
}
p {
  margin: 16px 0;
}
.field {
  display: block;
  margin: 26px 0;
}
.field > span {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
input {
  font: inherit;
  max-width: 100%;
}
input[type="text"] {
  width: 100%;
  padding: 13px;
  background: white;
  border: 1px solid #c7a987;
  border-radius: 10px;
}
input[type="file"] {
  display: block;
  width: 100%;
  padding: 22px;
  border: 2px dashed #b18b69;
  border-radius: 14px;
  background: #f8ecd9;
}
button,
.primary,
.secondary {
  font: inherit;
  cursor: pointer;
  display: inline-block;
  padding: 13px 21px;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--rust);
}
.primary {
  background: var(--rust);
  color: white;
}
.secondary {
  background: transparent;
  color: var(--rust);
}
.full {
  width: 100%;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.actions > * {
  flex: 1 1 auto;
}
.text-link {
  border: 0;
  padding: 12px 0;
  background: none;
  color: var(--rust);
  text-decoration: underline;
}
.help,
.privacy-note {
  font-size: 14px;
  line-height: 1.6;
  color: #70503b;
}
.error {
  color: #932b26;
}
.haiku-photo {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 14px;
  margin: 24px 0;
}
.reading-card {
  border: 1px solid #dfc6aa;
  border-radius: 22px;
  padding: 28px;
  background: #fffdf7;
}
.reading-lines {
  font:
    24px/1.5 Georgia,
    serif;
}
.reading-lines p {
  margin: 8px 0;
}
footer {
  border-top: 1px solid #dfc6aa;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #23687a;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  padding: 10px;
  background: white;
  z-index: 10;
}
@media (max-width: 500px) {
  .stage > h1,
  .reading-card h1 {
    font-size: 38px;
  }
  .reading-card {
    padding: 18px;
  }
  .reading-lines {
    font-size: 21px;
  }
  header {
    padding: 18px;
  }
  .brand {
    font-size: 24px;
  }
  .brand-icon {
    width: 43px;
  }
  header nav {
    max-width: 100px;
    text-align: right;
  }
}
