/* ========================
   RESET & BASE
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  /* keeps it light */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========================
   HEADER & NAV
======================== */
header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* changed */
  gap: 22rem;
  /* added — controls space between name and nav */
  padding: 3.5rem 1.8rem 1rem 2rem;
  /* top right bottom left — increased top */
  background-color: #fff;
  border-bottom: 2px solid transparent;
  overflow: hidden;
  /* prevents search bar from spilling out */
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
}

.logo:hover {
  color: royalblue;
  /* or any color you want */
  transition: color 0.3s ease;

}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: 'Jost', sans-serif;
  text-decoration: none;
  color: #000;
  font-weight: 300;
  letter-spacing: 0.05em;
  /* subtle spacing elevates elegance */
  text-transform: lowercase;
}

nav a:hover {
  border-bottom: 1.5px solid red;
}

nav a.active {
  border-bottom: 1.5px solid red;
}

@media (max-width: 768px) {
  .header-right {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .header-right.open {
    display: flex;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* ========================
   SEARCH BAR
======================== */
.search-bar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 0.2rem 0.6rem;
  margin-left: auto;
  margin-right: 1rem;
  gap: 0.4rem;

}

.search-bar input {
  border: none;
  outline: none;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  background: transparent;
  color: #333;
  width: 80px;
}

.search-icon {
  color: #aaa;
  font-size: 0.8rem;
}

.search-bar:focus-within {
  border-bottom: 1px solid #000;
}

/* ========================
   MAIN
======================== */
main {
  padding: 2rem;
  flex: 1;
}

/* ========================
   FOOTER
======================== */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  border-top: 1px solid #eee;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 300;
  color: #888;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  text-decoration: none;
  color: #444;
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  color: #000;
  border-bottom: 0.5px solid red;
}

/* ========================
   HERO
======================== */
.hero {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 6rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-photo {
  width: 250px;
  height: 290px;
  object-fit: cover;
  object-position: 50% 5%;
  flex-shrink: 0;
  filter: brightness(0.92) saturate(0.9);


}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #888;
}

.hero-bio {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
  max-width: 480px;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 3rem;
}

/* ========================
   RESEARCH
======================== */
.research {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

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

.paper-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #aaa;
  margin-bottom: 0.75rem;
}

.paper-title {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  line-height: 1.5;
  color: black;
}

.paper-authors {
  font-size: 0.85rem;
  font-weight: 300;
  color: #888;
  margin-bottom: 1rem;
}

.paper-abstract {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
  max-width: 100%;
}

.paper-links {
  display: flex;
  gap: 1.5rem;
}

.paper-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #000;
  padding-bottom: 0.1rem;
}

.paper-links a:hover {
  color: #888;
  border-bottom-color: #888;
}

.blogs {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.blogs ul {
  margin-left: 3em;
}

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

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  gap: 1rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  flex: 1;
}

.post-toggle {
  font-size: 1.2rem;
  font-weight: 300;
  color: #aaa;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.post-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
  margin-top: 1.5rem;
  max-width: 768px;
  text-align: justify;

  ;
}

/* collapsed state */
.post.collapsed .post-body {
  display: none;
}

.post.expanded .post-toggle {
  transform: rotate(45deg);
  /* + becomes x when open */
}

.post.expanded .post-body {
  display: block;
}