﻿
/* 
 * Kalliste CSS - Main stylesheet for orlingrabbe.com
 * Base styles for typography, layout, and responsive design
 */

:root { 

 --color-bg: #fefdf9; 
 --color-bg-content: #FFFFFF; 
 --color-primary: #000066; 
 --color-secondary: #44570f; 
 --font-family-body: Georgia, "Times New Roman", Times, serif; 
 --article-width: 85%; 
} 
/* Reset */ 
* { 
 box-sizing: border-box; 
} 

body { 
 background-color: #fefdf9; 
 font-family: Georgia, "Times New Roman", Times, serif; 
 margin: 0; 
 padding: 0; 
} 

header { 
 background-color: #fefdf9; 
 text-align: left; 
} 
header img { 
 display: block; 
} 
.nav-shell {
	background-color: #2c3e50;
	height: 65px;
	position: relative;
}
/* Main container */ 
main { 
 width: 100%; 
 margin: 0; 
 padding: 0; 
} 

h1 { 
 color: #000066; 
 text-align: center; 
} 
h2 { 
 color: #44570f; 
 text-align: center; 
  
} 
h3 { 
 color: #44570f; 
 text-align: center; 
 margin: 1em 0; 
} 
/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Date paragraph styling */ 
body > p { 
 text-align: left; 
 margin: 10px; 
} 

.article { 
 width: 80%; 
 background-color: #FFFFFF; 
 margin-left: auto; 
 margin-right: auto; 
 padding: 10px; /* Add table cell padding for proper gutters */ 
 box-sizing: border-box; 
} 
/* Article content - semantic styling for article element */ 

.article-content { 
 text-align: justify; 
 padding: 1px; 
} 
.article-content p { 
 text-align: justify; 
 margin: 0 0 1em 0; 
} 
.article-content p:last-of-type { 
 margin-bottom: 0; 
} 
/* Quote attribution */ 
.quote-attribution { 
 text-align: center; 
 margin: 0 0 1em 0; 
 font-style: italic; 
} 
/* Horizontal rule */ 
hr { 
 border: none; 
 border-top: 1px solid #8c8c8c; /* WCAG SC 1.4.11: â‰¥3:1 non-text contrast on both #fff and #fefdf9 */ 
 margin: 1em 0; 
} 
/* Article note - for the address section */ 
.article-note { 
 margin: 1em 0; 
} 
.article-note p { 
 margin: 0 0 0.5em 0; 
} 

.article-footer { 
 text-align: center; 
} 
.article-source { 
 font-size: small; 
 text-align: center !important; 
 margin: 0; 
} 
/* Site footer - semantic footer styling */ 
footer { 
 text-align: center; 
 margin: 1em 0; 
} 
footer img { 
 display: inline-block; 
} 
/* Centered image styling */ 
.center-image { 
 text-align: center; 
 margin: 1em 0; 
} 
/* Links */ 
a { 
 color: #0000EE; 
 text-decoration: underline; 
} 
/* Responsive - maintains appearance on smaller screens */ 
@media (max-width: 768px) { 
 article { 
 width: 85%; 
 } 
 .article { 
 width: 85%; 
 } 
} 
@media (max-width: 480px) { 
 article { 
 width: 90%; 
 } 
 article p { 
 text-align: left; 
 } 
 .article { 
 width: 90%; 
 } 
 .article-content { 
 text-align: left; 
 } 
 .article-content p { 
 text-align: left; 
 } 
}

/* Navigation Styles */
.main-navigation {
    background-color: #2c3e50;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1000;
    width: auto;
    height: auto;
    min-height: 44px;
    min-width: 44px;
}

.hamburger-line {
    display: block;
    width: 30px;
    height: 4px;
    background-color: #ecf0f1;
    margin: 6px auto;
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
    position: relative;
}

.nav-toggle-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: block;
    white-space: nowrap;
    font-family: Verdana, sans-serif;
}

.nav-link:hover {
    background-color: #34495e;
    color: #fff;
}

.nav-link.active {
    background-color: #2c5aa0;
    color: #fff;
}

@media (max-width: 768px) {
    .main-navigation {
        padding: 1rem 0;
    }
    
    .nav-shell {
        height: 50px;
    }
    
    .nav-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 25px;
        transform: translateY(-50%);
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-menu-open {
        max-height: 400px;
    }
    
    .nav-item {
        border-bottom: 1px solid #34495e;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 1rem;
        border-radius: 0;
    }
    
    .nav-container {
        padding-right: 4rem; /* Make room for hamburger button */
    }
}

@media (max-width: 480px) {
    .nav-link {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }
}

