/* ─────────────────────────────────────────────────────────
   Justice for ISKCON Bangalore — Design System
   Single source of truth for color, type, geometry, motion.
   ───────────────────────────────────────────────────────── */

/* ── Fonts ──────────────────────────────────────────────── */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/Geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/Geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/Geist-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/GeistMono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/GeistMono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/GeistMono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }


:root {
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  /* ── Color · LIGHT (default) ─────────────────────────── */
  --bg:        #f6f5f1;
  --bg-elev:   #ecebe6;
  --surface:   #ffffff;
  --ink:       #0a0a0a;
  --ink-2:     #2a2a2a;
  --ink-3:     #6b6b6b;
  --ink-4:     #a8a8a4;
  --rule:      #e0ddd4;
  --hairline:  rgba(10, 10, 10, .08);

  /* ── Brand accent ────────────────────────────────────── */
  --accent:     #ff5a1f;
  --accent-hi:  #ff7a3f;
  --accent-fg:  #ffffff;
  --accent-12:  color-mix(in oklab, #ff5a1f 12%, transparent);
  --accent-08:  color-mix(in oklab, #ff5a1f 8%, transparent);

  /* ── Geometry ────────────────────────────────────────── */
  --radius-thumb:   6px;
  --radius:        12px;
  --radius-inner:  14px;
  --radius-card:   16px;
  --radius-shell:  18px;
  --radius-pill:   999px;

  /* ── Elevation ──────────────────────────────────────── */
  --shadow-flat:   0 0 0 1px var(--hairline);
  --shadow-hover:  0 14px 36px -14px rgba(0,0,0,.22);
  --shadow-player: 0 30px 80px -30px rgba(0,0,0,.35);

  /* ── Motion ─────────────────────────────────────────── */
  --ease-out:  cubic-bezier(.2,.8,.2,1);
  --t-hover:   .15s;
}

/* ── Color · DARK ─────────────────────────────────────── */
[data-theme="dark"] {
  --bg:        #0a0a0a;
  --bg-elev:   #131313;
  --surface:   #161616;
  --ink:       #f6f5f1;
  --ink-2:     #ecebe6;
  --ink-3:     #8a8a86;
  --ink-4:     #4a4a48;
  --rule:      #232323;
  --hairline:  rgba(246,245,241,.12);
  --accent:    #ff7a3f;
  --accent-fg: #0a0a0a;
}

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes fade-up   { from { opacity: 0; transform: translate3d(0,16px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes scale-in  { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

/* ── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: var(--accent); }
::selection { background: var(--ink); color: var(--bg); }
summary::-webkit-details-marker { display: none; }
img { max-width: 100%; display: block; }
blockquote { margin: 0; }

/* ── Nav ───────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-nav__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.site-nav__square {
  width: 16px;
  height: 16px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}
.site-nav__name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.012em;
}
.site-nav__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-nav__links a {
  text-decoration: none;
  color: var(--ink-3);
  transition: color var(--t-hover) ease;
}
.site-nav__links a:hover { color: var(--ink); }

/* ── Section wrapper ───────────────────────────────────── */
.section {
  max-width: 1280px;
  margin: 56px auto 0;
  padding: 72px 32px 0;
  border-top: 1px solid var(--hairline);
}

/* ── Image placeholder ─────────────────────────────────── */
.img-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--bg-elev);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(0,0,0,.04) 8px,
    rgba(0,0,0,.04) 9px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: center;
  padding: 16px;
}

/* ── Kicker rule ───────────────────────────────────────── */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.kicker__rule {
  width: 28px;
  height: 1px;
  background: var(--ink-4);
  display: inline-block;
  flex-shrink: 0;
}
.kicker__text {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Two-col layout ────────────────────────────────────── */
.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 72px;
}
.two-col__left {
  flex: 2 1 280px;
  min-width: min(100%, 280px);
  max-width: 480px;
  align-self: flex-start;
  position: sticky;
  top: 100px;
}
.two-col__right {
  flex: 3 1 360px;
  min-width: min(100%, 340px);
}

/* ── Blockquote card ───────────────────────────────────── */
.quote-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-flat);
  padding: 28px 32px;
}
.quote-card__text {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.quote-card__footer {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.quote-card__footer a { color: var(--ink); }
.quote-card__para { color: var(--accent); }

/* ── Document cards ────────────────────────────────────── */
.doc-card {
  text-decoration: none;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-flat);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--t-hover) ease, transform var(--t-hover) ease;
}
.doc-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.doc-card__type {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc-card__title {
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.028em;
  line-height: 1.25;
  color: var(--ink);
}
.doc-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
}
.doc-card__link {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.doc-card--plain {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-flat);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-card--dashed {
  background: transparent;
  border: 1px dashed var(--rule);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Timeline ──────────────────────────────────────────── */
.timeline-scroll {
  display: flex;
  overflow-x: auto;
  padding: 44px 32px 24px;
  scroll-snap-type: x proximity;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
}
.timeline-scroll::-webkit-scrollbar { height: 4px; }
.timeline-scroll::-webkit-scrollbar-track { background: transparent; }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 4px; }
.timeline-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow-flat);
  padding: 22px 24px;
}
.timeline-card--accent {
  flex: 0 0 280px;
  border-top: 2px solid var(--accent);
}
.timeline-card__date {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-4);
}
.timeline-card--accent .timeline-card__date { color: var(--accent); }
.timeline-card__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.timeline-card--accent .timeline-card__body { color: var(--ink); }

/* ── FAQ ───────────────────────────────────────────────── */
details { border-bottom: 1px solid var(--hairline); }
details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.012em;
  color: var(--ink);
}
details summary:hover { color: var(--accent); }
.faq__marker {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink-4);
  flex-shrink: 0;
  transition: transform var(--t-hover) ease;
}
details[open] .faq__marker { transform: rotate(45deg); }
details p {
  margin: 0;
  padding: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ── Lightbox ──────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-out;
  animation: fade-in .18s linear;
}
#lightbox[hidden] { display: none; }
#lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: scale-in .25s cubic-bezier(.2, .8, .2, 1);
}
#lightbox img {
  max-width: min(92vw, 880px);
  max-height: 84vh;
  width: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-player);
  display: block;
}
#lightbox img[hidden] { display: none; }
#lightbox iframe {
  width: calc(100vw - 32px);
  height: calc(100vh - 72px);
  border: 0;
  border-radius: 6px;
  box-shadow: var(--shadow-player);
  background: #fff;
  display: block;
  cursor: auto;
}
#lightbox iframe[hidden] { display: none; }
#lightbox figcaption {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #ecebe6;
  text-align: center;
  max-width: 720px;
  line-height: 1.6;
}
#lightbox button {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(246, 245, 241, .08);
  border: 1px solid rgba(246, 245, 241, .3);
  color: #f6f5f1;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
#lightbox button:hover { background: rgba(246, 245, 241, .18); }

/* ── Pulse dot ─────────────────────────────────────────── */
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 720px) {
  .site-nav__inner { padding: 14px 20px; }
  .site-nav__name { font-size: 14px; }
  .site-nav__links { gap: 14px; font-size: 10px; }
  .section { padding: 48px 20px 0; }
  .timeline-scroll { padding: 32px 20px 16px; }
}
