/* jyomance's fonts and colours, shared by every page (the home page and the policy pages).

   Fonts: WOFF2 built from the .ttf sources by tools/build_assets.sh. Each says which characters it covers, so a
   browser downloads the Hindi font only when Hindi text is on screen; the "Label" face holds just the letters of
   "हिन्दी", for the language switch on English pages. */
@font-face { font-family: "Newsreader"; font-weight: 200 800; font-display: swap; src: url("/static/fonts/Newsreader-Variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+2215, U+2713, U+2726; }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url("/static/fonts/Figtree-Variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+2215, U+2713, U+2726; }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 100 900; font-display: swap; src: url("/static/fonts/NotoSansDevanagari-Variable.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari Label"; font-weight: 100 900; font-display: swap; src: url("/static/fonts/NotoSansDevanagari-Label.woff2") format("woff2");
  unicode-range: U+0900-097F, U+200C-200D; }

:root {
  --serif: "Newsreader", "Noto Sans Devanagari", Georgia, serif;
  --sans: "Figtree", "Noto Sans Devanagari", system-ui, sans-serif;
  /* the mulberry side: a radial gradient, lightest at the top left */
  --mulberry-a: #8E436E; --mulberry-b: #6C2C52; --mulberry-c: #4C1D3A;
  /* the ivory side */
  --ivory: #FBF7F1; --plum: #2A1832; --gold-ink: #80551F; --muted: #706177; --line: #DDD2E1;
  --paper: #FFFDF9; --lav: #EEE8F6; --wist: #B8A2D2; --ame: #765587; --red: #B42318; --green: #1F6F3F;
  /* brass and night, for the chart plate */
  --gold: #C9A76C; --gold-hi: #EBD3A0; --night: #170D22; --night2: #21122F;
}

/* our profiles: a round button in each platform's colour, in the top bar and the footer */
.social { display: inline-flex; align-items: center; gap: 8px; }
.social a.soc { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease; }
.social a.soc:hover, .social a.soc:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(40, 16, 40, .22); }
.social svg { width: 18px; height: 18px; }
.social .soc-instagram { background: radial-gradient(circle at 30% 107%, #FDCB52 0%, #FD5D33 35%, #D6249F 62%, #285AEB 100%); }
.social .soc-youtube { background: #FF0000; }
.social .soc-youtube path { fill: #FF0000; }
.social .soc-youtube rect { fill: #fff; }
.social .soc-facebook { background: #1877F2; }
.social .soc-x { background: #000; }
@media (prefers-reduced-motion: reduce) { .social a.soc { transition: none; } }

/* phones: a three-bar button pinned to the top corner, opening every link, our profiles and the invitation */
.menu { display: none; }
@media (max-width: 860px) {
  .menu { display: block; }
  /* no button behind the bars: only ivory bars over the mulberry, turning plum once the page scrolls up under them
     (static/menu.js marks that with .on-page) */
  .menu summary { list-style: none; display: grid; place-content: center; gap: 5px; width: 44px; height: 44px;
    position: fixed; top: 8px; right: 8px; z-index: 61; background: transparent; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary i { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--ivory); transition: transform .2s, opacity .2s; }
  .menu.on-page summary i { background: var(--plum); }
  .menu[open] summary i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu[open] summary i:nth-child(2) { opacity: 0; }
  .menu[open] summary i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .menu-panel { position: fixed; z-index: 60; top: 60px; right: 10px; left: 10px; max-height: calc(100svh - 76px); overflow-y: auto; display: grid; gap: 16px;
    padding: 18px; border-radius: 14px; background: var(--ivory); color: var(--plum); box-shadow: 0 18px 40px -12px rgba(30, 10, 30, .45); }
  .menu-panel nav { display: grid; gap: 2px; }
  .menu-panel nav a { padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--plum); font: 500 16px var(--sans); text-decoration: none; }
  .menu-panel nav a[aria-current] { font-weight: 700; }
  .menu-panel .social { justify-content: center; gap: 12px; }
  .menu-panel .social a.soc { width: 42px; height: 42px; }
  .menu-panel .social svg { width: 21px; height: 21px; }
  .menu-panel .btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; border-radius: 6px; background: var(--plum);
    color: var(--ivory); font: 600 15px var(--sans); text-decoration: none; }
  /* the menu holds what the top bar held, so the bar steps aside */
  .nav { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .menu summary i { transition: none; } }
