:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #17191c;
  --muted: #667085;
  --line: #e3e7ec;
  --accent: #8c1d40;
  --accent-dark: #68132e;
  --accent-soft: #faf0f3;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header-inner,
.page-shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: var(--text);
  font-size: .95rem;
  font-weight: 780;
  text-decoration: none;
  letter-spacing: -.01em;
}

.brand span {
  color: var(--muted);
  font-weight: 600;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.top-nav a {
  color: #475467;
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
}

.top-nav a:hover { color: var(--accent); }

.intro {
  padding: 1.8rem 0 1.45rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr);
  gap: 2.2rem;
  align-items: end;
}

.eyebrow {
  margin: 0 0 .35rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: .5rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.intro-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: #475467;
  font-size: .98rem;
  line-height: 1.58;
}

.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .75fr);
  gap: 1.2rem 2rem;
  align-items: start;
}

.archive-note {
  justify-self: end;
  max-width: 300px;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfcfd);
  color: #475467;
}

.archive-note strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--text);
  font-size: .85rem;
}

.archive-note span {
  display: block;
  font-size: .8rem;
  line-height: 1.45;
}

.archive-content {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}

.archive-jumpbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .85rem 0 .25rem;
}

.archive-jumpbar a {
  display: inline-flex;
  align-items: center;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1;
}

.archive-jumpbar a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.archive-semester {
  display: grid;
  gap: .75rem;
  padding-top: .15rem;
}

.archive-semester h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.archive-talk {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.archive-main {
  display: grid;
  gap: .55rem;
  padding: 1rem 1rem .95rem;
}

.archive-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .75rem;
  min-width: 0;
}

.archive-date {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: .18rem .48rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.archive-title {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.archive-body {
  display: grid;
  gap: .45rem;
  min-width: 0;
}

.archive-meta {
  color: var(--muted);
  font-size: .77rem;
  line-height: 1.45;
}

.archive-summary {
  margin-bottom: 0;
  color: var(--text);
  font-size: .86rem;
  line-height: 1.55;
}

.archive-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .45rem;
  color: var(--accent);
  font-size: .82rem;
  line-height: 1.45;
  word-break: break-word;
}

.archive-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
}

.archive-links a:hover { text-decoration: underline; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-item {
  min-width: 0;
  padding: .62rem .7rem .65rem;
}

.meta-item + .meta-item { border-left: 1px solid var(--line); }

.meta-label {
  display: block;
  margin-bottom: .12rem;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.meta-item strong {
  display: block;
  font-size: .82rem;
  line-height: 1.35;
}

.meta-item span:not(.meta-label) {
  display: block;
  margin-top: .08rem;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

.schedule-section { padding: 1.6rem 0 3rem; }

.section-header-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: .8rem;
}

.section-label {
  margin: 0 0 .18rem;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.section-header-row > p {
  margin-bottom: .08rem;
  color: var(--muted);
  font-size: .82rem;
}

.schedule-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.session {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 68px;
  border-top: 1px solid var(--line);
}

.session:first-child { border-top: 0; }
.session:hover { background: #fbfcfd; }

.session time {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .04rem;
  padding: .6rem .35rem;
  border-right: 1px solid var(--line);
  background: #fafbfc;
  color: var(--muted);
  text-transform: uppercase;
}

.session time span {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .075em;
}

.session time strong {
  color: #344054;
  font-size: 1.02rem;
  letter-spacing: -.02em;
}

.session-main {
  display: grid;
  align-content: center;
  gap: .12rem;
  min-width: 0;
  padding: .72rem 1rem;
}

.session-title-row {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  min-width: 0;
}

.session h3 {
  margin-bottom: 0;
  font-size: .94rem;
  line-height: 1.32;
  letter-spacing: -.008em;
}

.session p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .8rem;
}

.status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.status-next { color: var(--accent); }
.status-complete { color: #5f7466; }

.session-current {
  position: relative;
  background: linear-gradient(90deg, var(--accent-soft), #fff 18%);
}

.session-current::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}

.session-current h3 { color: var(--accent-dark); }
.session-past { opacity: .66; }
.placeholder h3 { color: #7b8492; font-weight: 600; }
.placeholder p { color: #98a2b3; }
.no-session { background: #fafafa; }
.no-session h3 { color: #667085; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  color: var(--muted);
  font-size: .76rem;
}

.footer-inner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
}

@media (max-width: 760px) {
  .intro-grid { grid-template-columns: 1fr; gap: 1rem; align-items: start; }
  .archive-hero { grid-template-columns: 1fr; }
  .archive-note { justify-self: start; max-width: none; }
  .meta-grid { max-width: 520px; }
}

@media (max-width: 560px) {
  .site-header-inner { min-height: 52px; }
  .brand span { display: none; }
  .top-nav { gap: .7rem; }
  .top-nav a { font-size: .79rem; }
  .intro { padding: 1.35rem 0 1.15rem; }
  .archive-content { gap: .85rem; }
  .archive-main { padding: .9rem .85rem .85rem; }
  .archive-semester { gap: .6rem; }
  .meta-grid { grid-template-columns: 1fr; }
  .meta-item + .meta-item { border-left: 0; border-top: 1px solid var(--line); }
  .section-header-row { flex-direction: column; align-items: start; gap: .25rem; }
  .session { grid-template-columns: 64px minmax(0, 1fr); }
  .session-main { padding: .68rem .82rem; }
  .session-title-row { display: block; }
  .status { display: block; margin-bottom: .1rem; }
  .footer-inner { flex-direction: column; gap: .2rem; }
}
