:root { color-scheme: light; font: 16px/1.55 "Work Sans", system-ui, sans-serif; color:#352820; background:#f6f0e6; --brick:#893b2d; --border:#dacebe; }
* { box-sizing:border-box; }
body { margin:0; }
header { display:flex; justify-content:space-between; gap:1rem; padding:1.15rem max(1.25rem,calc((100% - 1120px)/2)); border-bottom:1px solid var(--border); font-size:.82rem; }
main { max-width:1160px; margin:auto; padding:4rem 1.5rem; display:grid; grid-template-columns: .85fr 1.15fr; gap:4rem; align-items:start; }
aside { padding-top:1.5rem; }
aside p { max-width:32ch; }
aside p:first-child { letter-spacing:.16em; color:var(--brick); font-size:.78rem; font-weight:700; }
h1,h2 { font-family:"Instrument Serif", Georgia, serif; font-weight:500; line-height:1.06; }
h1 { font-size:clamp(3.4rem,7.4vw,6.5rem); color:var(--brick); margin:.2em 0; }
h2 { font-size:2.5rem; margin:.25em 0 .65em; }
section { background:#fffaf3; border:1px solid var(--border); padding:clamp(1.1rem,4vw,2.4rem); border-radius:8px; min-width:0; }
label { display:block; margin:1rem 0 .3rem; font-weight:600; }
input,textarea,select,button { font:inherit; }
input:not([type=radio]):not([type=checkbox]),textarea,select { width:100%; padding:.65rem; border:1px solid #ad9e8c; border-radius:5px; background:#fffefa; color:inherit; }
textarea { min-height:6rem; resize:vertical; }
button,.button { display:inline-block; padding:.65rem .9rem; border:1px solid var(--brick); border-radius:5px; background:var(--brick); color:white; cursor:pointer; text-decoration:none; }
button:disabled { opacity:.65; cursor:wait; }
.secondary,.choice,.result { background:transparent; color:var(--brick); }
.choice,.result { display:block; width:100%; text-align:left; margin:.45rem 0; }
.results { max-height:19rem; overflow:auto; }
fieldset { border:1px solid var(--border); border-radius:5px; margin:1rem 0; min-width:0; }
img { display:block; max-width:100%; max-height:14rem; }
[role=alert] { color:#9c281c; }
.admin { display:block; }
table { width:100%; border-collapse:collapse; margin-top:1rem; }
td,th { text-align:left; padding:.45rem; border-bottom:1px solid var(--border); }
@media(max-width:740px) { main { display:block; padding:1.25rem; } aside { padding:0 0 1rem; } h1 br { display:none; } }
.site-header { align-items:center; padding-block:.8rem; }
.site-header h1 { font-size:clamp(1.2rem,3.6vw,1.65rem); margin:0; color:var(--brick); }
#identity { flex:0 1 auto; max-width:46%; overflow-wrap:anywhere; font-size:.85rem; background:#efe2d5; border-color:transparent; }
#identity[hidden] { display:none; }
.yearbook { display:block; max-width:760px; padding:clamp(.85rem,3vw,2rem) 1rem; }
.yearbook section { border:0; border-radius:1.25rem; box-shadow:0 3px 18px #3528200c; }
.yearbook h2 { font-size:clamp(1.65rem,5vw,2.15rem); margin:0 0 .65rem; }
.yearbook button, #identity, .button, .yearbook input[type=search] { border-radius:999px; }
.yearbook .choice { background:#f2e5d8; border-color:transparent; padding:.8rem 1rem; margin:.6rem 0; font-weight:600; }
.yearbook .result { border:0; padding:.45rem .85rem; margin:0; }
.yearbook .result:hover, .yearbook .choice:hover { background:#ead7c6; }
.yearbook .results:not(:empty) { margin-top:.4rem; }
.yearbook .contributor { margin:.2rem 0 .75rem; font-size:.9rem; }
.identity-control { position:relative; max-width:46%; }
#identity { max-width:100%; }
#identity-options { position:absolute; z-index:1; right:0; top:calc(100% + .35rem); padding:.3rem; border:1px solid var(--border); border-radius:.85rem; background:#fffaf3; box-shadow:0 4px 15px #35282018; white-space:nowrap; }
#change-identity { border:0; border-radius:.6rem; }
#change-identity:hover, #change-identity:focus-visible { background:#f2e5d8; }
.site-footer { max-width:760px; margin:auto; padding:0 1rem 1rem; text-align:right; font-size:.8rem; }
.site-footer a { display:inline-block; padding:.35rem .85rem; border:1px solid var(--border); border-radius:999px; color:var(--brick); text-decoration:none; }
.site-footer a:hover, .site-footer a:focus-visible { background:#efe2d5; }
.site-header { position:sticky; top:0; z-index:2; background:#f6f0e6; }
.site-header h1 { flex:1; }
#back { border-radius:999px; padding:.35rem .7rem; }
#back[hidden] { display:none; }
.yearbook summary { cursor:pointer; }
.admin-summary:not([hidden]) { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:.75rem; }
.admin-summary div { background:#f2e5d8; border-radius:.85rem; padding:.7rem 1rem; }
.admin-summary dd { margin:0; font-size:1.7rem; color:var(--brick); font-weight:600; }
.header-back { border:1px solid var(--brick); border-radius:999px; padding:.35rem .7rem; color:var(--brick); text-decoration:none; }
.yearbook .contribution-menu { display:grid; gap:.8rem; }
.yearbook .contribution-menu .choice { margin:0; text-align:center; }
@media (max-width:740px) {
  .yearbook:has(.contribution-menu) { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; min-height:calc(100svh - 10rem); }
}

.photo-preview { display:block; width:fit-content; max-width:100%; margin:.85rem 0; }
.entry-name { background:transparent; color:var(--brick); border:0; padding:0; text-align:left; text-decoration:underline; text-underline-offset:.15em; }
#entry { width:min(40rem, calc(100% - 2rem)); max-height:85vh; border:1px solid var(--border); border-radius:1rem; padding:1.2rem; background:#fffaf3; color:inherit; }
#entry::backdrop { background:#35282070; }
#entry form { display:flex; justify-content:flex-end; }
#entry dt { font-weight:600; }
#entry dd { margin:0 0 .8rem; white-space:pre-wrap; overflow-wrap:anywhere; }
#entry figure { margin:1rem 0; }
#pending-email-preview { width:min(32rem, calc(100% - 2rem)); border:1px solid var(--border); border-radius:1rem; padding:1.2rem; background:#fffaf3; color:inherit; }
#pending-email-preview::backdrop { background:#35282070; }
#pending-email-preview form { display:inline-block; margin-right:.5rem; }
#pending-email-download[hidden] { display:none; }
