/* tbtrent.com – modern medical portfolio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --accent: #0d7377;
  --accent-light: #14b8a6;
  --accent-dark: #0a5c5f;
  --accent-bg: rgba(13, 115, 119, 0.06);
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --footer-bg: #0f172a;
  --footer-text: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

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

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Header / Nav ── */
.site-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.2s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.25s ease;
}

nav a:hover, nav a.current {
  color: var(--accent);
}

nav a:hover::after, nav a.current::after {
  width: 100%;
}

/* ── Main ── */
main {
  flex: 1;
  padding: 3rem 0 4rem;
}

/* ── Hero ── */
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  font-weight: 400;
}

/* ── Headings ── */
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

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

.section > hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1.75rem 0;
}

/* ── Publication cards ── */
.publication {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.publication:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.publication-title {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.publication-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.publication-meta a {
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.01em;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn.placeholder {
  background: var(--text-light);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn.placeholder:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* ── ORCID link ── */
.section > p > a[href*="orcid"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.section > p > a[href*="orcid"]:hover {
  background: rgba(13, 115, 119, 0.12);
}

/* ── Dr. Hoot card ── */
.dr-hoot-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1rem 0;
  max-width: 440px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.dr-hoot-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.dr-hoot-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--border-light);
  padding: 4px;
}

.dr-hoot-card a {
  font-weight: 600;
}

.dr-hoot-card p {
  line-height: 1.5;
}

/* ── Social footer (in-page) ── */
.social-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.social-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.social-footer a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-bg);
  text-decoration: none;
}

.social-footer img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ── PDF links (resources page) ── */
.pdf-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.625rem;
  margin: 1.25rem 0 0;
}

.pdf-links a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.pdf-links a:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.pdf-links a img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
}

.pdf-links a:hover img {
  opacity: 1;
}

/* ── Resume / CV page ── */
.cv-contact {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cv-section {
  margin-bottom: 2.5rem;
}

.cv-section h2 {
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.cv-item {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

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

.cv-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.cv-section > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-section > ul > li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  box-shadow: var(--shadow-sm);
}

.cv-section > ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
}

.cv-item ul {
  margin: 0;
  padding-left: 1.25rem;
}

.cv-item li {
  margin-bottom: 0.3rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* ── Page footer ── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 1.5rem 0;
  margin-top: auto;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--footer-text);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  main {
    padding: 2rem 0 3rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  nav ul {
    gap: 1.25rem;
  }

  .dr-hoot-card {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
  }

  .pdf-links {
    grid-template-columns: 1fr;
  }

  .publication {
    padding: 1.25rem;
  }

  .cv-item {
    padding: 1rem;
  }

  .social-footer {
    justify-content: center;
  }
}
