:root {
  --bg: #f4f1ec;
  --frame-dark: #5a4a3f;
  --frame-light: #d8cfc4;
  --shadow: rgba(0,0,0,0.18);
  --text: #3e342c;
  --nav-bg: rgba(255,255,255,0.85);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== GLOBAL ===== */
html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.mobilebreak {
  display: none;
}

/* main content expands */
.page-wrapper {
  flex: 1;
}

.ephesis {
  font-family: "Ephesis", cursive;
  font-weight: 400;
  font-style: normal;
}

/* ===== NAVBAR ===== */
.nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1000;
}

.nav-container {
  max-width: 1000px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 37px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: -10px;
  margin-bottom: -10px;
}

.logo a {
  color: #3e342c;
  text-decoration: none;
}

/* ===== NAV LINKS ===== */
.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--frame-dark);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links span {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-size: 0.95rem;
  opacity: 0.6;
  cursor: default;
}

.nav-links span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--frame-dark);
}

/* ===== MENU TOGGLE (HAMBURGER / STAFF + CLEF) ===== */
.menu-toggle {
  display: none; /* hide by default on desktop */
  position: relative;
  width: 40px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  z-index: 1001;
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  transition: all 0.3s ease;
}

.menu-toggle .clef {
  position: absolute;
  left: 5px;
  top: -7px;
  font-size: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  color: var(--text);
  text-shadow:
    0 0 3px #fff,
    0 0 5px #fff,
    0 0 7px #fff,
    0 0 10px #fff;
}

.menu-toggle.open .clef {
  opacity: 1;
}

/* ===== MOBILE ONLY ===== */
@media (max-width: 768px) {
  .mobilebreak {
    display: block;
  }

  .nav-container {
    height: auto;
  }

  .logo {
    font-size: 27px;
  }

  .menu-toggle {
    display: flex; /* show hamburger only on mobile */
  }

  .nav-links {
    position: absolute;
    top: 40px;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    width: 200px;
    padding: 16px;
    gap: 12px;
    border-left: 1px solid rgba(0,0,0,0.08);
    box-shadow: -10px 10px 30px rgba(0,0,0,0.08);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 40px;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    width: 200px;
    padding: 16px;
    gap: 12px;
    border-left: 1px solid rgba(0,0,0,0.08);
    box-shadow: -10px 10px 30px rgba(0,0,0,0.08);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ===== PAGE CONTENT ===== */
.container {
  text-align: left;
  padding: 40px 20px;
}

.intro {
  max-width: 600px;
  margin: 0 auto 18px auto;
  font-size: 1rem;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: 1%;
  margin-top: 5px;
  max-width: 510px;
}

img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

.content > .frame img {
  max-height: 50vh;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 2s ease forwards;
}

.gradient {
  background: linear-gradient(
    to bottom,
    rgba(253, 252, 251, 1) 50%,
    rgba(253, 252, 251, 0) 100%
  );
  padding: 30px;
}
.gradient .intro {
  padding: 75px 20px 20px 20px;
}
.frame {
  margin-bottom: -100px;
}

.page-footer-bg {
  position: fixed;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  background-image: linear-gradient(
    to top,
    rgba(253, 252, 251, 1) 0%,
    rgba(253, 252, 251, .5) 75%,
    rgba(253, 252, 251, 0) 100%
  );
}

.site-footer {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  padding-bottom: 20px;
  text-align: center;
  z-index: 10;
}

.copyright {
  font-family: "Ephesis", cursive;
  pointer-events: auto;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: #3e342c;
  text-align: center;
  padding: 4px 0 4px 10px;
  border-radius: 6px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
  margin-top: 20px;
}

.copyright .date {
  font-family: courier, monospace;
}
