/* ============================================================
   STEEN LAB — Premium Academic Theme
   Prestigious, elegant typography, simple sharp layouts.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  background-image: radial-gradient(rgba(148, 163, 184, 0.3) 1px, transparent 1px);
  background-size: 32px 32px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  color: var(--oxford);
  font-weight: 500;
  line-height: 1.25;
}

a {
  color: var(--academic-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* ---------- Tokens ---------- */
:root {
  --oxford: #0f172a;
  --oxford-light: #1e293b;
  --academic-blue: #0369a1;
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --border: #e2e8f0;
  --text-main: #334155;
  --text-muted: #64748b;
  --container: 1080px;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5%;
}

.section { padding: 90px 0; }
.bg-subtle { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--academic-blue);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--oxford);
}

.subsection-title {
  font-size: 1.8rem;
  color: var(--oxford);
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-solid {
  background: var(--academic-blue);
  color: #fff !important;
}

.btn-solid:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--oxford) !important;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--academic-blue);
  color: var(--academic-blue) !important;
}

/* ---------- Navbar ---------- */
#navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0 40px;
}

.nav-brand {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--oxford) !important;
  text-decoration: none !important;
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-main) !important;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--academic-blue) !important;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--oxford);
  margin-bottom: 5px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; padding: 10px; z-index: 10001; position: relative; }
  ul.nav-links { 
      display: none; 
  }
  ul.nav-links.show-mobile-nav {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #ffffff;
      padding: 24px;
      box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
      border-top: 1px solid var(--border);
      gap: 20px;
      z-index: 9999;
      align-items: center;
  }
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  /* Deep ocean sediment / marine environment representation */
  background-image: url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=2400&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
  color: #ffffff;
  padding: 160px 0 140px;
  text-align: center;
  border-bottom: 4px solid var(--academic-blue);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.95)); /* Oxford blue gradient for legibility */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.4rem, 5vw, 4rem);
  white-space: nowrap !important;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.hero-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.6;
}

.announcement-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 20px 30px;
  margin: 0 auto;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  text-align: center;
  max-width: 650px;
}

.announcement-box strong {
  color: #38bdf8;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Cards (Projects) ---------- */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.project-card {
  flex: 1 1 320px;
  max-width: 480px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
  text-decoration: none;
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.project-body {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--oxford);
  transition: color 0.2s ease;
}

.project-card:hover .project-title {
  color: var(--academic-blue);
}

.project-desc {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* ---------- Blog/Posts List ---------- */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.post-item:last-child { border-bottom: none; padding-bottom: 0; }

.post-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-title {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  color: var(--oxford);
  text-decoration: none;
  font-weight: 500;
}

.post-title:hover {
  color: var(--academic-blue);
  text-decoration: none;
}

.post-summary {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* ---------- People ---------- */
.people-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.person-card {
  flex: 1 1 300px;
  max-width: 450px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 6px;
}

.person-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.person-info {
  display: flex;
  flex-direction: column;
}

.person-name {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--oxford);
}

.person-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--academic-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.person-bio {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* ---------- Publications ---------- */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pub-item {
  display: block;
}

.pub-title {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--oxford);
  margin-bottom: 8px;
  display: block;
  line-height: 1.35;
}

.pub-authors {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.pub-journal {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pub-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: var(--bg-subtle);
  color: var(--oxford-blue);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pub-btn:hover {
  background: var(--oxford-blue);
  color: #fff;
  border-color: var(--oxford-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pub-btn-pdf {
  border-color: var(--oxford-light);
  background: #fff;
}

.pub-btn-cite {
  border-color: var(--border);
}

.pub-btn-source {
  border-color: var(--border);
}

.pub-btn-doi {
  border-color: var(--oxford-light);
  background: #f8fafc;
}

.pub-ghost-box {
  flex: 0 0 280px;
  width: 280px;
  height: 0;
}

@media (max-width: 768px) {
  .pub-ghost-box {
    display: none;
  }
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 350px 1fr;
    align-items: stretch;
  }
}

.contact-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}

.contact-header {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  color: var(--oxford);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.contact-block {
  margin-bottom: 20px;
}
.contact-block:last-child {
  margin-bottom: 0;
}

.contact-key {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.05rem;
  color: var(--oxford);
  line-height: 1.6;
}
.contact-value a {
  color: var(--academic-blue);
}

/* ---------- Footer ---------- */
footer {
  background: var(--oxford);
  color: rgba(255,255,255,0.7);
  padding: 60px 0;
  font-size: 0.95rem;
}

footer a { color: #ffffff; text-decoration: none; font-weight: 500;}
footer a:hover { color: #38bdf8; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
}

.footer-heading {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-info p { margin-bottom: 12px; line-height: 1.6;}

/* ---------- Article / Prose Typography ---------- */
.project-content h2 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  color: var(--oxford);
  margin-top: 48px;
  margin-bottom: 24px;
}

.project-content h3 {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  color: var(--oxford);
  margin-top: 36px;
  margin-bottom: 16px;
}

.project-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 24px;
}

.project-content ul, .project-content ol {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 24px;
  padding-left: 24px;
}

.project-content li {
  margin-bottom: 8px;
}

.project-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 32px 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.project-content a {
  color: var(--academic-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-content a:hover {
  color: #0c4a6e;
}

.project-content blockquote {
  border-left: 4px solid var(--academic-blue);
  padding-left: 20px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-muted);
}