/* Layout modelled on Apple's 2011 "Remembering Steve Jobs" page:
   one white billboard with a hairline border, portrait + name + dates,
   and a single small line of text underneath. */
:root { --fg: #1d1d1f; --muted: #86868b; --line: #dedede; --link: #0066cc; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--fg);
  font: 17px/1.5 "Helvetica Neue", Helvetica, "Myriad Pro", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

#billboard { max-width: 980px; min-height: 560px; margin: 40px auto 0; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 56px; padding: 40px; text-align: left; }
#billboard .portrait { flex: none; width: 300px; height: auto; aspect-ratio: 3 / 4; background: #f2f2f2; filter: grayscale(1); object-fit: cover; }
#billboard h1 { margin: 0; font-weight: 200; font-size: 64px; line-height: 1.05; letter-spacing: -.01em; }
#billboard .dates { margin: .5em 0 0; font-weight: 200; font-size: 30px; color: var(--muted); }
p.text { margin: 30px auto 60px; max-width: 980px; padding: 0 16px; text-align: center; font-size: 14px; color: var(--muted); }

nav.top { display: flex; gap: 24px; max-width: 980px; margin: 0 auto; padding: 20px 16px; font-size: 14px; }
nav.top a { color: var(--muted); }
nav.top a[aria-current="page"] { color: var(--fg); }
.page { max-width: 640px; margin: 0 auto; padding: 4vh 16px 10vh; }
.page h1 { font-weight: 200; font-size: 48px; line-height: 1.1; margin: 0 0 .4em; }
.draft { color: var(--muted); font-style: italic; }

@media (max-width: 760px) {
  #billboard { flex-direction: column; min-height: 0; gap: 28px; margin-top: 0; border-left: 0; border-right: 0; text-align: center; }
  #billboard .portrait { width: 220px; }
  #billboard h1 { font-size: 40px; }
  #billboard .dates { font-size: 22px; }
}

.page h2 { font-weight: 300; font-size: 24px; margin: 2em 0 .4em; }
.page .when { color: var(--muted); font-size: 14px; letter-spacing: .04em; margin: 2em 0 -.6em; }
.page .sources { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.page.wide { max-width: 980px; }
.page.wide > p, .page.wide > h1, .page.wide > h2 { max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; margin-top: 1em; }
figure { margin: 0; }
figure img { width: 100%; height: auto; border: 1px solid var(--line); display: block; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.works { list-style: none; padding: 0; }
.works li { margin: 0 0 1.1em; }
.works span { color: var(--muted); font-size: 15px; }

/* Parampara home: the three teachers side by side. */
.lineage { max-width: 980px; margin: 40px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lineage a { display: block; border: 1px solid var(--line); padding: 28px 20px 24px; text-align: center; color: var(--fg); }
.lineage a:hover { text-decoration: none; border-color: var(--muted); }
.lineage img { width: 160px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #f2f2f2; filter: grayscale(1); }
.lineage h2 { margin: 18px 0 0; font-weight: 200; font-size: 26px; line-height: 1.15; }
.lineage .dates { margin: .3em 0 0; font-weight: 200; font-size: 18px; color: var(--muted); }
.home-title { max-width: 980px; margin: 56px auto 0; padding: 0 16px; text-align: center; }
.home-title h1 { margin: 0; font-weight: 200; font-size: 64px; line-height: 1.05; letter-spacing: -.01em; }
.home-title p { margin: .6em 0 0; font-weight: 200; font-size: 22px; color: var(--muted); }
@media (max-width: 760px) {
  .lineage { grid-template-columns: 1fr; }
  .home-title h1 { font-size: 40px; }
}

/* Single page: each teacher is one <section class="teacher"> with its Life, Works (and Archive) inside. */
html { scroll-behavior: smooth; }
nav.top.jump { justify-content: center; gap: 32px; padding: 28px 16px 0; font-size: 15px; flex-wrap: wrap; }
section.teacher { margin-top: 96px; scroll-margin-top: 16px; }
#billboard h2 { margin: 0; font-weight: 200; font-size: 64px; line-height: 1.05; letter-spacing: -.01em; }
.page h2.part { font-weight: 200; font-size: 40px; line-height: 1.1; margin: 0 0 .4em; }
.page h3 { font-weight: 300; font-size: 24px; margin: 2em 0 .4em; }
.page.wide > h3 { max-width: 640px; }
.page { padding-top: 6vh; padding-bottom: 2vh; }
@media (max-width: 760px) { #billboard h2 { font-size: 40px; } .page h2.part { font-size: 32px; } }

/* Accordion: the portrait stays visible, Life / Works / Archive fold under it. */
.blurb { max-width: 640px; margin: 22px auto 0; padding: 0 16px; text-align: center; font-size: 17px; color: var(--muted); }
details.fold { max-width: 640px; margin: 0 auto; border-bottom: 1px solid var(--line); }
details.fold:first-of-type { border-top: 1px solid var(--line); }
details.fold > summary { cursor: pointer; list-style: none; padding: 18px 16px; font-weight: 300; font-size: 22px; display: flex; justify-content: space-between; align-items: center; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; color: var(--muted); font-weight: 200; font-size: 28px; line-height: 1; }
details.fold[open] > summary::after { content: "–"; }
details.fold > summary:hover { color: var(--link); }
details.fold > .page { padding-top: 0; padding-bottom: 5vh; }
details.fold > .page.wide { max-width: 980px; }
section.teacher > details.fold:first-of-type { margin-top: 28px; }
