/* form.css | The forms "under tape" and the sent states (19 Nov 2026, the site Standard). Linked after scene.css (and tape.css) by weekly.html, feedback.html and the two thank-you pages.
   Markup: templates/v3/weekly_form_ut.html (build_site.weekly_form(under=True)) and templates/v3/feedback.html; behaviour: js/form.js. The forms are real Netlify forms with real labels and inputs: this file
   only dresses them. A field is `.ut`: the input (or textarea), a strip of the real tape `i.rtape` laid over it (tape.css) and `.ut-w`, the word written on the tape in marker. On focus the tape peels off
   (form.js) and what you type is set in the typewriter face (Plex Mono). Without script the tape simply hides while the field has focus or text (`html:not(.js)`, below); with script and reduced motion or
   ?freeze the same, through `.ut-still`. On submit the tape presses back over the text and the stamp `.ut-st` lands: the word SENT (`.stamp.c-snt`), then the form posts. The kind of note is four
   stamp-like radio buttons (`.kn`); the note is a ruled sheet. Errors: the field's own words appear (`.ferr`) once a field is touched and invalid (:user-invalid), in words and a dot, never colour alone.
   Phone: the field fills the width, the button under it, 48px+ taps, 16px type in the fields (no zoom on focus). The Thank you states (`.st`, scene.css) use the same stamp and let it land once. */
.stamp.c-snt{--gi:1;--hn:var(--sn-ver)}
.utf{display:block;max-width:none;min-width:0}
.utf .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ut-lb{display:block;margin:0 0 12px;padding:0;font:500 11.5px/1.2 var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted-n)}
.sc-form{margin-top:34px;max-width:680px}
.ut-line{position:relative;display:flex;align-items:center;gap:14px}
.ut{position:relative;display:block;flex:1 1 auto;min-width:0;font-size:44px}
.ut input,.ut textarea{display:block;width:100%;box-sizing:border-box;margin:0;border:1px solid color-mix(in srgb,var(--ink-n) 40%,transparent);border-radius:12px;background:rgba(8,11,6,.5);
 -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--ink-n);font:400 20px/1.5 var(--font-mono);letter-spacing:.01em;outline:0}
