/* ==========================================================
   Parameesh Takkar — site stylesheet
   Tokens → base → layout → components → pages → utilities
   ========================================================== */

:root {
  --paper: #F7F5F0;
  --paper-2: #EFECE4;
  --ink: #1C1B19;
  --ink-2: #4A4843;
  --ink-3: #66635B;
  --rule: #DDD9D0;
  --accent: #2E4A3F;
  --accent-ink: #223A31;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 64ch;
  --wrap: 1180px;
  --gutter: 20px;
  --margin-col: 200px;

  --fs-0: 0.8125rem;
  --fs-1: 0.9375rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.375rem;
  --fs-4: 1.875rem;
  --fs-5: 2.625rem;
  --fs-6: clamp(3.25rem, 10vw, 7.5rem);
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --fs-2: 1.125rem; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-size: var(--fs-2);
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(46,74,63,.45);
  transition: text-decoration-color .15s ease;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: var(--fs-5); }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); line-height: 1.2; }
h4 { font-family: var(--sans); font-size: var(--fs-2); font-weight: 500; line-height: 1.4; }
.as-h3 { font-size: var(--fs-3); line-height: 1.2; margin-top: 2.5rem; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

small, .small { font-size: var(--fs-1); }
.muted { color: var(--ink-3); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
a.sr-only:focus {
  position: fixed; top: 1rem; left: 1rem; z-index: 200;
  width: auto; height: auto; clip: auto; white-space: normal;
  padding: .5rem .75rem; background: var(--ink); color: var(--paper);
  text-decoration: none; font-size: var(--fs-1);
}

/* ----------------------------------------------------------
   Layout
   ---------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Margin-note layout: heading in the left column, content on the right */
.report {
  display: grid;
  gap: 1rem 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
}
.report + .report { border-top: 1px solid var(--rule); }
.report-head { align-self: start; }
.report-head h2 { font-size: var(--fs-4); margin-bottom: .25rem; }
.report-head .lede {
  font-size: var(--fs-1);
  color: var(--ink-3);
  margin: 0;
  max-width: 28ch;
}
.report-body { max-width: var(--measure); }

@media (min-width: 900px) {
  .report {
    grid-template-columns: var(--margin-col) minmax(0, 1fr);
    padding: 4.5rem 0;
  }
  .report-head { position: sticky; top: 2rem; }
}

/* ----------------------------------------------------------
   Header & navigation
   ---------------------------------------------------------- */

.site-header {
  padding: 1.25rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span { color: var(--ink-3); font-style: italic; }

.nav-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: .25rem 0;
  font: inherit;
  font-size: var(--fs-1);
  color: var(--ink);
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: var(--fs-1);
  color: var(--ink-2);
  text-decoration: none;
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

@media (max-width: 899px) {
  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--paper);
    padding: 5.5rem var(--gutter) 2rem;
    z-index: 20;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--rule); }
  .site-nav a {
    display: block;
    font-family: var(--serif);
    font-size: 2rem;
    padding: .75rem 0;
    border-bottom: 0;
  }
  .site-nav a[aria-current="page"] { border-bottom: 0; color: var(--accent); }
  .nav-toggle { position: relative; z-index: 21; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}
@media (max-width: 359px) {
  .brand span { display: none; }
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--ink);
  padding: 2.5rem 0 3rem;
  font-size: var(--fs-1);
  color: var(--ink-2);
}
.site-footer .wrap {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .site-footer .wrap { grid-template-columns: var(--margin-col) 1fr 1fr; gap: 3rem; }
}
.site-footer .brand { font-size: 1.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-0);
  color: var(--ink-3);
  max-width: 80ch;
}

/* ----------------------------------------------------------
   Hero (home)
   ---------------------------------------------------------- */

.hero {
  padding: 4rem 0 3rem;
}
.hero h1 {
  font-size: var(--fs-6);
  line-height: .92;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  max-width: 10ch;
}
.hero-meta {
  display: grid;
  gap: .5rem 3rem;
  max-width: var(--wrap);
  font-size: var(--fs-1);
  color: var(--ink-2);
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
}
.hero-meta > div:first-child { color: var(--ink); }
@media (min-width: 900px) {
  .hero { padding: 6rem 0 4rem; }
  .hero-meta { grid-template-columns: var(--margin-col) 1fr 1fr; }
}

/* Page hero (interior pages) */
.page-head {
  padding: 3rem 0 2rem;
}
.page-head h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 14ch;
}
.page-head .lede {
  font-size: var(--fs-3);
  font-family: var(--serif);
  color: var(--ink-2);
  max-width: 40ch;
  line-height: 1.3;
}
@media (min-width: 900px) {
  .page-head { padding: 5rem 0 3rem; }
}

/* ----------------------------------------------------------
   Article lists (Courtroom Notes, Commentary, Research)
   ---------------------------------------------------------- */

