/* --- Typography & Color Theme --- */
body {
    font-family: "Georgia", serif;
    background-color: #A4B494;
    margin: 0;
    color: #000000;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 700;
    color: #000000;
}

/* --- Navigation --- */
.navbar {
    background-color: #8275BD;
    overflow: hidden;
    border-bottom: 4px solid #63768D;
}

.navbar a {
    float: left;
    padding: 14px 22px;
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    font-family: "Merriweather", serif;
}

.navbar a:hover {
    background-color: #8F83C3;
}

.navbar a.active {
    background-color: #8F83C3;
}

/* --- Page Content Wrapper --- */
.page {
    padding: 30px;
    max-width: 850px;
    margin: auto;
    background: #E1CCDB;
    margin-top: 20px;
    margin-bottom: 40px;
    border-radius: 6px;
    border: 1px solid #63768D;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

/* --- Placeholder Photo Areas --- */
.photo-box {
    width: 100%;
    max-width: 500px;
    height: 250px;
    background: #E8D8E4;
    border: 3px dashed #63768D;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

/* --- Talk Formatting --- */
.talk-item {
    position: relative;
    padding-right: 150px; /* reserve space for link on desktop */
    margin-bottom: 1.2em;
}

.talk-item-text {
    tdisplay: block;
    text-indent: -1.5em; /* hanging indent */
    padding-left: 1.5em;
    line-height: 1.5;
}

.talk-right-link {
    position: absolute;
    right: 0;
    bottom: 0;
    white-space: nowrap;
    font-size: 0.9em;
    color: #1a73e8;
    text-decoration: none;
}
.talk-right-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .talk-item {
        display: block;    /* stack text and link */
    }
    .talk-item-text {
        text-indent: 0;    /* remove hanging indent on mobile */
        padding-left: 0;
    }
    .talk-right-link {
        display: inline-block;
        margin-top: 6px;
    }
}
