/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  background-color: #F68814;
  font-family: Georgia, serif;
  color: #000;
  line-height: 1.6;
  padding: 20px;
}

/* Header Section */
header.centered {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 2.2em;
  margin-bottom: 10px;
}

header h4 {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Header Image Styling */
.header-image {
  display: block;
  margin: 20px auto;
  border-radius: 6px;
  box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.header-image:hover {
  transform: scale(1.03);
}

/* Content Section */
main {
  max-width: 850px;
  margin: auto;
}

section {
  margin-bottom: 40px;
}

/* Subheadings */
section h4 {
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

/* Paragraphs */
section p {
  margin: 10px 0;
}

/* Links */
a {
  color: #800000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Home Button */
.home-button {
  width: 50px;
  height: auto;
  max-width: 100%;
  display: inline-block;
}

/* Library Icon Styling */
img[alt="The Gurdjieff Library"] {
  display: block;
  margin: 20px auto;
  border-radius: 6px;
  box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

img[alt="The Gurdjieff Library"]:hover {
  transform: scale(1.05);
}

/* Footer */
footer.centered {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
}

footer hr {
  border: none;
  border-top: 1px solid #333;
  width: 80%;
  margin: 20px auto;
}

/* Centered Library Link */
.library-link {
  text-align: center;
  font-size: 1.2em;
  margin-top: 10px;
}

.library-link a {
  display: inline-block;
  padding: 6px 12px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
  body {
    padding: 15px;
  }

  header h1 {
    font-size: 1.7em;
  }

  header h4,
  section h4 {
    font-size: 1.1em;
  }

  .header-image {
    width: 90%;
    height: auto;
  }

  .home-button {
    width: 50px;
    height: auto;
  }
}
