/* ==========================================================================
   sushmitabanerjee.com
   One stylesheet. Order: tokens, reset, type, layout, components.

   The design is deliberately restrained: the photography carries the page,
   type does the rest. Hairlines instead of boxes, no drop shadows on
   content, one accent used sparingly.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  --ink:        #14110e;
  --ink-2:      #4a423a;   /* body copy */
  --ink-3:      #8a7f74;   /* labels, captions */
  --paper:      #fcfaf7;
  --paper-2:    #f4efe7;
  --rule:       #e6ded1;
  --rule-firm:  #cec2b0;
  --gold:       #9a6b25;

  --bg:      var(--paper);
  --bg-2:    var(--paper-2);
  --fg:      var(--ink);
  --fg-2:    var(--ink-2);
  --fg-3:    var(--ink-3);
  --rule-c:  var(--rule);
  --accent:  var(--gold);

  --display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --measure: 36rem;
  --wide: 76rem;
  --gutter: clamp(1.5rem, 6vw, 5rem);
  --step: clamp(4.5rem, 11vw, 9rem);   /* space between major sections */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #100d0b;
    --bg-2:   #171310;
    --fg:     #f4efe7;
    --fg-2:   #c3b8aa;
    --fg-3:   #8b8075;
    --rule-c: #2b241e;
    --accent: #c69a4a;
  }
}

/* ---------------------------------------------------------------- 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;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ----------------------------------------------------------- typography -- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 400; letter-spacing: -0.01em; }

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

/* The label above a section. Quiet, letterspaced, never gold. */
.label {
  font-family: var(--body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 1.75rem;
}

.lede {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--fg);
}

.prose { max-width: var(--measure); }
.prose p { color: var(--fg-2); }

/* --------------------------------------------------------------- layout -- */
.container {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 52rem; }

.section { padding-block: var(--step); }
main > .section:first-child { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.section--tint { background: var(--bg-2); }
.section--rule { border-top: 1px solid var(--rule-c); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--fg); color: var(--bg); padding: .85rem 1.4rem;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--rule-c);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 5.25rem;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.5rem; font-weight: 400; letter-spacing: .005em;
  color: var(--fg); text-decoration: none; line-height: 1.1;
}
.wordmark span {
  display: block;
  font-family: var(--body);
  font-size: .58rem; font-weight: 500; letter-spacing: .26em;
  text-transform: uppercase; color: var(--fg-3);
  margin-top: .45em;
}

.nav-toggle {
  display: none; appearance: none; background: none; border: 0;
  color: inherit; font: inherit; font-size: .7rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  padding: .5rem 0; cursor: pointer;
}

.nav__list {
  display: flex; flex-wrap: wrap; gap: .25rem 2rem;
  list-style: none; margin: 0; padding: 0;
  font-size: .78rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase;
}
.nav__list a {
  color: var(--fg-3); text-decoration: none;
  padding-block: .4rem; display: inline-block;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav__list a:hover { color: var(--fg); }
.nav__list a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }

