/* 1. Global Reset: Ensures consistent spacing across browsers */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. Base Styles: Sets the foundation for the whole page */
body {
  font-family: sans-serif;
  line-height: 1.6;
  color: white;
  background-color: #544039;
  padding: 20px;
}

/* 3. Typography: Styles for headings and text */
h1 {
  color: white;
  margin-bottom: 20px;
  font-size: 45px;
}
h2 {
  color: white;
  margin-bottom: 10px;
  margin-top: 10px;
font-size: 30px;
}
h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 25px;
}
p {
  color: white;
  margin-bottom: 15px;
  font-size: 20px;
}

/* 4. Links: Standard interactive element styling */
a {
  color: lightgreen;
  text-decoration: underline;
  margin-bottom: 15px:
}

a:hover {
  text-decoration: underline;
}

/* 5. Layout Container: Centers content on the screen */
.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* 6. Line seperation settings */
hr {
  border: none;
  height: 3px;
  background-color: white; /* Your desired color */
}

nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Coffee-inspired home page */
.home-page {
  min-height: 100vh;
  padding: 24px;
  color: #e2d4c4;
  background: #30241f;
}

.home-page nav {
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 10px 16px;
  background: #211916;
  border-radius: 12px;
}

.home-page nav a {
  padding: 8px 12px;
  color: #e0d3c3;
  border-radius: 7px;
}

.home-page nav a:hover,
.home-page nav a:focus-visible {
  background: #5a4435;
  text-decoration: none;
}

.home-page .home-header {
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 38px 24px;
  text-align: center;
  color: #e6d9c9;
  background: #493528;
  border-bottom: 5px solid #9a6f4f;
  border-radius: 16px;
}

.home-page .home-header h1 {
  margin: 0;
  color: #e6d9c9;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
}

.home-page .home-header hr {
  max-width: 100px;
  margin: 18px auto 0;
  background: #a9825e;
}

.home-page main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.home-page main > section {
  padding: 24px;
  background: #382b24;
  border: 1px solid #5a4739;
  border-left: 5px solid #a87955;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.home-page main h3 {
  color: #ead7c0;
  font-family: Georgia, serif;
}

.home-page main p {
  color: #d7c8b7;
}

.home-page main a {
  color: #dda978;
}

.home-page footer {
  max-width: 900px;
  margin: 28px auto 0;
  color: #bca58f;
  text-align: center;
}
