/* =====================================================================
   style.css — the ONE stylesheet shared by all 5 pages.
   Change something here and it changes on every page at once.

   HOW TO EDIT COLORS:
   All colors live in the ":root" block just below. Change a hex value
   there (e.g. #e6f4e1) and the whole site updates. You can pick colors
   at https://htmlcolorcodes.com
   ===================================================================== */

:root {
  --background:   #e6f4e1;  /* light green page background            */
  --text:         #1f4d2b;  /* dark green font color                  */
  --header-bg:    #1f4d2b;  /* dark green bar behind heading & footer */
  --header-text:  #e6f4e1;  /* light text on the dark bars            */
  --accent:       #4c8c4a;  /* medium green for borders and hovers    */
  --card-bg:      #f4fbf1;  /* slightly lighter green behind pictures */

  --page-width:   960px;    /* maximum width of the content column    */
}

/* ---------- Basic page setup ---------- */
* {
  box-sizing: border-box;   /* makes widths include padding — easier math */
}
/* Small picture in front of the site title.
 *  1em = the same height as the title text, so it grows/shrinks with it. */
.title-icon {
  height: 1em;
  width: auto;            /* keeps the picture's shape */
  vertical-align: middle; /* lines it up with the middle of the text */
  margin-right: 10px;     /* space between picture and title */
  border-radius: 4px;     /* optional: slightly rounded corners */
}
body {
  margin: 0;
  background-color: var(--background);
  color: var(--text);
  /* Font: change "Georgia" to any font you like, e.g. Arial, Verdana */
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;        /* space between lines of text */
}

/* ---------- HEADER (the heading across the top) ---------- */
header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 20px;
  text-align: center;
}

header .site-title {
  margin: 0 0 10px 0;
  font-size: 2.2em;
  letter-spacing: 1px;
}

/* The navigation links (the 5 page links) */
nav ul {
  list-style: none;         /* removes bullet points */
  margin: 0;
  padding: 0;
  display: flex;            /* puts the links side by side */
  flex-wrap: wrap;          /* lets them wrap on small phones */
  justify-content: center;
  gap: 8px;
}

nav a {
  display: block;
  padding: 8px 16px;
  color: var(--header-text);
  text-decoration: none;    /* removes underline */
  border-radius: 4px;
}

nav a:hover,
nav a:focus {
  background-color: var(--accent);
}

/* The link for the page you're currently on gets class="current" */
nav a.current {
  background-color: var(--background);
  color: var(--text);
  font-weight: bold;
}

/* ---------- MAIN CONTENT ---------- */
main {
  max-width: var(--page-width);
  margin: 0 auto;           /* centers the content on the page */
  padding: 30px 20px;
}

h2 {
  font-size: 1.8em;
  margin-top: 0;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 6px;
}

p {
  margin: 0 0 1.2em 0;      /* space under each paragraph */
}

/* ---------- PICTURE AREA ---------- */
/* A grid of picture boxes. It fits as many 260px-wide boxes per
   row as the screen allows, so it works on phones and big screens. */
.pictures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 10px 0 35px 0;
}

.pictures figure {
  margin: 0;
  background-color: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 10px;
}

.pictures img {
  width: 100%;              /* picture fills its box */
  height: 300px;            /* all pictures same height — change if you like */
  object-fit: cover;        /* crops neatly instead of stretching */
  display: block;
  border-radius: 4px;
}

.pictures figcaption {
  font-size: 0.9em;
  text-align: center;
  margin-top: 8px;
}

/* ---------- FOOTER ---------- */
footer {
  background-color: var(--header-bg);
  color: var(--header-text);
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

footer a {
  color: var(--header-text);
}

/* ---------- Small screens (phones) ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  header .site-title { font-size: 1.7em; }
}
