/**
 * Italy Made Easy — Base Styles
 * Minimal reset + body + typography defaults.
 * ALL values from tokens.css — never hardcode here.
 */

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-body);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

h1 { font-size: var(--font-size-h1); font-weight: var(--font-weight-extrabold); }
h2 { font-size: var(--font-size-h2); font-weight: var(--font-weight-bold); }
h3 { font-size: var(--font-size-h3); font-weight: var(--font-weight-semibold); line-height: var(--line-height-snug); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-sm); }

p {
  margin: 0 0 var(--sp-6);
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin: 0 0 var(--sp-6);
  padding-left: var(--sp-7);
}

/* ─── Layout ─────────────────────────────────────────────── */
.site-main {
  max-width: var(--max-width-site);
  margin: 0 auto;
  padding: var(--sp-11) var(--sp-10);
}

@media (max-width: 768px) {
  .site-main {
    padding: var(--sp-9) var(--sp-4);
  }
}
