:root {
  --paper: #f3efe6;
  --ink: #1c1915;
  --muted: #6d6458;
  --line: #d9d0c2;
  --red: #9c2b1c;
  --frame: #ebe4d6;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: #faf7f1;
}
.brand { margin: 0; font-size: 18px; letter-spacing: 0.01em; }
.brand em { font-style: italic; color: var(--red); }
.feedlink {
  color: var(--ink);
  text-decoration: none;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper span { min-width: 7em; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
button, input, label { font: inherit; }
button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 10px;
  cursor: pointer;
}
button:hover { border-color: var(--ink); }
button[aria-selected="true"], button.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
#q {
  flex: 1;
  min-width: 12rem;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 6px 2px;
  color: var(--ink);
}
.check { display: flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }

main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.col {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 18px;
  gap: 8px;
}
.col + .col { border-left: 1px solid var(--line); }
.kicker {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.frame {
  flex: 1;
  min-height: 0;
  background: var(--frame);
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.meta { margin: 0; color: var(--muted); font-size: 14px; }
.copy {
  margin: 0;
  max-height: 22vh;
  overflow: auto;
  line-height: 1.45;
  font-size: 16px;
}
.prompt { font-size: 15px; }
.note { margin: 0; color: var(--red); font-size: 14px; }
.variants { display: flex; flex-wrap: wrap; gap: 6px; }
.variants button { min-width: 2.2rem; padding: 4px 8px; }
.empty {
  margin: 0;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 800px) {
  header { flex-wrap: wrap; }
  main { grid-template-columns: 1fr; }
  .col + .col { border-left: none; border-top: 1px solid var(--line); }
  .frame { min-height: 42vh; }
}
