/* Parosh Aziz Abdulla — inner pages (students, service).
   Same palette and type as the front page, but these scroll normally:
   the lists are long and shouldn't be squeezed into one screen. */

:root {
  --green:      #17352c;
  --green-mid:  #2c5a4a;
  --sand:       #f1efe9;
  --paper:      #fbfaf7;
  --ink:        #14171a;
  --ink-soft:   #545a62;
  --ink-faint:  #868c95;
  --rule:       #e2e0da;
  --clay:       #c2603a;
}

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

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

.shell {
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- bars ---------- */

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.bar p { margin: 0; }
.bar-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: baseline; }

.wordmark {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.bar a { border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.bar a:hover { color: var(--green-mid); border-bottom-color: currentColor; }
.bar a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }

footer.bar { color: var(--ink-faint); margin-top: 1rem; padding-bottom: 3rem; }

/* ---------- page body ---------- */

main.sheet {
  background: var(--paper);
  border-radius: 4px;
  padding: clamp(2rem, 5vw, 4rem);
  margin-inline: auto;
  max-width: 60rem;
  width: calc(100% - 2 * clamp(1.25rem, 4vw, 2.5rem));
}

.page-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.page-head p.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1rem;
}

.page-head h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-head .lede {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34rem;
}

section.block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

section.block > h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--green);
  margin-bottom: 0.25rem;
}

/* ---------- people list ---------- */

.people { list-style: none; margin: 0; padding: 0; }

.people li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.people .name {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.3;
}

.people .when {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.people .note {
  flex-basis: 100%;
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- service list ---------- */

.service { list-style: none; margin: 0; padding: 0; }

.service li {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.service .year {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.service .venue { font-family: Newsreader, Georgia, serif; font-size: 1.15rem; }
.service .venue small { display: block; font-family: Inter, sans-serif; font-size: 0.88rem; color: var(--ink-soft); letter-spacing: 0; }

.service .role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-mid);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}
.service .role.chair { background: var(--green); border-color: var(--green); color: var(--paper); }

.empty {
  margin: 1rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--sand);
  border-left: 3px solid var(--clay);
  border-radius: 2px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green-mid);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.back:hover { color: var(--clay); }

@media (max-width: 40rem) {
  .service li { grid-template-columns: 1fr; }
  .service .role { justify-self: start; }
}

/* ---------- talks ---------- */

.talk { margin-top: 2rem; }
.talk:first-of-type { margin-top: 1.5rem; }

.talk-meta {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.35rem;
}

.talk h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 0.9rem;
  max-width: 38rem;
}

.frame {
  position: relative;
  max-width: 46rem;
  aspect-ratio: 16 / 9;
  background: var(--green);
  border-radius: 3px;
  overflow: hidden;
}

.frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.talk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.talk-links a {
  color: var(--green-mid);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.talk-links a:hover { color: var(--clay); border-bottom-color: currentColor; }

.empty code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.talk[id] { scroll-margin-top: 1.5rem; }

/* ---------- prose ---------- */

.prose {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
}

/* ---------- lecture list ---------- */

.lectures { list-style: none; margin: 0; padding: 0; }

.lectures li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--rule);
}

.lecture-no {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.lecture-topic {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.3;
}
.lecture-topic.wide { grid-column: 1 / 3; }

.lecture-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.lecture-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-mid);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  white-space: nowrap;
}
.lecture-links a:hover { background: var(--green); border-color: var(--green); color: var(--paper); }

/* ---------- topic tags ---------- */

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0 0;
  padding: 0;
}

.tags li {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--sand);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
}

@media (max-width: 44rem) {
  .lectures li { grid-template-columns: 1fr; }
  .lecture-topic.wide { grid-column: 1; }
  .lecture-links { justify-content: flex-start; }
}

.frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* ---------- tutorial file links ---------- */

.people .item-links {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
}

.people .item-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-mid);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  white-space: nowrap;
}
.people .item-links a:hover { background: var(--green); border-color: var(--green); color: var(--paper); }

/* ---------- list rows: name and date in separate columns ---------- */
/* A long name wraps inside its own column and never runs into the date. */

.people li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1.5rem;
}
.people .note, .people .item-links { grid-column: 1 / -1; }

/* ---------- phones ---------- */

@media (max-width: 44rem) {
  .lectures li { grid-template-columns: 5.2rem minmax(0, 1fr); gap: 0.3rem 1rem; padding-block: 0.65rem; }
  .lecture-topic:empty { display: none; }
  .lecture-links { grid-column: 2; }
  .lecture-topic.wide, .lecture-topic.wide + .lecture-links { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
  .service li { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.15rem 1rem; padding-block: 0.7rem; }
  .service .role { grid-column: 2; }
}

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .bar { gap: 0.4rem 1rem; }
  .bar-meta { gap: 0.3rem 0.8rem; font-size: 0.8rem; }
  main.sheet { padding: 1.75rem 1.25rem; }
  .page-head .lede { font-size: 1.1rem; }
  .people .name { font-size: 1.1rem; }
  .lecture-topic { font-size: 1.05rem; }
}
