:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#111c26;color:#f5efe4}
body{margin:auto;padding:1.25rem;max-width:100rem}
header,form,.buttons{display:flex;flex-wrap:wrap;align-items:end;gap:.8rem;margin-bottom:1rem}
header{align-items:center;justify-content:space-between}
h1{margin:0;font-family:Georgia,serif} a{color:#efce8b}
main{display:grid;grid-template-columns:minmax(0,1fr) minmax(22rem,1fr);gap:1.5rem}
main section{position:sticky;top:1rem;align-self:start}
#preview{display:block;max-width:100%;max-height:75vh;margin:auto;border-radius:.35rem}
#typography-form,#fields{display:block;width:100%}
fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr));gap:.5rem;border:1px solid #68717a;border-radius:.35rem;margin:0 0 1rem}
legend{color:#efce8b;font-weight:600}label{display:grid;gap:.25rem;font-size:.9rem}
input,select,button{font:inherit;padding:.45rem;border:1px solid #68717a;border-radius:.3rem;background:#1e2e3e;color:inherit;min-width:0}
input[type=color]{width:100%;height:2.2rem}button{cursor:pointer}button[type=submit]{background:#efce8b;color:#182532}
#result{min-height:1.4em}button:disabled{opacity:.6}
@media(max-width:52rem){main{grid-template-columns:minmax(0,1fr)}main section{position:static}}
