:root{color-scheme:light;--ink:#211c18;--paper:#f6f0df;--gold:#a78849;--line:#c9b897;--red:#792d29;font-family:system-ui,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}header,main,footer{width:min(100% - 2rem,42rem);margin:auto}header{display:flex;align-items:center;justify-content:space-between;padding:1rem 0;border-bottom:1px solid var(--line)}header img{width:9rem;display:block}h1,h2,h3{font-family:Georgia,"Songti SC",serif}h1{font-size:clamp(2.25rem,8vw,3.4rem);margin:1.7rem 0 0}h2{font-size:1.5rem;margin:0 0 .8rem}section{padding:1.5rem 0;border-top:1px solid var(--line)}p{line-height:1.6}label,output,pre{display:block;margin:.7rem 0;overflow-wrap:anywhere}label span{display:block;margin-bottom:.3rem}input:not([type=checkbox]),select,textarea{width:100%;padding:.6rem;border:1px solid var(--line);background:#fffcf4;color:var(--ink);border-radius:.35rem;font:inherit;min-height:44px}button,.button{touch-action:manipulation;min-height:44px;padding:.6rem 1rem;background:var(--ink);color:var(--paper);font:inherit;border:0;border-radius:.35rem;margin:.2rem 0}.button{display:inline-block}button:disabled{background:#d9d0bd;color:#554f46}.check{display:flex;align-items:center;gap:.5rem;min-height:44px}.check input{width:1.2rem;height:1.2rem}pre,output{white-space:pre-wrap;word-break:break-word;font-size:.94rem}pre{padding:.8rem;background:#fff9eb}a{color:var(--red)}summary{padding:.65rem 0;cursor:pointer}footer{padding:1.4rem 0 max(1.4rem,env(safe-area-inset-bottom));border-top:1px solid var(--line)}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--red);outline-offset:2px}

body {font-size:18px;line-height:1.6}
header,main,footer {width:min(92%,96rem)}
main {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:0 clamp(24px,4vw,68px)}
main > :not(section) {grid-column:1/-1}
main > section {height:100%;min-width:0;box-sizing:border-box;padding:clamp(18px,2.2vw,36px);background:#fcf7ef;border:1px solid #c9b897}
main h1 {font-size:clamp(44px,4.6vw,76px);line-height:1.12;color:#422a24}
main h2 {font-size:clamp(26px,2.25vw,38px);line-height:1.25}
header {min-height:68px}header img {width:clamp(148px,15vw,220px)}
output,pre,small {font-size:16px}
@media(max-width:760px){main {grid-template-columns:minmax(0,1fr);gap:12px}main > section {height:auto}main h1 {margin-top:18px}}
