@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --goblin-moss: #2f4f3e;
  --goblin-moss-deep: #1e3328;
  --goblin-copper: #bc7939;
  --goblin-copper-light: #d4a066;
  --goblin-cream: #f6f1e8;
  --goblin-ink: #141816;
  --site-header-height: 3.5rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height) + 0.5rem);
}

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

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--goblin-ink);
  background: var(--goblin-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#site-header {
  position: relative;
  z-index: 100;
}

/* Keep layout stable before Tailwind CDN paints utility classes */
.site-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgb(0 0 0 / 0.2);
  background: var(--goblin-moss);
}

#site-header .site-header-spacer {
  height: var(--site-header-height);
  pointer-events: none;
}

#mobile-nav.hidden {
  display: none;
}

/* Full-bleed heroes sit under the fixed bar (no cream band) */
main > section:first-child.relative.overflow-hidden {
  margin-top: calc(-1 * var(--site-header-height));
  padding-top: var(--site-header-height);
}

.font-display {
  font-family: 'Fjalla One', Impact, sans-serif;
  letter-spacing: 0.02em;
}

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

.hero-overlay {
  background: linear-gradient(
    105deg,
    rgb(30 51 40 / 0.88) 0%,
    rgb(47 79 62 / 0.72) 50%,
    rgb(188 121 57 / 0.45) 100%
  );
}

.card-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(20 24 22 / 0.1);
}

.copper-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--goblin-copper), var(--goblin-copper-light), var(--goblin-copper));
}

/* Inner pages: tighter vertical rhythm */
.page-hero {
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

.page-body {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.section-tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .section-tight {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.demo-banner {
  background: var(--goblin-moss-deep);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.35rem 0.5rem;
}