.ut input{height:60px;padding:0 20px}
.ut input::placeholder,.ut textarea::placeholder{color:color-mix(in srgb,var(--ink-n) 48%,transparent)}
.ut input:focus-visible,.ut textarea:focus-visible{outline:3px solid var(--focus,#fff);outline-offset:3px;border-color:var(--ink-n)}
.ut .rtape{display:block;left:-.1em;right:-.1em;top:-.07em;bottom:-.07em;z-index:2}
.ut .ut-w{position:absolute;left:.7em;top:50%;z-index:3;translate:0 -50%;pointer-events:none;font:500 14px/1 var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:#2A1802;opacity:.82}
.ut-open .ut-w{opacity:0}
/* no script, or reduced motion: the tape is out of the way while the field has focus or text */
html:not(.js) .ut:focus-within .rtape,html:not(.js) .ut:focus-within .ut-w,html:not(.js) .ut :is(input,textarea):not(:placeholder-shown)~:is(.rtape,.ut-w),
.ut-still.ut-open .rtape,.ut-still.ut-open .ut-w{opacity:0;visibility:hidden}
/* the ruled sheet of the note: the tape lies across its top; the lines are the paper */
.ut-sheet{font-size:44px}
.ut textarea{height:auto;min-height:clamp(250px,32vh,330px);padding:10px 22px 0;resize:vertical;border-radius:14px;background-color:rgba(8,11,6,.5);
 background-image:repeating-linear-gradient(180deg,transparent 0 41px,color-mix(in srgb,var(--ink-n) 22%,transparent) 41px 42px);background-attachment:local;font:400 19px/42px var(--font-mono)}
.ut-sheet .rtape{bottom:auto;height:1.04em;top:.08em;left:-.14em;right:-.14em}
.ut-sheet .ut-w{top:.6em;left:.7em}
/* a typed address or note is an object of its own: the error words and the rest */
.ferr{display:none;margin:14px 0 0;font:500 15px/1.4 var(--font-body);color:#FF9A86}
.ferr:before{content:"";display:inline-block;width:.7em;height:.7em;margin-right:.55em;border-radius:50%;background:#FF9A86}
.utf:has(.ut-line :user-invalid)>.ferr,.fld:has(.ut :user-invalid) .ferr{display:block}
.ut :user-invalid{border-color:#FF9A86}
.wknote{margin:18px 0 0;max-width:56ch;font:400 14.5px/1.55 var(--font-body);color:color-mix(in srgb,var(--ink-n) 82%,transparent)}
.wknote a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink-n);text-decoration:underline;text-underline-offset:3px}
.utf .btn.p{flex:none;min-height:60px;padding:0 30px;font:600 13px/1 var(--font-mono);letter-spacing:.12em;text-transform:uppercase;cursor:pointer}
/* the stamp that lands: SENT */
.ut-st{position:absolute;left:22px;top:50%;z-index:4;margin-top:-1.1em;pointer-events:none;opacity:0;rotate:-5deg;font-size:26px}
.ut-st .stamp{background:rgba(8,11,6,.94);font-size:inherit}
.is-sent .ut-st{opacity:1}
@keyframes utland{0%{opacity:0;scale:1.7}55%{opacity:1;scale:.94}80%{scale:1.03}100%{opacity:1;scale:1}}
@media (prefers-reduced-motion:no-preference){
 .is-sent .ut-st{animation:utland .9s cubic-bezier(.2,.8,.3,1) both}
 .st-stamp .stamp{animation:utland .9s .25s cubic-bezier(.2,.8,.3,1) both}
 .ut-w{transition:opacity .25s}
}
html[data-freeze] .st-stamp .stamp,html[data-freeze] .is-sent .ut-st{animation:none}
/* Report an error: the two columns, the kind of note as stamps, the file, the sheet */
.fbs{padding-bottom:clamp(80px,10vw,150px)}
.fb-two{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:30px clamp(40px,6vw,110px);align-items:start}
.fb-t{position:sticky;top:112px}
.fb-p{margin:24px 0 0;max-width:46ch;font:400 17px/1.65 var(--font-body);color:color-mix(in srgb,var(--ink-n) 86%,transparent)}
.fb-p a{color:var(--ink-n);text-decoration:underline;text-underline-offset:4px;text-decoration-color:color-mix(in srgb,var(--ink-n) 55%,transparent)}
.fbs .utf{display:grid;gap:30px}
.kn{border:0;padding:0;margin:0;min-width:0}
.kn-r{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kn-o{position:relative}
.kn-o input{position:absolute;inset:0;z-index:2;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.kn-o label{display:grid;gap:7px;align-content:center;min-height:76px;padding:14px 18px;border:1.5px solid color-mix(in srgb,var(--ink-n) 30%,transparent);border-radius:16px;background:rgba(8,11,6,.35);cursor:pointer}
.kn-w{font:600 clamp(19px,1.7vw,23px)/1.1 var(--font-display);letter-spacing:-.03em;color:var(--ink-n)}
.kn-t{font:500 11.5px/1.2 var(--font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted-n)}
.kn-o:hover label{border-color:var(--ink-n)}
.kn-o input:checked+label{border-color:var(--ink-n);background:color-mix(in srgb,var(--ink-n) 9%,rgba(8,11,6,.4));box-shadow:inset 0 0 0 3px #0B0E08,inset 0 0 0 4.5px var(--ink-n)}
.kn-o input:checked+label .kn-t{color:var(--ink-n)}
.kn-o:has(input:focus-visible) label{outline:3px solid var(--focus,#fff);outline-offset:3px}
.fld select{appearance:none;-webkit-appearance:none;width:100%;min-height:52px;padding:0 48px 0 20px;border:1px solid color-mix(in srgb,var(--ink-n) 40%,transparent);border-radius:999px;color:var(--ink-n);font:500 16px/1 var(--font-body);max-width:100%;
 background-color:rgba(8,11,6,.5);background-image:linear-gradient(45deg,transparent 50%,var(--ink-n) 50%),linear-gradient(135deg,var(--ink-n) 50%,transparent 50%);background-position:calc(100% - 25px) 50%,calc(100% - 19px) 50%;background-size:6px 6px;background-repeat:no-repeat}
.fld select:focus-visible{outline:3px solid var(--focus,#fff);outline-offset:3px}
.fb-go{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.fb-go .ut-st{left:min(240px,50%);margin-left:6px}
.chk{display:flex;gap:14px;align-items:flex-start;min-height:48px;max-width:46ch;font:400 15.5px/1.5 var(--font-body);color:color-mix(in srgb,var(--ink-n) 86%,transparent);cursor:pointer}
.chk input{width:26px;height:26px;margin:0;flex:none;accent-color:var(--ink-n)}
@media (max-width:980px){.fb-two{grid-template-columns:1fr}.fb-t{position:static}}
@media (max-width:820px){
 .sc-form{margin-top:24px}
 .ut-line{flex-wrap:wrap}
 .ut{flex:1 1 100%;font-size:36px}
 .ut.ut-sheet{font-size:44px}
 .ut input{height:56px;font-size:16px}
 .ut textarea{font-size:17px;padding-inline:18px}
 .utf .btn.p{width:100%;justify-content:center}
 .ut-line .ut-st{top:28px}
 .kn-r{grid-template-columns:1fr 1fr;gap:10px}
 .fb-go .btn.p{width:100%}
 .fb-go .ut-st{left:auto;right:6px;top:-8px;margin:0}
}
@media (max-width:420px){.kn-r{grid-template-columns:1fr}}
