/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fafafa;
  color: #333;
}

/* Header styles */
header {
  background: #333;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

h1 {
  text-align: center;
}

header h1 {
  color: #ffffff; /* High contrast white text */
  font-size: 2.5rem;
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.5px;
}

header a {
  color: #fff; /* or #fdfdff as Pa11y suggests */
  background-color: #333; /* or whatever ensures 4.5:1+ contrast */
}

/* Accessible nav styling */
header nav {
  background-color: #333; /* Dark background */
  padding: 0.5em 1em;
  text-align: center;
}

header nav a {
  color: #ffffff !important; /* White text for strong contrast */
  margin: 0 10px;
  text-decoration: none;
  font-weight: 600;
}

header nav a:hover,
header nav a:focus {
  color: #ffcc00; /* Optional: high-contrast hover color */
  text-decoration: underline;
}

/* Main content */
main {
  padding: 2rem;
}

/* Footer styles */
footer {
  background: #eee;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Recipe list styling */
.recipe-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Individual recipe card */
.recipe-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.recipe-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.recipe-card h3 {
  margin: 0.75rem 0 0.5rem;
}

.recipe-card a {
  text-decoration: none;
  color: #333;
}

.recipe-card a:hover,
.recipe-card a:focus {
  color: #000;
  text-decoration: underline;
}

.recipe-card p {
  font-size: 0.9rem;
  color: #555;
}

/* Responsive header adjustments */
@media (max-width: 768px) {
  header {
    padding: 1em;
  }

  header h1 {
    font-size: 2rem;
  }
  
  @font-face {
  font-family: 'YourFont';
  src: url('yourfont.woff2') format('woff2');
  font-display: swap;
}
  
.site-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
}

.site-nav ul {
  list-style: none;
  display: flex;         /* This makes the list horizontal */
  gap: 1rem;             /* Adds spacing between items */
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-weight: bold;
}

/* Container that holds the list */
.list-wrapper {
  display: flex;
  justify-content: flex-end; /* Pushes content to the right */
  padding: 1rem; /* Optional: adds spacing */
}

/* Horizontal list styling */
.list-wrapper ul {
  display: flex;
  gap: 1rem; /* Optional: spacing between items */
  list-style: none;
  margin: 0;
  padding: 0;
}

