/* Sohorta — base elements, focus, skip link */
*,*::before,*::after{box-sizing:border-box}

html{scroll-padding-top:calc(var(--header-h) + 16px)} /* 2.4.11 focus not obscured by sticky header */

/* Native controls (checkbox, radio, select, scrollbars) follow the site theme, not the OS:
   otherwise a dark-mode OS paints black checkboxes on the light theme. */
:root[data-theme="light"]{color-scheme:light}

:root[data-theme="dark"]{color-scheme:dark}

body{margin:0;background:var(--bg);color:var(--text);font:400 1rem/1.6 var(--font);-webkit-font-smoothing:antialiased}

img{max-width:100%;height:auto;display:block}

a{color:var(--link);text-underline-offset:.18em}

a:hover{text-decoration-thickness:2px}

h1,h2,h3,h4{font-family:var(--font-head);line-height:1.2;margin:0 0 .5em}

h1{font-size:clamp(1.7rem,1.2rem + 1.6vw,2.4rem)}

 h2{font-size:1.45rem}

 h3{font-size:1.1rem}

p{margin:0 0 1em}

button,input,select,textarea{font:inherit;color:inherit}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}

.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

:focus-visible{outline:3px solid var(--focus);outline-offset:2px;box-shadow:0 0 0 5px var(--focus-halo)}

@media (prefers-reduced-motion:reduce){

*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Skip link */
.skip{position:absolute;left:12px;top:-60px;z-index:999;background:var(--primary);color:var(--on-primary);padding:12px 18px;border-radius:var(--radius-sm);font-weight:700;text-decoration:none}

.skip:focus{top:12px}

