/* ==========================================================================
   itsprity.com — Prity Banerjee
   Design register: legal / professional. Ink navy + brass, serif authority.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ink:        #101A2B;
  --ink-2:      #1B2942;
  --ink-3:      #2C3D5A;
  --brass:      #A8813F;
  --brass-lt:   #C9A462;
  --brass-dk:   #8A6A31;
  --paper:      #FBFAF7;
  --paper-2:    #F3F0E9;
  --line:       #E1DCD1;
  --line-dk:    rgba(255, 255, 255, .14);
  --text:       #22303F;
  --muted:      #5A6676;
  --muted-dk:   #A9B4C4;
  --white:      #FFFFFF;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --gut: 20px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(16, 26, 43, .04), 0 8px 28px rgba(16, 26, 43, .07);

  --step: clamp(56px, 9vw, 104px);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.16rem, 2vw, 1.35rem); }
p  { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--step) 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

/* --- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 760px; }
.section { padding-block: var(--step); }
.section--tight { padding-block: calc(var(--step) * .62); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--muted-dk); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* --- Eyebrow / rules ---------------------------------------------------- */
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
  color: var(--brass-dk); margin: 0 0 .9rem; display: flex; align-items: center; gap: .7rem;
}
.eyebrow::after { content: ""; flex: 0 0 34px; height: 1px; background: var(--brass); opacity: .5; }
.section--ink .eyebrow { color: var(--brass-lt); }
.lede { font-size: clamp(1.06rem, 1.7vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.section--ink .lede { color: var(--muted-dk); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  padding: 14px 26px; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s;
}
.btn--primary { background: var(--brass); color: #fff; border-color: var(--brass); }
.btn--primary:hover { background: var(--brass-dk); border-color: var(--brass-dk); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-3); border-color: var(--ink-3); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
/* Ghost buttons sitting on any dark ground */
.section--ink .btn--ghost,
.hero .btn--ghost,
.page-head .btn--ghost,
.cta-band .btn--ghost { color: #fff; border-color: var(--line-dk); }
.section--ink .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-head .btn--ghost:hover,
.cta-band .btn--ghost:hover { border-color: var(--brass-lt); color: var(--brass-lt); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

/* Wordmark */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; padding: 6px 0; }
.brand__mark { flex: 0 0 auto; width: 34px; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--ink);
  letter-spacing: .015em;
}
.brand__role {
  font-size: .58rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase;
  color: var(--brass-dk); margin-top: 5px;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: .93rem; font-weight: 500; color: var(--ink-3); text-decoration: none;
  padding: 9px 13px; border-radius: var(--radius); white-space: nowrap;
}
.nav__link:hover { color: var(--ink); background: var(--paper-2); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.nav .btn { margin-left: 10px; padding: 11px 20px; font-size: .9rem; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 11px; cursor: pointer; color: var(--ink); line-height: 0;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px var(--gut) 22px;
    box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--brass-dk); }
  .nav .btn { margin: 18px 0 0; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { background: var(--ink); color: var(--muted-dk); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 3px;
  background: linear-gradient(90deg, var(--brass-dk), var(--brass-lt) 45%, transparent);
}
.hero__inner { padding-block: clamp(58px, 9vw, 104px); position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--brass-lt); }
.hero__lede { font-size: clamp(1.06rem, 1.8vw, 1.24rem); color: var(--muted-dk); max-width: 56ch; margin-top: 1.3rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 2.1rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line-dk);
  font-size: .84rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-dk); font-weight: 500;
}
.hero__meta span { display: inline-flex; align-items: center; gap: .55em; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg); flex: 0 0 auto; }

/* --- Grids -------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px; position: relative;
}
.card::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px; background: var(--brass); border-radius: var(--radius) var(--radius) 0 0; }
.card h3 { margin-bottom: .55em; }
.card p:last-child { margin-bottom: 0; }
.card__link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; font-size: .93rem; text-decoration: none; margin-top: .3rem; }
.card__link::after { content: "\2192"; transition: transform .18s; }
.card__link:hover::after { transform: translateX(3px); }

/* Pillar (two-pillar positioning) */
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 36px; display: flex; flex-direction: column; }
.pillar__num {
  font-family: var(--serif); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-dk); margin-bottom: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line);
}
.pillar p { color: var(--muted); }
.pillar .card__link { margin-top: auto; padding-top: 1rem; }

/* --- Fact / credential strip -------------------------------------------- */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--white); padding: 26px 22px; }
.fact__num { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.2rem); font-weight: 600; color: var(--ink); line-height: 1.05; }
.fact__label { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; font-weight: 500; }

/* --- Timeline (career) --------------------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -4.5px; top: 9px; width: 8px; height: 8px;
  background: var(--brass); transform: rotate(45deg);
}
.timeline .t-year { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-dk); }
.timeline .t-role { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--ink); margin: .2rem 0 .1rem; }
.timeline .t-org { color: var(--muted); font-size: .95rem; }

/* --- Definition rows (education, awards) --------------------------------- */
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; gap: 2px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
@media (min-width: 720px) { .rows li { grid-template-columns: 1fr auto; align-items: baseline; } }
.rows .r-main { font-weight: 600; color: var(--ink); }
.rows .r-sub { color: var(--muted); font-size: .93rem; }
.rows .r-meta { color: var(--brass-dk); font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }

