:root { color-scheme: light; font: 16px/1.55 system-ui, sans-serif; color: #232c26; background: #eeece2; }
* { box-sizing: border-box; }
body { margin: 0; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem max(1rem, calc((100% - 72rem)/2)); border-bottom: 1px solid #a6ac9d; }
.masthead strong { letter-spacing: .14em; }
.masthead strong span { color: #225646; }
.masthead > span, .kicker, #preview-meta { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
main { width: min(72rem, 100% - 2rem); margin: 0 auto; }
.intro { margin: clamp(1.6rem, 4vw, 3rem) 0 1.6rem; }
.kicker { font-weight: 700; color: #225646; }
h1 { font: 500 clamp(2.2rem, 5vw, 4.1rem)/1.05 Georgia, serif; margin: .45rem 0; }
.intro > p:last-child { max-width: 46ch; margin-bottom: 0; }
.workbench { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(0, 2.25fr); gap: 1rem; align-items: start; }
.settings, .preview, .exports { border: 1px solid #a6ac9d; border-radius: 1rem; padding: clamp(.85rem, 2.3vw, 1.4rem); min-width: 0; background: #f8f6ec; }
h2 { margin: 0 0 .8rem; font: 500 1.5rem/1.15 Georgia, serif; }
.settings label, .file label { display: block; font-size: .875rem; font-weight: 700; margin: .65rem 0 .25rem; }
.settings :is(input, select) { width: 100%; min-height: 2.75rem; border: 1px solid #788578; border-radius: .4rem; padding: .45rem; color: inherit; background: #fffdf6; font: inherit; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
button:not(.ff-action), .actions a { color: #254b3e; border: 1px solid #557264; border-radius: .4rem; padding: .55rem .85rem; min-height: 2.75rem; font: inherit; font-weight: 700; background: #fffdf6; cursor: pointer; }
button.main { background: #225646; color: #fff; }
#apply { margin-top: 1rem; }
:focus-visible { outline: 3px solid #166852; outline-offset: 3px; }
.note, #status { font-size: .875rem; color: #4f5d52; }
#status { border-top: 1px solid #c7c9bc; padding-top: .65rem; margin-bottom: 0; }
#status[data-error="true"] { color: #9d2822; }
.preview-head, footer { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.preview .note { margin-bottom: 0; }
.exports { margin: 1rem 0; }
.actions { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.file { min-width: 0; }
.file input { max-width: 100%; min-height: 2.75rem; font: inherit; }
footer { font-size: .85rem; padding: 0 0 2rem; }
a { color: #225646; }
@media (max-width: 720px) { .workbench { grid-template-columns: minmax(0,1fr); } }
