/* Marshall Burke - Personal Website
   Clean, minimal design inspired by Matthew Gentzkow */

:root {
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #777;
  --link-color: #0066cc;
  --link-hover: #004499;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --border-color: #e0e0e0;
  --max-width: 800px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  padding: 0 1.5rem;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
}

/* Header / Navigation */
header {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.header-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  min-width: 200px;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  color: var(--link-color);
}

nav {
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  text-decoration: none;
}

/* Main content */
main {
  padding: 1rem 0 3rem;
}

/* Home page layout */
.home-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.home-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 600px) {
  .home-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-photo {
    max-width: 180px;
  }
}

.profile-photo {
  width: 100%;
  border-radius: 4px;
}

.home-content h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.home-content .title {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.home-content .title .university {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
}

.home-content p {
  margin-bottom: 1rem;
}

/* Quick links */
.quick-links {
  margin-top: auto;
}

.quick-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0;
}

.quick-links a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 0.85rem;
}

.quick-links a:hover {
  text-decoration: underline !important;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Typography */
h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
}

/* Publications / Research page */
.publications-list {
  list-style: none;
}

.publication {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
}

.publication:last-child {
  border-bottom: none;
}

.publication-title {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.publication-title a {
  color: var(--link-color);
}

.publication-authors {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.publication-venue {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.publication-links {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.publication-links a {
  margin-right: 0.75rem;
  color: var(--link-color);
}

/* Year headers in publications */
.year-section {
  margin-top: 2rem;
}

.year-section:first-child {
  margin-top: 0;
}

.year-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--border-color);
}

/* Bio page */
.bio-content {
  max-width: 700px;
}

.bio-content p {
  margin-bottom: 1.25rem;
}

/* Downloads section */
.downloads {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: 4px;
}

.downloads ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* External links section */
.external-links {
  margin-top: 2rem;
}

.external-links h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.external-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* Talks / Media */
.media-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

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

.media-item h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.media-item .venue {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Projects section */
.project-item {
  margin-bottom: 1.25rem;
}

.project-item h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.project-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Utility classes */
.text-muted {
  color: var(--text-muted);
}

.text-small {
  font-size: 0.9rem;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Responsive adjustments */
@media (max-width: 480px) {
  body {
    padding: 0 1rem;
  }

  header {
    padding: 1.5rem 0 1rem;
  }

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

  nav ul {
    gap: 0.25rem 1rem;
  }

  h1 {
    font-size: 1.35rem;
  }

  h2 {
    font-size: 1.1rem;
  }
}
