/* Shared custom styles for every page on grantslab.ca. */

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

/* Scroll-in animation */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Form focus ring */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,58,42,0.25);
  border-color: #1a3a2a;
}

/* Display headlines — Cormorant Garamond is thin at default 400; bump for display use. */
.font-display { font-weight: 500; }

/* The locked wordmark: Cormorant Garamond ALL CAPS, 0.08em tracking,
   racing green with warm-700 period. */
.wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a3a2a;
}
.wordmark .dot { color: #a14f2c; }
.wordmark-light { color: #f1e8d8; }
.wordmark-light .dot { color: #a14f2c; }

/* Hero gradient for the homepage — soft linen wash. */
.hero-bg {
  background:
    radial-gradient(ellipse at top right, rgba(161,79,44,0.08), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(26,58,42,0.07), transparent 55%),
    linear-gradient(180deg, #f4ecdc 0%, #f1e8d8 100%);
}

/* Soft horizontal divider between sections. */
.section-divider { background: linear-gradient(to right, transparent, #e0d5be, transparent); height: 1px; }

/* Reduced-motion friendliness. */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
