/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Montserrat:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

/* Dune Rise Font */
@font-face {
    font-family: 'Dune Rise';
    src: url('../fonts/Dune_Rise.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    line-height: 1.5;
    color: rgba(33, 33, 33, 1);
    background: #fff;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    background: #0055a2;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.site-title:hover {
    color: #fff;
    opacity: 0.8;
}

/* Navigation */
nav {
    background: transparent;
    padding: 0;
    margin: 0;
}

nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    padding: 8px 0;
    transition: opacity 0.3s;
}

nav a:hover {
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
}

/* Font Toggle Button */
.font-toggle-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    background: #fff;
    color: #0055a2;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-left: 15px;
}

.font-toggle-btn:hover {
    background: #e0e0e0;
}

.font-toggle-btn:active {
    transform: scale(0.95);
}

/* Awesome Font Mode */
body.awesome-font {
    font-family: 'Dune Rise', sans-serif;
    font-size: 0.45em;
}

body.awesome-font h1,
body.awesome-font h2,
body.awesome-font h3,
body.awesome-font h4,
body.awesome-font .site-title,
body.awesome-font nav a,
body.awesome-font .font-toggle-btn {
    font-family: 'Dune Rise', sans-serif;
}

body.awesome-font p,
body.awesome-font li {
    font-size: 0.8rem;
}

body.awesome-font #rss-container,
body.awesome-font #rss-container p,
body.awesome-font #rss-container li {
    font-size: 0.6rem;
}

/* Hero Section */
.hero {
    text-align: center;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #0055a2;
}

.hero .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
}

/* Main Content */
main {
    padding: 60px 0;
}

.content-section {
    margin-bottom: 50px;
}

/* Typography */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #0055a2;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 4px solid #007bbf;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #0055a2;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #007bbf;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-top: 30px;
    margin-bottom: 12px;
}

h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin-top: 25px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 18px;
    font-size: 1.3rem;
}

/* Links */
a {
    color: #007bbf;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #005a8c;
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin: 0 0 20px 25px;
}

li {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

.headshot {
    float: left;
    margin: 0 30px 20px 0;
    max-width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.team-photo {
    max-width: 100%;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.member-photo {
    width: 130px;
    height: auto;
    float: left;
    margin: 0 20px 15px 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Team and Member Cards */
.team {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bbf;
}

.member {
    overflow: hidden;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 3px solid #007bbf;
}

/* Horizontal Rules */
hr {
    border: none;
    height: 3px;
    background: #007bbf;
    margin: 30px 0;
}

/* Contact Info Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.contact-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bbf;
}

.contact-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #007bbf;
}

/* Strikethrough for deprecated content */
s {
    color: #999;
}

/* Footer */
footer {
    background: #f8f9fa;
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    border-top: 4px solid #007bbf;
}

footer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Intro Section with Image */
.intro {
    overflow: hidden;
    margin-bottom: 40px;
}

/* Mastodon Feed Box */
#rss-container {
    float: right;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    margin: 0 0 20px 20px;
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-left: 4px solid #0055a2;
    border-radius: 4px;
    font-size: 0.9rem;
}

#rss-container:empty {
    display: none;
}

#rss-container article {
    margin-bottom: 10px;
}

#rss-container hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

#rss-container a {
    color: #0055a2;
}

#rss-container p,
#rss-container li {
    font-size: 0.9rem;
}

/* Page Title for Sub-pages */
.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0055a2;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid #007bbf;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header .container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        padding-top: 15px;
    }

    nav.active {
        display: block;
    }

    nav a {
        display: block;
        margin: 10px 0;
        margin-left: 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .subtitle {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .headshot, .member-photo {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    #rss-container {
        float: none;
        width: 100%;
        max-height: 300px;
        margin: 0 0 20px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    main {
        padding: 40px 0;
    }
}
