/* ------------------------------------------------------------------
   JoKalviyalar — front page styles
   Clean, elegant, mobile-first. The hero image carries the colour.
   ------------------------------------------------------------------ */

/* Korkai Tamil font — five weights (woff2 with otf fallback). */
@font-face { font-family:"Korkai"; font-weight:300; font-style:normal; font-display:swap;
  src:url("../fonts/Korkai-Light.woff2") format("woff2"), url("../fonts/Korkai-Light.otf") format("opentype"); }
@font-face { font-family:"Korkai"; font-weight:400; font-style:normal; font-display:swap;
  src:url("../fonts/Korkai-Regular.woff2") format("woff2"), url("../fonts/Korkai-Regular.otf") format("opentype"); }
@font-face { font-family:"Korkai"; font-weight:500; font-style:normal; font-display:swap;
  src:url("../fonts/Korkai-Medium.woff2") format("woff2"), url("../fonts/Korkai-Medium.otf") format("opentype"); }
@font-face { font-family:"Korkai"; font-weight:700; font-style:normal; font-display:swap;
  src:url("../fonts/Korkai-Bold.woff2") format("woff2"), url("../fonts/Korkai-Bold.otf") format("opentype"); }
@font-face { font-family:"Korkai"; font-weight:900; font-style:normal; font-display:swap;
  src:url("../fonts/Korkai-Black.woff2") format("woff2"), url("../fonts/Korkai-Black.otf") format("opentype"); }

:root {
  --ink:        #1c1a17;
  --ink-soft:   #5b554d;
  --paper:      #faf7f2;
  --card:       #ffffff;
  --line:       #e7e0d6;
  --accent:     #8b2f2f;     /* restrained maroon, used sparingly */
  --accent-ink: #ffffff;
  --radius:     14px;
  --maxw:       720px;
  --tamil:      "Korkai", "Noto Sans Tamil", "Latha", "Tamil Sangam MN", sans-serif;
  --latin:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--latin);
  line-height: 1.6;
  font-size: 17px;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 18px 48px;
}

/* ---- Site header (logo) ---- */
.site-head { text-align: center; padding: 4px 0 16px; }
.site-head .logo { height: 50px; width: auto; }

/* ---- Hero ---- */
.hero {
  margin: 8px 0 26px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.hero img { display: block; width: 100%; height: auto; }

/* ---- Titles ---- */
.event-head { margin: 0 0 22px; }
.title-ta {
  font-family: var(--tamil);
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.25;
  margin: 0 0 6px;
  font-weight: 600;
}
.title-en {
  font-family: var(--latin);
  color: var(--ink-soft);
  font-size: clamp(1rem, 3.4vw, 1.25rem);
  margin: 0;
  letter-spacing: .2px;
}

/* ---- Facts ---- */
.facts {
  list-style: none;
  margin: 0 0 26px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.facts li {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.facts li:last-child { border-bottom: 0; }
.facts .label {
  flex: 0 0 64px;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .8px;
  padding-top: 3px;
}
.facts .value { font-weight: 500; }
.facts .value .ta { font-family: var(--tamil); display: inline-block; margin-right: 8px; }
.facts .value .en { color: var(--ink-soft); font-weight: 400; }

/* ---- Description ---- */
.desc { margin: 0 0 22px; }
.desc.ta { font-family: var(--tamil); font-size: 1.12rem; line-height: 1.85; }
.desc.en { color: var(--ink-soft); }
.desc p { margin: 0 0 1em; }

/* ---- Call to action ---- */
.cta { margin: 28px 0; text-align: center; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-family: var(--latin);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: 999px;
  transition: transform .08s ease, opacity .2s ease;
}
.button:hover { opacity: .92; }
.button:active { transform: translateY(1px); }

/* ---- Contact ---- */
.contact { border-top: 1px solid var(--line); padding-top: 18px; }
.contact h2 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-soft); margin: 0 0 8px;
}
.contact p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.contact .ta, .contact span { font-family: var(--tamil); }
.contact a { color: var(--accent); text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* ---- Empty state ---- */
.empty { text-align: center; padding: 60px 0; }
.empty h1 { font-family: var(--tamil); }

/* ---- Footer ---- */
.site-foot {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
  font-size: .9rem;
}
.site-foot nav { display: flex; gap: 20px; justify-content: center; margin-bottom: 8px; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .copy { margin: 0; }

/* ---- Simple content pages (about / privacy) ---- */
.content { max-width: var(--maxw); margin: 0 auto; padding: 32px 18px 48px; }
.content h1 { font-family: var(--tamil); font-size: 1.9rem; margin: 0 0 18px; }
.content h2 { margin: 1.6em 0 .4em; font-size: 1.2rem; }
.content a { color: var(--accent); }

/* Tamil-body content pages (e.g. About) use Korkai for the running text. */
.content.tamil-body { font-family: var(--tamil); font-size: 1.08rem; line-height: 1.9; }
.content.tamil-body h2, .content.tamil-body h3 { font-family: var(--tamil); }
