:root {
  color-scheme: light;
  --paper: #fffcf2;
  --line: #ccc5b9;
  --heading: #403d39;
  --text: #252422;
  --muted: #aaa49b;
  --accent: #eb5e28;
  --accent-soft: #fbe1d4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.container {
  width: min(calc(100% - 4rem), 65rem);
  margin: 0 auto;
}

.site-header {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

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

h1 {
  margin-bottom: 0;
  font-size: 2.25rem;
  line-height: 1.15;
}

h2 {
  margin-bottom: 0;
  color: var(--heading);
  font-size: 1.5rem;
  line-height: 1.2;
}

.identity {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.activity-badge {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  user-select: none;
  border-radius: 0.75rem;
  background: var(--accent);
  color: var(--paper);
  font-size: 1.4rem;
  font-weight: 700;
}

.identity-copy {
  flex: 1 1 20rem;
  min-width: 0;
}

.affiliation {
  margin: 0.25rem 0 0;
  color: var(--heading);
  font-size: 0.9375rem;
}

.introduction {
  margin: 0.375rem 0 0;
  color: var(--text);
  font-size: 1.125rem;
}

.github-link {
  align-self: flex-start;
  display: inline-block;
  flex: 0 0 auto;
  padding: 0.25rem 0;
  border-bottom: 2px solid var(--accent);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.github-link span {
  color: var(--accent);
}

.github-link:hover {
  color: var(--accent);
}

.content-section {
  margin: 4.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-number {
  margin-right: 0.35rem;
  color: var(--accent);
}

.section-heading h2 {
  margin: 0;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

table {
  width: 100%;
  min-width: 47.5rem;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--paper);
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

th,
td {
  padding: 1.125rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--heading);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 700;
}

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

th:nth-child(1),
td:nth-child(1) {
  width: 12%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 15%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 55%;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

th:nth-child(4),
td:nth-child(4) {
  width: 18%;
}

td:first-child {
  white-space: nowrap;
  color: var(--heading);
  font-weight: 700;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.chip {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  padding: 0 0.625rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.chip--category {
  border-color: #f4c4ae;
  background: #fff0e9;
  color: var(--accent);
}

.chip--role {
  border-color: var(--line);
  background: transparent;
  color: var(--heading);
}

.course-list,
.week-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.courses {
  padding: 32px;
}

.courses .section-heading {
  margin-bottom: 20px;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.course-item,
.week-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 0;
}

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

.course-item> :first-child {
  min-width: 0;
}

.course-group h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.course-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-item>span:first-child {
  color: var(--text);
  font-size: 1rem;
}

.course-item a {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline var(--accent) 2px;
  text-underline-offset: 4px;
}

.course-item a:hover {
  color: var(--accent);
}

.course-link-hint {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.week-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.weekly-practice-section {
  margin-bottom: 4.5rem;
}

.week-list li {
  min-height: 5.5rem;
  padding: 0;
}

.week-list li>a,
.week-list .is-planned,
.week-list .is-clossed {
  min-height: 5.5rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
}

.week-list a {
  display: flex;
  width: 100%;
  background: var(--heading);
  color: var(--paper);
  text-decoration: none;
}

.week-list a:hover {
  background: var(--accent);
}

.week-list .is-planned {
  display: flex;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.week-list .is-planned::after {
  content: "";
  display: block;
  width: 100%;
  height: 1.3rem;
  margin-top: 0.25rem;
}

.week-list .is-planned .week-label {
  color: var(--muted);
}

.week-list .is-clossed {
  display: flex;
  border: 1px solid var(--line);
  color: var(--heading);
}

.week-label {
  font-weight: 700;
}

.week-list small {
  font-size: 0.8125rem;
  font-weight: 400;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-footer {
  padding: 1.5rem 0;
  color: var(--heading);
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
}