/* self-hosted UI fonts (latin) */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(/fonts/ui/caveat-b409e4cb.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/ui/fraunces-b5c27de0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/ui/fraunces-b5c27de0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/ui/fraunces-16e5b142.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/ui/josefin-sans-782943eb.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* end fonts */

[hidden]{display:none!important}
:root{--milk:#fffdf8;--muslin:#f3ebdd;--dusk:#2e3a59;--dusk-2:#4a5677;--peach:#f2b8a0;--peach-soft:#fbe6dc;--butter:#f6de8d;--sage:#8fae8b;--line:#e8dfd0;
--bg:var(--milk);--card:#fff;--ink:var(--dusk);--muted:#5d6680;--accent:var(--dusk);--soft:var(--peach-soft);--serif:"Fraunces",Georgia,serif;--hand:"Caveat","Segoe Print",cursive}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
a{color:var(--dusk);text-decoration-color:var(--peach);text-decoration-thickness:2px;text-underline-offset:3px}
a:hover{text-decoration-color:var(--dusk)}
:focus-visible{outline:3px solid var(--butter);outline-offset:2px;box-shadow:0 0 0 5px var(--dusk)}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}

/* header: muslin band with a crib-bumper scallop edge and a hanging mobile */
header.site{background:var(--muslin);position:relative;margin-bottom:22px}
header.site::after{content:"";position:absolute;left:0;right:0;bottom:-11px;height:12px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 0h40v2a10 10 0 0 1-20 0 10 10 0 0 1-20 0z' fill='%23f3ebdd'/%3E%3C/svg%3E") repeat-x 0 0/40px 12px}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:10px 18px;min-height:64px;flex-wrap:wrap;position:relative}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--serif);font-weight:600;font-size:1.2rem;color:var(--dusk);text-decoration:none}.brand svg{width:32px;height:32px}
nav.main{display:flex;gap:6px;flex-wrap:wrap;font-size:.98rem}
nav.main a{color:var(--dusk);text-decoration:none;padding:7px 12px;border-radius:999px}
nav.main a:hover,nav.main a[aria-current]{background:var(--milk)}
main{position:relative}
main::before{content:"";position:absolute;right:max(16px,calc(50% - 540px));top:-18px;width:150px;height:120px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 120'%3E%3Cpath d='M20 4h110' stroke='%23c9b9a3' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M38 4v44M75 4v62M112 4v36' stroke='%23c9b9a3' stroke-width='1.5'/%3E%3Cpath d='M48 50a14 14 0 1 1-10-17 11 11 0 1 0 10 17z' fill='%23f6de8d'/%3E%3Cpath d='M75 66l4.7 9.6 10.6 1.5-7.7 7.5 1.8 10.5L75 90l-9.4 5.1 1.8-10.5-7.7-7.5 10.6-1.5z' fill='%23f2b8a0'/%3E%3Cpath d='M98 52a9 9 0 0 1 9-9 11 11 0 0 1 20 3 8 8 0 0 1 0 16h-29a8 8 0 0 1 0-10z' fill='%23dfe8f0'/%3E%3C/svg%3E") no-repeat center/contain;transform-origin:50% 0;animation:sway 3.2s ease-in-out 1;pointer-events:none}
@keyframes sway{0%,100%{transform:rotate(0)}30%{transform:rotate(3deg)}65%{transform:rotate(-2deg)}}
@media (prefers-reduced-motion:reduce){main::before{animation:none}}
@media (max-width:720px){main::before{width:96px;height:78px;top:-14px;opacity:.9}}

h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.18;color:var(--dusk)}
h1{font-size:clamp(2rem,4.4vw,2.9rem);margin:18px 0 8px;max-width:15em;padding-right:120px}
h2{font-size:1.55rem}h3{font-size:1.15rem}
.lead{font-size:1.12rem;color:var(--muted);max-width:38em;margin:0 0 20px}
.breadcrumb{font-size:.92rem;color:var(--muted);margin:8px 0 0;padding-right:120px}
@media (max-width:720px){h1,.breadcrumb{padding-right:84px}}

/* editor */
.tool{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:22px;align-items:start;margin-bottom:34px}
.stage{background:var(--muslin);border-radius:28px;padding:20px}
.panel{background:#fff;border:2px solid var(--muslin);border-radius:22px;padding:18px 18px 20px}
.stage.over{outline:3px dashed var(--dusk);outline-offset:-10px}
#cv{display:block;width:auto;max-width:100%;max-height:72vh;margin:0 auto;border-radius:10px;box-shadow:0 10px 30px rgba(46,58,89,.18);touch-action:none;cursor:grab;background:#fff}
.under{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:16px}
.btn{font:inherit;font-weight:650;font-size:1rem;min-height:48px;padding:11px 22px;border-radius:999px;border:2px solid var(--dusk);background:var(--dusk);color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.btn:hover{background:var(--dusk-2);border-color:var(--dusk-2)}
.btn.ghost{background:#fff;color:var(--dusk)}.btn.ghost:hover{background:var(--peach-soft)}
.upload{position:relative}.upload input{position:absolute;width:1px;height:1px;opacity:0}
.upload:focus-within{outline:3px solid var(--butter);outline-offset:2px}
.zoom{display:flex;align-items:center;gap:12px;justify-content:center;font-size:.95rem;margin-top:14px}.zoom input{width:240px;accent-color:var(--dusk)}
.fine{font-size:.9rem;color:var(--muted);text-align:center;margin:10px 0 0}
.ph{font-family:var(--serif);font-size:1.12rem;font-weight:600;margin:2px 0 10px}.panel .ph:not(:first-child){margin-top:22px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips button,.unit button{font:inherit;font-size:.95rem;min-height:42px;padding:7px 15px;border-radius:999px;border:2px solid var(--line);background:#fff;color:var(--dusk);cursor:pointer}
.chips button:hover,.unit button:hover{border-color:var(--peach)}
.chips button[aria-pressed=true],.unit button[aria-pressed=true]{background:var(--dusk);border-color:var(--dusk);color:#fff}
.sugg button{font-size:.9rem;min-height:38px;padding:5px 12px;background:var(--peach-soft);border-color:var(--peach-soft)}
.dots{display:flex;gap:12px;flex-wrap:wrap}
.dots button{width:42px;height:42px;border-radius:50%;border:4px solid #fff;background:var(--c);box-shadow:0 0 0 2px var(--line);cursor:pointer}
.dots button[aria-pressed=true]{box-shadow:0 0 0 3px var(--dusk)}
.fields{display:flex;flex-direction:column;gap:14px}
.fields>label,.grid2 label{display:flex;flex-direction:column;gap:6px;font-size:.95rem;font-weight:650;color:var(--dusk)}
.opt{font-weight:400;color:var(--muted);font-size:.88rem}
.hint{margin:-6px 0 0;font-size:.9rem;color:#4b6b48;background:#eef4ec;border-radius:12px;padding:8px 12px}
.meas{border:0;padding:0;margin:0;min-width:0}.meas legend{font-size:.95rem;font-weight:650;padding:0;margin-bottom:6px}
.unit{display:flex;gap:6px;margin-bottom:8px}.nums{display:flex;gap:10px}
.nums label{flex:1;display:flex;align-items:center;gap:8px;font-weight:400}.nums label span{color:var(--muted);min-width:1.4em}
.check{flex-direction:row!important;align-items:center;gap:10px!important;font-weight:400!important;min-height:44px}
.check input{width:24px;height:24px;accent-color:var(--dusk);margin:0}
input[type=text],input[type=number],input[type=date],input[type=time],input:not([type]),select{font:inherit;font-size:16px;min-height:48px;padding:10px 14px;border:2px solid var(--line);border-radius:14px;background:#fff;color:var(--dusk);width:100%}
input:focus,select:focus{border-color:var(--dusk);outline:none;box-shadow:0 0 0 4px var(--butter)}
input::placeholder{color:#9aa1b3}
select{appearance:none;-webkit-appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232e3a59' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center/12px 8px;padding-right:38px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.grid2 .span2{grid-column:span 2}
@media (max-width:880px){.tool{grid-template-columns:1fr}#cv{max-height:62vh}}
@media (max-width:480px){.grid2{grid-template-columns:1fr}.grid2 .span2{grid-column:auto}.stage{padding:14px;border-radius:22px}}

/* calculator + schedule as a little night-sky timeline */
.calc{background:#fff;border:2px solid var(--muslin);border-radius:24px;padding:20px;margin:18px 0 24px}
.sched{list-style:none;padding:0;margin:20px 0 0 6px;border-left:3px dotted var(--line)}
.sched li{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline;padding:9px 0 9px 22px;position:relative}
.sched li::before{content:"";position:absolute;left:-9px;top:15px;width:15px;height:15px;border-radius:50%;background:#fff;border:3px solid var(--line)}
.sched li.nap{background:var(--peach-soft);border-radius:0 14px 14px 0}
.sched li.nap::before{width:20px;height:20px;left:-12px;top:12px;border:0;border-radius:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23fffdf8'/%3E%3Cpath d='M14 14.5A7 7 0 1 1 9 3a5.5 5.5 0 1 0 5 11.5z' fill='%232e3a59'/%3E%3C/svg%3E") center/contain no-repeat}
.sched li.bed::before{width:22px;height:22px;left:-13px;top:11px;border:0;border-radius:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 1l3 6.2 6.8.9-5 4.8 1.2 6.8L11 16.5 4.9 19.7l1.2-6.8-5-4.8 6.8-.9z' fill='%23f6de8d' stroke='%232e3a59' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat}
.sched .tm{min-width:80px;font-variant-numeric:tabular-nums;font-weight:650;color:var(--dusk)}.sched .du{color:var(--muted);font-size:.95rem}
.sched li.aw b{font-weight:500;color:var(--muted)}
.sum{font-weight:650;margin:14px 0 0;font-size:1.05rem}.warn{background:#fff4dd;border:2px solid var(--butter);border-radius:14px;padding:10px 14px;font-size:.95rem}
.calc .fine{text-align:left}

/* reading pages */
.prose{max-width:720px}.prose p,.prose li{max-width:66ch}.prose li{margin-bottom:.5em}.prose h2{margin-top:1.9em}
.tablewrap{overflow-x:auto;border-radius:18px;border:2px solid var(--muslin)}
table.plan{width:100%;border-collapse:collapse;font-size:.98rem;background:#fff}
.plan th,.plan td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--muslin)}
.plan thead th{font-size:.9rem;color:var(--muted);background:var(--milk);font-weight:650}
.plan tbody tr:last-child th,.plan tbody tr:last-child td{border-bottom:0}
footer.site{background:var(--muslin);margin-top:56px;padding:26px 0;font-size:.95rem;color:var(--muted)}
footer.site .wrap{display:flex;gap:18px;flex-wrap:wrap}footer.site a{color:var(--dusk)}

/* night-light dark mode for 3 am feeds */
@media (prefers-color-scheme:dark){:root{--milk:#1d2336;--muslin:#273049;--dusk:#f1ece2;--dusk-2:#ffffff;--peach-soft:#3a3247;--line:#3a4462;--bg:#181d2e;--card:#20273b;--muted:#b8bdd0}
body{color:var(--dusk)}.panel,.calc,table.plan,input[type=text],input[type=number],input[type=date],input[type=time],input:not([type]),select,.chips button,.unit button,.btn.ghost{background-color:#20273b;color:var(--dusk)}
.btn{color:#181d2e}.btn:hover{color:#181d2e}.chips button[aria-pressed=true],.unit button[aria-pressed=true]{color:#181d2e}.dots button{border-color:#20273b}
.hint{background:#26352b;color:#cfe3cb}.warn{background:#3a321d}
select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f1ece2' stroke-width='2'/%3E%3C/svg%3E")}}
/* Pro waitlist box (E29) */.pro{margin:30px 0 8px;padding:18px 20px;border-radius:12px;background:var(--soft);border:1px solid var(--line)}.pro-tag{margin:0;font-size:.85rem;font-weight:700;color:var(--accent)}.pro-lead{font-family:var(--serif);font-size:1.35rem;font-weight:600;line-height:1.2;margin:.15em 0 .45em}.pro ul{margin:0 0 14px;padding-left:1.15em}.pro-price span,.pro-free{color:var(--muted)}.pro-buy{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}.pro-price{margin:0}.pro-price b{font-size:1.1rem}.pro-price span{font-size:.92rem}.pro-free{font-size:.9rem;margin:12px 0 0}.pro-dlg{max-width:430px;width:calc(100% - 32px);padding:0;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:var(--card)}.pro-dlg::backdrop{background:rgba(20,22,25,.4)}.pro-dlg-in{padding:20px 22px}.pro-dlg-in p{margin:0 0 .7em}.pro-dlg-h{font-weight:700;font-size:1.2rem}.pro-dlg-l{display:block;font-size:.9rem;font-weight:600;margin:.4em 0 4px}.pro-dlg input{width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:6px;font:inherit}.pro-dlg-a{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.pro-dlg-ok{margin-top:12px!important;font-weight:600}
.pro{border:0;border-radius:22px;background:var(--peach-soft)}
@media (prefers-color-scheme:dark){header.site::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 0h40v2a10 10 0 0 1-20 0 10 10 0 0 1-20 0z' fill='%23273049'/%3E%3C/svg%3E")}}
/* keep the preview in view while the details are filled in (desktop) */
@media (min-width:881px){.stage{position:sticky;top:16px}}
.lt{display:block}
/* wake window comic (hub page) */
.comic{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:8px 0 14px}
.cpanel{margin:0}.cpanel svg{display:block;width:100%;height:auto}
.cpanel figcaption{font-size:.92rem;line-height:1.45;margin-top:8px;color:var(--muted)}
.cpanel figcaption b{display:block;color:var(--ink);font-family:var(--serif);font-size:1.08rem}
.ct{font-family:var(--hand);font-size:1.25rem;color:var(--dusk-2)}
.ctime{margin:6px 0 8px}.cbar{display:flex;border-radius:999px;overflow:hidden;font-size:.9rem;line-height:1.3}
.cbar span{padding:9px 14px}.cw{background:var(--peach-soft);color:var(--ink)}.cn{background:#c7cde0;color:#2e3a59}
.cticks{display:flex;font-size:.85rem;color:var(--muted);padding-top:3px}.cticks span{white-space:nowrap}.cticks .end{flex:0}
@media (max-width:760px){.comic{grid-template-columns:1fr 1fr}.cbar{font-size:.82rem}.cbar span{padding:8px 10px}}
