/*
  Sahakarabhoomi tokens — poured from type-lab into production.

  One ratio (1.25) for type and space. Locks from article 176:607.
  Figma is a sketch: snap to a step, do not copy stray px.

  Fluid: lock at 1728cqi (the artboard). Floor so Telugu never drops below
  readable size. Mixed Telugu+Latin uses the Telugu-safe line-height.
*/

:root {
  --type-source: "Navanudi 176:607 + ratio 1.25";
  --canvas: 1728;
  --dpx: calc(100cqi / 1728);

  --font-te: "Tiro Telugu", "Noto Serif Telugu", serif;
  --font-en: "Tiro Telugu", "Noto Serif Telugu", serif;
  --font-hi: "Tiro Devanagari Hindi", "Tiro Telugu", serif;
  --weight: 400;

  --ink: #000;
  --muted: rgb(133, 133, 133);
  --link: #1a5c2e;
  --rule: #0087cd;
  --kicker: #c41212;
  --cta: rgb(138, 218, 244);
  --paper: #fff;
  --slot: #e8e8e8;
  --tease-bg: #efefef;
  --footer-bg: #f3f2f8;

  /* Modular type. Locks: 112, 36, 26, 24. Others = 36 × 1.25^n. */
  --type-ratio: 1.25;
  --type-base: 36px;
  --type-display: 112px;
  --type-heading: 88px;
  --type-subhead: 70px;
  --type-title: 56px;
  --type-body: 36px;
  --type-caption: 26px;
  --type-meta: 24px;
  --type-nav: 18px;
  --type-story: 19.2px; /* 16px at 1440cqi — 15" MBP 2015 full window */

  --text-display: clamp(1.75rem, calc(112 * var(--dpx)), 7rem);
  --text-heading: clamp(1.5rem, calc(88 * var(--dpx)), 5.5rem);
  --text-subhead: clamp(1.35rem, calc(70 * var(--dpx)), 4.375rem);
  --text-title: clamp(1.25rem, calc(56 * var(--dpx)), 3.5rem);
  --text-body: clamp(1.125rem, calc(36 * var(--dpx)), 2.25rem);
  --text-caption: clamp(0.875rem, calc(26 * var(--dpx)), 1.625rem);
  --text-meta: clamp(0.875rem, calc(24 * var(--dpx)), 1.5rem);
  --text-nav: clamp(0.875rem, calc(18 * var(--dpx)), 1.125rem);
  --text-story: clamp(1rem, calc(19.2 * var(--dpx)), 1.2rem);

  /* Roles — change these, not one-off font-size in components. */
  --text-lead: var(--text-title);
  --text-story-title: var(--text-story);
  --text-story-preview: var(--text-story);
  --text-kicker: var(--text-nav);
  --text-rail: var(--text-caption);
  --text-section-nav: var(--text-meta);
  --text-subscribe: var(--text-body);
  --text-clock: 10px; /* masthead chrome only — not a type step */
  /* Overlay titles: same 88 lock as heading, but no 1.5rem floor so 720 can shrink. */
  --text-menu: clamp(1.125rem, calc(88 * var(--dpx)), 5.5rem);
  --text-menu-sub: clamp(0.875rem, calc(24 * var(--dpx)), 1.5rem);

  --menu-about: #532977;
  --menu-tech: #1f3f88;
  --menu-interviews: #3ba2c6;
  --menu-directory: #319a46;
  --menu-magazine: #e5da30;
  --menu-events: #b24a27;
  --menu-subscribe: #ab1b23;

  --wordmark-w: clamp(9rem, calc(576 * var(--dpx)), 36rem);

  /*
    Story-card type lock (Karthik, 15" MBP 2015, full window, ~1440cqi):
    title and preview are the same size. 16px at 1440 ⇒ 19.2px at 1728.
    Grey separates them, not a second step. Line-height stays --lh-mixed 1.5.
    Article locks (112 / 36 / 26 / 24) are not retuned yet.
  */

  /*
    Mixed script: one paragraph may contain Telugu and Latin (Tiro covers both).
    Line-height locked at 1.5 (Karthik, 2026-09-11). Display/heading stay tighter.
  */
  --lh-display: 1.45;
  --lh-heading: 1.35;
  --lh-mixed: 1.5;
  --lh-body: var(--lh-mixed);
  --lh-small: var(--lh-mixed);

  /* Space atom = body/4 = 9, then × 1.25. */
  --space-1: clamp(0.35rem, calc(9 * var(--dpx)), 0.5625rem);
  --space-2: clamp(0.4rem, calc(11 * var(--dpx)), 0.7rem);
  --space-3: clamp(0.5rem, calc(14 * var(--dpx)), 0.875rem);
  --space-4: clamp(0.6rem, calc(18 * var(--dpx)), 1.125rem);
  --space-5: clamp(0.7rem, calc(22 * var(--dpx)), 1.375rem);
  --space-6: clamp(0.85rem, calc(28 * var(--dpx)), 1.75rem);
  --space-7: clamp(1rem, calc(36 * var(--dpx)), 2.25rem);
  --space-8: clamp(1.15rem, calc(45 * var(--dpx)), 2.8rem);
  --space-9: clamp(1.35rem, calc(56 * var(--dpx)), 3.5rem);
  --space-10: clamp(1.6rem, calc(70 * var(--dpx)), 4.375rem);
  --space-11: clamp(1.85rem, calc(88 * var(--dpx)), 5.5rem);

  --space-inset: var(--space-10);
  --space-gutter: var(--space-6);
  --inset: var(--space-inset);
  --gap: var(--space-gutter);
}

.te,
.en {
  font-family: var(--font-te);
  font-weight: var(--weight);
  line-height: var(--lh-mixed);
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  overflow-wrap: break-word;
}

.hi {
  font-family: var(--font-hi);
  font-weight: var(--weight);
  line-height: var(--lh-mixed);
}

/* Body copy links use --link. Chrome (nav, cards, titles) stays ink + italic hover. */
