/* Global resets and layout */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #334155;           /* blue grey text */
  background: #F3F4F7;      /* pale blue grey */
}

/* Links */

a {
  color: #3B82F6;           /* primary blue */
  text-decoration: none;
}

a:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

/* Containers */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and navigation */

.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #D0D7E2;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.brand {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1E3A8A;           /* deep blue */
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: #475569;
}

.nav-links a:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

/* Main content and footer */

.site-main {
  padding: 2.5rem 0 3.5rem;
}

.site-footer {
  border-top: 1px solid #D0D7E2;
  background: #FFFFFF;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #6B7280;
  text-align: center;
}

/* Typography */

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: #1E3A8A;
  margin-top: 0;
}

p {
  margin: 0.4rem 0 0.9rem;
}

/* Homepage hero */

.hero {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 40rem;
  color: #4B5563;
}

.hero-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-links a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #E0EDFF;
  color: #1D4ED8;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #BFDBFE;
}

.hero-links a:hover {
  background: #DBEAFE;
  text-decoration: none;
}

/* Hero with image */

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%; /* makes it circular */
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15); /* soft deep-blue shadow */
}

/* Responsive: stack photo below text on small screens */
@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }
}

/* Highlight cards on homepage */

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #FFFFFF;
  border-radius: 0.8rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid #D0D7E2;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.page {
  background: #FFFFFF;
  border: 1px solid #D0D7E2;
  border-radius: 0.8rem;
  padding: 1.6rem 1.7rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.page h1 {
  margin-top: 0;
}

/* Research page */

.research-intro {
  margin-bottom: 2rem;
}

.research-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.topic-card {
  background: #FFFFFF;
  border: 1px solid #D0D7E2;
  border-radius: 0.8rem;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.topic-card h2 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.topic-card h2 a {
  color: #1E3A8A;
}

.topic-links {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

/* Small warm archaeology accent, optional utility */

.accent-label {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #FFF7ED;
  color: #7C2D12;
  border: 1px solid #FED7AA;
  font-size: 0.75rem;
}

/* Generic lists for posts or items later */

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  padding: 1rem 0;
  border-bottom: 1px solid #E5E7EB;
}

.post-meta {
  font-size: 0.85rem;
  color: #6B7280;
}

/* Responsive tweaks */

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 1.7rem;
  }
}
/* Blog index extras */

.post-title {
  margin-bottom: 0.2rem;
}

.post-excerpt {
  margin-top: 0.6rem;
  color: #475569;
}

.tag-row {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #E0EDFF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 0.8rem;
}

.tag-pill:hover {
  background: #DBEAFE;
  text-decoration: none;
}

/* Back link */

.back-link {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Projects */

.projects-grid {
  display: grid;
  gap: 2.25rem;
}

.talk-section {
  margin-top: 2.2rem;
}

.talk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.talk-item {
  background: #FFFFFF;
  border: 1px solid #D0D7E2;
  border-radius: 0.8rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  margin-top: 1rem;
}

.talk-title {
  font-family: Georgia, "Times New Roman", serif;
  color: #1E3A8A;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.talk-meta {
  color: #6B7280;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.talk-type {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #E0EDFF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 0.8rem;
}

.talk-links {
  font-size: 0.9rem;
}

/* CV page */

.cv-intro {
  margin-bottom: 2rem;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cv-card {
  background: #FFFFFF;
  border: 1px solid #D0D7E2;
  border-radius: 0.8rem;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.cv-card h2 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  color: #1E3A8A;
  font-family: Georgia, "Times New Roman", serif;
}

.cv-desc {
  color: #475569;
  margin-top: 0.6rem;
}

.cv-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Simple button styles */

.btn {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: #E0EDFF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.btn:hover {
  background: #DBEAFE;
  text-decoration: none;
}

.btn-secondary {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #7C2D12;
}

.btn-secondary:hover {
  background: #FFEDD5;
}

/* Contact page */

.contact-intro {
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid #D0D7E2;
  border-radius: 0.8rem;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.contact-card h2 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  color: #1E3A8A;
  font-family: Georgia, "Times New Roman", serif;
}

.contact-value {
  color: #475569;
  margin-top: 0.6rem;
}

.contact-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-muted {
  color: #6B7280;
  font-size: 0.9rem;
}

.contact-footnote {
  margin-top: 2rem;
  color: #6B7280;
  font-size: 0.9rem;
}
