/* ============================================================
   PINNACLE SIGNWORKS — BASE STYLES
   Resets, typography, accessibility.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-normal);
  color: var(--text-on-light);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--brand-blue-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

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

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

ul, ol {
  list-style: none;
}

/* ---- Typography defaults ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: var(--space-4);
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

/* Larger eyebrow for major section headers — clearly marks "start of new section"
   with a small horizontal accent line before the text */
.eyebrow--lg {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: var(--space-5);
}

.eyebrow--lg::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .eyebrow--lg {
    font-size: 0.875rem;
    letter-spacing: 0.14em;
  }
  .eyebrow--lg::before {
    width: 24px;
  }
}

/* Accent treatment for H2 — colors the closing phrase to make headlines pop */
.h2-accent {
  color: var(--accent);
}

.lede {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-soft-on-light);
  max-width: 60ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
}

/* Selection */
::selection {
  background: var(--accent);
  color: white;
}

/* Skip link for accessibility */
/* Visually hidden until keyboard-focused — uses the inset clipping pattern so
   it never appears in the visual layout (including during page load), but
   keyboard users tabbing in still get a proper "Skip to main content" target. */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: var(--space-3) var(--space-5);
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--ink);
  color: white;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) 0;
}

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