/* Mohanty Lectureship — one stylesheet for the whole site.
   Look: warm paper, heartbeat bones, and from 2026-10-14 a lean toward VCU's maroon, gold and charcoal.
   See docs/superpowers/specs/2026-10-09-mohanty-lectureship-site-design.md */

:root {
  --paper: #f6f1e7;
  --paper-light: #fbf8f1;
  --rule: #d9cdb8;
  --ink: #2a2522;
  --ink-soft: #5a514a;
  --ink-faint: #8a7f72;
  --red: #5e0f25;          /* deep maroon: buttons, rules, the heartbeat */
  --red-deep: #4a0b1f;     /* the masthead band */
  --gold: #8f6512;         /* labels on paper: dark enough to read */
  --gold-light: #c9a24a;
  --gold-bright: #f0b323;  /* the bright accent: top ribbon, masthead rule, video frame */
  --gold-pale: #e8c56a;    /* italic line on the maroon band */
  --charcoal: #3a3a3a;     /* the footer band */
  --video-gold: #d9a441;
  --drawing-blue: #17384d; /* the video's own first-frame colour, so the frame never flashes */

  --serif-display: 'Playfair Display', Georgia, serif;
  --serif-body: 'Cormorant Garamond', Georgia, serif;
  --sans: Inter, Helvetica, Arial, sans-serif;

  --gutter: 36px;
  --measure: 60ch;
}

* { box-sizing: border-box; }

html { background: var(--paper); border-top: 3px solid var(--gold-bright); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.4;
}

.wrap { max-width: 1040px; margin: 0 auto; }

a { color: inherit; text-decoration: none; }

p { margin: 0; color: var(--ink-soft); }
p + p { margin-top: 0.9em; }

/* ----- small type ----- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid var(--red);
  white-space: nowrap;
}
.btn-fill { background: var(--red); color: var(--paper); }
.btn-line { background: transparent; color: var(--red); }

/* ----- header / menu -----
   The fund's name stands where a logo would, on two lines. The home page carries the
   name in the masthead band instead, so its header holds the menu alone. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  white-space: nowrap;
}
/* home only (2026-10-14, the owner): VCU's dark gray bar, the words in white, the Give
   button in gold, and a thin gold line under the bar to match the one above it. The bar
   and its line paint edge to edge with the same shadow + clip trick as the masthead. */
.site-header.home {
  position: relative;
  justify-content: flex-end;
  padding: 12px var(--gutter) 15px;
  background: var(--charcoal);
  box-shadow: 0 0 0 100vmax var(--charcoal);
  clip-path: inset(0 -100vmax);
  color: var(--paper);
}
.site-header.home .menu { color: var(--paper); }
.site-header.home .btn-line { color: var(--gold-bright); border-color: var(--gold-bright); }
.site-header.home::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold-bright);
  box-shadow: 0 0 0 100vmax var(--gold-bright);
  clip-path: inset(0 -100vmax);
}
.wordmark { display: grid; gap: 3px; line-height: 1.05; }
.wordmark-name {
  font-family: var(--serif-display);
  font-size: 19px;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--red);
}
.wordmark-sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.menu {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--ink);
}
.menu .current { color: var(--red); font-weight: 600; }
.menu .btn { font-size: 13px; }

/* ----- masthead band (home) -----
   Full width of the window, ivory words on deep maroon, the building video on the right.
   The band is inside .wrap; the shadow + clip trick paints it edge to edge. */
.masthead {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 36px;
  align-items: center;
  padding: 18px var(--gutter);
  background: var(--red-deep);
  box-shadow: 0 0 0 100vmax var(--red-deep);
  clip-path: inset(0 -100vmax);
  color: var(--paper);
}
.masthead-text { container-type: inline-size; }
.masthead-name {
  display: block;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(18px, 6.4cqi, 36px);
  line-height: 1.05;
  letter-spacing: .005em;
  white-space: nowrap;
  color: var(--paper);
  animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) .5s both;
}
.masthead-sub {
  margin: 8px 0 0;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: clamp(17px, 4.4cqi, 26px);
  line-height: 1.1;
  color: var(--gold-pale);
  animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) 1.3s both;
}
.masthead-rule {
  width: 56px;
  height: 2px;
  margin-top: 18px;
  background: var(--gold-bright);
  animation: draw 1.2s ease-out 2.2s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { width: 0; } to { width: 56px; } }

