:root{--paper:#f7f5ef;--ink:#292d28;--muted:#7b8077;--line:#e1e2d8;--coral:#ec7655;--green:#5b7261;--surface:#fffefb;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Noto Sans JP",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit;color:inherit}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #efb455;outline-offset:3px}button{border:0}a{color:inherit}header,main{max-width:1120px;margin:auto}.header{height:100px;display:flex;justify-content:space-between;align-items:center;padding:0 34px;border-bottom:1px solid var(--line)}.brand{font-size:26px;font-weight:700;letter-spacing:-1.2px;text-decoration:none;display:flex;align-items:center;gap:2px}.brandmark{font-family:Georgia,serif;font-size:40px;color:var(--coral);width:39px;line-height:1;transform:rotate(-15deg)}.branddot{color:var(--coral)}main{padding:0 34px 130px}.textbutton{background:transparent;font-size:13px;color:var(--muted);padding:10px 6px;border-radius:8px}.textbutton:hover{color:var(--ink);background:#edede4}.intro{display:flex;align-items:center;justify-content:space-between;padding:62px 0 56px;gap:32px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;margin:0 0 20px;color:var(--green)}.dot{display:inline-block;width:6px;height:6px;background:var(--coral);border-radius:100%;margin-right:7px}h1{font-size:clamp(30px,4vw,43px);letter-spacing:-1.4px;line-height:1.55;font-weight:650;margin:0 0 20px}.lede{font-size:14px;line-height:1.9;color:var(--muted);margin:0}.paper-art{flex:0 0 235px;height:215px;background:#fffef8;border:1px solid #eae7dc;box-shadow:3px 7px 0 #e8e5db;transform:rotate(7deg);position:relative;margin-right:37px;border-radius:3px;background-image:linear-gradient(#eaece4 1px,transparent 1px),linear-gradient(90deg,#eaece4 1px,transparent 1px);background-size:24px 24px}.tape{position:absolute;top:-14px;left:90px;width:70px;height:28px;background:#dfdfb7cc;transform:rotate(-13deg)}.art-a,.art-b,.art-c{position:absolute;font:italic 93px Georgia,serif}.art-a{left:22px;top:22px;color:var(--coral);transform:rotate(-18deg)}.art-b{left:106px;top:23px;color:var(--green);transform:rotate(12deg)}.art-c{left:157px;top:63px;color:#e3b746;transform:rotate(-20deg)}.art-note{position:absolute;bottom:27px;left:31px;font:italic 18px Georgia,serif;transform:rotate(-7deg);color:#7f8478}.art-spark{width:40px;height:40px;position:absolute;right:-40px;top:0;stroke:var(--coral);stroke-width:2;fill:none}.workspace{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:29px 30px 0;box-shadow:0 3px 0 #ecece2}.studio-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px;gap:15px}.step-label{margin:0 0 7px;font-size:11px;color:var(--muted);letter-spacing:.6px}#font-name{border:0;border-bottom:1px solid transparent;background:transparent;font-size:24px;font-weight:550;letter-spacing:-.6px;width:min(460px,100%);padding:3px 0;outline-offset:2px}#font-name:focus{border-bottom-color:var(--coral)}.autosave{margin:8px 0 0;font-size:10px;color:var(--green)}.grid-head{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:21px;margin-bottom:18px}.tabs{display:flex;gap:6px}.tabs button{padding:9px 14px;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;font-weight:600}.tabs button[aria-selected=true]{background:#efefe6;color:var(--ink)}.hint{font-size:11px;color:var(--muted)}.letter-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:10px}.letter{height:88px;border-radius:10px;border:1px dashed #d9ddd2;background:#fafaf5;position:relative;font-size:31px;color:#a6ada0;font-weight:400;transition:background .15s,transform .15s}.letter:hover{transform:translateY(-2px);background:#f0f1e6;border-color:#8b9782}.letter .plus{position:absolute;bottom:6px;right:9px;font-size:15px;font-weight:300;color:#b5bcb0}.letter.saved{background:#f2f3e9;border:1px solid #cfd7c8;color:var(--green)}.letter.saved img{max-width:70%;max-height:64px;object-fit:contain}.letter .charlabel{position:absolute;left:8px;bottom:6px;font-size:9px;line-height:1;color:var(--green)}.letter .check{position:absolute;right:7px;top:6px;color:var(--green);font-size:11px}.studio-bottom{margin-top:20px;padding:16px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.studio-bottom p{margin:0;font-size:11px;color:var(--muted)}.small-dot{display:inline-block;width:5px;height:5px;border-radius:100%;background:var(--green);margin-right:8px}.preview-section{margin-top:46px}.preview-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.preview-head .eyebrow{margin:0 0 11px}h2{font-size:20px;letter-spacing:-.5px;font-weight:600;line-height:1.5;margin:0 0 16px}.preview-size-label{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--muted)}#preview-size{width:90px}input[type=range]{accent-color:var(--green);height:24px}#preview-text{display:block;width:100%;min-height:166px;resize:vertical;background:transparent;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;font-size:64px;letter-spacing:1px;line-height:1.4;padding:25px 0;color:var(--ink)}#preview-text::placeholder{color:#bec4b7}.preview-note{font-size:11px;color:var(--muted);line-height:1.7;margin:12px 0;min-height:18px}footer{border-top:1px solid var(--line);padding:24px 0;display:flex;justify-content:space-between;align-items:center;font-size:12px}footer>span{font-weight:650}.footer-note{font-weight:400;color:var(--muted);margin-left:12px;font:italic 12px Georgia,serif}footer>div{display:flex;gap:16px}.export-bar{position:fixed;z-index:5;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px max(28px,calc((100vw - 1052px)/2)) calc(17px + env(safe-area-inset-bottom));background:#f7f5eff2;backdrop-filter:blur(16px);border-top:1px solid #dcded3}.export-bar>div{display:flex;flex-direction:column;gap:5px}.export-bar strong{font-size:14px;font-weight:600}.export-bar>div>span{font-size:10px;color:var(--muted)}.primary{display:flex;align-items:center;justify-content:center;gap:32px;background:var(--coral);color:#fff;border:0;border-radius:9px;padding:15px 24px;font-size:13px;font-weight:600;text-decoration:none;min-height:48px;box-shadow:0 2px 0 #d95f41}.primary:hover{background:#e56847}.secondary{background:#eeefe6;border:1px solid var(--line);border-radius:9px;padding:15px 24px;font-size:13px;font-weight:550}.full{width:100%}dialog{border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);padding:26px;max-width:560px;width:calc(100% - 28px);max-height:90dvh;overflow:auto;box-shadow:0 25px 90px #29352738}dialog::backdrop{background:#202a2859;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.dialog-head .eyebrow{margin:0 0 6px}.dialog-head h2{font-size:42px;margin:0}.close{background:#f0f1e8;border-radius:100%;height:36px;width:36px;font-size:25px;line-height:1;font-weight:300}.scan-placeholder{height:220px;position:relative;display:grid;place-items:center;background:#f5f6ee;border-radius:12px}.scan-placeholder>span{font-size:100px;color:#c8cebe;font-family:Georgia,serif}.scan-corners{position:absolute;inset:27px 80px;border:2px solid #a9b79e;border-radius:7px}.scan-instructions{font-size:12px;text-align:center;line-height:1.9;color:var(--muted);margin:20px 0}.scan-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}#crop-canvas{width:100%;max-height:340px;object-fit:contain;border-radius:10px;background:#eeeeea;display:block;touch-action:none}.edit-help{font-size:12px;color:var(--muted);line-height:1.7}.crop-actions{display:flex;justify-content:space-between}.processing{display:flex;gap:25px;align-items:center;margin:15px 0 20px}.glyph-preview{width:120px;flex:0 0 120px;text-align:center;background:#f2f3eb;border:1px solid var(--line);border-radius:9px;padding:10px}.glyph-preview canvas{width:95px;height:95px}.glyph-preview span{font-size:9px;color:var(--green);display:block;margin-top:3px}.adjustments{flex:1}.adjustments>label{display:block;font-size:12px;margin-bottom:6px}.adjustments>input[type=range]{width:100%;margin:3px 0 14px}.checkbox{display:flex!important;align-items:center;gap:6px;font-size:11px!important;line-height:1.7}.checkbox input{accent-color:var(--green)}.adjustments p{font-size:10px;line-height:1.7;color:var(--muted)}.error{font-size:12px;color:#b24c3b;line-height:1.7}.danger{color:#b75c4b;display:block;margin:15px auto 0}.danger[hidden]{display:none}#export-dialog{text-align:center;padding-bottom:30px}.success-symbol{margin:5px auto 22px;display:grid;place-items:center;width:58px;height:58px;border-radius:100%;background:#e8ecdf;color:var(--green);font-size:28px}#export-summary{font-size:12px;color:var(--muted);line-height:1.6}#export-specimen{font-size:52px;line-height:1.4;overflow-wrap:anywhere;padding:22px 0 32px;max-height:230px;overflow:auto}.download-tip,.export-warning{font-size:11px;line-height:1.8;color:var(--muted)}.export-warning{border-top:1px solid var(--line);padding-top:13px;margin-top:18px}#toast{position:fixed;z-index:99;bottom:112px;left:50%;transform:translateX(-50%);max-width:90%;width:max-content;pointer-events:none;background:var(--ink);color:#fff;padding:13px 20px;border-radius:10px;opacity:0;transition:opacity .15s;font-size:12px}#toast.show{opacity:1}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(max-width:760px){.header{height:76px;padding:0 22px}main{padding:0 22px 125px}.intro{padding:35px 0 32px;gap:15px}.intro h1{font-size:27px;letter-spacing:-.8px}.intro .eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:15px}.lede{font-size:12px}.paper-art{flex-basis:125px;height:135px;margin-right:10px;background-size:17px 17px}.art-a,.art-b,.art-c{font-size:57px}.art-a{left:9px;top:16px}.art-b{left:63px;top:8px}.art-c{left:83px;top:43px}.art-note{font-size:12px;left:10px;bottom:15px}.tape{left:42px;width:47px;height:20px;top:-10px}.art-spark{right:-22px;width:25px}.workspace{padding:21px 19px 0}.studio-top{align-items:flex-start;margin-bottom:20px}#font-name{font-size:21px}.sample{font-size:10px;white-space:nowrap;padding-top:4px}.letter-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.letter{height:70px;font-size:28px}.letter.saved img{max-height:51px}.hint{display:none}.grid-head{padding-top:16px}.studio-bottom p{font-size:10px}.studio-bottom .textbutton{font-size:10px}.preview-section{margin-top:34px}.preview-head h2{font-size:17px}.preview-size-label{gap:5px}#preview-size{width:60px}.footer-note{display:none}footer .textbutton{font-size:11px}footer>div{gap:6px}.export-bar{padding:14px 22px calc(14px + env(safe-area-inset-bottom));gap:14px}.export-bar .primary{padding:14px 19px;gap:16px}.processing{gap:16px}dialog{padding:21px}#preview-text{font-size:52px}}@media(max-width:430px){.paper-art{display:none}.intro{padding-top:30px}.intro h1{font-size:30px}.letter-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.letter{height:66px}.studio-top{display:block;position:relative}.sample{position:absolute;right:0;top:-3px}.preview-head{align-items:flex-start}.preview-size-label{padding-top:26px}.scan-corners{inset:27px 50px}}


.header-actions{display:flex;align-items:center;gap:10px}.header-actions .primary,.header-actions .secondary{padding:10px 16px;font-size:12px;min-height:40px}.form-label{display:block;margin:19px 0 8px;font-size:12px;font-weight:600}.form-input{width:100%;border:1px solid var(--line);border-radius:9px;background:#fafaf5;padding:13px 15px;font-size:16px;min-height:47px}.form-note{font-size:12px;line-height:1.8;color:var(--muted)}#new-form>.primary{margin-top:23px}#browse-dialog{max-width:750px}.font-collection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.font-card{border:1px solid var(--line);border-radius:12px;background:#f8f9f1;padding:17px;min-width:0}.font-card.current{border-color:#91a08b}.font-card h3{font-size:17px;margin:0 0 6px;overflow-wrap:anywhere}.font-card .card-meta{font-size:10px;line-height:1.7;color:var(--muted);margin:0 0 10px}.card-specimen{height:65px;display:flex;align-items:center;gap:7px;overflow:hidden;margin:12px 0}.card-specimen img{height:50px;max-width:40px;object-fit:contain}.card-placeholder{font:italic 19px Georgia,serif;color:#a3ac98}.font-card button{padding:10px 16px;font-size:11px;width:100%;min-height:38px}.collection-empty{grid-column:1/-1;text-align:center;padding:30px 10px;color:var(--muted);font-size:12px;line-height:1.8}body.starting .workspace,body.starting .header-actions{pointer-events:none;opacity:.6}@media(max-width:760px){.header{height:auto;min-height:100px;flex-wrap:wrap;gap:10px;padding-top:16px;padding-bottom:15px}.brand{font-size:23px}.header-actions{gap:6px}.header-actions .primary,.header-actions .secondary{font-size:11px;padding:9px 11px}.header-actions #language{font-size:11px}.font-collection{gap:10px}.font-card{padding:13px}}@media(max-width:430px){.header-actions{width:100%;justify-content:space-between}.header-actions .primary{order:2;flex:1}.header-actions .secondary{order:1;flex:1}.header-actions #language{order:3;flex:0 0 37px}.font-collection{grid-template-columns:1fr}.font-card .card-specimen{height:50px}.card-specimen img{height:43px}}

.calendar-callout{background:#edeedf;border:1px solid #dfe2cf;border-radius:14px;padding:27px 29px;margin-top:28px}.calendar-callout h2{margin-bottom:8px}.calendar-callout p:not(.eyebrow){font-size:12px;line-height:1.8;color:var(--muted);margin:7px 0}.calendar-callout .calendar-readiness{color:var(--green)!important;font-size:11px!important}#calendar-dialog{max-width:820px}.calendar-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:17px}.calendar-options label>span{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.calendar-options select{font:inherit;font-size:12px;width:100%;border:1px solid var(--line);padding:11px 8px;border-radius:8px;background:#f8f9f1;color:var(--ink)}.calendar-preview-wrap{padding:20px;background:#e9e9e1;border-radius:10px;text-align:center;max-height:52dvh;overflow:auto}#calendar-preview{max-width:100%;max-height:48dvh;height:auto;object-fit:contain;box-shadow:0 3px 12px #20202020;background:white}.calendar-downloads{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.calendar-downloads>.textbutton{grid-column:1/-1;padding-top:8px}.calendar-progress{font-size:12px;color:var(--green);min-height:18px;margin:10px 0 0}@media(max-width:760px){.calendar-callout{padding:23px 20px}.calendar-options{gap:8px}.calendar-options select{font-size:11px;padding:11px 5px}.calendar-downloads{grid-template-columns:1fr}.calendar-downloads>.textbutton{grid-column:auto}.tabs{gap:2px}.tabs button{padding:9px 11px}.calendar-preview-wrap{padding:13px}}

.calendar-options{grid-template-columns:repeat(4,minmax(0,1fr))}#calendar-wallpaper{grid-column:1/-1;background:#e9eddc;border-color:#cdd7bf}.calendar-downloads .primary,.calendar-downloads .secondary{font-size:12px;gap:8px}@media(max-width:760px){.calendar-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

.delivery-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;text-align:left;margin:8px 0 16px}.delivery-options label>span{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.delivery-options select{width:100%;font:inherit;font-size:12px;padding:11px 8px;border:1px solid var(--line);border-radius:8px;background:#f8f9f1;color:var(--ink)}#download-take-home,#add-delivery-digits{margin-top:15px;display:block;text-decoration:none;text-align:center}.optional-downloads{border-top:1px solid var(--line);padding-top:15px;margin-top:22px;text-align:left}.optional-downloads summary{font-size:12px;color:var(--muted);cursor:pointer;padding:8px 0}.optional-downloads .secondary{display:block;text-align:center;text-decoration:none;margin-top:12px}#delivery-progress{min-height:20px}


.calendar-requirements{margin-top:18px;border-top:1px solid #d9ddc9;padding-top:14px}.requirement-row{margin:12px 0 18px}.requirement-row>strong{font-size:12px}.character-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.character-chip{font:inherit;min-height:38px;min-width:35px;padding:7px 9px;border:1px solid #cbd0bf;border-radius:7px;background:#fafbf4;color:#47533e;cursor:pointer}.character-chip.complete{background:#d8e3ca;border-color:#aaba99;font-weight:650}.character-chip:focus-visible{outline:2px solid #dd755b;outline-offset:2px}.palette-preview{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0 0;min-height:25px}.palette-sample{display:inline-flex;width:27px;height:27px;align-items:center;justify-content:center;border-radius:5px;font-size:11px;font-weight:700;border:1px solid #00000010}.calendar-options select,.delivery-options select{font-size:12px}@media(max-width:760px){.character-chip{min-height:42px;min-width:38px}.calendar-options select{font-size:12px}}

.calendar-save-panel{margin:16px 0;padding:16px;border:1px solid #cdd7bf;border-radius:12px;background:#f6f8ef}.calendar-save-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:7px}.calendar-save-links a{display:inline-block;text-decoration:underline}.calendar-save-panel .form-note{overflow-wrap:anywhere}#calendar-save-image{display:block;width:100%;height:auto;margin:12px auto 0;border-radius:4px;-webkit-touch-callout:default;user-select:auto;-webkit-user-select:auto}.calendar-save-panel[hidden],#calendar-image-save[hidden]{display:none}


footer{justify-content:flex-end}.export-choice{text-align:left;background:#f8f9f1;border:1px solid var(--line);border-radius:12px;padding:17px;margin-top:12px}.export-choice h3{font-size:15px;margin:0 0 7px}.export-choice>p,.export-choice .form-note{font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 12px}.export-choice .primary,.export-choice .secondary{gap:8px}.export-choice .delivery-options{margin:16px 0 12px}.export-choice #prepare-wallpapers,.export-choice #download-take-home,.export-choice #delivery-print,.export-choice #add-delivery-digits{margin-top:10px}.export-choice #delivery-progress{margin:10px 0 0;min-height:0}.export-choice #delivery-progress:empty{display:none}.export-choice #delivery-print{width:100%}#export-specimen{padding:8px 0 14px;max-height:130px}#export-dialog .export-warning{text-align:left}

.intro{padding-bottom:24px}
@media(max-width:760px){}
.creation-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 10px}.creation-tab{min-height:62px;border:1px solid var(--line);border-radius:12px;background:#efeee6;color:var(--muted);font:inherit;font-size:16px;font-weight:650;cursor:pointer}.creation-tab[aria-selected=true]{background:var(--surface);border-color:#91a08b;color:var(--green);box-shadow:0 3px 0 #dce2d3}.creation-tab:focus-visible{outline:2px solid var(--coral);outline-offset:2px}.live-calendar{margin-top:34px;padding:27px 29px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.live-calendar-head h2{margin-bottom:5px}.live-calendar-head .form-note{margin:0 0 18px}.live-calendar-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:17px}.live-calendar-options label>span{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.live-calendar-options select{font:inherit;font-size:12px;width:100%;min-height:42px;border:1px solid var(--line);padding:9px;border-radius:8px;background:#f8f9f1;color:var(--ink)}.live-calendar-canvas-wrap{display:flex;justify-content:center;align-items:flex-start;padding:22px;background:#e9e9e1;border-radius:10px}#live-calendar-preview{display:block;width:min(100%,380px);height:auto;box-shadow:0 5px 20px #2020201f;background:white}#font-panel[hidden],#calendar-panel[hidden]{display:none}
@media(max-width:760px){.creation-tab{min-height:54px;font-size:14px}.live-calendar{padding:21px 18px}.live-calendar-canvas-wrap{padding:12px}.live-calendar-options{gap:8px}.live-calendar-options select{font-size:11px;padding:7px}}
@media(max-width:430px){.creation-tabs{gap:7px}.creation-tab{font-size:13px}.live-calendar-options{grid-template-columns:1fr 1fr}.live-calendar-options label:first-child{grid-column:1/-1}}

.font-search-field{position:relative}.font-search-field svg{position:absolute;left:15px;top:50%;width:19px;height:19px;transform:translateY(-50%);color:var(--muted);pointer-events:none}.font-search-field .form-input{padding-left:45px}
#calendar-panel:not([hidden]){display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:18px;align-items:start}#calendar-panel .calendar-callout,#calendar-panel .live-calendar{margin-top:0;min-width:0}#calendar-panel .live-calendar{padding:25px 22px}#calendar-panel .live-calendar-options{grid-template-columns:1fr 1fr}#calendar-panel .live-calendar-options label:nth-child(-n+2){grid-column:1/-1}
@media(max-width:900px){#calendar-panel:not([hidden]){display:block}#calendar-panel .live-calendar{margin-top:18px}}
.intro-inclusive{margin:10px 0 0;color:var(--muted);font-size:11px;line-height:1.7}
.browse-privacy{padding:10px 12px;border:1px solid #e1e5d8;border-radius:8px;background:#f5f7ef;color:#536453}

.collection-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.collection-actions .secondary{min-height:48px}@media(max-width:430px){.collection-actions{grid-template-columns:1fr}}

/* A quiet page for handwriting: clear type, generous space, a few playful marks. */
:root{
 --paper:#f8f6f0;--surface:#fffefa;--ink:#272a25;--muted:#657067;
 --line:#e4e1d6;--coral:#d75e49;--green:#416653;--blue:#4d70b7;
 --font-personal:"Kosugi Maru","Fredoka",sans-serif;
 font-family:"Kosugi Maru","Fredoka",sans-serif;
 background:var(--paper);color:var(--ink)
}
body{background:var(--paper);font-size:14px;line-height:1.75}
header,main{max-width:1240px}
.header{height:94px;padding:0 48px;border-bottom-color:#dedbd1}
.brand{font-family:var(--font-personal);font-size:29px;font-weight:600;letter-spacing:-.05em;gap:3px}
.brandmark{font-family:var(--font-personal);font-size:37px;color:var(--coral);width:36px;transform:rotate(-11deg)}
.branddot{color:var(--coral)}
.header-actions{gap:9px}
.header-actions .primary,.header-actions .secondary{font-size:12px;min-height:41px;padding:9px 17px}
main{padding:0 48px 150px}
.intro{min-height:420px;padding:74px 0 65px;gap:70px}
.intro>div:first-child{max-width:710px}
.intro .eyebrow{margin-bottom:21px;font-size:12px;letter-spacing:.02em;color:var(--green);font-weight:400}
.intro .dot{width:7px;height:7px;margin-right:9px}
h1{font-family:var(--font-personal);font-size:clamp(37px,4.1vw,55px);font-weight:600;letter-spacing:-.055em;line-height:1.55;margin:0 0 25px}
.lede{font-size:15px;line-height:2;color:#525b52}
.intro-inclusive{font-size:12px;margin-top:16px;color:#737b70}
.paper-art{flex:0 0 266px;width:266px;height:247px;margin:0 24px 0 0;background:#fffdf7;background-image:none;border:1px solid #dcd9cd;border-radius:4px;box-shadow:8px 10px 0 #eae6d9;transform:rotate(5deg)}
.paper-art:after{content:"";position:absolute;left:42px;right:38px;bottom:46px;border-bottom:3px solid var(--coral);border-radius:50%;transform:rotate(-7deg)}
.paper-art .tape,.paper-art .art-note,.paper-art .art-spark{display:none}
.art-a,.art-b,.art-c{font-family:var(--font-personal);font-style:normal;font-weight:600;line-height:1}
.art-a{font-size:116px;left:20px;top:13px;color:var(--blue);transform:rotate(-11deg)}
.art-b{font-size:103px;left:115px;top:18px;color:var(--coral);transform:rotate(10deg)}
.art-c{font-size:88px;left:94px;top:106px;color:#c89a36;transform:rotate(-15deg)}





.creation-tabs{gap:0;margin-bottom:30px;border-bottom:1px solid #c8ccbf}
.creation-tab,.creation-tab[aria-selected=true]{background:none;border:0;border-bottom:3px solid transparent;border-radius:0;box-shadow:none;min-height:57px;color:#7a8277;font-size:16px;font-weight:400}
.creation-tab[aria-selected=true]{border-bottom-color:var(--green);color:var(--ink)}
.creation-tab:hover{background:#f0eee6}
.workspace,.live-calendar{border-radius:15px;box-shadow:none;background:var(--surface);border-color:#e0dfd5}
.workspace{padding:35px 37px 0}
.step-label,.hint,.form-note{font-size:12px}
#font-name{font-family:var(--font-personal);font-size:27px;font-weight:600}
.letter-grid{gap:11px}
.letter{background:#fffefa;border-color:#d8d9cb;border-radius:7px;font-family:var(--font-personal);font-size:36px;color:#8b9684}
.letter.saved{background:#f4f6ed;border-color:#b8c6ae}
.letter:hover{background:#f8f7ed}
.tabs button[aria-selected=true]{background:#e8ecdf}
.preview-section{margin-top:65px}
h2,.preview-head h2,.calendar-callout h2,.live-calendar h2{font-family:var(--font-personal);font-weight:600;letter-spacing:-.035em;line-height:1.55}
.preview-head h2{font-size:25px}
.calendar-callout{background:#f5f3e7;border-color:#e8e3cd;border-radius:15px;padding:32px}
.calendar-callout h2{font-size:26px;margin-bottom:12px}
.calendar-requirements{border-top-color:#ddd9c7;margin-top:23px;padding-top:16px}
.requirement-row{margin:17px 0 22px}
.character-chip{background:#fffefa;border-color:#d7d7ca;border-radius:6px;font-family:var(--font-personal);font-size:19px;min-width:42px;min-height:42px}
.character-chip.complete{background:#e1e9d8;border-color:#a7b99f}
.live-calendar{padding:31px 28px}
.live-calendar h2{font-size:23px}
.live-calendar-canvas-wrap,.calendar-preview-wrap{background:#f0eee8;border-radius:7px}
.primary{background:var(--coral);box-shadow:none;border-radius:7px}
.primary:hover{background:#bd4e3d}
.secondary{background:#f2f1e9;border-radius:7px}
.secondary:hover{background:#eaeae0}
.export-bar{background:#f8f6f0f2;border-top-color:#ddd9cd}
.export-bar strong{font-weight:600}
dialog{background:var(--surface);border-radius:15px}
.dialog-head h2{font-size:39px}
.font-card,.export-choice{background:#faf9f3}
.browse-privacy{background:#f3f5ec}
@media(max-width:900px){.intro{gap:26px}.paper-art{flex-basis:214px;width:214px;height:212px;margin-right:8px}.art-a{font-size:94px}.art-b{font-size:88px;left:95px}.art-c{font-size:74px;left:75px;top:94px}}
@media(max-width:760px){
 .header{height:auto;min-height:86px;padding:14px 24px}
 main{padding:0 24px 135px}
 .intro{min-height:0;padding:55px 0 50px;gap:18px}
 h1{font-size:clamp(32px,5.6vw,43px)}
 .lede{font-size:13px}
 .paper-art{flex-basis:155px;width:155px;height:168px;margin-right:3px;box-shadow:5px 6px 0 #eae6d9}
 .art-a{font-size:70px;left:9px;top:15px}.art-b{font-size:65px;left:63px;top:15px}.art-c{font-size:56px;left:58px;top:76px}
 .paper-art:after{left:21px;right:20px;bottom:30px;border-width:2px}




 .creation-tab{font-size:14px;min-height:54px}
 .workspace{padding:26px 20px 0}
 .calendar-callout{padding:26px 21px}.calendar-callout h2{font-size:24px}
 .live-calendar{padding:25px 20px}
 .preview-section{margin-top:46px}.preview-head h2{font-size:22px}
}
@media(max-width:520px){
 .header{gap:8px}.brand{font-size:26px}.header-actions{width:100%;justify-content:space-between}
 .intro{padding:44px 0 39px}.intro h1{font-size:27px;line-height:1.6}
 .paper-art{display:none}
 .intro-inclusive{font-size:11px}
 .letter-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 .letter{height:68px;font-size:31px}
 .preview-head{display:block}
 .preview-head h2{font-size:20px;margin-bottom:3px}
 .preview-size-label{justify-content:flex-end;padding-top:0;margin-bottom:7px}
 .export-bar .primary{font-size:12px;gap:7px;padding:12px 11px;white-space:nowrap}
 .dialog-head h2{font-size:31px}
}

/* Native selects retain their values and form behavior; the visible controls show the actual palette. */
.custom-select{position:relative;min-width:0}
.custom-select-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.custom-select-trigger{width:100%;min-height:44px;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #c9c7be;border-radius:7px;padding:8px 11px;background:#fcfaf5;color:var(--ink);font-size:13px;line-height:1.35}
.custom-select-trigger:hover,.custom-select.is-open .custom-select-trigger{border-color:var(--blue);background:#fff}
.custom-select-trigger>span:nth-last-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.custom-select-arrow{margin-left:auto;font-family:"Fredoka",sans-serif;font-size:19px;line-height:1;color:var(--blue)}
.custom-select-menu{position:absolute;z-index:30;top:calc(100% + 5px);left:0;min-width:100%;width:max-content;max-width:min(340px,90vw);max-height:270px;overflow:auto;padding:5px;border:1px solid #bbb9af;border-radius:9px;background:#fffdfa;box-shadow:0 12px 28px #28282025}
.custom-select-menu[hidden]{display:none}
.custom-select-option{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:6px 9px;border-radius:5px;background:transparent;text-align:left;font-size:13px;white-space:nowrap}
.custom-select-option:hover,.custom-select-option:focus-visible{background:#eeefff;outline:0}
.custom-select-option[aria-selected="true"]{color:var(--blue);font-weight:600}
.custom-select-check{margin-left:auto;padding-left:10px}
.custom-select-swatch{flex:0 0 40px;width:40px;height:30px;display:grid;place-items:center;border:1px solid #bbb9b2;border-radius:3px;font-family:"Fredoka",sans-serif;font-size:16px;font-weight:600}
.custom-select-swatch.is-colorful{background:linear-gradient(110deg,#f6dadd 0 25%,#d4eaf1 25% 50%,#f6db75 50% 75%,#d9edcf 75%);color:#302c35}
#calendar-panel .live-calendar-options .custom-select-trigger{background:transparent;border:0;border-bottom:1px solid #b9b7b0;border-radius:0;padding-left:1px}
#calendar-panel .live-calendar-options .custom-select-trigger:hover,#calendar-panel .live-calendar-options .custom-select.is-open .custom-select-trigger{border-color:var(--blue)}
@media(max-width:520px){.custom-select-trigger,.custom-select-option{font-size:12px}.custom-select-swatch{flex-basis:33px;width:33px;height:27px}}

/* A sheet of paper, with the name itself as the specimen. */
:root{
 --paper:#f7f4ec;
 --surface:#fffdf8;
 --ink:#1e201d;
 --muted:#62655e;
 --coral:#2B2EDD;
 --blue:#2B2EDD;
}
body{background-color:var(--paper);background-image:url("paper-grain.svg");background-size:512px 512px}
.header{border-bottom-color:#d7d2c7}
.brandmark,.branddot{color:var(--blue)}
.intro{display:block;min-height:0;padding:53px 0 67px}
.hero-wordmark{font-family:var(--font-personal);font-size:clamp(120px,15.5vw,195px);font-weight:600;letter-spacing:-.095em;line-height:.82;color:var(--ink);white-space:nowrap}
.hero-wordmark>span{display:block}
.hero-wordmark>span+span{margin-left:clamp(145px,20vw,290px);margin-top:4px}
.hero-period{color:var(--blue)}
.intro-bottom{display:flex;justify-content:space-between;align-items:end;gap:36px;margin-top:52px}
.intro-copy{max-width:650px}
.intro h1{font-size:clamp(24px,2.5vw,31px);font-weight:600;line-height:1.55;letter-spacing:-.045em;margin:0 0 18px}
.intro .lede{font-size:14px;line-height:1.9;color:#4e524b}
.intro-inclusive{font-size:12px;color:#70736d;margin:16px 0 0}
.preview-head h2{overflow-wrap:anywhere}
.primary{background:#2B2EDD;color:#fff}
.primary:hover{background:#1c1fb7}
.creation-tab[aria-selected=true]{border-bottom-color:var(--blue)}
input[type=range],.checkbox input{accent-color:var(--blue)}
.export-bar{background:#f7f4ecf2}
@media(max-width:900px){
 .hero-wordmark{font-size:clamp(108px,17vw,155px)}
 .hero-wordmark>span+span{margin-left:clamp(100px,17vw,180px)}
 .intro-bottom{margin-top:58px}
}
@media(max-width:760px){
 .intro{padding:58px 0 62px}
 .hero-wordmark{font-size:clamp(85px,18vw,138px)}
 .hero-wordmark>span+span{margin-left:clamp(64px,12vw,130px)}
 .intro-bottom{gap:24px;margin-top:53px}
 .intro h1{font-size:24px}
}
@media(max-width:600px){
 .intro{padding:52px 0 56px}
 .hero-wordmark{font-size:clamp(68px,19vw,112px)}
 .hero-wordmark>span+span{margin-left:8vw}
 .intro-bottom{display:block;margin-top:50px}
 .intro h1{font-size:24px}
 .header-actions #language{flex:0 0 auto;white-space:nowrap;padding:8px 2px}
}

/* Mina's font supplies capitals; rounded type supports the rest of the interface. */
@font-face{font-family:"Kosugi Maru";src:url("fonts/kosugi-maru-ui.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Fredoka";src:url("fonts/fredoka.woff2") format("woff2");font-style:normal;font-weight:300 700;font-display:swap}
@font-face{font-family:"Lexend";src:url("fonts/lexend.ttf") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{
 font-family:"Mina Letter";
 src:url("fonts/mina-title-2026-10-09.ttf") format("truetype");
 font-style:normal;
 font-weight:400;
 font-display:swap;
 unicode-range:U+0041-005A;
}
:root{
 font-family:"Fredoka","Kosugi Maru",sans-serif;
 --font-personal:"Fredoka","Kosugi Maru",sans-serif;
 --font-display:"Mina Letter","Fredoka","Kosugi Maru",sans-serif;
}
.intro>.hero-wordmark{max-width:none}
.hero-wordmark{font-family:var(--font-display);font-size:clamp(110px,14vw,180px);text-transform:uppercase;font-weight:400;letter-spacing:-.035em;line-height:.91}
.hero-wordmark>span+span{margin-top:0}
.hero-wordmark>span+span{margin-left:8vw}
.brand{font-family:var(--font-display);text-transform:uppercase;font-size:21px;letter-spacing:-.03em;font-weight:400}
.brandmark{text-transform:none}
.letter,.character-chip{font-family:var(--font-display)}
.intro-bottom{display:block;margin-top:60px}

/* Treat the calendar as the product: a large live specimen with its options beside it. */
#calendar-panel:not([hidden]){grid-template-columns:minmax(0,1.75fr) minmax(290px,.75fr);gap:38px;align-items:start}
#calendar-panel .live-calendar{order:-1;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
#calendar-panel .live-calendar-head{margin-bottom:22px}
#calendar-panel .live-calendar-head h2{font-size:clamp(26px,3vw,36px);margin:0 0 3px}
#calendar-panel .live-calendar-head .form-note{font-size:12px;line-height:1.7;margin:0;color:var(--muted)}
#calendar-panel .live-calendar-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;margin-bottom:23px}
#calendar-panel .live-calendar-options label:nth-child(-n+2){grid-column:auto}
#calendar-panel .live-calendar-options label>span{font-size:11px;letter-spacing:.025em}
#calendar-panel .live-calendar-options select{background:transparent;border:0;border-bottom:1px solid #b9b7b0;border-radius:0;padding:9px 24px 10px 1px;min-height:40px;font-size:13px}
#calendar-panel .live-calendar-canvas-wrap{min-height:760px;display:flex;align-items:flex-start;justify-content:center;padding:42px;background:#eae8e2;border:1px solid #dedbd3;border-radius:2px}
#calendar-panel #live-calendar-preview{width:min(100%,650px);height:auto;box-shadow:0 22px 45px #302d2626,0 2px 6px #302d261c}
#calendar-panel .live-calendar[data-preview-format="wallpaper"] #live-calendar-preview{width:min(78%,400px)}
#calendar-panel .calendar-callout{margin:0;padding:21px 0 0;background:transparent;border:0;border-top:1px solid var(--ink);border-radius:0}
#calendar-panel .calendar-callout h2{font-size:29px;line-height:1.4;margin:0 0 12px}
#calendar-panel .calendar-callout>div>p{font-size:12px;line-height:1.8;margin:0;color:#555951}
#calendar-panel .calendar-requirements{margin-top:25px;border-top:1px solid #d3d0c5;padding-top:15px}
#calendar-panel .requirement-row{padding-bottom:20px;margin:0 0 20px;border-bottom:1px solid #d9d6cc}
#calendar-panel .requirement-row:last-child{border-bottom:0}
#calendar-panel .character-chip{border-radius:2px;background:#fcfaf5;border-color:#ceccc2;color:var(--ink)}
#calendar-panel .character-chip.complete{background:#eeeefe;border-color:#a5a6e3;color:var(--blue)}
@media(max-width:1000px){
 #calendar-panel:not([hidden]){grid-template-columns:minmax(0,1.55fr) minmax(270px,.85fr);gap:25px}
 #calendar-panel .live-calendar-canvas-wrap{min-height:650px;padding:26px}
}
@media(max-width:760px){
 .hero-wordmark{font-size:clamp(75px,12.5vw,110px)}
 .hero-wordmark>span+span{margin-left:6vw}
 #calendar-panel:not([hidden]){display:flex;flex-direction:column;gap:35px}
 #calendar-panel .live-calendar,#calendar-panel .calendar-callout{width:100%}
 #calendar-panel .live-calendar-canvas-wrap{min-height:0;padding:20px}
 #calendar-panel .calendar-callout{padding-top:20px}
}
@media(max-width:520px){
 .brand{font-size:18px}
 .hero-wordmark{font-size:clamp(52px,14.5vw,74px)}
 .hero-wordmark>span+span{margin-left:5vw}
 #calendar-panel .live-calendar-options{gap:10px}
 #calendar-panel .live-calendar-options select{font-size:12px}
 #calendar-panel .live-calendar-canvas-wrap{padding:12px}
 #calendar-panel .live-calendar-head h2{font-size:26px}
}

/* Lexend draws Latin text in both languages; Kosugi Maru draws Japanese. */
:root{
 font-family:"Lexend","Kosugi Maru",sans-serif;
 --font-personal:"Lexend","Kosugi Maru",sans-serif;
 --font-display:"Mina Letter","Lexend","Kosugi Maru",sans-serif;
}
:root:lang(en){
 font-family:"Lexend","Kosugi Maru",sans-serif;
 --font-personal:"Lexend","Kosugi Maru",sans-serif;
 --font-display:"Mina Letter","Lexend","Kosugi Maru",sans-serif;
}
.letter,.character-chip{font-family:var(--font-personal);font-weight:400}
.letter .plus,.letter .check,.letter .charlabel{font-family:var(--font-personal)}
#calendar-panel .character-chip.complete{font-weight:400}

/* One introduction above the product preview and letter editor. */
#calendar-panel .calendar-intro{grid-column:1/-1;order:-2;margin:16px 0 8px;max-width:800px}
#calendar-panel .calendar-intro h2{font-family:var(--font-personal);font-size:clamp(28px,3.6vw,42px);font-weight:400;line-height:1.4;letter-spacing:-.04em;margin:0 0 12px}
#calendar-panel .calendar-intro p{max-width:760px;font-size:14px;line-height:1.9;color:#555951;margin:0}
#calendar-panel .calendar-callout h3{font-family:var(--font-personal);font-size:22px;font-weight:400;line-height:1.5;letter-spacing:-.025em;margin:0 0 9px}
#calendar-panel .calendar-callout>div>p{font-size:12px;line-height:1.85}
#calendar-panel .calendar-callout{padding-top:16px}
@media(max-width:760px){
 #calendar-panel .calendar-intro{width:100%;margin:14px 0 0}
 #calendar-panel .calendar-intro h2{font-size:29px}
 #calendar-panel .calendar-intro p{font-size:13px}
}

/* Typographic roles: expressive lettering for the title, calm rounded text for reading. */
:root{
 --text-body:1rem;
 --text-support:.875rem;
 --text-label:.8125rem;
 --text-section:clamp(1.625rem,1.25rem + 1.1vw,2.25rem);
 --text-display:clamp(1.875rem,1.45rem + 1.4vw,2.75rem);
}
body{font-size:var(--text-body);line-height:1.65}
.header{height:70px;justify-content:flex-end;border-bottom:0}
.header-actions .primary,.header-actions .secondary{font-size:var(--text-support)}
.intro{padding-top:38px}
.intro h1{font-size:clamp(1.75rem,1.42rem + 1vw,2.125rem);line-height:1.45;letter-spacing:-.025em;text-wrap:balance}
.intro .lede{font-size:var(--text-body);line-height:1.8;max-width:44em}
.intro-inclusive{font-size:var(--text-support);line-height:1.65}
.creation-tab{font-size:var(--text-body)}
#calendar-panel .calendar-intro{max-width:68ch}
#calendar-panel .calendar-intro h2{font-size:var(--text-display);line-height:1.35;text-wrap:balance}
#calendar-panel .calendar-intro p{font-size:var(--text-body);line-height:1.75;max-width:65ch}
#calendar-panel .live-calendar-head h2{font-size:var(--text-section);line-height:1.35;text-wrap:balance}
#calendar-panel .live-calendar-head .form-note{font-size:var(--text-support);line-height:1.6}
#calendar-panel .calendar-callout h3{font-size:1.375rem;line-height:1.4}
#calendar-panel .calendar-callout>div>p{font-size:var(--text-support);line-height:1.7}
#calendar-panel .calendar-requirements{margin-top:22px}
.requirement-row>strong{font-size:var(--text-support)}
.calendar-readiness,.requirement-row>p{font-size:var(--text-label);line-height:1.55}
#calendar-panel .live-calendar-options label>span{font-size:var(--text-label)}
.custom-select-trigger,.custom-select-option{font-size:var(--text-support)}
.workspace{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
.studio-top{border-top:0;padding-top:0}
.step-label,.hint,.autosave,.form-note,.preview-note{font-size:var(--text-support);line-height:1.6}
#font-name{font-size:clamp(1.5rem,1.2rem + .9vw,1.875rem);line-height:1.4}
.grid-head{margin-top:24px}
.grid-head .tabs button{font-size:var(--text-support)}
.studio-bottom p,.studio-bottom .textbutton{font-size:var(--text-support)}
.preview-head h2{font-size:var(--text-section);line-height:1.4;text-wrap:balance}
.dialog-head h2{line-height:1.3;text-wrap:balance}
.dialog-head .form-note,.browse-privacy,.scan-instructions,.edit-help,.download-tip,.export-warning{font-size:var(--text-support);line-height:1.65}
.export-bar strong{font-size:var(--text-support)}
.export-bar>div>span{font-size:var(--text-label)}
@media(max-width:760px){
 .header{height:62px;min-height:62px;padding-block:10px}
 .intro{padding-top:22px}
 .intro .lede{font-size:var(--text-body)}
 #calendar-panel .calendar-intro h2{font-size:var(--text-display)}
 #calendar-panel .calendar-intro p{font-size:var(--text-body)}
 .workspace{padding:0}
}
@media(max-width:520px){
 .header-actions{justify-content:flex-end;gap:7px}
 .header-actions .primary,.header-actions .secondary{font-size:var(--text-label);padding-inline:11px}
 .intro h1{font-size:1.75rem;line-height:1.45}
 .intro-inclusive{font-size:var(--text-support)}
 .creation-tab{font-size:var(--text-support)}
 .custom-select-trigger,.custom-select-option{font-size:var(--text-label)}
 .export-bar .primary{font-size:var(--text-label)}
}


/* Shared radii and surfaces for controls and character tiles. */
:root{--radius-small:8px;--radius-control:10px;--radius-tile:10px;--radius-panel:16px}
.primary,.secondary,.textbutton,.form-input,.custom-select-trigger{border-radius:var(--radius-control)}
.custom-select-menu,dialog,.font-card{border-radius:var(--radius-panel)}
.custom-select-option{border-radius:var(--radius-small)}
.letter,#calendar-panel .character-chip{border-radius:var(--radius-tile)}
#calendar-panel .character-chip{width:48px;min-width:48px;height:52px;min-height:52px;padding:0;border:1px dashed #d9ddd2;background:#fafaf5;color:#8c9788;font-size:22px;transition:background .15s,transform .15s,border-color .15s,box-shadow .15s}
#calendar-panel .character-chip:hover{transform:translateY(-2px);background:#f0f1e6;border-color:#8b9782;box-shadow:0 3px 0 #e5e8dc}
#calendar-panel .character-chip.complete{border:1px solid #cfd7c8;background:#f2f3e9;color:var(--green)}
#calendar-panel .character-chip.complete:hover{background:#e9eddf;border-color:#9eae97}
#calendar-panel .character-chip .plus{right:5px;bottom:2px;font-size:13px}
#calendar-panel .character-chip .check{right:5px;top:2px}
#calendar-panel .live-calendar-options .custom-select-trigger{min-height:48px;padding:10px 13px;background:#fff;border:1px solid #d6d4ca;border-radius:var(--radius-control)}
#calendar-panel .live-calendar-options .custom-select-trigger:hover,#calendar-panel .live-calendar-options .custom-select.is-open .custom-select-trigger{background:#fff;border-color:var(--blue);box-shadow:0 0 0 2px #2b2edd16}
#calendar-panel .live-calendar-head h2{font-size:clamp(1.375rem,1.2rem + .55vw,1.625rem);line-height:1.4}
#calendar-panel .calendar-requirements{margin-top:16px}
.autosave:empty{display:none}

/* Lexend uses Regular for reading and Semibold for emphasis in English. */
:root:lang(en) :where(.brand,h1,h2,h3,.tabs button,.form-label,.export-bar strong,.primary,.secondary,.custom-select-option[aria-selected="true"],.custom-select-swatch,.eyebrow,footer>span,.palette-sample,.creation-tab){font-weight:600}
:root:lang(en) #font-name{font-weight:600}
:root:lang(en) :is(.hero-wordmark,.letter,.character-chip,.character-chip.complete){font-weight:400}
.custom-select-arrow,.custom-select-swatch{font-family:"Lexend",sans-serif}

/* Soft paper and a single warm hue for the interface. */
:root{
 --paper:#f7f4ec;
 --surface:#fffdfa;
 --ink:#593C3C;
 --muted:#7c6d6c;
 --line:#ded2cf;
 --coral:#593C3C;
 --blue:#593C3C;
 --green:#76595a;
 --tile:#fffdfa;
 --tile-hover:#f5edeb;
 --tile-saved:#E9D9F7;
}
body{background-color:var(--paper);background-image:url("paper-grain.svg");background-position:left top;background-size:512px 512px;background-attachment:scroll;color:var(--ink)}
.primary{background:var(--ink);color:#fff;box-shadow:none}
.primary:hover{background:#704e4e}
.primary:active{background:#472e2e}
.secondary{background:#f5eeeb;border-color:var(--line)}
.secondary:hover,.textbutton:hover{background:#eee3e1}
.textbutton{color:var(--muted)}
.header-actions .secondary{color:var(--ink)}
.hero-period{color:#E9D9F7}
.creation-tab[aria-selected=true]{border-bottom-color:var(--ink)}
.creation-tab:hover{background:#f5edeb}
input[type=range],.checkbox input{accent-color:var(--ink)}
.custom-select-arrow,.custom-select-option[aria-selected="true"]{color:var(--ink)}
.custom-select-trigger:hover,.custom-select.is-open .custom-select-trigger{border-color:var(--ink)}
.custom-select-option:hover,.custom-select-option:focus-visible{background:var(--tile-hover)}
#calendar-panel .live-calendar-options .custom-select-trigger:hover,#calendar-panel .live-calendar-options .custom-select.is-open .custom-select-trigger{border-color:var(--ink);box-shadow:0 0 0 2px #593c3c1c}
.letter,#calendar-panel .character-chip{background:var(--tile);border-color:#d8ccca;color:#927e7e}
.letter:hover,#calendar-panel .character-chip:hover{background:var(--tile-hover);border-color:#a99090;box-shadow:0 3px 0 #e9dfdc}
.letter.saved,#calendar-panel .character-chip.complete{background:var(--tile-saved);border-color:#593C3C;color:var(--ink)}
.letter.saved:hover,#calendar-panel .character-chip.complete:hover{background:#e3cff3;border-color:#593C3C}
.letter .plus,.letter .check,.letter .charlabel,#calendar-panel .character-chip .plus,#calendar-panel .character-chip .check{color:var(--ink)}
.tabs button[aria-selected=true]{background:#e8dedb}
.card-placeholder,#preview-text::placeholder{color:#b8aaa8}
.font-card.current{border-color:var(--ink)}
.browse-privacy,.success-symbol{background:#f3eaf8;color:var(--ink)}
.export-bar{background:#f7f4eceb;border-top-color:var(--line)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline-color:#957098}

/* Preserve the crop canvas aspect ratio so mouse coordinates match the photo. */
#crop-canvas{width:auto;height:auto;max-width:100%;max-height:340px;object-fit:contain}

#calendar-panel .calendar-callout{border-top:0;padding-top:0}
.preview-note:empty{display:none}

/* Give the reading and control text a consistent, more legible scale. */
:root{
 --text-body:1.125rem;
 --text-support:1rem;
 --text-label:.9375rem;
 --text-section:clamp(1.75rem,1.375rem + 1.1vw,2.375rem);
 --text-display:clamp(2rem,1.575rem + 1.4vw,2.875rem);
}
.intro h1{font-size:clamp(1.875rem,1.545rem + 1vw,2.25rem)}
#calendar-panel .live-calendar-head h2{font-size:clamp(1.5rem,1.325rem + .55vw,1.75rem)}
#calendar-panel .calendar-callout h3{font-size:1.5rem}
#font-name{font-size:clamp(1.625rem,1.325rem + .9vw,2rem)}
.letter{font-size:38px}
#calendar-panel .character-chip{font-size:24px}
.primary,.secondary,.textbutton,.form-label,.form-input{font-size:var(--text-support)}
.font-card h3,.export-choice h3{font-size:17px}
.font-card .card-meta,.font-card button,.export-choice>p,.export-choice .form-note,#export-summary,.adjustments p{font-size:var(--text-label)}
.calendar-options label>span,.delivery-options label>span,.adjustments>label,.adjustments .checkbox{font-size:var(--text-label)}
.calendar-options select,.delivery-options select,.live-calendar-options select{font-size:var(--text-support)}
.custom-select-swatch{font-size:18px}
.letter .charlabel,.glyph-preview span{font-size:11px}
.letter .check{font-size:13px}
.letter .plus{font-size:17px}
#calendar-panel .character-chip .plus{font-size:15px}
.palette-sample{font-size:13px}
.calendar-progress,.collection-empty,#toast{font-size:var(--text-label)}

/* Match the fixed footer to main's 1240px width and 48px side padding. */
.export-bar{padding-inline:max(48px,calc((100vw - 1144px)/2))}
.export-bar>.export-bar-status{min-width:0;gap:2px}
.export-bar>.export-bar-actions{display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0}
.export-bar-actions .secondary,.export-bar-actions .primary{min-height:48px;white-space:nowrap}
.export-bar-status #save-status{margin:0;color:var(--muted)}
.export-bar-status #save-status:empty{display:none}
.export-bar-status #export-context{color:var(--muted)}
@media(max-width:760px){
 .export-bar{padding-inline:24px}
 .export-bar .primary,.export-bar .secondary{font-size:var(--text-label)}
}
@media(max-width:600px){
 .export-bar{flex-direction:column;align-items:stretch;gap:9px}
 .export-bar>.export-bar-actions{width:100%}
 .export-bar-actions .secondary,.export-bar-actions .primary{flex:1;justify-content:center;padding:11px 12px;min-width:0}
}

/* Let spacing, rather than extra rules, separate the letter editor and calendar groups. */
.grid-head,.studio-bottom,#calendar-panel .calendar-requirements{border-top:0}
.grid-head,#calendar-panel .calendar-requirements{padding-top:0}

/* Give the mode tabs and the calendar's two headings one clear type level. */
.creation-tab,.creation-tab[aria-selected=true]{font-size:clamp(1.25rem,1.125rem + .4vw,1.375rem)}
#calendar-panel .live-calendar-head h2,#calendar-panel .calendar-callout h3{font-size:clamp(1.25rem,1.125rem + .4vw,1.375rem);line-height:1.4}
:root:lang(en) #calendar-panel .calendar-callout h3{font-weight:600}

main{padding-bottom:52px}
.site-footer{max-width:1240px;margin:0 auto;padding:22px 48px calc(120px + env(safe-area-inset-bottom));display:flex;justify-content:space-between;gap:12px;border-top:0;color:var(--muted);font-size:var(--text-label);line-height:1.5}
.site-footer>span{font-weight:400}
.site-footer a{text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:3px}
.site-footer a:hover{color:var(--ink)}
@media(max-width:760px){
 main{padding-bottom:40px}
 .site-footer{padding-inline:24px}
}
@media(max-width:600px){
 .site-footer{flex-direction:column;gap:4px;padding-bottom:calc(155px + env(safe-area-inset-bottom))}
}

/* Align calendar section labels with the font editor. */
#calendar-panel .live-calendar-head h2,#calendar-panel .calendar-callout h3{font-size:var(--text-support);font-weight:400;color:var(--muted);letter-spacing:.6px;line-height:1.6;margin:0 0 7px}
:root:lang(en) #calendar-panel .calendar-callout h3{font-weight:400}
#live-calendar-status{font-size:11px;line-height:1.55;color:var(--muted);margin:12px 0 0}
@media(max-width:760px){
 .grid-head{flex-wrap:wrap;gap:8px}
 .grid-head .hint{display:block;flex-basis:100%;text-align:left}
}

#preview-title{font-size:var(--text-support);font-weight:400;color:var(--muted);letter-spacing:.6px;line-height:1.6;margin:0 0 7px}
#preview-text{border-top:0}
.scan-actions #reuse-photo{grid-column:1/-1}
/* The Japanese-only kana tabs wrap without squeezing the letter hint. */
.grid-head .tabs{flex-wrap:wrap}
.tabs button[hidden]{display:none}
:root:lang(ja) .grid-head{flex-wrap:wrap;gap:8px}
:root:lang(ja) .grid-head .tabs{width:100%}
:root:lang(ja) .grid-head .hint{text-align:left}

/* − / + buttons on either side of the preview size slider. */
.size-step {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.size-step:hover:not(:disabled) {
  color: var(--ink);
}

/* Non-production marker: 🧪 on staging, 🌿 on branch previews. The Worker
   injects it (see worker/index.ts); production HTML never contains it. */
.stage-badge {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  z-index: 2147483647;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 520px) {
  /* Tuck it into the corner so it clears the header buttons. */
  .stage-badge {
    top: max(3px, env(safe-area-inset-top));
    left: max(3px, env(safe-area-inset-left));
    font-size: 15px;
  }
}
