/* Base reset + typo */
*,*::before,*::after{box-sizing:border-box;}
html,body{margin:0;padding:0;}
html{scroll-behavior:smooth;scroll-padding-top:80px;-webkit-text-size-adjust:100%;}
html,body{overflow-x:hidden;max-width:100vw;}
body{
  font-family:var(--ff-body);
  font-size:16px;
  line-height:1.6;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img,video,iframe{max-width:100%;display:block;}
figure,blockquote{margin:0;}
ul,ol{margin:0;padding:0;list-style:none;}
button{font:inherit;cursor:pointer;background:none;border:none;color:inherit;padding:0;}
a{color:inherit;text-decoration:none;}
[hidden]{display:none !important;}

/* Typo */
h1,h2,h3,h4{font-family:var(--ff-display);font-weight:500;line-height:1.15;letter-spacing:-.01em;margin:0;color:var(--text);}
h2{font-size:clamp(1.85rem,3.6vw,2.75rem);}
h3{font-size:clamp(1.25rem,2vw,1.55rem);}
p{margin:0 0 1em;}
em{font-style:italic;}
strong{font-weight:600;}

/* Selection / scrollbar / focus / placeholder */
::selection{background:var(--accent);color:#fff;}
::-webkit-scrollbar{width:8px;height:8px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--accent) 60%,transparent);border-radius:4px;}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px;}
input::placeholder,textarea::placeholder{color:var(--text-mute);opacity:1;}
