@import url("file-fonts.css");
/* Shared editorial system. Accent colours are reserved for navigation and detail. */
:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --cream: #fffdfa;
  --surface: #efede7;
  --ink: #252321;
  --muted: #625e56;
  --rule: #d8d4cb;
  --red: #7a3331;
  --red-dark: #352824;
  --honey: #ad955e;
  --honey-light: #efede7;
  --max: 1320px;
  --gutter: clamp(20px, 4.7vw, 72px);
  --font-main: "Anek Latin", Arial, sans-serif;
  --font-tamil: "Anek Tamil", "Nirmala UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.5 var(--font-main); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, summary { font: inherit; }
button, summary { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { max-width: 72ch; }
[lang="ta"] { font-family: var(--font-tamil); letter-spacing: 0 !important; }
section[id], article[id] { scroll-margin-top: 100px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
::selection { background: #e5dcc9; color: var(--ink); }
.skip-link { position: fixed; z-index: 1000; top: 9px; left: 9px; padding: 11px 16px; border: 1px solid var(--ink); background: var(--cream); color: var(--ink); font-weight: 700; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.frame { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
.section-pad { padding-block: clamp(72px, 8vw, 116px); }
.eyebrow { color: var(--red); font-size: 12px; font-weight: 750; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.tiny-source { color: var(--muted); font-size: 13px; line-height: 1.45; }
.tiny-source a, .theme-credits a { text-decoration: underline; text-underline-offset: 3px; }
.text-link { display: inline-flex; align-items: center; gap: 20px; padding-bottom: 5px; border-bottom: 1px solid currentColor; color: var(--ink); font-weight: 700; }
.text-link:hover, .text-link:focus-visible { color: var(--red); }
.button-primary, .button-light, .button-outline { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 50px; padding: 11px 17px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.2; }
.button-primary:hover, .button-light:hover, .button-outline:hover { background: var(--ink); color: var(--cream); }

/* Header: one compact navigation across every page. */
.topbar { position: sticky; z-index: 300; top: 0; min-height: 72px; border-bottom: 1px solid #353538; background: #111113; }
.topbar-inner { display: flex; align-items: center; gap: 36px; width: min(100%, var(--max)); min-height: 72px; margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; color: #f5f3ee; font-size: 13px; font-weight: 700; line-height: 1.1; }
.brand > span:last-child { display: grid; gap: 3px; }
.brand strong { font-size: 16px; font-weight: 760; letter-spacing: .1em; }
.brand small { color: #c9c4bd; font-size: 10px; font-weight: 600; letter-spacing: .03em; }
.brand b { color: var(--muted); font-weight: 500; }
.brand-seal, .brand-mark { display: block; flex: 0 0 auto; width: 5px; height: 29px; overflow: hidden; border: 0; border-radius: 0; background: linear-gradient(180deg, var(--red) 0 60%, var(--honey) 60% 100%); color: transparent; font-size: 0; transform: none; }
.nav-main { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 25px); margin-left: auto; white-space: nowrap; }
.nav-main a { padding-block: 10px; border-bottom: 1px solid transparent; color: #d2cec7; font-size: 13px; font-weight: 650; }
.nav-main a:hover, .nav-main a:focus-visible, .nav-main a[aria-current="page"] { border-bottom-color: #d0524e; color: #fff; }
.menu-mobile { display: none; margin-left: auto; }
.menu-mobile summary { display: flex; align-items: center; gap: 15px; min-height: 44px; padding: 10px 0; color: #f5f3ee; list-style: none; font-size: 14px; font-weight: 720; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile summary::after { content: '☰'; color: #d0524e; font-size: 20px; font-weight: 400; line-height: 1; }
.menu-mobile[open] summary::after { content: '×'; font-size: 25px; }
.menu-mobile nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; padding: 10px var(--gutter) 24px; border-bottom: 1px solid #353538; background: #111113; box-shadow: 0 12px 26px rgb(0 0 0 / 15%); }
.menu-mobile nav a { padding: 11px 0; border-bottom: 1px solid #353538; color: #f5f3ee; font-size: 17px; font-weight: 680; }
.menu-mobile nav a:hover, .menu-mobile nav a:focus-visible { color: #f08f86; }

/* Light footer keeps the page on the same paper. */
.site-footer-v2 { padding-block: 58px 40px; border-top: 1px solid var(--rule); background: var(--cream); color: var(--ink); }
.footer-grid, .footer-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) auto; gap: clamp(24px, 4vw, 60px); align-items: start; width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
.footer-brand, .footer-inner > a:first-child { color: var(--ink); font-size: 20px; font-weight: 760; letter-spacing: .05em; }
.footer-brand span { margin-left: 5px; color: var(--red); font-size: 19px; }
.site-footer-v2 p { max-width: 360px; margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.site-footer-v2 nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.site-footer-v2 nav a, .site-footer-v2 small a, .footer-inner > a:last-child { border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 14px; }
.site-footer-v2 nav a:hover, .site-footer-v2 small a:hover { border-bottom-color: var(--red); color: var(--red); }
.site-footer-v2 small { color: var(--muted); font-size: 12px; line-height: 1.7; }

@media (max-width: 1080px) {
  .topbar-inner { gap: 18px; }
  .nav-main { gap: 12px; }
  .nav-main a { font-size: 12px; }
}
@media (max-width: 900px) {
  .nav-main { display: none; }
  .menu-mobile { display: block; }
  .footer-grid, .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid small, .footer-inner > a:last-child { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  body { font-size: 17px; }
  .topbar, .topbar-inner { min-height: 66px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .brand-seal, .brand-mark { height: 25px; }
  .menu-mobile nav { max-height: calc(100dvh - 66px); }
  .footer-grid, .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid small, .footer-inner > a:last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
