/**
 * base.css — Base Styles & Resets
 */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  
  /* Premium Blueprint Grid Background */
  background-image: 
    linear-gradient(to right, var(--color-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
  background-size: 4rem 4rem;
  background-position: center top;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-brand);
  font-weight: 300;
  line-height: 1.19;
  margin-bottom: var(--space-4);
  text-wrap: balance;
  letter-spacing: -0.02em; /* Tighter headings for premium feel */
}

h1 { font-size: var(--text-hero); letter-spacing: -0.04em; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }

p {
  margin-bottom: var(--space-4);
  max-width: 75ch; /* Cap line length */
}

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

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* Accessibility & Focus */
:focus-visible {
  outline: 2px solid var(--color-ink-muted);
  outline-offset: 4px;
}

::selection {
  background-color: var(--color-ink);
  color: var(--color-bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
