/* Shared styles for David Perkinson's homepage */

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

body {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

a { color: #c0392b; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Hero (index page) */
.hero {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #3d566e 100%);
  color: #fff;
  padding: 50px 24px 44px;
  text-align: center;
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
  text-align: left;
}
.hero-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.hero .subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: #cfd8dc;
  margin-bottom: 4px;
}
.hero .contact {
  font-size: 0.9rem;
  color: #9eaeb8;
}
.hero .contact a {
  color: #b0c4ce;
}
.hero .contact a:hover {
  color: #fff;
}

/* Page header (subpages) */
.page-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #3d566e 100%);
  color: #fff;
  padding: 36px 24px 28px;
}
.page-header-inner {
  max-width: 860px;
  margin: 0 auto;
}
.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2px;
}
.page-header .breadcrumb {
  font-size: 0.9rem;
  color: #78909c;
}
.page-header .breadcrumb a {
  color: #90a4ae;
}
.page-header .breadcrumb a:hover {
  color: #fff;
}

/* Nav bar */
nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  flex-wrap: wrap;
}
nav a {
  color: #555;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 20px;
  transition: all 0.2s;
}
nav a:hover {
  background: #f0e6e4;
  color: #c0392b;
  text-decoration: none;
}
nav a.active {
  background: #f0e6e4;
  color: #c0392b;
}

/* Layout */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 48px 0;
}
section + section {
  border-top: 1px solid #eee;
}
section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #2c3e50;
}
section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: #2c3e50;
}
section p {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #555;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.card {
  background: #f8f6f3;
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #2c3e50;
}
.card p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}
.card a.card-link { font-size: 0.88rem; font-weight: 600; }

/* Tags */
.tag {
  display: inline-block;
  background: #e8e4df;
  color: #666;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  margin: 2px 4px 2px 0;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Notes grid */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.note-link {
  display: block;
  padding: 14px 18px;
  background: #fafaf8;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 0.92rem;
  color: #444;
  transition: all 0.15s;
}
.note-link:hover {
  border-color: #c0392b;
  color: #c0392b;
  text-decoration: none;
}

/* Publication list */
.pub-list { list-style: none; }
.pub-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
  color: #555;
}
.pub-list li:last-child { border-bottom: none; }
.pub-year {
  font-weight: 600;
  color: #999;
  min-width: 40px;
  font-size: 0.85rem;
  padding-top: 2px;
  flex-shrink: 0;
}
.pub-related {
  margin: 8px 0 0 0;
  padding-left: 20px;
  font-size: 0.88rem;
  color: #888;
  list-style: disc;
}
.pub-related li {
  padding: 2px 0;
  border: none;
  display: list-item;
}

/* Student list */
.student-list { list-style: none; }
.student-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  color: #555;
}
.student-list li:last-child { border-bottom: none; }
.student-year {
  display: inline-block;
  min-width: 40px;
  font-weight: 600;
  color: #999;
  font-size: 0.85rem;
  margin-right: 10px;
}
.student-related {
  margin: 6px 0 4px 50px;
  padding: 0;
  font-size: 0.88rem;
  color: #888;
  list-style: disc;
}
.student-related li {
  padding: 2px 0;
  border: none;
}

/* Presentation list */
.pres-list { list-style: none; }
.pres-list li {
  padding: 6px 0;
  font-size: 0.93rem;
  color: #555;
}

/* Music */
.music-section {
  margin-bottom: 36px;
}
.music-section h3 {
  margin-bottom: 14px;
}
.music-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.music-item {
  text-align: center;
}
.music-item img {
  height: 100px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.music-item figcaption {
  font-size: 0.85rem;
  color: #777;
}
.video-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.video-grid iframe {
  border-radius: 8px;
  max-width: 100%;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #78909c;
  text-align: center;
  padding: 30px 24px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: 1fr 1fr; }
  nav { gap: 4px; }
  nav a { padding: 6px 10px; font-size: 0.8rem; }
  .video-grid iframe { width: 100%; height: auto; aspect-ratio: 16/9; }
}
