@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Mono:wght@300;400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --accent: #1a3a5c;
  --accent-warm: #8b4a2b;
  --accent-light: #e8eef4;
  --border: #e0ddd8;
  --border-light: #eeece8;
  --mono: 'DM Mono', monospace;
  --serif: 'Crimson Pro', Georgia, serif;
  --sans: 'Outfit', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── LAYOUT ── */
.site-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  background: var(--accent);
  color: #fff;
  padding: 2.5rem 1.8rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  overflow-y: auto;
}

.sidebar-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  letter-spacing: 0.01em;
}

.sidebar-title {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.4rem;
  line-height: 1.5;
}

.sidebar-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  object-fit: cover;
  object-position: center 15%;
  opacity: 0.92;
  border: 2px solid rgba(255,255,255,0.15);
}

.sidebar-photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: 2px dashed rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 1rem;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.7rem;
  border-radius: 3px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-left-color: rgba(255,255,255,0.6);
}

.sidebar-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.72rem;
  font-family: var(--mono);
  transition: color 0.2s;
  word-break: break-all;
}

.sidebar-links a:hover {
  color: rgba(255,255,255,0.9);
}

.sidebar-links .link-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  margin-top: 0.6rem;
  display: block;
}

/* ── MAIN CONTENT ── */
main {
  padding: 3.5rem 4rem;
  max-width: 860px;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ── SECTIONS ── */
.section {
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

/* ── NEWS ── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.news-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.4rem 0.8rem;
  border-bottom: 1px solid var(--border-light);
  border-left: 2px solid var(--accent-light);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.news-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── BIO ── */
.bio-text {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text);
  font-weight: 300;
}

.bio-text + .bio-text {
  margin-top: 1rem;
}

.bio-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.bio-link:hover {
  border-bottom-color: var(--accent);
}

/* ── BADGES ── */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.7rem;
  font-family: var(--mono);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(26,58,92,0.12);
}

/* ── STUDENTS ── */
.student-list {
  list-style: decimal;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.student-list li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

.student-list .student-name {
  font-weight: 500;
  color: var(--accent);
}

.student-list--former li {
  color: var(--text-muted);
}

.student-list--former .student-name {
  color: var(--text-muted);
  font-weight: 400;
}

.student-list-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.cosup {
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
}

/* ── CONTACT INFO ── */
.contact-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.2rem;
  align-items: baseline;
}

.contact-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.contact-value {
  font-size: 0.88rem;
  color: var(--text);
}

.contact-value a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-value a:hover {
  border-bottom-color: var(--accent);
}

/* ── FOOTER ── */
.institution-block {
  margin-bottom: 2rem;
}

.institution-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.institution-location {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text-light);
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

.course-group {
  margin-bottom: 0.8rem;
}

.course-group-label {
  font-size: 0.72rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.course-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.course-list li {
  font-size: 0.84rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
}

.course-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-light);
  font-size: 0.7rem;
}

/* ── SERVICE ── */
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-list li {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.6;
  padding-left: 1.2rem;
  position: relative;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  line-height: 1.8;
}

.service-list a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  font-family: var(--mono);
  font-size: 0.75rem;
  word-break: break-all;
}

.service-list a:hover {
  border-bottom-color: var(--accent);
}

/* ── EDITORIAL ── */
.editorial-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.editorial-list li {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.6;
  padding-left: 1.2rem;
  position: relative;
}

.editorial-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-warm);
  font-size: 0.7rem;
  line-height: 1.8;
}

/* ── FOOTER ── */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-light);
  font-family: var(--mono);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .sidebar-photo,
  .sidebar-photo-placeholder {
    width: 80px;
    aspect-ratio: 1;
  }

  .sidebar-links {
    margin-top: 0;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  main {
    padding: 2rem 1.5rem;
  }

  .news-item {
    grid-template-columns: 70px 1fr;
  }
}

/* ── MOBILE NAV ── */
@media (max-width: 600px) {
  .sidebar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
    gap: 1rem;
  }

  .sidebar-photo,
  .sidebar-photo-placeholder {
    width: 70px;
  }

  nav {
    flex-direction: column;
    width: 100%;
  }

  main {
    padding: 1.5rem 1rem;
  }
}
