:root {
  --paper: #f7f5f0;
  --surface: #ffffff;
  --ink: #183247;
  --text: #24333d;
  --muted: #66747d;
  --accent: #b48725;
  --accent-soft: #f2e8cc;
  --blue-soft: #eaf0f4;
  --line: #d8d7d2;
  --shadow: 0 18px 45px rgba(24, 50, 71, 0.08);
  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(180, 135, 37, 0.10), transparent 32rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--paper) 100%);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration-color: rgba(180, 135, 37, 0.65);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0e5a7a;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(180, 135, 37, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  border-bottom: 1px solid rgba(24, 50, 71, 0.12);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.page-shell {
  width: min(calc(100% - 2.4rem), var(--max-width));
  margin-inline: auto;
}

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

.site-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--ink);
  font-family: Iowan Old Style, "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-name span {
  color: var(--muted);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  font-size: 0.91rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  padding: 5.5rem 0 3.4rem;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: Iowan Old Style, "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 650;
  line-height: 1.16;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5.35rem);
  letter-spacing: -0.042em;
}

.hero-copy {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.2rem);
}

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

.fact {
  min-height: 104px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(24, 50, 71, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.fact-label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fact-value {
  display: block;
  margin-top: 0.26rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.notice {
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(242, 232, 204, 0.68);
  color: #5c4a1e;
  border-radius: 0 10px 10px 0;
  font-size: 0.94rem;
}

.section {
  padding: 1.2rem 0 3.9rem;
  scroll-margin-top: 90px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  letter-spacing: -0.025em;
}

.section-meta {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  text-align: right;
}

.term-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.term-nav a {
  display: inline-block;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(24, 50, 71, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.term-nav a:hover {
  border-color: rgba(180, 135, 37, 0.55);
  background: var(--accent-soft);
}

.schedule-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.schedule-card {
  overflow: hidden;
  border: 1px solid rgba(24, 50, 71, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.schedule-table col.date {
  width: 14%;
}

.schedule-table col.speaker {
  width: 27%;
}

.schedule-table col.title {
  width: 43%;
}

.schedule-table col.host {
  width: 16%;
}

.schedule-table th {
  padding: 0.92rem 1rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.schedule-table td {
  padding: 1rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.schedule-table tbody tr:first-child td {
  border-top: 0;
}

.schedule-table tbody tr:hover:not(.break-row) {
  background: #fcfbf7;
}

.date-cell {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.date-cell time {
  display: block;
}

.date-note {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 600;
  white-space: normal;
}

.speaker-name {
  color: var(--ink);
  font-weight: 800;
}

.affiliation {
  display: block;
  margin-top: 0.13rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.talk-title {
  color: var(--text);
  font-family: Iowan Old Style, "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.42;
}

.host-cell {
  color: var(--muted);
  font-size: 0.91rem;
}

.status {
  display: inline-block;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #385267;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scheduled-row {
  box-shadow: inset 5px 0 0 var(--accent);
}

.scheduled-row .status {
  background: var(--accent-soft);
  color: #6c5217;
}

.break-row td {
  background: #f1efe9;
  color: #6b675e;
}

.break-row .date-cell,
.break-row .speaker-name {
  color: #58544c;
}

.term-block + .term-block {
  margin-top: 3.2rem;
}

.term-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin: 0 0 0.8rem;
}

.term-heading h3 {
  margin: 0;
  font-size: 1.55rem;
}

.term-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.4rem;
}

.info-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(24, 50, 71, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
}

.info-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
}

.info-card p {
  margin: 0.55rem 0 0;
}

.archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.archive-links a {
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(24, 50, 71, 0.15);
  border-radius: 9px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid rgba(24, 50, 71, 0.12);
}

.footer-inner {
  width: min(calc(100% - 2.4rem), var(--max-width));
  margin-inline: auto;
  padding: 1.6rem 0 2.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 820px) {
  .header-inner {
    min-height: auto;
    padding: 0.85rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 3.6rem;
  }

  .fact-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .section-header,
  .term-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-meta,
  .term-heading p {
    text-align: left;
  }

  .schedule-card {
    border-radius: 14px;
  }

  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .schedule-table tr {
    padding: 1rem 1rem 0.75rem;
    border-top: 1px solid var(--line);
  }

  .schedule-table tbody tr:first-child {
    border-top: 0;
  }

  .schedule-table td {
    display: grid;
    grid-template-columns: 6.8rem minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.27rem 0;
    border: 0;
  }

  .schedule-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .scheduled-row {
    box-shadow: inset 5px 0 0 var(--accent);
  }

  .break-row td {
    background: transparent;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(calc(100% - 1.35rem), var(--max-width));
  }

  .site-nav {
    gap: 0.25rem 0.75rem;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.6rem);
  }

  .schedule-table td {
    grid-template-columns: 1fr;
    gap: 0.05rem;
  }

  .schedule-table td::before {
    margin-top: 0.38rem;
  }

  .schedule-table td:first-child::before {
    margin-top: 0;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .term-nav,
  .notice,
  .site-footer {
    display: none;
  }

  .hero {
    padding: 0 0 1.2rem;
  }

  h1 {
    font-size: 28pt;
  }

  .fact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact,
  .schedule-card,
  .info-card {
    box-shadow: none;
    background: #fff;
  }

  .section {
    padding-bottom: 1.6rem;
  }

  .schedule-table th {
    background: #eee;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
