@font-face {
  font-family: 'EmotionalVF';
  src: url('../assets/emotional-VF.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

html, body {
  /* font-family, font-variation-settings, and transition removed for global uniformity */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  padding-top: 70px; /* prevent content from being hidden under fixed nav */
}
main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5 {
  /* font-family and font-variation-settings removed for global uniformity */
}

body:hover, body:focus {
  --emowght: 800;
}
.tamil-term {
  font-family: 'Noto Sans Tamil', monospace;
  background: #f3e9d2;
  border-radius: 4px;
  padding: 0 4px;
  color: #a67c52;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #f3e9d2;
  box-shadow: 0 2px 8px rgba(200,180,140,0.07);
  z-index: 30000; /* nav above everything */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* fix: use 100% not 100vw */
  min-height: 70px;
  box-sizing: border-box;
}
.nav-logo {
  height: 80px;
  max-width: 220px;
  width: auto;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  overflow-x: auto;
  max-width: 100vw;
}
.nav-menu a {
  color: #7c5c2a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 1.15rem;
}
.nav-menu a.active, .nav-menu a:hover {
  color: #d32f2f;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  position: relative;
}
.hero-logo {
  width: 120px;
  margin-bottom: 1rem;
}
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  background: #ffe7b3;
  color: #7c5c2a;
  transition: background 0.2s;
}
.btn-primary { background: #ffe7b3; color: #7c5c2a; }
.btn-secondary { background: #f3e9d2; color: #a67c52; }
.btn-tertiary { background: #fff8e7; color: #d32f2f; }
.btn:hover { background: #fff8e7; color: #d32f2f; }
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
footer {
  background: #f3e9d2;
  color: #a67c52;
  text-align: center;
  padding: 0.2rem 0 0.1rem 0;
  font-size: 0.95rem;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: none;
  position: static;
}
.footer-link {
  color: inherit;
  text-decoration: none;
}
.footer-link:hover, .footer-link:focus {
  color: inherit;
  text-decoration: underline dotted;
}
@media (max-width: 700px) {
  .nav-menu { flex-direction: column; gap: 0.5rem; }
  .container { padding: 1rem 0.5rem; }
  .nav-logo { height: 48px; max-width: 120px; }
  .hero-logo { width: 80px; }
} 

/* Overlay for background readability */
.background-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 2; /* overlay above background-image, below all content */
  background: transparent;
  pointer-events: none;
  display: block !important;
}
body:not(.home) .background-overlay {
}

/* Remove global text shadow */

.hero-content {
  background: rgba(255, 245, 220, 0.85);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: inline-block;
}

.hero-content h1, .hero-content p, .btn {
  text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

/* Remove or comment out any use of bg_texture.jpg as a background */
.hero-bg, .bg-texture {
  display: none !important;
} 

.background-image {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1; /* background-image at the very back */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  background-color: #f3e9d2;
  /* no blur here */
}

/* Per-page background blur on overlay */
.blur-none .background-overlay { backdrop-filter: none !important; }
.blur-articles .background-overlay { backdrop-filter: blur(2.5px) !important; }
.blur-history .background-overlay { backdrop-filter: blur(1px) !important; }
.blur-gallery .background-overlay { backdrop-filter: blur(2px) !important; }
.blur-about .background-overlay { backdrop-filter: blur(2.5px) !important; }
.blur-default .background-overlay { backdrop-filter: blur(1px) !important; }
/* Remove z-index from header, main, footer to fix nav-menu stacking */
header, main, footer {
  position: relative;
  z-index: 10; /* ensure all main content is above overlay */
} 

/* Timeline styles for history page */
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 2.5rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.timeline-list li {
  background: rgba(255,245,220,0.92);
  border-radius: 10px;
  margin-bottom: 2.2rem;
  padding: 1.2rem 1.5rem 1.2rem 2.5rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(200,180,140,0.07);
  font-size: 1.08rem;
}
.timeline-list li strong {
  color: #a67c52;
  font-size: 1.13rem;
}
.timeline-list li:before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 1.2rem;
  width: 12px;
  height: 12px;
  background: #d32f2f;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #f3e9d2;
}
.timeline-list li:not(:last-child):after {
  content: '';
  position: absolute;
  left: 1.65rem;
  top: 2.1rem;
  width: 2px;
  height: calc(100% - 2.1rem);
  background: #e0cfa0;
  z-index: 0;
}
@media (max-width: 700px) {
  .timeline-list {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .timeline-list li {
    padding: 1rem 0.7rem 1rem 2.2rem;
    font-size: 0.98rem;
  }
} 

.gallery-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: start;
  margin-top: 2rem;
}
.gallery-thumb {
  width: 100%;
  max-width: 260px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(200,180,140,0.13);
  background: #fff8e7;
  transition: transform 0.18s;
}
.gallery-thumb:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 4px 16px rgba(211,47,47,0.13);
}
/* Merch & Contact form improvements */
.merch-hero, .contact-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  text-align: center;
}
.merch-form, .contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.merch-form input, .contact-form input, .contact-form textarea {
  padding: 0.7rem 1.1rem;
  border-radius: 7px;
  border: 1px solid #e0cfa0;
  font-size: 1.08rem;
  margin-right: 0.7rem;
}
.merch-form button, .contact-form button {
  padding: 0.7rem 2.1rem;
  border-radius: 7px;
  background: #ffe7b3;
  color: #7c5c2a;
  border: none;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background 0.18s;
}
.merch-form button:hover, .contact-form button:hover {
  background: #fff8e7;
  color: #d32f2f;
} 

.about-hero, .contact-hero, .merch-hero {
  margin-top: 4.5rem;
  margin-bottom: 2.5rem;
}
.about-hero h1, .about-content h2,
.contact-hero h1, .merch-hero h1 {
  font-size: 2.3rem;
  font-weight: 400;
  font-variation-settings: 'wght' 400, 'wdth' 100;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(120,80,40,0.13), 0 1px 0 #fff8e7;
}
.about-content, .about-content ul {
  font-size: 1.13rem;
  line-height: 1.7;
}
.contact-form-section, .merch-waitlist {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.contact-form, .waitlist-form {
  gap: 1.5rem;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.contact-form label, .waitlist-form label {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #a67c52;
  letter-spacing: 0.01em;
}
.contact-form input, .contact-form textarea,
.waitlist-form input {
  background: rgba(255,255,255,0.82);
  border: 1px solid #e0cfa0;
  border-radius: 7px;
  font-size: 1.08rem;
  padding: 0.7rem 1.1rem;
  width: 100%;
  box-sizing: border-box;
}
.contact-form button, .waitlist-form button {
  margin-top: 0.5rem;
}
.contact-hero {
  min-height: unset;
  margin-bottom: 0.2rem;
  margin-top: 2.5rem;
}
.contact-form-section {
  margin-top: 0.2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
  margin-bottom: 0;
}
.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  text-align: left;
  padding-left: 0.1rem;
}
.contact-form input,
.contact-form textarea {
  margin-right: 0;
}
@media (min-width: 700px) {
  .contact-form-section {
    min-height: 40vh;
    justify-content: center;
  }
}
@media (max-width: 700px) {
  .about-hero, .contact-hero, .merch-hero {
    margin-top: 2.2rem;
    margin-bottom: 1.2rem;
  }
  .about-hero h1, .about-content h2,
  .contact-hero h1, .merch-hero h1 {
    font-size: 1.4rem;
  }
  .contact-form, .waitlist-form {
    max-width: 98vw;
  }
} 

.article-card {
  margin-bottom: 2.5rem;
} 

.waitlist-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.2rem;
}
.waitlist-form label {
  margin-bottom: 0;
  margin-right: 0.7rem;
  font-size: 1.13rem;
  color: #a67c52;
  font-weight: 600;
}
.waitlist-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 320px;
  padding: 0.7rem 1.1rem;
  border-radius: 7px;
  border: 1px solid #e0cfa0;
  font-size: 1.08rem;
  background: rgba(255,255,255,0.92);
  margin-right: 0.7rem;
  box-sizing: border-box;
}
.waitlist-form button {
  padding: 0.7rem 1.6rem;
  border-radius: 7px;
  font-size: 1.08rem;
  height: 44px;
  background: #ffe7b3;
  color: #7c5c2a;
  border: none;
  font-weight: 600;
  transition: background 0.18s;
  box-shadow: 0 2px 8px rgba(200,180,140,0.08);
  margin: 0;
  display: flex;
  align-items: center;
}
.waitlist-form button:hover {
  background: #fff8e7;
  color: #d32f2f;
}
@media (max-width: 700px) {
  .waitlist-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .waitlist-form label {
    margin-right: 0;
    margin-bottom: 0.2rem;
  }
  .waitlist-form input[type="email"] {
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
  .waitlist-form button {
    width: 100%;
    height: 44px;
  }
} 

.about-hero {
  margin-bottom: 0 !important;
}
.about-content {
  margin-top: 0 !important;
} 

/* --- Responsive Nav Styles for navbar.html --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #f3e9d2;
  box-shadow: 0 2px 8px rgba(200,180,140,0.07);
  z-index: 30000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 70px;
  box-sizing: border-box;
}
.nav-logo {
  height: 80px;
  max-width: 220px;
  width: auto;
}
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
}
.nav-menu a {
  color: #7c5c2a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 1.15rem;
}
.nav-menu a.active, .nav-menu a:hover {
  color: #d32f2f;
}
@media (min-width: 701px) {
  .nav-menu {
    display: flex !important;
    position: static !important;
    width: auto !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }
} 

.about-hero, .about-content, .contact-hero, .merch-hero, .container, .contact-form-section, .merch-waitlist {
  position: relative;
  z-index: 0;
} 

/* Per-page background blur */
.blur-none .background-image { backdrop-filter: none !important; }
.blur-articles .background-image { backdrop-filter: blur(2.5px) !important; }
.blur-history .background-image { backdrop-filter: blur(1px) !important; }
.blur-gallery .background-image { backdrop-filter: blur(2px) !important; }
.blur-about .background-image { backdrop-filter: blur(2.5px) !important; }
.blur-default .background-image { backdrop-filter: blur(1px) !important; } 