/* --- General Styles --- */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 40px;
    background-color: #fff;
    color: #333;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    margin-top: 0;
    margin-bottom: 1em;
}

h1, h2, h3, h4 {
    font-weight: bold;
}

h1 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 0.2em;
}

h2 {
    font-size: 1.3em;
    margin-top: 1.3em;
    margin-bottom: 0.2em;
}

.post-content h3 {
    font-size: 1.1em;
}

.post-content h4 {
    font-size: 1em;
}


/* --- Header & Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.main-nav {
    margin-bottom: 0;
}

.main-nav a {
    margin-left: 15px;
    font-size: 1.1em;
    color: #000;
}

.main-nav a.active {
    font-weight: bold;
}


/* --- About Page --- */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.text-content {
    flex-grow: 1;
}

.headshot {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    transform: translateX(35px) translateY(-20px);
}

.links a {
    margin-right: 10px;
    color: #000;
}

.paper {
    margin-bottom: 0.5em;
}

.paper a {
    font-style: italic;
    color: #000;
}


/* --- Blog List Page --- */
ul.posts {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

ul.posts li {
  margin-bottom: 1.5em;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.post-item a {
    font-style: italic;
    color: #000;
}

#tag-filter {
  text-align: left;
  margin-bottom: 20px;
}

.tag-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin: 0 10px 0 0;
  font-size: 1em;
  color: #333;
}

.tag-button.active {
  font-weight: bold;
}

.tag-button:hover {
  text-decoration: underline;
}


/* --- Single Blog Post --- */
.post-title {
    margin-top: 0;
}

.post {
    margin-top: 0;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    white-space: nowrap;
    font-size: 0.9em;
    color: #555;
}

.post-content {
    text-align: left;
}

.tags {
  margin-top: 20px;
}

.tag {
  display: inline-block;
  font-style: italic;
  margin-right: 5px;
  font-size: 0.9em;
}

/* --- Figures & Images --- */
figure {
  margin: 20px auto;
  text-align: center;
  max-width: 100%;
}

figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border: none;
}

.figure-50 img {
  width: 50%;
}

.figure-75 img {
  width: 75%;
}

.figure-100 img {
  width: 100%;
}

/* --- Mobile Styles --- */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    body {
        margin: 20px;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-wrapper.active .main-nav {
        display: flex;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-wrapper {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .nav-wrapper.active {
        display: block;
    }

    .main-nav a {
        margin: 0;
        padding: 15px;
        text-align: center;
    }

    .header-content {
        flex-direction: column-reverse;
        align-items: center;
        gap: 0;
    }

    .headshot {
        transform: none;
        margin-bottom: 20px;
    }
}