/* the building video: plays once, rests on the photo; a still stands in when motion is off.
   The film is 3:2; the box is 17:10 and keeps the top, so the cut lands just below the
   statue and the plaza drops out (the owner's ask, 2026-10-14). */
.reveal {
  position: relative;
  aspect-ratio: 17 / 10;
  overflow: hidden;
  background: var(--drawing-blue);
  border: 1px solid var(--gold-bright);
}
.reveal video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.reveal-still {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--photo) 50% 0 / cover no-repeat;
}

/* ----- hero (home): his name and portrait, the smaller size -----
   Sized so a laptop screen shows the heartbeat line and the "Where the gift goes" label
   without a scroll (the owner's ask, 2026-10-14). */
.hero {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 28px;
  align-items: center;
  padding: 16px var(--gutter) 2px;
}
.hero-title {
  margin: 12px 0 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.0;
  color: var(--ink);
}
.hero-line {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.35;
  max-width: 40ch;
  color: var(--ink-soft);
}
.hero-actions { margin-top: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 15px; font-style: italic; color: var(--ink-soft); }

/* ----- photo slots -----
   A photo drops in by file name. If the file is missing the gradient shows.
   Both layers fade to paper at the edge, so a photo looks "set into" the page. */
.portrait, .photo {
  background-image: var(--photo), radial-gradient(ellipse at 50% 38%, #8b7355 0%, #c9b595 48%, #f6f1e7 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse at 50% 45%, #000 58%, transparent 100%);
}
.portrait { aspect-ratio: 4 / 5; width: 100%; }
.photo { aspect-ratio: 1 / 1; width: 100%; }

/* ----- heartbeat divider ----- */
.heartbeat { display: block; width: 100%; height: 54px; margin: 0; }
.heartbeat path { stroke: var(--red); }

/* ----- sections ----- */
.section { padding: 28px var(--gutter); }
.section + .section { border-top: 1px solid var(--rule); }
.section-title {
  margin: 0 0 10px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  color: var(--ink);
}
.lead { font-size: 19px; max-width: var(--measure); }
.eyebrow + .section-title { margin-top: 8px; }

/* ----- cells (where the gift goes) ----- */
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cell {
  background: var(--paper-light);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--red);
  border-radius: 3px;
  padding: 18px;
}
.cell h3 {
  margin: 0 0 6px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
}
.cell p { font-size: 15px; }