.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}
.entry {
  display: grid;
  gap: .35rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry-no {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: var(--fs-2);
  white-space: nowrap;
}
.entry h3 {
  font-size: var(--fs-3);
  margin-bottom: .25rem;
}
.entry h3 a {
  color: var(--ink);
  text-decoration: none;
}
.entry h3 a:hover { color: var(--accent); }
.entry-meta {
  font-size: var(--fs-0);
  color: var(--ink-3);
  margin-bottom: .5rem;
}
.entry-meta span + span::before {
  content: "/";
  margin: 0 .5em;
  color: var(--rule);
}
.entry p { color: var(--ink-2); font-size: var(--fs-1); max-width: 60ch; }
.entry .forthcoming { color: var(--ink-3); font-style: italic; }
@media (min-width: 700px) {
  .entry { grid-template-columns: 5rem minmax(0, 1fr); }
  .entry.no-index { grid-template-columns: minmax(0, 1fr); }
}

.more-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: var(--fs-1);
}

/* ----------------------------------------------------------
   Matters & appearances (grouped by forum)
   ---------------------------------------------------------- */

.forum {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.forum:first-child { border-top: 0; padding-top: 0; }
.forum h3 {
  font-size: var(--fs-3);
  margin-bottom: 1.25rem;
}
.matter {
  display: grid;
  gap: .25rem 2rem;
  padding: 1rem 0;
  border-top: 1px dashed var(--rule);
}
.matter h4 { margin: 0 0 .25rem; }
.matter p { font-size: var(--fs-1); color: var(--ink-2); margin: 0; max-width: 60ch; }
.matter .when { font-size: var(--fs-0); color: var(--ink-3); }
@media (min-width: 700px) {
  .matter { grid-template-columns: 7rem minmax(0, 1fr); }
  .matter.no-when { grid-template-columns: minmax(0, 1fr); }
}

/* Practice areas */
.practice-area {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}
.practice-area:first-child { border-top: 0; padding-top: 0; }
.practice-area h3 { margin-bottom: .5rem; }
.practice-area p { color: var(--ink-2); max-width: 60ch; }
.practice-area ul {
  margin: .75rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-2);
  font-size: var(--fs-1);
  column-gap: 2rem;
}
@media (min-width: 700px) { .practice-area ul { columns: 2; } }
.practice-area li { break-inside: avoid; margin-bottom: .25rem; }

/* ----------------------------------------------------------
   Article page
   ---------------------------------------------------------- */

.article-head {
  padding: 3rem 0 2rem;
  max-width: 44ch;
}
.article-head .series {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: var(--fs-3);
  margin-bottom: 1rem;
}
.article-head .series a { color: inherit; text-decoration: none; }
.article-head .series a:hover { text-decoration: underline; }
.article-head h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1.25rem;
}
.article-head .standfirst {
  font-size: var(--fs-3);
  line-height: 1.35;
  color: var(--ink-2);
  font-family: var(--serif);
  margin-bottom: 1.5rem;
}
.byline {
  font-size: var(--fs-0);
  color: var(--ink-3);
  border-top: 1px solid var(--ink);
  padding-top: .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
}
.byline strong { color: var(--ink); font-weight: 500; }

.article-body {
  max-width: var(--measure);
  font-size: 1.125rem;
  line-height: 1.7;
}
.article-body p { margin-bottom: 1.4em; }
.article-body h2 {
  font-size: var(--fs-4);
  margin: 3rem 0 1rem;
  line-height: 1.1;
}
.article-body h2 .n {
  display: block;
  font-style: italic;
  color: var(--accent);
  font-size: var(--fs-3);
  margin-bottom: .25rem;
}
.article-body blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: var(--fs-3);
  line-height: 1.35;
  color: var(--ink-2);
}
.article-body blockquote p { margin-bottom: .75em; }
.article-body .opening p {
  font-family: var(--serif);
  font-size: var(--fs-3);
  line-height: 1.35;
  margin-bottom: .6em;
}
.article-body .close {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-3);
}
.article-body ul, .article-body ol { padding-left: 1.25rem; margin-bottom: 1.4em; }

@media (min-width: 900px) {
  .article-layout {
    display: grid;
    grid-template-columns: var(--margin-col) minmax(0, 1fr);
    gap: 3rem;
  }
  .article-aside {
    position: sticky;
    top: 2rem;
    margin-top: 3.4rem;
    align-self: start;
    font-size: var(--fs-0);
    color: var(--ink-3);
  }
  .article-aside p { margin-bottom: 1rem; }
}
.article-aside .toc { list-style: none; padding: 0; margin: 0; }
.article-aside .toc li { margin-bottom: .4rem; }
.article-aside .toc a { color: var(--ink-2); text-decoration: none; }
.article-aside .toc a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 899px) { .article-aside { display: none; } }

.related {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
  max-width: var(--measure);
}
.related h2 { font-size: var(--fs-3); margin-bottom: 1rem; }