/* transparent over a full-bleed hero, until the page scrolls */
.js .site-header[data-over-hero] {
  background: transparent; border-bottom-color: transparent;
  --fg: #fff; --fg-3: rgb(255 255 255 / 72%);
}
.js .site-header[data-over-hero] .wordmark,
.js .site-header[data-over-hero] .nav__list a:hover,
.js .site-header[data-over-hero] .nav-toggle { color: #fff; }
.js .site-header[data-over-hero] .nav__list a { color: rgb(255 255 255 / 78%); }

@media (max-width: 58rem) {
  .nav-toggle { display: block; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; }
  .nav__list {
    flex-direction: column; gap: 0;
    padding: .5rem 0 1.25rem; font-size: .95rem; letter-spacing: .06em;
  }
  .js .nav__list {
    background: var(--bg);
    border-bottom: 1px solid var(--rule-c);
    padding-inline: var(--gutter);
  }
  .js .site-header[data-over-hero] .nav__list { background: var(--ink); }
  .nav__list a { width: 100%; padding-block: .7rem; }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  min-height: min(86svh, 52rem);
  margin-top: -5.25rem;             /* sit under the sticky header */
  display: grid;
  isolation: isolate;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; display: grid; overflow: hidden; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(105deg, rgb(8 6 5 / 88%) 0%, rgb(8 6 5 / 66%) 32%,
                            rgb(8 6 5 / 20%) 62%, rgb(8 6 5 / 8%) 100%),
    linear-gradient(to top, rgb(8 6 5 / 70%) 0%, rgb(8 6 5 / 0%) 42%);
}
.hero__slide { grid-area: 1 / 1; opacity: 0; transition: opacity 1.1s ease; }
.hero__slide[data-active] { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 26%; }

.hero__inner {
  position: relative; z-index: 3;
  align-self: end;
  width: 100%;
  padding-block: clamp(3rem, 7vw, 6rem);
  color: #fff;
}
.hero__label { color: rgb(255 255 255 / 70%); margin-bottom: 1.25rem; }
.hero__title {
  color: #fff;
  font-size: clamp(3.25rem, 9vw, 7rem);
  font-weight: 300;
  line-height: .96;
  letter-spacing: -0.025em;
  margin-bottom: .3em;
}
.hero__lede {
  color: rgb(255 255 255 / 88%);
  max-width: 34rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  font-family: var(--display);
  font-weight: 300;
}

.hero__dots {
  position: absolute; z-index: 3; right: var(--gutter);
  bottom: clamp(1.5rem, 4vw, 2.75rem);
  display: flex; gap: .55rem;
}
.hero__dots button {
  appearance: none; width: 1.75rem; height: 2px; padding: 0; border: 0;
  background: rgb(255 255 255 / 35%); cursor: pointer;
  transition: background-color .25s ease;
}
.hero__dots button[aria-current="true"] { background: #fff; }

@media (max-width: 46rem) {
  .hero { min-height: min(80svh, 42rem); }
  .hero__dots { left: var(--gutter); right: auto; }
  /* portrait viewport: wash from the bottom rather than the side */
  .hero__media::after {
    background: linear-gradient(to top, rgb(8 6 5 / 90%) 0%, rgb(8 6 5 / 62%) 38%,
                                        rgb(8 6 5 / 22%) 70%, rgb(8 6 5 / 35%) 100%);
  }
  .hero__slide img { object-position: 58% 22%; }
}

/* -------------------------------------------------------------- buttons -- */
.btn-row { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.25rem; }

/* A link that reads as a line of type with a rule under it, not a box. */
.btn {
  display: inline-block;
  font-size: .74rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none;
  color: inherit;
  padding-bottom: .5rem;
  border-bottom: 1px solid currentColor;
  transition: opacity .2s ease;
}
.btn:hover { opacity: .6; color: inherit; }
.hero .btn { color: #fff; }

/* ---------------------------------------------------------- index tiles -- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none; margin: 0; padding: 0;
}
.tile { display: block; text-decoration: none; color: inherit; }
.tile__figure { margin: 0 0 1.25rem; overflow: hidden; background: var(--bg-2); }
.tile__figure img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
}
.tile:hover .tile__figure img { transform: scale(1.04); }
.tile h3 { margin-bottom: .35em; }
.tile p { font-size: .9rem; color: var(--fg-3); margin: 0; }

/* ------------------------------------------------------- year timelines -- */
.year {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0 clamp(1.5rem, 4vw, 4rem);
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule-c);
}
.year:first-child { border-top: 0; padding-top: 0; }

.year__label {
  font-family: var(--display);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 1.75rem; font-weight: 300; letter-spacing: 0;
  color: var(--fg-3);
  margin: 0; line-height: 1.3;
  position: sticky; top: 7rem; align-self: start;
}

.year__list { list-style: none; margin: 0; padding: 0; }
.year__list li {
  font-family: var(--display);
  font-size: 1.2rem; line-height: 1.5;
  color: var(--fg);
  max-width: 46rem;
  padding-block: .38rem;
}

@media (max-width: 44rem) {
  .year { grid-template-columns: 1fr; gap: .75rem; padding-block: 1.75rem; }
  .year__label { position: static; font-size: 1.4rem; }
  .year__list li { font-size: 1.08rem; }
}

/* --------------------------------------------------------------- quotes -- */
.pullquote { max-width: 46rem; margin: 0 auto; text-align: center; }
.pullquote p {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.32; letter-spacing: -0.015em;
  color: var(--fg); margin-bottom: 1.4rem;
}
.pullquote figcaption {
  font-size: .7rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--fg-3);
}

.quotes { display: grid; gap: 3rem; margin: 0; padding: 0; list-style: none; }
.quote { margin: 0; max-width: 44rem; }
.quote p {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.42; letter-spacing: -0.01em;
  color: var(--fg); margin-bottom: .8rem;
}
.quote figcaption {
  font-size: .7rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--fg-3);
}

/* ------------------------------------------------------------- listings -- */
.worklist { list-style: none; margin: 0; padding: 0; }
.worklist li {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: .35rem clamp(1.5rem, 4vw, 4rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule-c);
}
.worklist li:first-child { border-top: 0; padding-top: 0; }
.worklist strong {
  font-family: var(--display); font-size: 1.5rem; font-weight: 400;
  letter-spacing: -0.01em; color: var(--fg);
}
.worklist span { color: var(--fg-2); }
@media (max-width: 44rem) { .worklist li { grid-template-columns: 1fr; } }

