/* Maharashtra Mandal Chandigarh — design system
   "Marathi warmth in Corbusier's city": modernist grid + Paithani silk color. */

/* ── Fonts (self-hosted) ── */
@font-face {
  font-family: 'Marcellus';
  src: url('/fonts/marcellus-v14-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Tiro Devanagari Marathi';
  src: url('/fonts/tiro-devanagari-marathi-v7-devanagari_latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mukta';
  src: url('/fonts/mukta-v17-devanagari_latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mukta';
  src: url('/fonts/mukta-v17-devanagari_latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mukta';
  src: url('/fonts/mukta-v17-devanagari_latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── Tokens ── */
:root {
  --ivory: #FAF7F0;
  --ivory-2: #F2ECDF;
  --card: #FFFDF8;
  --card-line: #EADFC8;
  --maroon: #58122E;
  --maroon-deep: #3E0C20;
  --marigold: #E89B1C;
  --zari: #B98A2F;
  --peacock: #14595A;
  --ink: #2B1D24;
  --ink-soft: #6B5A62;
  --display: 'Marcellus', Georgia, serif;
  --marathi: 'Tiro Devanagari Marathi', Georgia, serif;
  --body: 'Mukta', 'Segoe UI', sans-serif;
}

/* ── Reset & base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 3px;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--maroon); color: #FFF3DC; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── Signature: zari band (Paithani border motif) ── */
.zari-band {
  height: 14px;
  background-color: var(--maroon);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Crect width='28' height='14' fill='%2358122E'/%3E%3Cpath d='M14 2 L24 7 L14 12 L4 7 Z' fill='none' stroke='%23DFAF4B' stroke-width='1.1'/%3E%3Ccircle cx='14' cy='7' r='1.4' fill='%23E89B1C'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}
.zari-divider {
  height: 10px; width: 168px; margin: 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10' viewBox='0 0 24 10'%3E%3Cpath d='M12 1 L21 5 L12 9 L3 5 Z' fill='none' stroke='%23B98A2F' stroke-width='1'/%3E%3Ccircle cx='12' cy='5' r='1.2' fill='%23E89B1C'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}
.zari-divider.left { margin: 18px 0 0; }

/* ── Header ── */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid #E5DCCB;
  position: sticky; top: 0; z-index: 50;
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark-img { flex: none; width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text .mr { font-family: var(--marathi); font-size: 19px; color: var(--maroon); line-height: 1.2; white-space: nowrap; }
.brand-text .en { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.main-nav ul { display: flex; gap: 26px; list-style: none; }
.main-nav a {
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--marigold); }
.menu-btn {
  display: none; background: none; border: 1.5px solid var(--maroon); color: var(--maroon);
  border-radius: 6px; padding: 6px 14px; font-family: var(--body); font-size: 14.5px;
  font-weight: 600; cursor: pointer;
}

/* ── Announcement bar ── */
.announce {
  background: var(--maroon-deep); color: #F4E3C8;
  padding: 14px 0; font-size: 15.5px;
}
.announce .wrap { display: flex; align-items: center; gap: 16px; }
.announce .tag {
  flex: none; background: var(--marigold); color: var(--maroon-deep);
  font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}

/* ── Hero ── */
.hero { padding: 68px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.est {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--peacock); font-weight: 700; margin-bottom: 20px;
}
.est::before { content: ""; width: 34px; height: 2px; background: var(--peacock); }
.hero h1 {
  font-family: var(--marathi); font-weight: 400;
  font-size: clamp(42px, 6vw, 70px);
  color: var(--maroon); line-height: 1.14; margin-bottom: 8px;
}
.hero .sub-en {
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink); letter-spacing: 0.04em; margin-bottom: 20px;
}
.hero .lede { color: var(--ink-soft); max-width: 46ch; margin-bottom: 32px; font-size: 17.5px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font-weight: 600; font-size: 15.5px; letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--maroon); color: #FFF3DC; box-shadow: 0 6px 18px rgba(88,18,46,0.28); }
.btn-ghost { border: 1.5px solid var(--zari); color: var(--maroon); }
.btn-ghost.gold { border-color: var(--marigold); color: #FFE9BC; }

/* photo mosaic */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 14px; }
.mosaic .ph { border-radius: 12px; overflow: hidden; background: #E5DAC2; }
.mosaic .ph img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .ph.tall { grid-row: span 2; }

/* ── Sections ── */
.block { padding: 80px 0; }
.block.tinted { background: var(--ivory-2); }
.eyebrow { font-family: var(--marathi); color: var(--peacock); font-size: 19px; margin-bottom: 6px; }
.title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(29px, 3.6vw, 41px); color: var(--maroon);
  line-height: 1.22; margin-bottom: 10px;
}
.title-row { margin-bottom: 40px; }
.title-row.center { text-align: center; }
.title-row.center .zari-divider { margin-top: 16px; }
.section-note { color: var(--ink-soft); max-width: 68ch; }
.title-row.center .section-note { margin: 0 auto; }
.sub-title { font-family: var(--display); font-weight: 400; font-size: 23px; color: var(--maroon); margin: 34px 0 18px; }

/* About block on home */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--ink-soft); margin-bottom: 16px; }
.about-grid p strong { color: var(--ink); }
.pull {
  border-left: 3px solid var(--marigold);
  padding: 6px 0 6px 22px; margin: 24px 0;
  font-family: var(--display); font-size: 20px; color: var(--maroon); line-height: 1.5;
}
.textlink { color: var(--peacock); font-weight: 700; border-bottom: 1.5px solid var(--marigold); padding-bottom: 2px; }

/* Announcements card */
.side-card {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(88,18,46,0.07);
}
.side-card .zari-band { height: 8px; }
.side-card-inner { padding: 26px; }
.side-card h3 { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--maroon); margin-bottom: 14px; }
.a-item { padding: 14px 0; border-bottom: 1px dashed #E0D3B8; }
.a-item:last-child { border-bottom: none; }
.a-item .date { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--marigold); }
.a-item p { font-size: 15.5px; color: var(--ink); margin-top: 3px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--card); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--card-line); transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(88,18,46,0.12); }
.card-media { height: 200px; overflow: hidden; background: #E5DAC2; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 24px 26px; }
.card-body .when { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--peacock); }
.card-body h3 { font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--maroon); margin: 5px 0 8px; }
.card-body p { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }

/* Committee rosters */
.committee { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.roster { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 32px 34px; }
.roster h3 { font-family: var(--display); font-weight: 400; font-size: 23px; color: var(--maroon); }
.roster .term { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--zari); font-weight: 700; margin: 3px 0 18px; }
.officer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #E0D3B8; }
.officer:last-of-type { border-bottom: none; }
.officer .name { font-weight: 600; font-size: 16px; }
.officer .role { font-size: 13px; color: var(--peacock); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.ph-link { font-weight: 400; color: var(--ink-soft); font-size: 14.5px; }
.ph-link:hover { color: var(--peacock); }
.roster-note { margin-top: 18px; font-size: 14.5px; color: var(--ink-soft); }
.roster-note a { color: var(--peacock); font-weight: 600; }

/* Lodging band */
.lodging-band { background: var(--maroon); color: #F1E2CC; }
.lodging-band .eyebrow { color: var(--marigold); }
.lodging-band .title { color: #FFF6E6; }
.lodging-band p { color: #D9C4AC; max-width: 54ch; }
.lodging-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.lodging-grid .mosaic { grid-auto-rows: 130px; }
.lodging-grid .btn { margin-top: 24px; }

/* Heritage strip */
.heritage-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.h-item {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 14px;
  padding: 26px 28px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.h-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(88,18,46,0.1); }
.h-item .yr { font-family: var(--display); font-size: 30px; color: var(--marigold); }
.h-item h3 { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--maroon); margin: 5px 0; }
.h-item p { font-size: 14.5px; color: var(--ink-soft); }

/* ── Inner page hero ── */
.page-hero {
  padding: 60px 0 48px;
  border-bottom: 1px solid #E5DCCB;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(232,155,28,0.10), transparent 60%),
    var(--ivory);
}
.page-hero .title { font-size: clamp(34px, 4.4vw, 52px); }
.page-lede { color: var(--ink-soft); max-width: 62ch; font-size: 18px; }

/* ── Article / prose ── */
.article-grid { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 56px; align-items: start; }
.prose { max-width: 72ch; }
.prose p { margin-bottom: 18px; color: #443440; }
.prose h2 {
  font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--maroon);
  margin: 36px 0 14px; padding-top: 8px;
}
.prose h3 { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--maroon); margin: 24px 0 10px; }
.prose ol { margin: 0 0 18px 24px; color: #443440; }
.prose ol li { margin-bottom: 10px; }
.prose .byline {
  font-family: var(--display); color: var(--maroon); font-size: 19px;
  margin-top: 30px; letter-spacing: 0.06em;
}
.article-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.aside-photos { display: flex; flex-direction: column; gap: 16px; }
.rounded { border-radius: 12px; }

/* ── Galleries ── */
.gallery-block { padding: 64px 0; }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.g-item {
  display: block; border-radius: 10px; overflow: hidden; background: #E5DAC2;
  aspect-ratio: 4 / 3; position: relative;
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.25s ease;
}
.g-item:hover img { transform: scale(1.04); }
.g-item[hidden] { display: none; }
.g-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(88, 18, 46, 0.58); color: #FFE9BC;
  font-family: var(--display); font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 0.05em; text-align: center;
  transition: background 0.2s ease;
}
.g-item:hover .g-more { background: rgba(88, 18, 46, 0.42); }
.gallery.docs { grid-template-columns: repeat(4, 1fr); }
.gallery.docs .g-item { aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--card-line); }
.gallery.docs .g-item img { object-fit: cover; object-position: top; }
.doc-figure { max-width: 560px; }
.doc-figure .g-item { aspect-ratio: auto; }
.doc-figure .g-item img { width: 100%; height: auto; object-fit: contain; }

/* ── Lightbox ── */
.lb-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 8, 18, 0.94);
  display: flex; align-items: center; justify-content: center;
}
.lb-overlay[hidden] { display: none; }
.lb-overlay img {
  max-width: min(94vw, 1400px); max-height: 88vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lb-btn {
  position: absolute; background: rgba(250,247,240,0.12); color: #FAF7F0;
  border: 1px solid rgba(250,247,240,0.3); border-radius: 50%;
  width: 48px; height: 48px; font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(250,247,240,0.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #D9C4AC; font-size: 14px; letter-spacing: 0.08em;
}

/* ── Contact cards ── */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.contact-cards.three { grid-template-columns: repeat(3, 1fr); }
.c-card {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 14px;
  padding: 30px 32px;
}
.c-card h3 { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--maroon); margin-bottom: 12px; }
.c-card p { color: var(--ink-soft); margin-bottom: 14px; }
.contact-list { list-style: none; margin-bottom: 18px; }
.contact-list li { padding: 7px 0; border-bottom: 1px dashed #E0D3B8; }
.contact-list li:last-child { border-bottom: none; }
.contact-list a { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--peacock); }
.c-note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }
.c-note a { color: var(--peacock); font-weight: 600; }

