/* ================== GLOBAL STYLES ================== */

body {
  font-family: Arial, sans-serif; /* Accessible font */
  line-height: 1.6; /* Improves readability */
  margin: 02px;
  background-color: #f9fafc; /* Soft background */
  color: #222; /* High contrast text */
}

/* ================== NAVBAR ================== */


.container site-nav{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;  
}

.logo{
  background-color: teal;
  padding: 10px;
}

.skip-link {
  display: flex;
  background-size: contain;
  padding: 10px;
  margin-left: 100px;
}

.search-bar  {
  display: flex;
  background-size: contain;
  padding: 10px;
  float: right;
}

.nav-logo {
  font-size: 25px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #2c3e50; /* Dark steel blue */
  color: #fff;
  padding: 30px;
  border-radius: 0 0 15px 15px;  
  gap: 100px;
}

.nav-links a {
  color: #fff;
  font-size: 35px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
  text-decoration: underline;
}

.search-form input {
  padding: 0.5rem;
  border-radius: 4px;
  border: none;
}

.search-form button {
  background-color: #16a085; /* Teal */
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
}
.search-form button:hover {
  background-color: #1abc9c; /* Lighter teal */
}

/* ================== INTRO ================== */

main {
  background-color: rgb(2, 3, 3);
  text-align: center;
  font-size: 50px;
  padding: 1px;
  font-style: italic;
  font-display:block;
  color: rgb(29, 1, 96);
}

.hero-title{
  font-style: italic;
  font-display:block;
  color: #2980b9; /* Blue */
  font-size: 100px;
  margin-bottom: 1rem;
}

.hero-subheading {
  font-style: italic;
  font-display:block;
  color: #27ae60; /* Green */
  font-size: 85px;
  margin-bottom: 1rem;
}

.stories-section {
font-style: italic;
font-display: block;
color: #ecf0f1;
font-size: 55px;
}

/* ================== CARDS ================== */

.storyline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  background-color: #ecf0f1; /* Light gray */
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}
.card:hover {
  transform: scale(1.05);
}
.card-link {
  text-decoration: none;
  color: inherit;
}
.card h2 {
  color: #ecf0f1; 
}
.card p {
  color: #34495e; /* Dark gray-blue */
}

/* ================== FOOTER ================== */
footer {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* ================== ACCESSIBILITY HELPERS ================== */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