/* --- Media logos / mentions ---------------------------------------------- */
.mentions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.mentions li {
  margin: 0; font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); background: var(--white); padding: 9px 18px; border-radius: var(--radius);
}
.section--ink .mentions li { background: transparent; border-color: var(--line-dk); color: #fff; }

/* --- Quote --------------------------------------------------------------- */
.quote { border-left: 3px solid var(--brass); padding: 4px 0 4px 26px; margin: 0; max-width: 62ch; }
.quote p { font-family: var(--serif); font-size: clamp(1.18rem, 2.4vw, 1.5rem); line-height: 1.45; color: var(--ink); font-style: italic; }
.quote footer { font-size: .87rem; color: var(--muted); font-style: normal; }
.quote cite { font-style: normal; font-weight: 600; color: var(--ink); }
.section--ink .quote p { color: #fff; }
.section--ink .quote footer { color: var(--muted-dk); }
.section--ink .quote cite { color: #fff; }

/* --- Prose (blog + long copy) -------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.1em; }
.prose h3 { margin-top: 1.8em; font-size: 1.15rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1em; }
.prose li::marker { color: var(--brass); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--brass); margin: 1.8em 0; padding-left: 24px; color: var(--muted); font-style: italic; }

/* --- Page head ----------------------------------------------------------- */
.page-head { background: var(--ink); color: var(--muted-dk); padding-block: clamp(46px, 6.5vw, 76px); border-bottom: 3px solid var(--brass); }
.page-head h1 { color: var(--white); margin-bottom: .35em; }
.page-head .lede { color: var(--muted-dk); }
.crumbs { font-size: .82rem; color: var(--muted-dk); margin-bottom: 1.1rem; }
.crumbs a { color: var(--muted-dk); text-decoration: none; }
.crumbs a:hover { color: var(--brass-lt); text-decoration: underline; }
.crumbs span { opacity: .45; margin: 0 .45em; }

/* --- Blog list ----------------------------------------------------------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 30px 0; margin: 0; }
.post-list li:first-child { border-top: 1px solid var(--line); }
.post-meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-dk); font-weight: 600; margin-bottom: .7rem; display: flex; flex-wrap: wrap; gap: .5em .9em; }
.post-list h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: .4em; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--brass-dk); }
.post-list p { color: var(--muted); margin-bottom: .8em; }

/* --- Forms --------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.field .req { color: var(--brass-dk); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--text);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; width: 100%; transition: border-color .16s, box-shadow .16s;
}
.field textarea { min-height: 152px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(168, 129, 63, .14);
}
.field__hint { font-size: .82rem; color: var(--muted); }
.form__note { font-size: .84rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
@media (min-width: 640px) { .form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } }

/* Contact aside */
.contact-grid { display: grid; gap: var(--step); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.35fr .95fr; gap: 56px; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .c-label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list .c-value { display: block; margin-top: .3rem; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.02rem; word-break: break-word; }
.contact-list a.c-value:hover { color: var(--brass-dk); }

/* --- CTA band ------------------------------------------------------------ */
.cta-band { background: var(--ink-2); color: var(--muted-dk); border-top: 3px solid var(--brass); }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: var(--muted-dk); }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--muted-dk); font-size: .93rem; padding-block: 54px 34px; }
.site-footer a { color: var(--muted-dk); text-decoration: none; }
.site-footer a:hover { color: var(--brass-lt); text-decoration: underline; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; } }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__role { color: var(--brass-lt); }
.footer-about { margin-top: 1.1rem; max-width: 40ch; color: var(--muted-dk); }
.footer-h { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-lt); font-weight: 600; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .6em; }
.footer-bottom {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line-dk);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; color: var(--muted-dk);
}

/* --- Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 1.15em; }

/* --- Consistent left rail ------------------------------------------------
   Narrow content blocks align to the wide container's left gutter rather
   than centring themselves, so every section shares one left edge as the
   page scrolls. Declared last so they win over .prose's own max-width.     */
.wrap--narrow { max-width: var(--wrap); }
.wrap--narrow > * { max-width: 780px; }
.wrap--narrow.prose > * { max-width: 720px; }

/* --- Form validation states (server-rendered by contact/index.php) -------- */
.form-alert {
  border: 1px solid #C7443B; border-left-width: 3px;
  background: #FDF4F3; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 26px;
}
.form-alert p { margin: 0; font-size: .93rem; color: #7A2A24; }
.form-alert strong { color: #7A2A24; }
.field--error > input,
.field--error > select,
.field--error > textarea { border-color: #C7443B; background: #FFFCFC; }
.field--error > input:focus,
.field--error > select:focus,
.field--error > textarea:focus { border-color: #C7443B; box-shadow: 0 0 0 3px rgba(199, 68, 59, .15); }
.field__error { color: #A8332B; font-size: .84rem; font-weight: 500; margin: 0; }
