* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #EFE8B6;
    font-family: 'Inter', sans-serif;
    color: #333333;
    line-height: 1.6;
    padding: 0px 0px;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 3em;
    font-weight: 400;
    margin-top: 40px;
    margin-bottom: 0px;
    color: #222222;
}

.date-location {
    font-family: 'Instrument Serif', serif;
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 30px;
    color: #222222;
}

.intro {
    font-style: italic;
    margin-bottom: 30px;
    font-size: 1em;
}

p {
    margin-bottom: 20px;
    font-size: 1em;
}

.highlight {
    font-weight: 700;
    text-decoration: underline;
}

.divider {
    border: none;
    height: 1px;
    background-color: #AAAAAA;
    margin: 40px 0;
}

.schedule-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 20px;
    color: #222222;
}

.schedule-intro {
    margin-bottom: 20px;
}

.schedule-item {
    margin-bottom: 15px;
}

.schedule-date {
    font-weight: 700;
    margin-bottom: 5px;
}

.schedule-description {
    font-weight: 400;
}

.section-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 20px;
    color: #222222;
}

a {
    color: #2d5a2d;
    text-decoration: underline;
}

a:hover {
    color: #1e3e1e;
}

.footer-text {
    font-size: 0.9em;
    color: #666666;
    margin-top: 100px;
}

.sf-image {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    margin-top: 40px;
    margin-left: calc(-50vw + 50%);
    display: block;
}

.residents-intro {
    margin-bottom: 30px;
}

.resident {
    margin-bottom: 25px;
}

.resident-name {
    font-weight: 700;
    text-decoration: underline;
    margin-bottom: 8px;
}

.resident-description {
    font-weight: 400;
}

.people-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 250px;
    height: 250px;
}

.person-card img {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #dddddd00;
    transition: border-color 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.8);
}

.person-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.person-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.person-card:hover img {
    border-color: #2d5a2d;
}

.person-name {
    font-weight: 700;
    font-size: 0.95em;
    color: #000000;
}

.person-card a .person-name {
    color: #000000;
}

.person-card a:hover .person-name {
    color: #000000;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .people-grid {
        gap: 20px;
        justify-content: center;
    }
    
    .person-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
        width: calc(50% - 10px);
        height: auto;
    }
    
    .person-card img {
        width: 110px;
        height: 110px;
        margin-bottom: 10px;
        filter: brightness(0.8);
    }
    
    .person-name {
        font-size: 0.85em;
    }
}

.back-link {
    margin-bottom: 20px;
    margin-top: 80px;
}

/* Resident page headshot at top */
.resident-headshot {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 10px auto 0 auto;
    filter: brightness(0.8);
}

/* Center the resident name when it follows a headshot */
.resident-headshot + h1 {
    text-align: center;
}

.artifact-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    /* background-color: red; Debug background */
    padding: 0px; /* Debug padding */
}

.artifact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2d5a2d;
    color: white;
    text-decoration: none;
    padding: 20px 20px;
    border-radius: 25px;
    width: 275px;
    min-height: 80px;
    transition: background-color 0.3s ease;
    text-align: left;
    font-family: "Instrument Serif", serif;
}

.artifact-link:hover {
    background-color: #1e3e1e;
    color: white;
}

.artifact-link::after {
    content: "";
    background-image: url('arrow_right.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 10px;
}

/* SVG Filter for Torn Paper Effect */
.torn-card::before {
    filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='wavy2'%3E%3CfeTurbulence x='0' y='0' baseFrequency='0.02' numOctaves='5' seed='1'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='20' /%3E%3C/filter%3E%3C/svg%3E#wavy2");
}

/* Torn Paper Image Effects using SVG Turbulence */
.torn-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 40px 40px;
    gap: 30px;
}

.torn-card {
    position: relative;
    margin: 50px auto;
    display: block;
    width: fit-content;
    height: fit-content;
}

/* Rotation Classes for Torn Cards */
.torn-tilt-right {
    transform: rotate(2deg);
}

.torn-tilt-left {
    transform: rotate(-3deg);
}

.torn-tilt-subtle-right {
    transform: rotate(1deg);
}

.torn-tilt-subtle-left {
    transform: rotate(-1deg);
}

.torn-card .torn-image {
    position: relative;
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    z-index: 0;
}

.torn-card:before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border: 15px solid #f0f0e7;
    z-index: 2;
    pointer-events: none;
    box-shadow: 7px 7px 21px rgba(0,0,0,0.1), -7px -7px 21px rgba(255,255,255,0.3);
    background: transparent;
}


.torn-card .torn-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    color: #EFE8B6;
    line-height: 1.4;
    font-size: 16px;
    opacity: 0;
    transition-duration: 0.8s;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 0.5;
}

.torn-card:hover .torn-info {
    opacity: 1;
}

.torn-card .torn-info h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #EFE8B6;
}

/* Responsive torn images */
@media (max-width: 600px) {
    .torn-card .torn-image {
        max-width: 80vw;
        max-height: 80vw;
    }
    
    .torn-card {
        max-width: 80vw;
    }
}


