:root {
  --bg-color: #B65156;
  --text-color: #362E2F;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: "Georgia", serif;
  position: relative;
  z-index: 0;
}

/* Optional shared grain overlay (you can tune per page if needed) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: soft-light;
}

/* Shared nav look */
.navline {
  font-family: monospace;
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
  text-align: center;
}

.navline a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: opacity 0.2s ease;
}

.navline a:hover { opacity: 0.6; }

.navline a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Shared separators */
.separator {
  width: 55%;
  height: 1px;
  background: var(--text-color);
  opacity: 0.5;
  margin: 0 auto 1.8rem;
}

/* Shared utility container */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8vh 1rem 10vh;
}

/* Shared "Home" button */
.home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-color);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--text-color);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10000;
}

.home-button:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .navline { font-size: 1rem; }
}
