/*
 * Idesignweb Base Styles and Typography Reset
 * Minimalist, high-legibility typographic foundation.
 */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

::selection {
  background-color: #E2E8F0;
  color: var(--text-main);
}

/* Typography Hierarchy - Clean Minimalist Inter Style (vinkj.com standard) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

button, input, select, textarea {
  font-family: var(--font-sans);
  font-size: inherit;
  color: inherit;
}

h1 { font-size: var(--text-h1); margin-bottom: var(--space-md); }
h2 { font-size: var(--text-h2); margin-bottom: var(--space-sm); }
h3 { font-size: var(--text-h3); margin-bottom: var(--space-xs); font-weight: var(--weight-bold); }
h4 { font-size: var(--text-h4); font-weight: var(--weight-bold); }

p {
  margin-bottom: var(--space-md);
  color: var(--text-body);
  line-height: 1.6;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  color: var(--color-accent);
}

p, h1, h2, h3, h4, h5, h6, a, span, button, li, label, input, textarea {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

ul, ol {
  list-style: none;
}

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

/* Accessible Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Text Utilities */
.text-display {
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.text-blue { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-bold { font-weight: var(--weight-bold); }
.text-medium { font-weight: var(--weight-medium); }
.text-regular { font-weight: var(--weight-regular); }
.text-caps { 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  font-size: var(--text-tiny); 
  font-weight: var(--weight-bold); 
}

/* Category Label */
.category-label {
  font-size: 0.9rem;
  font-weight: var(--weight-medium);
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: var(--space-xs);
}

/* Structural Dividers */
hr {
  border: none;
  border-top: 1px solid var(--border-hairline);
  margin: var(--space-xl) 0;
}
