:root {
  color-scheme: light;
  --paper:#fcfaf5; --ink:#253f37; --muted:#526458; --green:#284e40; --line:#d6dbce;
  --serif:"Baskervville","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --sans:"DM Sans","Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font:16px/1.45 var(--sans); color:var(--ink); background:var(--paper); font-synthesis:none;
}
*{box-sizing:border-box}
body{margin:0;min-width:280px}
button,input,select,textarea{font:inherit;color:inherit}
button,a,summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button,summary{cursor:pointer}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #92521c;outline-offset:4px}
.skip{position:absolute;top:-90px;left:20px;z-index:12;background:white;padding:14px;border-radius:8px}
.skip:focus{top:8px}
.mast{border-bottom:1px solid var(--line)}
.mast-inner,main,.footer{width:min(calc(100% - 48px),1100px);margin-inline:auto}
.mast-inner,.footer{display:flex;align-items:center;justify-content:space-between;gap:14px}
.mast-inner{min-height:76px}
.frame-return,.call-link,.circle-link,.choices-listen,.dark-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:9px 15px;
  border-radius:12px;line-height:1.3;font-size:1.05rem;font-weight:650;
}
.frame-return,.call-link,.choices-listen{background:var(--paper);border:1px solid #b6c2b4}
.frame-return>span{font-size:1.28em}
.call-link svg,.choices-listen svg,.choices-list svg{flex:none}
:is(.frame-return,.call-link,.circle-link,.choices-listen,.choices-list a):hover{background:#eaf0e6}
main{margin-top:clamp(20px,3vw,36px);margin-bottom:40px;min-height:55vh;outline:none}
.choices-home{max-width:740px;margin:clamp(10px,3vw,50px) auto}
.choices-intro{margin:0 0 clamp(22px,4vw,34px)}
.choices-date{display:flex;align-items:center;gap:13px;flex-wrap:wrap;color:var(--muted);font-variant-numeric:tabular-nums;font-size:clamp(1rem,1.8vw,1.2rem);margin:0 0 8px}
.choices-date time{padding-left:13px;border-left:1px solid #a4afa5}
.choices-intro h1{font:500 clamp(2.35rem,5vw,3.65rem)/1.12 var(--serif);margin:0;overflow-wrap:anywhere}
.choices-bio{margin:12px 0 0;max-width:58ch;line-height:1.55;font-size:clamp(1.12rem,2vw,1.3rem);overflow-wrap:anywhere}
.choices-listen{margin-top:12px;font-size:1rem}
.choices-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.choices-list a{display:flex;align-items:center;gap:14px;min-height:83px;padding:16px;border:1px solid #c7d2c4;border-radius:14px;background:#fffef9;font-weight:650;font-size:clamp(1.11rem,2vw,1.4rem);line-height:1.3}
.choices-symbol{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:11px;background:#e4eddf;color:#2d503b}
.choices-list a>svg:last-child{margin-left:auto}
.footer{border-top:1px solid var(--line);padding:14px 0 24px;color:var(--muted);font-size:0.95rem}
.circle-link{margin-left:auto;font-size:1rem;text-decoration:underline;text-underline-offset:3px}
.footer nav{display:flex;flex-wrap:wrap;justify-content:flex-end}
.dark-btn{border:0;background:var(--green);color:white}
#toast{position:fixed;z-index:12;bottom:18px;left:50%;transform:translateX(-50%);padding:12px 18px;background:#284d3f;color:white;border-radius:12px;opacity:0;pointer-events:none;max-width:calc(100% - 32px);width:max-content}
#toast.visible{opacity:1}
#notice{background:#e9efde;border-bottom:1px solid #c8d3b8}
.notice-inner{width:min(100% - 36px,1100px);margin:auto;padding:10px 0;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.notice-inner strong{font-size:1.1rem;flex:1}
.notice-inner button{border:1px solid #a3b39a;padding:8px 12px;border-radius:8px;background:#fafbf6;min-height:46px}
.connect-error{max-width:600px;padding:30px 0}
.connect-error h1{font:42px var(--serif)}
.connect-error form{display:grid;gap:10px;justify-items:start}
.connect-error input{width:min(100%,14rem);min-height:48px;border:1px solid #a8b5a9;border-radius:9px;padding:8px 12px;background:#fffef9}
.hide-call-control .paint-help{display:none}
.loading{padding:20px}
.app-opening .mast,.app-opening .footer,.frame-mode .mast,.frame-mode .footer,.paint-mode .mast,.paint-mode .footer{display:none}
.frame-mode #main{width:100%;max-width:none;margin:0;min-height:100svh}
.frame-mode #notice:not([hidden]){position:relative;z-index:4}
.paint-mode #main{width:min(calc(100% - 48px),1440px);margin:24px auto}
@media(max-width:600px){
  .mast-inner,main,.footer{width:calc(100% - 32px)}
  .mast-inner{min-height:66px}
  .frame-return,.call-link{font-size:1rem;padding-inline:11px}
  .choices-list{grid-template-columns:1fr;gap:9px}
  .choices-list a{min-height:65px;padding:10px 14px}
  .paint-mode #main{width:calc(100% - 28px);margin:14px auto}
}
@media(min-width:850px){
  .tv .mast-inner,.tv main,.tv .footer{width:min(91%,1580px)}
  .tv .choices-home{max-width:1000px}
  .tv :is(.frame-return,.call-link,.choices-listen,.choices-list a,.dark-btn){font-size:1.4rem;min-height:58px}
  .tv :focus-visible{outline-width:5px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
body:not(.frame-mode){padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
