/* RouxLub · base — reset, typography, base elements */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--rx-font-body);
  font-size: var(--rx-text-base);
  line-height: var(--rx-leading-normal);
  color: var(--rx-ink);
  background: var(--rx-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rx-font-head);
  font-weight: var(--rx-fw-semibold);
  line-height: var(--rx-leading-tight);
  color: var(--rx-heading);
  text-wrap: balance;
}
h1 { font-size: var(--rx-text-3xl); }
h2 { font-size: var(--rx-text-2xl); }
h3 { font-size: var(--rx-text-xl); }
h4 { font-size: var(--rx-text-lg); }

p { line-height: var(--rx-leading-normal); }
p + p { margin-top: var(--rx-space-2); }

a { color: var(--rx-link); text-decoration: none; transition: color .2s var(--rx-ease); }
a:hover { color: var(--rx-link-hover); }

ul, ol { padding-left: 1.25em; }
li + li { margin-top: .25rem; }
strong, b { font-weight: var(--rx-fw-bold); }

:focus-visible { outline: 2px solid var(--rx-blue-500); outline-offset: 2px; }

.rx-skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--rx-navy); color: #fff; padding: .75rem 1rem;
}
.rx-skip:focus { left: 0; }

@media (max-width: 640px) {
  :root { --rx-text-3xl: 2.25rem; --rx-text-2xl: 1.875rem; --rx-text-xl: 1.5rem; }
}
