/* ==========================================================================
   Casa Alba — Base / Reset
   CSS reset, box-sizing baseline, full-height html/body chain, no h-scroll.
   ========================================================================== */

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

/* Remove default margins everywhere. */
* {
  margin: 0;
}

html,
body {
  height: 100%;
}

html {
  /* Smooth scrolling for anchor navigation between sections. */
  scroll-behavior: smooth;
  /* Never allow horizontal scroll: clip overflow without making a scrollbar. */
  overflow-x: clip;
}

body {
  min-height: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-body);
  background: var(--color-bg);
  /* Belt-and-braces: clip any horizontal overflow at the body too. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

p {
  line-height: var(--leading-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
}

/* Honour users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
