/* === MODERN CSS RESET — Radwax Factory === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  font-weight: var(--weight-normal);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  position: relative;
}

/* Subtle grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-normal);
  text-wrap: balance;
}

h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 1.08; }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.12; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.2; }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
button { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; appearance: none; }
textarea { resize: vertical; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background-color: var(--accent); color: #fff; }
hr { border: none; border-top: 1px solid var(--border); margin: var(--space-8) 0; }
strong, b { font-weight: var(--weight-semibold); }
p { text-wrap: pretty; }
address { font-style: normal; }
[hidden] { display: none !important; }
