/* ------------------------------
   Base reset and typography
------------------------------ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Delius, Arial, sans-serif;
  line-height: 1.5em;
  background: #c77241;
  color: #201e1e;
}
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 3rem; /* bottom padding added */
}
.layout {
  margin: 0;
  padding: 0;
}
section {
  background-color: #fff;
  padding: 1rem 1rem 3rem;
}
/*articles*/
article {
  padding: 2rem 1rem 3rem;
  border-bottom: 1px solid #e57057;
}

header {
  background: #a65e2f;
  color: #fff;
  padding: 1rem 1rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center; /* centres the titles */
  gap: 1rem;               /* space between logo and titles */
}

.logo img {
  height: 190px;
  width: auto;
}

.titles {
  flex: 1;                 /* allows titles to centre even with logo present */
  text-align: center;
}

.titles h1,
.titles h2 {
  margin: 0.5rem;
}

header h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin: 0.2em 0 0.1em 0;
  color: rgba(255,204,153,0.6);
  text-shadow: 2px 2px 2px rgba(0,0,0,0.2),
               0px -2px 2px rgba(255,255,255,0.3);
}

header h2 {
  line-height: 1.3rem;
  margin: 0;
  color: rgba(255,204,153,0.6);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2),
               0px -1px 1px rgba(255,255,255,0.3);
}

img.banner {
  max-width: 100%;
  border: 1px solid #333;
}
h1, h2, h3 {
  margin: 0 0 0.3em 0;
  font-family: 'Mate SC', Georgia, "Times New Roman", Times, serif;
}

a {
  font-family: 'Mate SC', Georgia, "Times New Roman", Times, serif;
  color: #a65e2f; 
  font-size: 1.1em;
}

a:hover {
  text-decoration: none;  
}
img.pan-cm {
   border: 0px solid black; margin: 0 20px 0 10px;
}
/* ------------------------------
   Layout wrapper
   (wrap nav + section + footer)
------------------------------ */

.layout {
  display: block; /* mobile default */
}

/* ------------------------------
   Mobile nav (<700px)
   Horizontal menu
------------------------------ */
@media (max-width: 768px) {
  .logo img{
    height: 120px;
  }
  .titles h1,
  .titles h2 {
    margin: 1.5rem;
  }
  img.pan-cm {
    width: 50%;
    height: 50%;
  }
  header h1 {
    font-size: 2rem;
  } 
}

/* ------------------------------
   Mobile nav (<960px)
   Horizontal menu
------------------------------ */

nav.primary ul {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav.primary li a {
  background: #c77241;
  color: #fff;
  padding: 0 1em;
  line-height: 3em;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

nav.primary li a:hover {
  background: #a65e2f;
}

/* ------------------------------
   Desktop layout (≥960px)
   Two columns: nav left, content right
------------------------------ */

@media (min-width: 960px) {

  .layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }

  nav.primary {
    width: 20%;
  }

  nav.primary ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav.primary li a {
    display: block;
    border-bottom: 1px solid #773509;
  } 
  .logo img {
    height: 190px;
    width: auto;
  }

  .content {
    width: 80%;
  }
}