.award-list { list-style: none; margin: 0; padding: 0; }
.award-list li {
  font-family: var(--display); font-size: 1.35rem; font-weight: 300;
  color: var(--fg);
  padding-block: 1.1rem; border-top: 1px solid var(--rule-c);
}
.award-list li:first-child { border-top: 0; padding-top: 0; }

/* --------------------------------------------------------------- split -- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.split__figure { margin: 0; position: sticky; top: 8rem; }
.split__figure img { width: 100%; height: auto; }
.split__figure figcaption {
  font-size: .72rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-3); margin-top: .9rem;
}
@media (max-width: 56rem) {
  .split { grid-template-columns: 1fr; }
  .split__figure { position: static; max-width: 26rem; }
}

/* -------------------------------------------------------------- gallery -- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 2.2vw, 2rem);
  list-style: none; margin: 0; padding: 0;
}
.gallery figure { margin: 0; }
.gallery button {
  appearance: none; border: 0; padding: 0; margin: 0; background: none;
  cursor: zoom-in; display: block; width: 100%; overflow: hidden;
  color: inherit; font: inherit; text-align: left;
}
.gallery img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 32%;
  background: var(--bg-2);
  transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
}
.gallery button:hover img { transform: scale(1.045); }
.gallery figcaption {
  font-size: .78rem; letter-spacing: .02em; color: var(--fg-3); margin-top: .8rem;
}

.lightbox {
  border: 0; padding: 0; max-width: min(94vw, 66rem); max-height: 94vh;
  background: transparent; color: #f4efe8; overflow: visible;
}
.lightbox::backdrop { background: rgb(8 6 5 / 92%); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; margin-top: 1rem;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
}
.lightbox__caption { color: rgb(255 255 255 / 72%); }
.lightbox__controls { display: flex; gap: 1.25rem; align-items: center; flex: none; }
.lightbox__count { color: rgb(255 255 255 / 55%); }
.lightbox__controls button {
  appearance: none; background: none; border: 0; color: #fff;
  font: inherit; font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .35rem 0; cursor: pointer;
  border-bottom: 1px solid rgb(255 255 255 / 35%);
}
.lightbox__controls button:hover { border-bottom-color: #fff; }

/* ---------------------------------------------------------------- media -- */
.embed {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--bg-2); overflow: hidden;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------------------------------------------------- contact -- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.detail-list { margin: 0; }
.detail-list dt {
  font-size: .68rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--fg-3);
  padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--rule-c);
}
.detail-list dt:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.detail-list dd {
  margin: .6rem 0 0;
  font-family: var(--display); font-size: 1.3rem; font-weight: 300;
  line-height: 1.5; color: var(--fg);
}

/* Phone numbers: one per line, lining figures of even width so the digit
   groups line up and scan, and a hairline rule instead of an underline
   cutting through the descenders. */
.detail-list .num {
  display: block;
  width: max-content;
  max-width: 100%;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: .015em;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-c);
  padding-bottom: .12em;
  transition: border-color .2s ease, color .2s ease;
}
.detail-list .num + .num { margin-top: .55rem; }
.detail-list .num:hover { color: var(--fg); border-bottom-color: currentColor; }

.detail-list dd > a { text-decoration-color: var(--rule-firm); }
address { font-style: normal; }

/* --------------------------------------------------------------- footer -- */
.site-footer {
  border-top: 1px solid var(--rule-c);
  padding-block: clamp(3.5rem, 7vw, 5rem) 3rem;
  font-size: .88rem; color: var(--fg-3);
}
.site-footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2.5rem;
}
.site-footer h2 {
  font-family: var(--body); font-size: .68rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 1.1rem;
}
.site-footer p, .site-footer li { color: var(--fg-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer__legal {
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--rule-c);
  font-size: .74rem; letter-spacing: .06em; color: var(--fg-3);
}

/* ----------------------------------------------------------------- util -- */
.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-l { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* text-only tiles (the teaching centres) sit on hairlines, no images */
.tiles--text li { border-top: 1px solid var(--rule-c); padding-top: 1.5rem; }
.tiles--text h3 { margin-bottom: .4em; }
.tiles--text p { font-size: .95rem; color: var(--fg-2); margin: 0; }

/* -------------------------------------------------------------- videos -- */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  list-style: none; margin: 0; padding: 0;
}
.videos h3 { margin: 1.25rem 0 .3em; }
.videos p { font-size: .95rem; color: var(--fg-3); margin: 0; max-width: 34rem; }
