/*
 * Evan Davis - Static Site
 * Based on the original WordPress theme
 */

@font-face {
    font-family: 'ChunkFiveRegular';
    src: url('../fonts/Chunkfive-webfont.woff') format('woff'),
         url('../fonts/Chunkfive-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body, div, dl, dt, dd, li, pre,
form, fieldset, input, textarea, p, blockquote, th, td, button { 
    margin: 0; 
    padding: 0; 
}

h1, h2, h3, h4, h5, h6 { 
    margin: 0; 
    padding: 0; 
    font-size: 100%; 
    font-weight: bold; 
}

ol, ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

img { 
    border: 0;
    max-width: 100%;
    height: auto;
}

a { 
    text-decoration: none; 
}

em { font-style: italic; }
strong { font-weight: bold; }

/* Layout */
html, body { 
    height: 100%; 
}

body {
    background: #f2f2f2;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #2D2D2D;
    line-height: 1.6;
}

#wrapper {
    min-height: calc(100vh - 65px);
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { 
    font-family: 'ChunkFiveRegular', Georgia, serif; 
    font-weight: normal; 
    color: #2D2D2D; 
}

h1 { 
    font-size: 28px; 
    margin-bottom: 25px; 
    text-transform: uppercase; 
}

h2 { 
    font-size: 24px; 
    margin-bottom: 14px; 
}

h3 { 
    font-size: 18px; 
    margin-bottom: 14px; 
    color: #666; 
}

p { 
    font-size: 18px; 
    margin-bottom: 20px; 
    line-height: 1.7; 
}

/* Links */
a { 
    color: #DF9E03; 
    text-decoration: none; 
    font-weight: bold; 
}

a:hover { 
    color: #FFD928; 
}

.gold { 
    color: #DFB00E; 
}

/* Header */
#header {
    height: 91px;
    line-height: 91px;
    background: #1a1a1a url('../images/header-bg.png');
    position: relative;
}

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

#logo img {
    height: 30px;
    width: auto;
}

#header-nav {
    display: flex;
}

#header-nav ul {
    display: flex;
    gap: 30px;
}

#header-nav li a {
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    color: #FFF;
    transition: color 0.2s;
}

#header-nav li a:hover {
    color: #DEDEDE;
}

#header-nav li.current a,
#header-nav li a.current {
    color: #FFD928;
}

#mobile-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

#mobile-nav {
    display: none;
    background: #1a1a1a;
}

#mobile-nav ul {
    padding: 20px;
}

#mobile-nav li {
    margin-bottom: 15px;
}

#mobile-nav a {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

/* Feature / Hero Section */
#feature-holder {
    background: url('../images/header-tile.jpg') repeat-x;
}

#feature {
    height: 320px;
    background: url('../images/bg-overlay.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
}

#feature-inner {
    padding-top: 40px;
}

#feature .headline {
    font-family: 'ChunkFiveRegular', Georgia, serif;
    font-size: 72px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#feature .headline .gold {
    color: #FFD200;
}

#feature .subheadline {
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px;
}

#mobile-headline {
    display: none;
}

/* Main Content */
#main {
    flex: 1;
    padding: 50px 0;
}

.content {
    max-width: 720px;
}

.content.full-width {
    max-width: 100%;
}

/* Footer */
#footer {
    height: 65px;
    line-height: 65px;
    background: #1a1a1a url('../images/footer-bg.png');
}

#footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#footer #credits a {
    font-size: 16px;
}

#footer-nav ul {
    display: flex;
    gap: 30px;
}

#footer-nav li a {
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    color: #FFF;
    transition: color 0.2s;
}

#footer-nav li a:hover {
    color: #DEDEDE;
}

#footer-nav li.current a {
    color: #FFD928;
}

/* Page-specific styles */

/* Biography Page */
.bio-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.bio-photos a {
    display: block;
}

.bio-photos img {
    width: 100%;
    height: auto;
    border: 3px solid #333;
}

.photo-credit {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

/* FAQ Page */
.faq-item {
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
}

.faq-item .faq-content {
    flex: 1;
}

.faq-item h3 {
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #2D2D2D;
    margin-bottom: 10px;
}

.faq-item h3 .number {
    color: #DFB00E;
    margin-right: 5px;
}

.faq-icon {
    width: 120px;
    flex-shrink: 0;
}

.faq-icon svg {
    width: 100%;
    height: auto;
    fill: #666;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-info a {
    font-weight: bold;
}

.contact-map {
    display: flex;
    align-items: flex-start;
}

.contact-map svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    fill: #ccc;
}

/* Post Truth Page */
.book-section {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 20px;
}

.book-cover img {
    width: 100%;
    max-width: 250px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.book-cover .placeholder {
    width: 200px;
    height: 300px;
    background: linear-gradient(135deg, #8B4513 0%, #654321 50%, #3d2817 100%);
    border: 3px solid #2a1a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 18px;
    color: #FFD200;
    text-align: center;
    padding: 20px;
    font-weight: bold;
}

.availability {
    font-style: italic;
    margin-bottom: 15px;
}

.book-subtitle {
    font-family: Georgia, serif;
    font-size: 24px;
    font-style: italic;
    color: #DFB00E;
    margin-bottom: 20px;
}

/* Video embed */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Dark section styling */
.dark-section {
    background: #1a1a1a;
    color: #ccc;
    padding: 50px 0;
    margin-top: 30px;
}

.dark-section h2 {
    color: #DFB00E;
}

.dark-section a {
    color: #DFB00E;
}

/* Projects page */
.projects-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.sidebar h3 {
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #DFB00E;
    font-size: 18px;
    margin-bottom: 15px;
}

.sidebar ul {
    margin-bottom: 30px;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: #333;
}

.sidebar a:hover {
    color: #DFB00E;
}

/* Responsive Design */
@media screen and (max-width: 960px) {
    #feature {
        background: #1a1a1a;
        height: auto;
        padding: 40px 0;
    }
    
    #feature .headline {
        font-size: 48px;
    }
    
    #mobile-headline {
        display: block;
    }
    
    #desktop-headline {
        display: none;
    }
    
    .book-section {
        grid-template-columns: 1fr;
    }
    
    .book-cover {
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .faq-item {
        flex-direction: column;
    }
    
    .faq-icon {
        width: 80px;
    }
}

@media screen and (max-width: 700px) {
    #header-nav ul {
        display: none;
    }
    
    #mobile-toggle {
        display: block;
    }
    
    #mobile-nav.active {
        display: block;
    }
    
    #footer-nav ul {
        display: none;
    }
    
    #feature .headline {
        font-size: 36px;
    }
    
    #feature .subheadline {
        font-size: 14px;
    }
    
    .projects-sidebar {
        grid-template-columns: 1fr;
    }
}
