/* styles.css */

:root {
  --bg: #ffffff;
  --bg-muted: #f5f5f5;
  --border-subtle: #e0e0e0;
  --text-main: #222222;
  --text-muted: #666666;
  --accent: #333333;
  --radius-lg: 12px;
  --radius-sm: 6px;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* Header */

.page-header {
  padding: 24px 24px 20px;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.course-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.course-title {
  font-size: 1.8rem;
  margin: 0 0 4px;
}

.course-codes {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.course-meta {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.meta-label {
  font-weight: 600;
  color: var(--accent);
}

.course-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--border-subtle);
}

.course-meta a:hover {
  border-bottom-style: solid;
}

.construction-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border-subtle);
  padding-left: 10px;
  margin: 0;
}

/* Sections */

.section {
  margin-bottom: 28px;
}

.section h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.section p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.section ul {
  margin: 8px 0 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.section li {
  margin-bottom: 4px;
}

/* Links */

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Link colors (NYU-style violet tones) */
a:link {
  color: #8900e1;        /* unvisited link */
  border-bottom-color: rgba(137, 0, 225, 0.25);
}

a:visited {
  color: #57068c;        /* visited link */
  border-bottom-color: rgba(87, 6, 140, 0.25);
}

a:hover {
  color: #57068c;
  border-bottom-color: rgba(87, 6, 140, 0.45);
}

a:active {
  color: #57068c;
}

/* Schedule table */

.schedule-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg);
  box-shadow: var(--shadow-soft);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}

.schedule-table thead {
  background: var(--bg-muted);
}

.schedule-table th,
.schedule-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.schedule-table th {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.schedule-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.schedule-table tbody tr:hover {
  background: #f0f0f0;
}

.schedule-table td:first-child {
  white-space: nowrap;
  font-weight: 500;
}

.schedule-table td:last-child {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Footer */

.page-footer {
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

/* Responsive tweaks */

@media (max-width: 768px) {
  .page {
    padding: 20px 14px 32px;
  }

  .page-header {
    padding: 18px 18px 14px;
  }

  .course-title {
    font-size: 1.5rem;
  }

  .schedule-table {
    min-width: 520px;
  }
}