/* ----- at a glance ----- */
.glance {
  background: var(--paper-light);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--red);
  border-radius: 3px;
  padding: 12px 18px;
  font-size: 15px;
}
.glance h3 { margin: 0 0 6px; font-family: var(--serif-display); font-weight: 400; font-size: 18px; }
.glance ul { margin: 0; padding: 0; list-style: none; }
.glance li { color: var(--ink); font-size: 14px; line-height: 1.25; margin-bottom: 4px; }
.glance li:last-child { margin-bottom: 0; }
/* the years (his) or the place (hers) under each post: a small gold line */
.glance .when {
  display: block;
  margin-top: 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ----- page head (life pages, lectureship) ----- */
.page-head { padding: 30px var(--gutter) 16px; }
.page-head.centred { text-align: center; }
.page-head.centred .portrait { width: 220px; margin: 0 auto 14px; }
/* portrait left, words right, nothing between the picture and the heart line (Laxmi's page) */
.page-head.side {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: center;
  padding: 16px var(--gutter) 0;
}
.page-head.side .page-title { margin-top: 8px; }
/* with the at-a-glance box as a third column, top right (both life pages, 2026-10-14) */
.page-head.side.glanced { grid-template-columns: 190px 1fr 340px; }
.page-head.side .glance { align-self: center; }
.page-title {
  margin: 10px 0 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  color: var(--ink);
}
.page-sub { margin-top: 8px; font-size: 19px; font-style: italic; color: var(--ink-soft); }
/* two italic lines under a title, stacked, both on the left (his note, 2026-10-14) */
.page-sub-row { display: grid; gap: 2px; }
.page-sub-right { white-space: nowrap; }
h1.eyebrow { margin: 0; font-weight: 400; }

/* ----- chapters (life pages) ----- */
.chapters { padding: 8px var(--gutter) 10px; }
.chapter {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.chapter.flip { grid-template-columns: 220px 1fr; }
.chapter.flip .chapter-text { order: 2; }
.chapter.flip .photo, .chapter.flip .glance { order: 1; }
.chapter:last-child { border-bottom: 0; }
.chapter-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.chapter-title {
  margin: 0 0 10px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  color: var(--ink);
}
.chapter-text p { max-width: var(--measure); }

/* ----- the two folds: fellowship awards, selected papers -----
   Charcoal bars with light type and a gold plus sign (his note, 2026-10-14). */
.fellowships { padding: 10px var(--gutter) 0; }
.papers { padding: 10px var(--gutter) 30px; }
.papers details, .fellowships details {
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-light);
}
.papers summary, .fellowships summary {
  cursor: pointer;
  padding: 14px 18px;
  font-family: var(--serif-display);
  font-size: 18px;
  background: var(--charcoal);
  color: var(--paper);
  list-style: none;
}
.papers summary::-webkit-details-marker, .fellowships summary::-webkit-details-marker { display: none; }
.papers summary::after, .fellowships summary::after { content: "+"; float: right; color: var(--gold-bright); }
.papers details[open] summary::after, .fellowships details[open] summary::after { content: "–"; }
.fold-intro { padding: 16px 18px 6px; font-size: 17px; color: var(--ink-soft); }
.papers ol { margin: 0; padding: 0 18px 16px 40px; font-size: 15px; color: var(--ink-soft); }
.fellowships ul { margin: 0; padding: 14px 18px 16px 18px; list-style: none; font-size: 15px; color: var(--ink-soft); }
.papers li, .fellowships li { margin-bottom: 8px; }

/* ----- placeholder blocks (words to come) ----- */
.placeholder-note {
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold-light);
  padding-left: 14px;
}

/* ----- why / in his words ----- */
.why { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; }
.his-words {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--gold-light);
  font-size: 19px;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
}
.his-words p + p { margin-top: .8em; }

/* ----- the film ----- */
.video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 16px;
  background: #000;
  border: 1px solid var(--rule);
}

/* ----- give band ----- */
.give-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--paper-light);
}
.give-band p { max-width: 56ch; }

/* ----- footer: a charcoal band, edge to edge ----- */
.site-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding: 18px var(--gutter);
  background: var(--charcoal);
  box-shadow: 0 0 0 100vmax var(--charcoal);
  clip-path: inset(0 -100vmax);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--rule);
}

/* ----- motion off: the photo stands still, the words are simply there ----- */
@media (prefers-reduced-motion: reduce) {
  .reveal video { display: none; }
  .reveal-still { display: block; }
  .masthead-name, .masthead-sub, .masthead-rule { animation: none; }
}

/* ----- phones ----- */
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .site-header { flex-wrap: wrap; white-space: normal; padding: 14px var(--gutter); }
  .menu { width: 100%; gap: 14px; font-size: 13px; flex-wrap: wrap; }
  .wordmark-name { font-size: 17px; }
  .site-header.home .menu { justify-content: flex-end; }
  .masthead { grid-template-columns: 1fr; gap: 20px; padding: 22px var(--gutter); }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .hero-title { font-size: 34px; }
  .hero-line { font-size: 18px; }
  .portrait { max-width: 200px; }
  .heartbeat { height: 28px; }
  .cells { grid-template-columns: 1fr; }
  .page-title { font-size: 32px; }
  .page-head.side, .page-head.side.glanced { grid-template-columns: 1fr; gap: 14px; }
  .page-head.side .portrait { max-width: 200px; }
  .page-head.side .glance { margin-bottom: 10px; }
  .chapter, .chapter.flip { grid-template-columns: 1fr; gap: 14px; }
  .chapter.flip .chapter-text { order: 1; }
  .chapter.flip .photo, .chapter.flip .glance { order: 2; }
  .photo { max-width: 320px; }
  .why { grid-template-columns: 1fr; }
  .why .portrait { max-width: 200px; }
  .give-band { grid-template-columns: 1fr; }
}
