*{box-sizing:border-box}
body{margin:0;background:#faf9f4;color:#173f33;font:1rem/1.45 system-ui}
header,main{max-width:1240px;margin:auto;padding:16px clamp(14px,3vw,36px)}
header,form,aside,section{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
header{justify-content:space-between;border-bottom:1px solid #deded2}
a{color:inherit}
header a{font-size:1.22rem;font-weight:850;text-decoration:none;letter-spacing:-.04em}
b{color:#ce6535}
h1{font:600 clamp(2rem,4vw,3.4rem)/1.1 Georgia;margin:12px 0 24px;letter-spacing:-.035em}
button,select,label span,dialog a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:white;border:1px solid #ccd7ce;border-radius:24px;padding:7px 16px;color:inherit;font:600 .94rem system-ui;cursor:pointer}
select{appearance:none;padding-right:36px;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='M1 2l6 6 6-6' fill='none' stroke='%23173f33' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 13px center}
input{position:absolute;opacity:0;width:1px}
input:checked+span,dialog a,button:hover{background:#185740;color:white}
input:focus-visible+span,:focus-visible{outline:3px solid #cc632a;outline-offset:2px}
#topic{margin-left:auto}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:20px;margin:22px auto}
article{min-width:0;cursor:pointer;background:white;border:1px solid #e0e3d9;border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
article:hover{box-shadow:0 5px 18px #1839281c}
article img{width:100%;aspect-ratio:1;object-fit:contain;background:linear-gradient(140deg,#edf0e6,#dae5da)}
h2{font-size:1.05rem;line-height:1.25;margin:0;overflow-wrap:anywhere}
article h2,aside{padding:12px}
aside{margin-top:auto;padding-top:0}
aside button{flex:1;padding:6px;font-size:.875rem;background:#f0f6ee}
dialog{width:min(94%,490px);max-height:92dvh;border:none;border-radius:20px;color:inherit}
dialog::backdrop{background:#091d18bd}
section{justify-content:space-between}
section h2{flex:1}
#stage>*{display:block;width:100%;max-height:56dvh;object-fit:contain;margin:12px auto}
dialog a{text-decoration:none}
[hidden]{display:none!important}
@media(max-width:680px){
.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#topic{width:100%}
label{flex:1}label span{width:100%;padding:6px;font-size:.875rem}
article h2{font-size:.95rem}aside{gap:4px;padding:0 7px 10px}aside button{padding:4px}
}
