/* ============================================================
   Black Ink Intranet - Global Base Styles
   Reset, typography, layout utilities
   ============================================================ */

/* ── Reset ── */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-gray-dark);
  background: var(--color-white);
  min-height: 100vh;
}

/* Prevent scroll when mobile nav is open */
body.mobile-nav-open {
  overflow: hidden;
}


/* ── Typography ── */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-black);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p {
  margin: 0 0 var(--space-2) 0;
  line-height: var(--line-height-relaxed);
}

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

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

a:hover {
  color: var(--color-gray-dark);
}

strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

small {
  font-size: var(--font-size-sm);
  color: var(--color-gray-medium);
}


/* ── Forms Base ── */

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}


/* ── Layout ── */

.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-8) 0;
}

.section__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  margin: 0 0 var(--space-4) 0;
}


/* ── Skip Link ── */

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-2);
  background: var(--color-white);
  color: var(--color-black);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-black);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  z-index: 10001;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: calc(var(--header-height) + var(--space-1));
  color: var(--color-black);
  outline: none;
}


/* ── Utilities ── */

.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;
}

.text-center { text-align: center; }
.text-small { font-size: var(--font-size-sm); }
.text-muted { color: var(--color-gray-medium); }


/* ── Selection ── */

::selection {
  background: var(--color-black);
  color: var(--color-white);
}


/* ── Images ── */

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


/* ── Lists ── */

ul, ol {
  list-style: none;
}
