:root{color-scheme:light;--paper:#f3eee3;--ink:#15251e;--muted:#41564c;--dark:#172e24;--tile:#fffaf0;--edge:#c9ccc0;--accent:#ebcb97}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:1rem/1.5 system-ui,sans-serif}a{color:inherit;text-underline-offset:.22em}button,input,select{font:inherit;color:inherit}
header{padding:1rem max(1rem,calc((100vw - 67rem)/2));background:var(--dark);color:#fff8ec;display:flex;align-items:center;justify-content:space-between;gap:.5rem}header a:first-child{font-family:Georgia,serif;letter-spacing:.06em;font-size:1.12rem;text-decoration:none}header a:last-child{font-size:.88rem}
main{max-width:70rem;margin:auto;padding:clamp(1.1rem,5vw,3rem)}.overline{text-transform:uppercase;letter-spacing:.125em;color:#3e5e49;font-size:.84rem;font-weight:680;margin:0 0 .6rem}h1,h2{font-family:Georgia,serif;font-weight:400;line-height:1.04;margin:.3rem 0 1rem}h1{font-size:clamp(2.2rem,7vw,4.75rem);letter-spacing:-.045em}h2{font-size:clamp(1.45rem,4vw,2.05rem)}p{margin:.45rem 0 1rem}.intro{max-width:55ch;color:var(--muted)}.card{padding:clamp(.8rem,3vw,1.65rem);border:1px solid var(--edge);background:var(--tile);margin:1rem 0}.layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(16rem,1fr);gap:1rem;align-items:start}.monthbar{display:flex;gap:.5rem;justify-content:space-between;align-items:center;margin-bottom:1rem}.monthbar h2{text-align:center;margin:0;line-height:1.1}.monthbar button{min-width:2.75rem}.week,.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.25rem}.week{text-align:center;color:var(--muted);font-weight:700;font-size:.86rem;margin-bottom:.4rem}.day,.gap{min-width:0;min-height:clamp(2.6rem,8vw,4.7rem)}.day{display:grid;place-items:center;align-content:center;gap:.12rem;border:1px solid #adb9ae;padding:.17rem;background:#f1eee7}.day b{font-size:clamp(.88rem,2.3vw,1.22rem)}.day small{font-size:clamp(.72rem,1.7vw,.88rem);font-weight:680}.day[data-state="2"]{background:#dcebdc;color:#23452d;border-color:#8fa98e}.day[data-state="1"]{background:#f6e6bf;color:#594320;border-color:#c6ae77}.day[data-state="0"]{background:#eddcd7;color:#624035;border-color:#c2a69d}.day[data-state="past"]{opacity:.47}.day.pickable{cursor:pointer}.day[aria-pressed="true"]{outline:2px solid #153c2a;outline-offset:-3px}.legend{display:flex;flex-wrap:wrap;gap:.5rem .8rem;list-style:none;padding:0;margin:1rem 0 .35rem}.legend li{display:flex;gap:.4rem;align-items:center;color:var(--muted);font-size:.85rem}.dot{display:inline-grid;place-items:center;width:1.5rem;height:1.5rem;border:1px solid #9eaaa0;background:#f1eee7;color:#213e2d;font-weight:670}.dot.two{background:#dcebdc}.dot.one{background:#f6e6bf}.dot.zero{background:#eddcd7}.status{min-height:1.5em;color:var(--muted);font-size:.95rem}.error{color:#8c3025}.success{color:#215c37}label{display:grid;gap:.3rem;font-weight:650;color:var(--ink);font-size:.94rem}input,select,button{min-width:0;min-height:44px;border:1px solid #8a9b8e;padding:.45rem;background:#fffdf5}button{cursor:pointer;font-weight:680}button:disabled{opacity:.55;cursor:default}button.primary,.button{display:inline-grid;place-items:center;background:var(--dark);color:#fff8ee;padding:.5rem .8rem;border:1px solid var(--dark);min-height:44px;text-decoration:none;font-weight:650}.fields{display:grid;gap:.75rem;margin:1rem 0}.side p{color:var(--muted)}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #356c47;outline-offset:2px}.calendar-only{max-width:49rem}.calendar-only .card{margin-top:1.5rem}.quiet{color:var(--muted);font-size:.9rem}.preview{border-left:.22rem solid #bb9555;padding:.55rem .7rem;background:#ece1cd;font-size:.9rem}.headrow{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.headrow h2{margin:0}footer{padding:1.1rem;text-align:center;color:var(--muted);font-size:.9rem}
@media(max-width:680px){.layout{grid-template-columns:1fr}.day,.gap{min-height:2.65rem}.monthbar h2{font-size:1.45rem}.card{padding:.7rem}.legend{gap:.35rem .6rem}}
