:root {
  --bg: #f4f0e8;
  --bg-strong: #ece5d8;
  --paper: rgba(255, 252, 247, 0.82);
  --paper-strong: #fffdfa;
  --ink: #1c2730;
  --muted: #5d675f;
  --accent: #113f67;
  --accent-soft: #dde7f0;
  --line: rgba(28, 39, 48, 0.14);
  --shadow: 0 24px 60px rgba(17, 28, 38, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --content-width: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Libre Baskerville", Georgia,
    serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at top left, rgba(17, 63, 103, 0.09), transparent 28%),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 48%, #efe8db 100%);
  color: var(--ink);
  font-family: var(--sans);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  filter: blur(2px);
  background:
    url("../images/ai-systems-bg.svg") right -8rem top 5.5rem / min(78vw, 1080px) auto no-repeat;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(244, 240, 232, 0.78);
  border-bottom: 1px solid rgba(28, 39, 48, 0.08);
}

.site-header__inner,
.site-main,
.site-footer {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1rem 0;
}

.eyebrow {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-nav__link {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}

.site-nav__link--active,
.site-nav__link:hover {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(17, 63, 103, 0.12);
}

.site-main {
  padding: 3.2rem 0 4rem;
}

.page-reading-list .site-header__inner,
.page-reading-list .site-main,
.page-reading-list .site-footer {
  width: min(calc(100% - 2rem), 1520px);
}

.page-schedule .site-header__inner,
.page-schedule .site-main,
.page-schedule .site-footer {
  width: min(calc(100% - 2rem), 1520px);
}

.construction-note {
  margin-bottom: 1.35rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(17, 63, 103, 0.1);
  border: 1px solid rgba(17, 63, 103, 0.14);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.construction-note p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.hero,
.page-intro,
.feature-band,
.callout-card,
.text-card,
.track-card,
.resource-card,
.lecture-card,
.timeline-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero,
.page-intro,
.feature-band {
  border-radius: calc(var(--radius) + 4px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.95fr);
  gap: 2rem;
  padding: 2.4rem;
}

.hero h1,
.page-intro h1,
.callout-card h2,
.text-card h2,
.feature-band h2,
.resource-card h2,
.track-card h2,
.track-card h3,
.lecture-card h3,
.page-intro h2,
.format-card h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  max-width: 14ch;
}

.hero__lede,
.page-intro p,
.callout-card p,
.text-card p,
.feature-band p,
.resource-card p,
.track-card p,
.lecture-card p,
.timeline-list__item p,
.format-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero__rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-panel {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75));
  border: 1px solid rgba(17, 63, 103, 0.12);
}

.info-panel__label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.info-panel strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.16rem;
}

.info-panel strong a {
  color: inherit;
  text-decoration: none;
}

.info-panel strong a:hover {
  text-decoration: underline;
}

.info-panel p {
  margin: 0.45rem 0 0;
}

.info-panel__empty {
  min-height: 1.6rem;
}

.grid-section {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.4rem;
}

.grid-section--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-section--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.callout-card,
.text-card,
.track-card,
.resource-card,
.timeline-chip {
  border-radius: var(--radius);
  padding: 1.45rem;
}

.callout-card__date {
  margin: 0.35rem 0 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  padding: 1.8rem;
  margin-top: 1.5rem;
}

.feature-band__grid,
.timeline-preview__grid,
.resource-grid {
  display: grid;
  gap: 1rem;
}

