/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

/* style.css */

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

body {
    font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    line-height: 1.65;
    color: #222;
    background: mistyrose;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    border-bottom: 3px solid #8b0000;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: maroon;
    letter-spacing: -0.5px;
}

nav {
    margin-top: 1rem;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

nav a:hover,
nav a.active {
    color: #8b0000;
    border-bottom-color: #8b0000;
}

.intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 3rem;
    font-style: italic;
}

.index h2 {
    font-size: 1.3rem;
    margin: 2.5rem 0 1rem 0;
    color: #8b0000;
    font-weight: 600;
}

.index ul {
    list-style: none;
}

.index li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.index li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #8b0000;
}

.index a {
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
}

.index a:hover {
    color: #8b0000;
    border-bottom-color: #8b0000;
}

.meta {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-left: 0.5rem;
}

.placeholder {
    color: #999;
    font-style: italic;
}

article {
    margin-bottom: 3rem;
}

article header {
    border: none;
    margin-bottom: 2rem;
}

article h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

article .byline {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

article .publication {
    font-size: 0.85rem;
    color: #888;
}

article p {
    margin-bottom: 1.2rem;
    text-align: justify;
    hyphens: auto;
}

article em {
    font-style: italic;
}

article strong {
    font-weight: 600;
}

h1 {
text-align: center;
}

footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    nav {
        gap: 1rem;
    }
    
    article h1 {
        font-size: 1.5rem;
    }
}