/* ===============================
   Base Reset & Global Styling
   =============================== */
html {
  font-size: 100%; /* Sets baseline for rem units */
}

body {
  margin: 0;
  padding: 2rem;
  font-family: "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #2c2c2c;
  background-color: #fefefe;
  max-width: 900px;
  margin: auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: #C66A53;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  font-weight: bold;
}
.skip-link:focus {
  top: 0;
}

.site-header {
  text-align: center;
  margin-bottom: 2rem;
}

.site-header img {
  max-width: 100%;
  height: auto;
}


/* ===============================
   Headings & Structure
   =============================== */
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #C66A53;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #444;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ===============================
   Lists & Tables
   =============================== */
ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: left;
}

th {
  background-color: #f3f3f3;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #fafafa;
}

/* ===============================
   Links & Interactivity
   =============================== */
a {
  color: #C66A53;
  text-decoration: underline;
}

a:hover,
a:focus {
  text-decoration: none;
  outline: none;
  background-color: #ffe6de;
}

a:focus {
  outline: 2px dashed #C66A53;
  outline-offset: 4px;
}

/* ===============================
   Buttons / Download Links
   =============================== */
section a[download] {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #C66A53;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

section a[download]:hover,
section a[download]:focus {
  background-color: #a6543f;
}

/* ===============================
   Image Grid / Gallery
   =============================== */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.image-grid figure {
  width: 220px;
  margin: 0;
  text-align: center;
}

.image-grid img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-grid figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
}

/* ===============================
   Screen Reader Support
   =============================== */
.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===============================
   Responsive Typography
   =============================== */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p,
  table,
  li {
    font-size: 0.95rem;
  }

  .image-grid figure {
    width: 100%;
    max-width: 300px;
  }
}
