/* ---------------------------- GLOBAL RESET & TYPOGRAPHY ---------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  background-color: #a5be9c; /* base sage */
  background-image: url('/imgs/flowersbg.png'); 
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  color: #222;
  padding: 2rem 1rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(165, 190, 156, 0.75); /* semi-transparent sage overlay */
  z-index: -1;
}


/* Shared frame styling for nav, content, footer */
nav.site-nav,
.page-wrapper,
footer.site-footer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 1.5rem auto;   /* center horizontally with space below */
  padding: 1.5rem 2rem;
  background-color: rgba(250, 250, 248, 0.5); /* soft off-white */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
}

/* ---------------------------- CONTENT WRAPPER ---------------------------- */
.page-wrapper {
  /* responsive widths handled below */
}

/* Responsive widths for main content */
@media (orientation: portrait) {
  .page-wrapper {
    width: 92%;
    margin: 0 auto 1.5rem;
  }
}

@media (orientation: landscape) {
  .page-wrapper {
    width: 60%;
    margin: 0 auto 1.5rem;
  }
}

/* ---------------------------- TYPOGRAPHY ---------------------------- */
h1, h2, h3 {
  font-weight: normal;
}

h1 {
  font-size: 2.5rem;
  color: #2e3d2f;
}

h2 {
  font-size: 1.75rem;
  color: #3b4d3c;
}

p {
  margin-bottom: 1em;
}

/* Section highlights */
.section.emphasized {
  background-color: #93ab91;
  color: white;
  padding: 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.section-sep {
  border: 0;                 /* remove default 3D border */
  border-top: 3px solid currentColor; /* solid line; inherits text color */
  margin: 2rem 0;            /* spacing above/below */
  opacity: 0.4;              /* optional: soften a bit */
}

/* ------------------------ IMAGES & SECTIONS ------------------------- */

.image-container img {
  width: 95%;
  height: auto;       /* maintains aspect ratio */
  display: block;     /* removes small whitespace below image */
  margin: 0 auto;     /* centers the image horizontally */
  max-width: 100%;    /* ensures it doesn’t exceed container width */
}

.container {
  max-width: 800px; /* or whatever you prefer */
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.section img {
  width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 25px;
  max-width: 100%;
  box-sizing: border-box;
}




/* ---------------------------- NAVIGATION ---------------------------- */
nav.site-nav {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 1.5rem auto;
  padding: 1.5rem 2rem;
  background-color: rgba(250, 250, 248, 0.5);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

nav.site-nav .nav-inner {
  display: flex;
  justify-content: space-between; /* links left, toggle right */
  align-items: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav.site-nav a {
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  text-decoration: none;
  color: #2e3d2f;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav.site-nav a:hover,
nav.site-nav a.is-active {
  color: #ffffff;
  background-color: #6d886a;
}

/* ---------------------------- FOOTER ---------------------------- */
footer.site-footer {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ---------------------------- DARK MODE ---------------------------- */

/* Toggle button */
#theme-toggle {
  font-size: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

#theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Dark mode base */
body.dark-mode {
  background-color: #2c3b2d;
  background-image: url('/assets/bg-tile-dark.jpg'); /* optional darker background */
  color: #f2f1ed;
}

/* Dark mode frames */
body.dark-mode nav.site-nav,
body.dark-mode .page-wrapper,
body.dark-mode footer.site-footer {
  background-color: rgba(30, 35, 30, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Dark mode nav links */
body.dark-mode nav.site-nav a {
  color: #c9dac2;
}

body.dark-mode nav.site-nav a:hover,
body.dark-mode nav.site-nav a.is-active {
  background-color: #91a88f;
  color: #1e261e;
}

/* Dark mode section highlight */
body.dark-mode .section.emphasized {
  background-color: #667a63;
  color: #f2f2f2;
}
