/* NiishForge Tailwind Stylesheet - Adachinweuba Foundation Theme */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap");

:root {
  --background: 42 42% 96%;
  --foreground: 155 28% 15%;
  --border: 39 25% 84%;
  --input: 39 25% 84%;
  --ring: 44 88% 52%;
  --card: 42 42% 98%;
  --card-foreground: 155 28% 15%;
  --card-border: 39 25% 86%;
  --popover: 42 42% 98%;
  --popover-foreground: 155 28% 15%;
  --popover-border: 39 25% 84%;
  --primary: 155 42% 19%;
  --primary-foreground: 42 42% 97%;
  --secondary: 38 30% 90%;
  --secondary-foreground: 155 28% 15%;
  --muted: 40 22% 90%;
  --muted-foreground: 155 12% 42%;
  --accent: 36 85% 49%;
  --accent-foreground: 155 28% 12%;
  --destructive: 4 65% 47%;
  --destructive-foreground: 42 42% 97%;
  --app-font-sans: "DM Sans", sans-serif;
  --app-font-serif: "Fraunces", Georgia, serif;
  --radius: 1rem;
}

html {
  scroll-behavior: smooth;
  font-family: var(--app-font-sans);
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--app-font-sans);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.font-display {
  font-family: var(--app-font-serif);
}

.eyebrow {
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 700;
}

.container-wide {
  width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.focus-ring:focus-visible {
  outline: 3px solid hsl(var(--accent));
  outline-offset: 4px;
}

.form-field {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: transparent;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-field::placeholder {
  color: hsl(var(--muted-foreground) / 0.6);
}

.form-field:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.15);
}

@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;
  }
}