.feature-band__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-preview {
  margin-top: 1.5rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.timeline-preview__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-chip {
  display: grid;
  gap: 0.35rem;
}

.timeline-chip span,
.timeline-list__date {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.page-intro {
  padding: 2rem 2.1rem;
}

.page-intro h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  margin-bottom: 0.6rem;
}

.about-course,
.course-format {
  margin-top: 1.5rem;
}

.about-course h2,
.course-format h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.about-course p:last-child {
  margin-bottom: 0;
}

.course-format h2 {
  margin-bottom: 1rem;
}

.resource-section {
  margin-top: 1.5rem;
}

.resource-section h2 {
  margin-bottom: 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.resource-section__grid {
  margin-top: 1.4rem;
}

.resource-detail-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.18;
}

.resource-list {
  margin: 0.9rem 0 0;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.7;
}

.resource-list li + li {
  margin-top: 0.7rem;
}

.schedule-table-shell {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.schedule-table-wrap {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: separate;
  border-spacing: 0;
}

.schedule-table th,
.schedule-table td {
  padding: 1rem 0.95rem;
  vertical-align: top;
  text-align: left;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schedule-table thead th {
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-table thead th:first-child {
  border-top-left-radius: 16px;
}

.schedule-table thead th:last-child {
  border-top-right-radius: 16px;
}

.schedule-table tr > *:last-child {
  border-right: 0;
}

.schedule-table tbody tr:last-child > * {
  border-bottom: 0;
}

.schedule-table__module {
  min-width: 210px;
  background: rgba(17, 63, 103, 0.08);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.35;
}

.schedule-table__paper-id {
  white-space: nowrap;
  font-weight: 600;
}

.schedule-table__title {
  min-width: 270px;
  font-weight: 600;
}

.schedule-table__agenda {
  min-width: 360px;
}

.schedule-table__agenda-title {
  font-weight: 600;
}

.schedule-table__agenda-subtitle {
  margin-top: 0.3rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

.schedule-table__agenda-link {
  margin-top: 0.28rem;
  font-weight: 400;
}

.schedule-table__placeholder {
  color: var(--muted);
  font-style: italic;
}

.schedule-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}

.schedule-details__body {
  margin-top: 0.8rem;
  color: var(--muted);
}

.schedule-details__body p {
  margin: 0 0 0.7rem;
}

.schedule-details__body ul {
  margin: 0;
  padding-left: 1.1rem;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.format-card {
  height: 100%;
  padding: 1.3rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76));
  border: 1px solid rgba(17, 63, 103, 0.12);
}

.format-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.format-card h3 a {
  color: inherit;
  text-decoration: none;
}

.format-card h3 a:hover {
  text-decoration: underline;
}

.module-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.4rem 0;
}

.module-strip__item {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(17, 63, 103, 0.08);
  border: 1px solid rgba(17, 63, 103, 0.12);
}

.module-strip__item span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.lecture-stack,
.timeline-list {
  display: grid;
  gap: 1rem;
}

.lecture-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 1.4rem;
  border-radius: 28px;
  padding: 1.45rem;
}

.lecture-card--next {
  border-color: rgba(17, 63, 103, 0.22);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(17, 63, 103, 0.08);
}

.lecture-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.topic-chip,
.status-pill {
  width: fit-content;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.topic-chip {
  background: rgba(17, 63, 103, 0.08);
  color: var(--accent);
}

.status-pill {
  background: #113f67;
  color: #fff;
}

.lecture-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.lecture-card__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.lecture-card__details dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lecture-card__details dd {
  margin: 0;
}

.paper-drawer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.paper-drawer summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}

.paper-drawer__body {
  margin-top: 0.85rem;
  color: var(--muted);
}

.paper-drawer__body ul {
  padding-left: 1.1rem;
}

.timeline-list__item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-list__item:first-child {
  padding-top: 0;
}

.timeline-list__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .hero,
  .feature-band,
  .lecture-card,
  .grid-section--two,
  .grid-section--three,
  .timeline-preview__grid,
  .resource-grid,
  .feature-band__grid,
  .module-strip,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .lecture-card__details {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .lecture-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding-top: 2rem;
  }

  .hero,
  .page-intro,
  .feature-band,
  .callout-card,
  .text-card,
  .track-card,
  .resource-card,
  .timeline-chip,
  .lecture-card {
    padding: 1.25rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}
