/* Load Lato (light/regular/bold) */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* Base */
:root {
  --bg: #ffffff;
  --text: #1b1b1b;
  --muted: #6b6b6b;
  --link: #0a5cff;
  --border: #eaeaea;
  --brand: #111111;
  --btn-bg: #111111;
  --btn-text: #ffffff;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;
  line-height: 1.6;
  font-size: 16px; /* smaller overall */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 900px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Header (brandless, minimalist) */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* nav only, right-aligned */
  height: 56px; /* slightly shorter */
}
.nav a {
  margin-left: 16px;
  color: var(--text);
}
.nav a:hover { color: var(--brand); }

/* Headings: same size as body, bold only */
h1, h2, h3, h4, h5, h6 {
  font: inherit;        /* same size as body */
  font-weight: 700;     /* bold only */
  margin: 0 0 8px 0;    /* tight spacing */
}

/* Hero / Home/Research/Teaching layout */
.hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 32px 0 20px;
}
.headshot {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.profile-meta { margin-top: 12px; }
.name {
  font-weight: 700;
  margin: 0 0 2px 0;
  line-height: 1.2;
}
.role {           /* full color (not muted) */
  font-size: 1em;
  color: var(--text);
  margin: 4px 0 0 0;
}
.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 700;
}
.icon { width: 16px; height: 16px; display: inline-block; }

.hero-text p { margin-top: 0; }
.contact-row { margin-top: 12px; }

/* Buttons (kept for general use; not used on minimalist teaching card) */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #00000010;
  transition: transform .02s ease-in-out, opacity .2s;
}
.btn:hover { opacity: .9; text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* Footer: small & quiet */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 8px 0;
}
.site-footer p {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Page shells */
.page { padding: 28px 0; }
.page .subtle { color: var(--muted); }

/* Minimal teaching list (no box, no button) */
.teach-list { margin: 0; padding: 0; }
.teach-item { margin: 8px 0 14px; }
.teach-item p { margin: 0; }

/* Tables (for course schedules) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 24px;
}
th, td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}
th { background: #fafafa; }


/* ---------- Gov20 layout ---------- */
.split {
  display: grid;
  grid-template-columns: 205px 1fr; /* compact but comfortable sidebar */
  gap: 24px;
}
@media (min-width: 1200px) {
  .split { grid-template-columns: 220px 1fr; }
}

/* Sidebar: compact, readable */
.sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 13.5px; /* up from tiny */
}
.sidebar h2 {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}
.weeklist {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  max-height: 60vh;   /* cap height; scroll inside if needed */
  overflow: auto;
  padding-right: 2px;
}
.weeklist li { margin: 2px 0; }
.weeklist a {
  display: block;
  padding: 4px 6px;   /* slightly larger hit area */
  line-height: 1.25;  /* less cramped */
  border-radius: 4px;
  color: var(--text);
  border: 1px solid transparent;
}
.weeklist a:hover { background: #f6f6f6; }

/* Content column */
.course { display: block; }

/* Week sections: bring back light boxes */
.week-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

/* Subtle focus when jumping via hash */
.week-section:target {
  border-color: #111;
  box-shadow: 0 0 0 3px #11111110, 0 1px 0 rgba(0,0,0,0.03);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .headshot { width: 160px; height: 160px; }
}
