:root {
  --blue-900: #1d355f;
  --blue-800: #28457a;
  --blue-700: #355a96;
  --blue-100: #eaf1fb;
  --blue-050: #f4f7fc;
  --ink: #182437;
  --muted: #5f6b7a;
  --line: #dce3ec;
  --white: #ffffff;
  --red: #b43b3b;
  --red-050: #fff5f5;
  --shadow: 0 14px 40px rgba(29, 53, 95, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--blue-050);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--blue-800);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-700);
}

a:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid #e6b84f;
  outline-offset: 3px;
}

.site-header {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: var(--white);
  padding: 2.5rem 1.25rem 2.75rem;
}

.site-header--home {
  padding-block: 4.5rem;
}

.site-header__inner {
  max-width: 900px;
  margin: 0 auto;
}

.site-header h1 {
  max-width: 760px;
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
}

.site-header--home h1 {
  font-size: clamp(2.35rem, 6vw, 4.35rem);
}

.site-header__subtitle {
  max-width: 690px;
  margin: 0;
  color: #e3ebf8;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.site-name {
  display: inline-block;
  margin-bottom: 1.55rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-name:hover {
  color: #dce8fa;
  text-decoration: underline;
}

.eyebrow {
  margin: 0;
  color: #c8d8ef;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--blue-700);
}

.year-nav {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.year-nav__inner {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.92rem;
}

.year-nav__inner a,
.year-nav__inner span {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  text-decoration: none;
}

.year-nav__inner span[aria-current="page"] {
  background: var(--blue-100);
  color: var(--blue-900);
  font-weight: 700;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2.25rem;
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.home-main {
  margin-top: -2rem;
  position: relative;
}

section {
  margin-bottom: 2.5rem;
}

section:last-child {
  margin-bottom: 0;
}

h2 {
  margin: 0 0 0.75rem;
  color: var(--blue-900);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.25;
}

.section-intro {
  max-width: 680px;
  margin-top: 0;
  color: var(--muted);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.year-card {
  display: flex;
  min-height: 190px;
  padding: 1.5rem;
  border: 1px solid #cdd9e9;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f1f6fd);
  color: var(--ink);
  flex-direction: column;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.year-card:hover {
  border-color: var(--blue-700);
  box-shadow: 0 12px 28px rgba(40, 69, 122, 0.12);
  color: var(--ink);
  transform: translateY(-2px);
}

.year-card__year {
  color: var(--blue-900);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.year-card__terms {
  margin-top: 0.4rem;
  color: var(--muted);
}

.year-card__action {
  margin-top: auto;
  padding-top: 1.4rem;
  color: var(--blue-800);
  font-weight: 700;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.info-panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}

.info-panel h2 {
  font-size: 1.2rem;
}

.info-panel p:last-child,
.organizer-list {
  margin-bottom: 0;
}

.organizer-list {
  padding-left: 1.25rem;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.schedule-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--white);
}

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

.schedule-table th:last-child,
.schedule-table td:last-child {
  border-right: 0;
}

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

.schedule-table thead th {
  background: #edf3fb;
  color: var(--blue-900);
}

.schedule-table thead th:first-child,
.schedule-table td:first-child {
  width: 18%;
  white-space: nowrap;
}

.schedule-table thead th:nth-child(2),
.schedule-table td:nth-child(2) {
  width: 31%;
}

.semester-row th {
  border-right: 0;
  background: var(--blue-900);
  color: var(--white);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.in-person-tag {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid #e4b8b8;
  border-radius: 4px;
  background: var(--red-050);
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 700;
}

.abstract {
  margin-top: 2.25rem;
  color: #465365;
  font-size: 0.94rem;
}

.abstract h3 {
  margin: 2.2rem 0 0.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--blue-900);
  font-size: 1.12rem;
  line-height: 1.4;
}

.abstract p {
  margin: 0.7rem 0;
}

footer {
  margin: 2rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

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

@media (max-width: 680px) {
  .site-header,
  .site-header--home {
    padding: 2.6rem 1rem;
  }

  .site-name {
    margin-bottom: 1.1rem;
  }

  .year-nav__inner {
    padding-inline: 0.75rem;
  }

  main {
    margin: 1rem 0.75rem;
    padding: 1.35rem;
    border-radius: 10px;
  }

  .home-main {
    margin-top: -1rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .year-card {
    transition: none;
  }
}
