/* Shared styles across all pages */

body {
  font-family: 'Crimson Text', serif;
  background: linear-gradient(135deg, #faf8f5 0%, #f5f2ed 100%);
}

.colonial-ornament {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.meticulous-text {
  position: relative;
  display: inline-block;
  transition: all 0.6s ease;
  background: linear-gradient(45deg,
    #1a0033,
    #330066,
    #4d0099,
    #0066cc,
    #0099ff,
    #00ccff,
    #ff0066,
    #cc0099
  );
  background-size: 400% 400%;
  background-position: 0% 0%;
  animation: jwstCosmic 8s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.meticulous-text:hover {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.period {
  display: inline-block;
}

@keyframes jwstCosmic {
  0% {
    background-position: 0% 50%;
  }

  20% {
    background-position: 50% 0%;
  }

  40% {
    background-position: 100% 50%;
  }

  60% {
    background-position: 50% 100%;
  }

  80% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Shared color variables */
:root {
  --bg: #f7f5f2;
  --ink: #1f1c24;
  --muted: #6b6e76;
  --card: #ffffff;
  --border: #e9e6ef;
  --brand: #6f35e9;
  --brand-2: #2f67f6;
  --focus: rgba(111, 53, 233, .25);
  --ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Accessibility helpers */
.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;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
  font-family: var(--ui);
  font-size: 14px;
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Better focus states for all interactive elements */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

