/* Skip to main content link - hidden until focused */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #ca9e13;
  color: #444;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
}

/* Base styles */
body {
  margin: 0;
  padding: 0;
  background: #444;
  color: #ca9e13;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.6;
  text-align: right;
  font-size: 1.2rem;
}

/* Smooth scrolling - respect reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.title {
  font-size: 5rem;
  font-weight: bold;
  text-align: right;
}

.description, .contact {
  font-family: monospace;
}

.email-link {
  color: inherit;
  text-decoration: underline;
}

/* Focus styles for accessibility */
.email-link:focus {
  outline: 3px solid #ca9e13;
  outline-offset: 2px;
  background: rgba(202, 158, 19, 0.1);
}

.email-link:focus-visible {
  outline: 3px solid #ca9e13;
  outline-offset: 2px;
  background: rgba(202, 158, 19, 0.1);
}

/* Dark mode support */
@media (prefers-color-scheme: light) {
  body {
    background: #f5f5f5;
    color: #8b6914;
  }
  
  .email-link:focus {
    outline-color: #8b6914;
    background: rgba(139, 105, 20, 0.1);
  }
  
  .email-link:focus-visible {
    outline-color: #8b6914;
    background: rgba(139, 105, 20, 0.1);
  }
  
  .skip-link {
    background: #8b6914;
    color: #f5f5f5;
  }
}

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

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  .skip-link {
    display: none;
  }
  
  .title {
    font-size: 24pt;
    page-break-after: avoid;
  }
  
  .description, .contact {
    page-break-inside: avoid;
  }
  
  .email-link {
    color: black;
    text-decoration: underline;
  }
  
  .email-link::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
  }
  
  main {
    max-width: 100%;
    padding: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .title {
    font-size: 3rem;
  }
  
  body {
    font-size: 1rem;
  }
  
  main {
    padding: 32px 16px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2rem;
  }
  
  main {
    padding: 24px 12px;
  }
}