@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #172b55;
  --muted: #7183a5;
  --line: #dfebff;
  --paper: #ffffff;
  --page: #f6faff;
  --soft: #edf5ff;
  --accent: #3978d4;
  --accent-dark: #2459a8;
  --accent-soft: #e5f1ff;
  --lavender: #f1eaff;
  --lavender-ink: #7955b5;
  --done: #27866d;
  --done-soft: #e3f6ef;
  --shadow: 0 8px 24px rgba(67, 111, 177, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 8% 0%, rgba(217,235,255,.65), transparent 30rem), var(--page);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.02em;
}
a { color: var(--accent-dark); text-underline-offset: .2em; transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid #f1bb66; outline-offset: 4px; border-radius: 6px; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 82% 12%, rgba(195,222,255,.55), transparent 15rem), linear-gradient(120deg,#f0f7ff 0%,#f9fcff 58%,#e8f4ff 100%);
  border-bottom: 1px solid #dceaff;
}
.site-header::before, .site-header::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.site-header::before { width: 230px; height: 230px; left: -145px; bottom: -150px; border: 1px solid rgba(116,169,237,.24); box-shadow: 0 0 0 24px rgba(116,169,237,.05), 0 0 0 48px rgba(116,169,237,.035); }
.site-header::after { width: 180px; height: 180px; right: -110px; top: -115px; background: rgba(255,255,255,.42); }
.header-layout { position: relative; z-index: 1; min-height: 280px; display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-block: 48px; }
.intro { max-width: 740px; }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; color: #172c56; font-size: clamp(2.5rem,5vw,3.8rem); font-weight: 850; line-height: 1.12; letter-spacing: -.055em; }
.affiliation { margin-bottom: 8px; color: #526b93; font-weight: 700; font-size: 1.02rem; }
.tagline { margin-bottom: 0; color: #435b81; font-size: 1.05rem; }
.github-link { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 19px; border: 1px solid #8bb7f2; border-radius: 999px; background: rgba(255,255,255,.86); box-shadow: 0 4px 12px rgba(55,111,190,.06); color: #214e91; font-weight: 800; text-decoration: none; white-space: nowrap; }
.github-link:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 8px 18px rgba(55,111,190,.12); }

main.container { padding-block: 28px 36px; }
.section { margin-bottom: 20px; padding: 28px; border: 1px solid rgba(218,233,255,.95); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.section:last-child { margin-bottom: 0; }
.section-heading { position: relative; margin-bottom: 22px; }
.section-heading h2 { margin-bottom: 5px; color: #172b55; font-size: clamp(1.55rem,3vw,1.9rem); font-weight: 800; line-height: 1.35; letter-spacing: -.045em; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .96rem; }
.section-heading .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.section-heading .eyebrow::before { content: ""; display: inline-block; width: 30px; height: 2px; border-radius: 2px; background: #b8d4ff; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
th, td { padding: 15px 17px; border-bottom: 1px solid #e8f0fc; vertical-align: top; }
th { background: #f0f6ff; color: #29446f; font-size: .9rem; font-weight: 800; white-space: nowrap; }
th:first-child { border-top-left-radius: 14px; }
th:last-child { border-top-right-radius: 14px; }
td { color: #2f4265; background: #fff; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8fbff; }
.tag { display: inline-flex; align-items: center; justify-content: center; padding: 4px 11px; border-radius: 999px; background: #e3f2ff; color: #2872bf; font-size: .8rem; font-weight: 800; white-space: nowrap; }
tbody tr:nth-child(2) .tag { background: var(--lavender); color: var(--lavender-ink); }
tbody tr:nth-child(4) .tag { background: var(--done-soft); color: var(--done); }
.note { display: flex; align-items: center; gap: 9px; margin: 13px 0 0; color: #8494b1; font-size: .86rem; }
.note::before { content: "▤"; color: #7c9ed5; font-size: 1rem; }

.course-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; margin: 0; padding: 0; list-style: none; }
.course-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 13px 16px; border: 1px solid #e1edff; border-radius: 14px; background: linear-gradient(110deg,#f8fbff,#f2f7ff); transition: transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease; }
.course-list li:hover { transform: translateY(-2px); border-color: #c3dcff; box-shadow: 0 6px 14px rgba(67,111,177,.08); }
.course-list li > span:first-child, .course-list li > a { min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.course-list li > a { text-decoration: none; }
.course-list li > a:hover { text-decoration: underline; }
.course-type { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; background: #edf0fb; color: #64729a; font-size: .77rem; font-weight: 800; }
.course-type.major { background: #e1f1ff; color: #2873bc; }
.course-type.liberal { background: #f1e8ff; color: #8057b8; }

.week-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.week-grid li { display: flex; min-width: 0; min-height: 100px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid #dfebff; border-radius: 14px; background: linear-gradient(145deg,#fff 15%,#f8fbff 100%); transition: transform 180ms ease,box-shadow 180ms ease,border-color 180ms ease; }
.week-grid li:hover { transform: translateY(-3px); border-color: #bdd7ff; box-shadow: 0 7px 15px rgba(67,111,177,.09); }
.week-number { color: #203d70; font-size: 1.05rem; font-weight: 850; line-height: 1; }
.week-status { display: inline-flex; align-items: center; width: fit-content; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; line-height: 1.35; }
.week-status.planned { background: #eef0fb; color: #68769d; }
.week-status.completed { background: var(--done-soft); color: var(--done); }
.week-grid a { font-weight: 750; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; padding-top: 13px; border-top: 1px dashed #e2ebf8; }
.legend .week-status { background: transparent; color: var(--muted); padding-left: 0; }
.legend .week-status::before { content: ""; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #a8b6d7; }
.legend .week-status.completed::before { background: #6fc5a8; }

.site-footer { border-top: 1px solid #dceaff; background: linear-gradient(100deg,#edf5ff,#f8fbff); }
.footer-layout { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; color: #7b91b7; font-size: .86rem; }
.footer-layout p { margin: 0; }
.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: 900px) {
  .week-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .header-layout { min-height: 250px; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px,1120px); }
  .header-layout { min-height: auto; align-items: flex-start; flex-direction: column; gap: 22px; padding-block: 38px; }
  .section { padding: 22px 18px; border-radius: 18px; }
  main.container { padding-block: 18px 24px; }
  .course-list { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .footer-layout { flex-direction: column; gap: 5px; }
  th, td { padding: 12px 13px; }
}
@media (max-width: 420px) {
  h1 { font-size: 2.5rem; overflow-wrap: anywhere; }
  .week-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .github-link { padding: 10px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.week-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 16px 8px;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.week-link:hover {
  transform: translateY(-4px);
  background-color: #eef5ff;
}

.week-link:focus-visible {
  outline: 2px solid #5279c7;
  outline-offset: 3px;
}


/* 모바일 반응형 설정 */
@media screen and (max-width: 600px) {
  body {
    padding: 12px;
    font-size: 14px;
  }

  main,
  section {
    max-width: 100%;
    min-width: 0;
  }

  table {
    width: 100%;
    table-layout: fixed;
    overflow-wrap: anywhere;
  }

  th,
  td {
    padding: 6px;
    font-size: 12px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  a {
    overflow-wrap: anywhere;
  }
}

.week-grid li {
  list-style: none;
}
