/* ═══════════════════════════════════════════
   TAMIL LITERATURE — GLOBAL DESIGN SYSTEM
   Aesthetic: Ancient manuscript meets modern elegance
   Palette: Deep crimson, burnished gold, ink black, aged parchment
═══════════════════════════════════════════ */

:root {
  --crimson:     #8B1A1A;
  --crimson-deep:#5C0F0F;
  --crimson-light:#C4443A;
  --gold:        #C9983A;
  --gold-light:  #E8C06A;
  --gold-pale:   #F5E6C4;
  --ink:         #0F0A06;
  --ink-mid:     #2A1F15;
  --ink-soft:    #4A3728;
  --parchment:   #F7F0E4;
  --parchment-dark: #EDE3CF;
  --cream:       #FBF6EE;
  --text-body:   #2A1F15;
  --text-muted:  #6B5040;
  --text-faint:  #9E8070;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Crimson Pro', serif;
  --font-tamil:   'Noto Sans Tamil', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 3px; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  background: linear-gradient(to bottom, rgba(15,10,6,0.95) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: padding 0.3s var(--ease-out);
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 4rem; right: 4rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,152,58,0.3), transparent);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.nav-tamil {
  font-family: var(--font-tamil);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.nav-english {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--parchment-dark);
  text-decoration: none;
  letter-spacing: 0.08em;
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--parchment);
  transition: all 0.3s;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--ink-mid);
  border-top: 1px solid rgba(201,152,58,0.2);
  padding: 4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201,152,58,0.15);
}

.footer-tamil {
  font-family: var(--font-tamil);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-faint);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-links a {
  font-family: var(--font-display);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.08em;
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom p {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  font-style: italic;
  text-align: center;
}

/* ─── UTILITY ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 2rem; height: 1px;
  background: var(--gold);
}

.divider {
  width: 4rem; height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 2rem 0;
}

/* ─── PROSE ─── */
.prose {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--parchment-dark);
  max-width: 65ch;
}

.prose p { margin-bottom: 1.5em; }

.verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--gold-light);
  padding: 2rem;
  border-left: 2px solid var(--crimson);
  background: rgba(139,26,26,0.08);
  position: relative;
}

.verse::before {
  content: '"';
  position: absolute;
  top: 0.5rem; left: 1rem;
  font-size: 3rem;
  color: var(--crimson);
  opacity: 0.4;
  font-family: var(--font-display);
  line-height: 1;
}

/* ─── CARDS ─── */
.card {
  background: rgba(42,31,21,0.6);
  border: 1px solid rgba(201,152,58,0.15);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
  cursor: default;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,152,58,0.4);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-fadeup { animation: fadeUp 1s var(--ease-out) both; }
.animate-fadein { animation: fadeIn 1.2s ease both; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav::after { left: 1.5rem; right: 1.5rem; }
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .nav--open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,10,6,0.98);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: -1;
  }
  .nav--open .nav-links a { font-size: 1.5rem; }
  .container { padding: 0 1.5rem; }
  .footer { padding: 2.5rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 2rem; }
}
