:root { color-scheme: light; --paper: #f8f5ed; --ink: #272724; --muted: #59574d; --red: #8a392d; --rule: #c9c3b4; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 system-ui, sans-serif; }
main { max-width: 62rem; margin: auto; padding: clamp(1.1rem, 4.5vw, 3.5rem); }
a, .quiet { color: var(--red); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #356681; outline-offset: 3px; }
.back { display: inline-block; margin-bottom: 1.8rem; }
header { border-bottom: 2px solid var(--ink); padding-bottom: 1.5rem; }
h1, h2, header p, textarea { font-family: Georgia, "Times New Roman", serif; }
h1, h2 { line-height: 1.12; font-weight: 400; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.7rem, 7.8vw, 5.5rem); letter-spacing: -.042em; }
header p { max-width: 39rem; font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin: .75rem 0 0; }
.choices, .actions, footer, .quote-label { display: flex; gap: .6rem 1.15rem; flex-wrap: wrap; align-items: center; }
.choices { justify-content: space-between; padding: 1.25rem 0 1.5rem; }
label { display: block; font-weight: 600; }
select, input, textarea { color: var(--ink); background: #fffcf6; border: 1px solid #878476; border-radius: .24rem; padding: .65rem .8rem; font: inherit; }
select { margin-top: .35rem; min-height: 2.7rem; }
#saved, .small, footer { font-size: .88rem; color: var(--muted); }
.drafts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.drafts section { min-width: 0; }
h2 { margin: 0 0 .45rem; font-size: clamp(1.6rem,3.5vw,2.25rem); }
h2 label { font-weight: inherit; }
.drafts p { margin: .3rem 0 .65rem; color: var(--muted); }
textarea { display: block; width: 100%; resize: vertical; min-height: 10.5rem; line-height: 1.55; font-family: Georgia,serif; font-size: 1.13rem; }
textarea[readonly] { border-color: var(--rule); background: #f1eee5; }
.reader { max-width: 43rem; margin: 1.6rem 0 1.4rem; border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.reader h2 { margin-bottom: 1rem; }
.reader input { display: block; width: 100%; margin-top: .3rem; min-height: 2.7rem; }
.quote-label { justify-content: space-between; align-items: baseline; margin-top: 1rem; }
button { cursor: pointer; color: white; background: var(--red); border: 1px solid var(--red); border-radius: .25rem; font: 600 1rem/1.4 system-ui,sans-serif; min-height: 2.75rem; padding: .5rem .85rem; }
button.secondary { background: transparent; color: var(--red); }
button.quiet { border: 0; background: transparent; font: inherit; font-size: .92rem; padding: .25rem 0; text-decoration: underline; }
button[hidden] { display: none; }
.small { margin: .3rem 0 1rem; }
#feedback { line-height: 1.55; }
#feedback:not(:empty) { margin-top: .9rem; padding: .65rem .9rem; background: #f1eee5; border-left: 3px solid var(--red); }
mark { background: #f2dba0; color: var(--ink); padding: .05em .1em; }
footer { border-top: 1px solid var(--rule); padding-top: 1rem; }
@media (max-width: 42rem) {
  .drafts { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  textarea[readonly] { min-height: 6.5rem; height: 7.5rem; }
  .choices { align-items: end; gap: .5rem; }
}
@media (forced-colors: active) { mark { border: 1px solid MarkText; } }
