/* ============================================================
   mitalimishra.com — shared stylesheet
   Palette drawn from the portrait: oxblood jacket, navy scarf,
   cool slate light, warm parchment, muted gold.
   ============================================================ */

:root {
  /* Palette: teal, marigold, hibiscus pink, warm cream (henna & hibiscus) */
  --ink: #0f4c4c;          /* deep teal — headings, dark sections */
  --text: #2b1d14;         /* warm dark brown — body text */
  --oxblood: #c2255c;      /* hibiscus pink — links, buttons, accents */
  --oxblood-dark: #9c1a48;
  --gold: #e8b23a;         /* marigold — rules and small details */
  --marigold: #f6c453;
  --slate: #25706f;        /* light teal — small labels */
  --parchment: #fff7ec;    /* page background */
  --paper: #fffcf6;        /* cards */
  --muted: #6b5a4b;        /* secondary text */
  --line: #f0dcc0;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1120px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--oxblood); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oxblood-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 1rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--parchment);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.logo {
  font-family: var(--serif); font-size: 1.35rem; font-style: italic;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--oxblood); }
.nav { display: flex; gap: 26px; flex-wrap: wrap; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--oxblood); color: var(--oxblood); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid var(--oxblood); transition: background .2s, color .2s;
}
.btn-primary { background: var(--oxblood); color: var(--paper); }
.btn-primary:hover { background: var(--oxblood-dark); color: var(--paper); }
.btn-ghost { color: var(--oxblood); background: transparent; }
.btn-ghost:hover { background: var(--oxblood); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center;
}
.hero h1 em { color: var(--oxblood); font-style: italic; }
.hero .roles {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem;
  color: var(--muted); margin: 0 0 1.5rem;
}
.hero .roles b { color: var(--gold); font-weight: 400; padding: 0 .35em; }
.hero p.lede { max-width: 34em; margin: 0 0 2rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* arched portrait frame — a nod to both courthouse and gallery architecture */
.portrait {
  position: relative; justify-self: center; width: min(100%, 360px); margin: 0 auto;
}
.portrait img {
  width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; object-position: center 22%;
  border-radius: 999px 999px var(--radius) var(--radius);
}
.portrait::after {
  content: ""; position: absolute; inset: -14px -14px 14px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px 999px var(--radius) var(--radius);
  z-index: -1;
}

/* ---------- Highlights strip ---------- */
.highlights { border-top: 6px solid var(--marigold); background: var(--ink); color: var(--parchment); padding: 56px 0; }
.highlights .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat { border-top: 2px solid var(--marigold); padding-top: 18px; }
.stat .num { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--marigold); }
.stat p { margin: .6rem 0 0; color: #cfe3df; font-size: 0.95rem; }

/* ---------- Section ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 40em; margin-bottom: 44px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column;
}
.card .tag {
  font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--slate); font-weight: 600; margin-bottom: 14px;
}
.card p { color: var(--muted); margin: 0 0 1.4rem; flex: 1; }
.card a { font-weight: 600; text-decoration: none; }
.card a::after { content: " →"; }

/* ---------- Quote band ---------- */
.quote {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 72px 0; text-align: center;
}
.quote blockquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem);
  max-width: 28em; margin: 0 auto; line-height: 1.35;
}

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .portrait { order: -1; width: min(80%, 300px); }
  .highlights .wrap, .cards { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 13px; }
  .nav a { font-size: 0.88rem; }
}

/* ============================================================
   Inner pages
   ============================================================ */

.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.page-head p.lede { max-width: 38em; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.about-grid .portrait { position: sticky; top: 110px; }
.prose p { margin: 0 0 1.25rem; max-width: 36em; }
.prose h2 { margin-top: 2.5rem; }
.pull {
  font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.4;
  border-left: 2px solid var(--oxblood); padding-left: 20px; margin: 2rem 0; max-width: 30em;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 1.5rem; list-style: none; }
.chips li {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 6px 14px; font-size: 0.9rem;
}

/* ---------- Experience timeline ---------- */
.timeline-group { margin-bottom: 64px; }
.timeline-group > h2 { margin-bottom: 28px; }
.entry {
  display: grid; grid-template-columns: 180px 1fr; gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.entry .when {
  font-size: 0.85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate); font-weight: 600; padding-top: 4px;
}
.entry h3 { margin-bottom: 4px; }
.entry .where { color: var(--oxblood); font-size: 0.95rem; margin: 0 0 12px; }
.entry ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.entry li { margin-bottom: 6px; }

/* ---------- Art gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters span {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 0.9rem;
  color: var(--muted);
}
.gallery { columns: 3 280px; column-gap: 24px; }
.work { break-inside: avoid; margin: 0 0 28px; }
.work .frame {
  background: var(--paper); border: 1px solid var(--line); padding: 14px;
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(15, 76, 76, .30);
}
.work img { width: 100%; height: auto; }
.work figcaption { padding-top: 12px; }
.work .title { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.work .meta { font-size: 0.85rem; color: var(--muted); }
/* placeholder until real photos are added */
.placeholder {
  display: grid; place-items: center; color: var(--slate); font-size: 0.85rem;
  letter-spacing: .12em; text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(142,157,181,.18), rgba(122,31,43,.10)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(176,141,87,.12) 14px 15px);
}
.ratio-tall { aspect-ratio: 4 / 5; }
.ratio-wide { aspect-ratio: 5 / 4; }
.ratio-square { aspect-ratio: 1; }
.note {
  background: var(--paper); border: 1px dashed var(--gold); border-radius: var(--radius);
  padding: 18px 22px; color: var(--muted); font-size: 0.95rem; margin-top: 40px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.contact-card {
  background: var(--ink); color: var(--parchment); border-radius: var(--radius);
  padding: 36px 32px;
}
.contact-card h2 { color: var(--marigold); font-size: 1.6rem; }
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin-top: 22px;
}
.contact-card dd { margin: 6px 0 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-card a { color: #fff; }
.contact-card a:hover { color: var(--marigold); }
.topics { list-style: none; padding: 0; margin: 0; }
.topics li { padding: 16px 0; border-top: 1px solid var(--line); }
.topics li strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.topics li span { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid .portrait { position: relative; top: auto; width: min(80%, 300px); }
  .entry { grid-template-columns: 1fr; gap: 6px; }
  .page-head { padding: 48px 0 32px; }
}
.work a.frame { display: block; }

/* Devanagari titles */
:lang(hi) { font-family: "Noto Serif Devanagari", var(--serif); font-style: normal; }

/* ---------- Art page: documentary ---------- */
.film { background: var(--ink); color: var(--parchment); padding: 72px 0; border-bottom: 6px solid var(--marigold); }
.film-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.film .video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(246,196,83,.5), 0 20px 40px -20px rgba(0,0,0,.6); background: #000; }
.film .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film .eyebrow { color: var(--marigold); }
.film h2 { color: #fff; }
.film-text p { color: #e3efec; margin: 0 0 1rem; }
.film-text a { color: var(--marigold); font-weight: 600; }
.film-text a:hover { color: #fff; }
@media (max-width: 860px) {
  .film { padding: 48px 0; }
  .film-grid { grid-template-columns: 1fr; gap: 28px; }
}
.film-links { display: flex; flex-wrap: wrap; gap: 24px; }