/* ── Heritage extras ── */
.memo { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 36px 40px; max-width: 900px; }
.roll summary {
  cursor: pointer; font-weight: 700; color: var(--maroon); font-size: 16.5px;
  padding: 16px 22px; background: var(--card); border: 1px solid var(--card-line); border-radius: 10px;
  list-style-position: inside;
}
.roll[open] summary { border-radius: 10px 10px 0 0; }
.member-roll {
  columns: 3; column-gap: 40px;
  background: var(--card); border: 1px solid var(--card-line); border-top: none;
  border-radius: 0 0 10px 10px; padding: 26px 30px 26px 56px;
  font-size: 15px; color: #443440;
}
.member-roll li { margin-bottom: 6px; break-inside: avoid; }

/* ── Footer ── */
.site-footer { background: var(--maroon-deep); color: #CBB299; padding: 60px 0 0; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 44px; padding-bottom: 44px; }
.mr-name { font-family: var(--marathi); color: #F4E3C8; font-size: 24px; }
.foot-addr { margin-top: 10px; max-width: 38ch; }
.site-footer h4 { color: #F4E3C8; font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: 0.06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--marigold); }
.foot-bottom {
  border-top: 1px solid rgba(233,155,28,0.25);
  padding: 16px 0; font-size: 13.5px; text-align: center; color: #9A7E66;
}
.foot-bottom a { color: #CBB299; text-decoration: underline; }
.mailto-cta {
  display: inline-block; margin-top: 14px; background: var(--marigold); color: var(--maroon-deep);
  font-weight: 700; padding: 10px 20px; border-radius: 8px; font-size: 14.5px;
}
.mailto-cta:hover { background: #F5AC33; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
html.no-observer .reveal { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1060px) {
  .main-nav ul { gap: 18px; }
  .brand-text .mr { font-size: 17px; }
}
@media (max-width: 960px) {
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ivory); border-bottom: 1px solid #E5DCCB;
    box-shadow: 0 18px 30px rgba(88,18,46,0.12); padding: 10px 24px 18px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 10px 4px; font-size: 16px; border-bottom: 1px dashed #E0D3B8; }
  .menu-btn { display: block; }
  .hero-grid, .about-grid, .lodging-grid, .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .heritage-strip { grid-template-columns: 1fr 1fr; }
  .committee, .contact-cards, .contact-cards.three { grid-template-columns: 1fr; }
  .gallery, .gallery.docs { grid-template-columns: repeat(3, 1fr); }
  .article-aside { position: static; }
  .member-roll { columns: 2; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-text .en { display: none; }
  .brand-text .mr { font-size: 18px; white-space: normal; }
  .brand-mark-img { width: 40px; height: 40px; }
  .block { padding: 56px 0; }
  .hero { padding: 48px 0; }
  .cards, .heritage-strip { grid-template-columns: 1fr; }
  .gallery, .gallery.docs { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-auto-rows: 120px; }
  .member-roll { columns: 1; }
  .memo { padding: 26px 22px; }
  .announce .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