.author-card {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: var(--measure);
  font-size: var(--fs-1);
  color: var(--ink-2);
}
.author-card strong { color: var(--ink); font-weight: 500; }

/* ----------------------------------------------------------
   Portrait placeholder
   ---------------------------------------------------------- */

.portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: var(--ink-3);
  font-size: var(--fs-0);
  max-width: 360px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------
   Forms & buttons
   ---------------------------------------------------------- */

.form { max-width: 34rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: var(--fs-1);
  margin-bottom: .35rem;
  color: var(--ink);
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-2);
  padding: .65rem .75rem;
  border: 1px solid var(--ink-3);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 9rem; resize: vertical; }
.field .hint { font-size: var(--fs-0); color: var(--ink-3); margin-top: .35rem; }

.button {
  display: inline-block;
  font: inherit;
  font-size: var(--fs-1);
  padding: .75rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}
.button:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.contact-block { font-size: var(--fs-2); }
.contact-block dt { color: var(--ink-3); font-size: var(--fs-0); margin-top: 1rem; }
.contact-block dd { margin: .15rem 0 0; }



.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ----------------------------------------------------------
   Disclaimer gate (Bar Council of India rules)
   ---------------------------------------------------------- */

html.needs-disclaimer { overflow: hidden; }
html.needs-disclaimer body { overflow: hidden; }

.disclaimer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(28, 27, 25, .72);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.disclaimer[hidden] { display: none; }

.disclaimer-panel {
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.5rem;
  border-top: 2px solid var(--ink);
}
.disclaimer-title {
  font-family: var(--serif);
  font-size: var(--fs-4);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.disclaimer-text {
  overflow-y: auto;
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--ink-2);
  padding-right: .5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.disclaimer-text p { margin-bottom: 1em; }
.disclaimer-text ol { padding-left: 1.4rem; margin: 0 0 1em; }
.disclaimer-text li { margin-bottom: .6em; }
.disclaimer-actions {
  padding-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}
.disclaimer-agree { padding: .8rem 2.25rem; }

@media (min-width: 700px) {
  .disclaimer { padding: 2rem; }
  .disclaimer-panel { padding: 3rem 3rem 2rem; }
}

/* ----------------------------------------------------------
   Revision: editorial home, matter records, blog index, firm page
   ---------------------------------------------------------- */

/* Practice statement on the home page — one paragraph, set large */
.statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin: 0;
}
.statement + p { margin-top: 1.5rem; max-width: 52ch; }

/* Matter record: number / forum / proceeding / role, set like a cause-list entry */
.record {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: .15rem 1rem;
  margin: 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}
.record:last-of-type { border-bottom: 1px solid var(--rule); }
.record .no { grid-column: 1; grid-row: 1; font-family: var(--serif); font-style: italic; color: var(--accent); font-size: var(--fs-2); margin: 0; }
.record dt.court { grid-column: 2; grid-row: 1; font-size: var(--fs-0); color: var(--ink-3); padding-top: .3rem; }
.record dd.title { grid-column: 2; grid-row: 2; font-family: var(--serif); font-size: var(--fs-3); line-height: 1.2; color: var(--ink); margin: .25rem 0 .35rem; }
.record dd.role { grid-column: 2; grid-row: 3; margin: 0; font-size: var(--fs-1); color: var(--ink-2); max-width: 56ch; }
@media (min-width: 700px) {
  .record { grid-template-columns: 3rem 10rem minmax(0, 1fr); gap: .15rem 1.5rem; }
  .record dt.court { grid-column: 2; }
  .record dd.title { grid-column: 3; grid-row: 1; margin-top: 0; }
  .record dd.role { grid-column: 3; grid-row: 2; }
}

/* Firm timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.timeline li {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--rule);
}
.timeline .year { font-family: var(--serif); font-size: var(--fs-3); line-height: 1.2; }
.timeline p { margin: 0; font-size: var(--fs-1); color: var(--ink-2); padding-top: .25rem; }

/* Blog: featured post */
.featured { padding-bottom: 2.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.featured .kicker { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: var(--fs-2); margin-bottom: .5rem; }
.featured h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.05; letter-spacing: -0.015em; max-width: 22ch; }
.featured h2 a { color: var(--ink); text-decoration: none; }
.featured h2 a:hover { color: var(--accent); }
.featured p { max-width: 58ch; color: var(--ink-2); }
.featured .entry-meta { margin: .75rem 0 1rem; }

/* Breadcrumb line above an article */
.crumb { font-size: var(--fs-0); color: var(--ink-3); margin-bottom: 1.5rem; }
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--accent); text-decoration: underline; }
.crumb span + span::before { content: "/"; margin: 0 .5em; color: var(--rule); }

/* Placeholders (Takkar & Co. page only) — remove the span when replacing */
.ph { background: #FBEFC7; color: #5C4500; padding: 0 .25em; font-family: var(--sans); font-size: .85em; border-radius: 2px; }
.ph::before { content: "["; } .ph::after { content: "]"; }
