/* Dr. Jaya Thakur — jayathakur.com
   Editorial personal-brand system: ivory / charcoal / wine / ochre / sage */

:root {
  --ivory: #FDFBF7;
  --paper: #F6F1E8;
  --charcoal: #18181B;
  --ink-2: #3F3F46;
  --muted: #6B6B73;
  --rule: #E4DDD0;
  --wine: #6B1D2F;
  --wine-deep: #521624;
  --ochre: #A37B3E;
  --sage: #2D5D4E;
  --sage-tint: #E8EFEC;
  --wine-tint: #F4E9EB;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--wine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-deep); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253, 251, 247, .94); backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { text-decoration: none; color: var(--charcoal); display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.brand-line { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--wine); border-bottom-color: var(--wine); }
.nav .btn { border-bottom: 0; padding: 9px 18px; }
.nav a.btn-wine, .nav a.btn-wine:hover { color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 12px; font: 600 .85rem var(--sans); color: var(--charcoal); cursor: pointer; }

@media (max-width: 920px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); }
  .nav .btn { margin-top: 14px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font: 600 .92rem var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-deep); color: #fff; }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: #224a3e; color: #fff; }
.btn-line { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-line:hover { background: var(--charcoal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Common blocks ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.band { background: var(--paper); }
.dark { background: var(--charcoal); color: #EDEAE4; }
.dark h2, .dark h3 { color: #fff; }
.dark a { color: #E9C98F; }
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); margin-bottom: 18px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.rule-top { border-top: 1px solid var(--rule); }
.small { font-size: .88rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.roles { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); margin-bottom: 26px; }
.roles span + span::before { content: "•"; margin-right: 18px; color: var(--ochre); }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-note { margin-top: 26px; font-size: .9rem; color: var(--muted); }

/* Portrait with monogram fallback (shown until a real photo is added) */
.portrait { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #EFE6D6, #E3D6C0); border-radius: var(--radius); overflow: hidden; }
.portrait::before { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: clamp(5rem, 12vw, 9rem); color: rgba(107, 29, 47, .18); letter-spacing: .04em; }
.portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: linear-gradient(transparent, rgba(253,251,247,.9)); }
.portrait.wide { aspect-ratio: 4 / 3; }

/* ---------- Three dimensions ---------- */
.dims { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--charcoal); margin-top: 40px; }
.dim { padding: 30px 28px 34px 0; }
.dim + .dim { padding-left: 28px; border-left: 1px solid var(--rule); }
.dim .num { font-family: var(--serif); font-style: italic; color: var(--ochre); font-size: 1.05rem; }
.dim h3 { margin: 6px 0 12px; font-size: 1.6rem; }
.dim p { color: var(--ink-2); font-size: .97rem; }
.dim a { font-weight: 600; font-size: .92rem; text-decoration: none; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split.reverse > :first-child { order: 2; }

/* ---------- Feature (judgment) ---------- */
.feature { display: grid; grid-template-columns: 220px 1fr; gap: 40px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 34px; }
.feature .date { font-family: var(--serif); font-size: 1.5rem; color: #E9C98F; line-height: 1.2; }
.feature .cite { font-size: .82rem; color: #B9B4AA; margin-top: 8px; }
.quote-line { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.3; color: #fff; margin-bottom: 22px; }

/* ---------- Matters (petitions) ---------- */
.matters { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--charcoal); }
.matter { display: grid; grid-template-columns: 200px 1fr 170px; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.matter .yr { font-family: var(--serif); font-size: 1.25rem; color: var(--wine); }
.matter h3 { font-size: 1.3rem; margin-bottom: 8px; }
.matter p { color: var(--ink-2); font-size: .97rem; margin-bottom: .6em; }
.matter .case { font-size: .82rem; color: var(--muted); }
.status { align-self: start; justify-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; }
.status.decided { background: var(--sage-tint); color: var(--sage); }
.status.pending { background: #F5EEDF; color: #7A5A26; }
.sources { font-size: .84rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.sources a { white-space: nowrap; }
.matter > div, .press li > div { min-width: 0; }

/* ---------- Services list ---------- */
.services { columns: 2; column-gap: 48px; list-style: none; padding: 0; margin: 24px 0 0; }
.services li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .98rem; }

/* ---------- Facts table ---------- */
.facts { width: 100%; border-collapse: collapse; margin-top: 10px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: .97rem; }
.facts th { width: 38%; font-weight: 600; color: var(--muted); padding-right: 20px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Media list ---------- */
.press { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--charcoal); }
.press li { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.press .pub { font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.press .when { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 4px; }
.press a.title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--charcoal); text-decoration: none; }
.press a.title:hover { color: var(--wine); text-decoration: underline; }
.press p { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Contact cards ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--charcoal); margin-top: 36px; }
.channel { padding: 28px 28px 30px 0; }
.channel + .channel { padding-left: 28px; border-left: 1px solid var(--rule); }
.channel h3 { font-size: 1.3rem; }
.channel .big { font-family: var(--serif); font-size: 1.55rem; color: var(--charcoal); text-decoration: none; display: inline-block; margin: 4px 0 14px; }
.channel .big:hover { color: var(--wine); }

/* ---------- Page header ---------- */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-head .lead { max-width: 680px; }

/* ---------- CTA band ---------- */
.cta { text-align: left; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }
.cta h2 { margin: 0; max-width: 620px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #C9C5BD; padding: 64px 0 28px; font-size: .92rem; }
.site-footer a { color: #EDEAE4; text-decoration: none; }
.site-footer a:hover { color: #E9C98F; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font: 700 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8E8A82; margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-name { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 6px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #333338; font-size: .8rem; color: #8E8A82; }

.status.dismissed { background: #EFEDEA; color: #5C5A56; }
.status.filed { background: var(--wine-tint); color: var(--wine); }

/* ---------- Videos (click-to-load YouTube) ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; margin-top: 36px; }
.videos.two { grid-template-columns: repeat(2, 1fr); }
.video figcaption { margin-top: 12px; }
.video .vt { font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; color: var(--charcoal); }
.video .vm { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #111 center / cover no-repeat; border: 0; padding: 0; width: 100%; cursor: pointer; border-radius: var(--radius); overflow: hidden; display: block; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.45)); }
.yt .play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%); background: rgba(24,24,27,.85); border-radius: 10px; transition: background .15s; }
.yt .play::before { content: ""; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.yt:hover .play, .yt:focus-visible .play { background: var(--wine); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-size: .82rem; color: var(--muted); margin-top: 18px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 36px 0 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 30px 30px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--ochre); }
.timeline li.key::before { background: var(--wine); border-color: var(--wine); }
.timeline .when { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); }
.timeline h3 { font-size: 1.25rem; margin: 4px 0 6px; }
.timeline p { color: var(--ink-2); font-size: .97rem; margin: 0 0 .4em; }

/* ---------- Press groups & logos strip ---------- */
.press-group { margin-top: 64px; }
.press-group:first-child { margin-top: 0; }
.press-group > h2 { font-size: 1.6rem; }
.press li.hi a.title { font-family: var(--sans); font-weight: 600; font-size: 1.12rem; }
.outlets { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; margin-top: 26px; font-family: var(--serif); font-size: 1.2rem; color: var(--ink-2); }
.outlets span { white-space: nowrap; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.toc a { font-size: .85rem; font-weight: 600; text-decoration: none; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); }
.toc a:hover { border-color: var(--wine); color: var(--wine); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--charcoal); margin-top: 40px; }
.stat { padding: 24px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--rule); }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.4rem; line-height: 1; color: var(--wine); }
.stat span { font-size: .88rem; color: var(--ink-2); }

/* ---------- Floating WhatsApp (mobile) ---------- */
.float-call { display: none; }
@media (max-width: 720px) {
  .float-call { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; gap: 8px; }
  .float-call .btn { flex: 1; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
  body { padding-bottom: 76px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .split, .feature { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero-grid .portrait { max-width: 420px; }
  .dims, .channels { grid-template-columns: 1fr; }
  .dim, .channel { padding: 26px 0; }
  .dim + .dim, .channel + .channel { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .matter { grid-template-columns: 1fr; gap: 10px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .videos { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-line { font-size: .6rem; letter-spacing: .08em; }
  .services { columns: 1; }
  .press li { grid-template-columns: 1fr; gap: 8px; }
  .facts th { width: 42%; }
  .foot-grid { grid-template-columns: 1fr; }
  .videos, .videos.two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
