
/* Readable brand typography and text resizing, shared across the project. */
:root{--green:#395A55;--ivory:#F7F1E7;--lavender:#DDD4EA;--sans:Montserrat,Arial,sans-serif}
html{font-size:calc(100% * var(--text-scale,1))}
body{font-weight:500;overflow-wrap:anywhere;min-width:0}
button,input,textarea{font-family:var(--sans)}
button,a{touch-action:manipulation}
button,a.primary,.whatsapp,.button{white-space:normal;height:auto;max-width:100%}
button svg,a svg{flex-shrink:0}
textarea::placeholder{color:#395A55;opacity:1}
footer{padding-bottom:96px}

body{font:500 1rem/1.8 var(--sans)}
.fine,.header-link,.masthead>span,.ana figcaption{color:#395A55}
.lead,.welcome,.answer,.result-intro>p,.result-body p,.steps li,.invite>p,.ana p,.end p,.button,.text-button{font-size:1rem}
.byline,.facts,.fine,.eyebrow,.quiz-top,.answer .letter,.ana figcaption,footer,footer>a,.masthead>span,.header-link,#status{font-size:.875rem}
.answer .letter{min-width:2rem;width:2rem;min-height:2rem;height:auto;padding:4px}
.hero-copy,.home>*,.welcome>*,.ana>*,.answer span{min-width:0}
.button{letter-spacing:.02em;line-height:1.6}.quiz-top{flex-wrap:wrap;gap:12px}.masthead{flex-wrap:wrap;gap:16px}
.hero-image{max-height:none}.quiz h2{min-height:0}
#status{bottom:90px;max-width:calc(100% - 40px);text-align:center}
html[data-large-text=true] .home,html[data-large-text=true] .welcome,html[data-large-text=true] .ana{grid-template-columns:minmax(0,1fr)}
html[data-large-text=true] .hero-image{height:450px;min-height:0;max-width:650px;width:100%;justify-self:center}
html[data-large-text=true] .ana figure{max-width:350px;margin:auto}
@media(max-width:800px){.byline,.facts,.fine{font-size:.875rem}.lead,.answer,.result-body p,.invite>.button,.ana .button,.end .button,.actions .button{font-size:1rem}.hero-copy>.button{gap:12px}.masthead img{max-width:100%}.home,.result,.quiz{padding-left:22px;padding-right:22px}.ana figure{width:calc(100% - 40px)}.facts{line-height:1.6}}
.accessibility{position:fixed;right:20px;bottom:calc(var(--contact-bar-height,0px) + 18px);z-index:30;color:var(--green);font-family:var(--sans)}
.accessibility>summary{display:flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;padding:8px 10px;list-style:none;background:var(--ivory);border:1px solid var(--green);border-radius:50%;font-size:1rem;line-height:1.3;font-weight:600;cursor:pointer;box-shadow:0 3px 10px #395a551a}
.accessibility>summary::-webkit-details-marker{display:none}
.accessibility>summary:hover,.accessibility[open]>summary{background:var(--green);color:var(--ivory)}
.text-tools{position:absolute;bottom:calc(100% + 12px);right:0;width:min(19rem,calc(100vw - 40px));max-height:calc(100dvh - var(--contact-bar-height,0px) - 130px);overflow:auto;padding:20px;background:var(--ivory);border:1px solid var(--green);border-radius:12px;box-shadow:0 6px 24px #263e3926}
.text-tools>strong{display:block;font-size:.875rem;line-height:1.5;margin-bottom:16px}
.text-size-buttons{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.text-tools button{min-width:48px;min-height:48px;padding:8px 12px;border:1px solid var(--green);border-radius:6px;background:var(--ivory);color:var(--green);font-size:1rem;font-weight:600;cursor:pointer;line-height:1.4}
.text-tools button:hover:enabled{background:var(--lavender)}
.text-tools button:disabled{color:var(--green);border-style:dashed;cursor:default}
#text-size-status{font-size:.875rem;font-weight:600;line-height:1.5}
#text-reset{width:100%;font-size:.875rem}

.text-tools .text-preference{font-size:.875rem;line-height:1.6;margin:14px 0 0;color:#395A55;font-weight:500}
.text-tools button:disabled{opacity:1}
.text-tools :focus-visible,.accessibility>summary:focus-visible{outline:3px solid #395A55;outline-offset:4px}
