/* Typography Styles
--------------------------------------------- */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* Base Typography */
body {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h5 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Paragraphs */
p {
    margin-top: 0;
    margin-bottom: 1.75rem;
    /* max-width: 70ch; */
}

/* Horizontal Rule */
hr {
    margin: 3rem 0;
    border: 0;
    height: 1px;
    background-color: #e5e5e5;
    clear: both;
}

/* Links */
a {
    color: #2a7d2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #216b24;
}

/* Text link underlines - only for content areas */
.entry-content a,
.widget-area .widget-content a,
.comment-content a,
.textwidget a {
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.entry-content a:hover,
.entry-content a:focus,
.widget-area .widget-content a:hover,
.widget-area .widget-content a:focus,
.comment-content a:hover,
.comment-content a:focus,
.textwidget a:hover,
.textwidget a:focus {
    border-bottom: 1px solid #216b24;
}

/* Lists */
ul, ol {
    margin-top: 0;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.75rem;
    /* max-width: 65ch; */
}

/* Nested lists */
ul ul, 
ol ol,
ul ol,
ol ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Definition lists */
dl {
    margin-bottom: 2rem;
}

dt {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

dd {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Blockquotes */
blockquote {
    margin: 2.5rem 0;
    padding: 2rem 2.5rem;
    border-left: 5px solid #2a7d2e;
    background-color: #f8f9fa;
    font-style: italic;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 0 5px 5px 0;
}

blockquote p {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    max-width: 100%;
}

blockquote cite {
    display: block;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 500;
    color: #666;
    margin-top: 1rem;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 3rem;
    color: rgba(42, 125, 46, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Code */
pre, code {
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 0.95em;
    background-color: #f5f5f5;
    border: 1px solid #e1e1e8;
    border-radius: 4px;
}

code {
    padding: 0.2rem 0.4rem;
    color: #c7254e;
}

pre {
    margin: 2rem 0;
    padding: 1.5rem;
    overflow: auto;
    max-width: 100%;
    line-height: 1.7;
}

pre code {
    padding: 0;
    color: inherit;
    border: none;
    background-color: transparent;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-capitalize {
    text-transform: capitalize;
}

.text-bold {
    font-weight: 700;
}

.text-italic {
    font-style: italic;
}

.text-muted {
    color: #6c757d;
}

.text-primary {
    color: #2a7d2e;
}

.text-white {
    color: #fff;
}

/* Text Size Utilities */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-md {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.25rem;
}

.text-xl {
    font-size: 1.5rem;
}

.text-2xl {
    font-size: 2rem;
}

.text-3xl {
    font-size: 2.5rem;
}

.text-4xl {
    font-size: 3rem;
}

/* Section Headings */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 700;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: #2a7d2e;
    margin-top: 1rem;
    border-radius: 2px;
}

.section-title.text-center:after {
    margin-left: auto;
    margin-right: auto;
}

/* Post Title */
.entry-title {
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.entry-title a {
    color: #111;
    text-decoration: none;
    border-bottom: none;
}

.entry-title a:hover {
    color: #2a7d2e;
    border-bottom: none;
}

/* Post Content */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content p:first-of-type {
    font-size: 1.15rem;
    line-height: 1.9;
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    margin-top: 2.5rem;
}

/* Post Meta */
.entry-meta {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.entry-meta a {
    color: #6c757d;
    border-bottom: none;
}

.entry-meta a:hover {
    color: #2a7d2e;
    border-bottom: 1px solid #2a7d2e;
}

/* Tables */
table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: left;
}

table caption {
    padding: 0.5rem;
    font-style: italic;
    caption-side: bottom;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

figure {
    margin: 2rem 0;
}

figcaption {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
    text-align: center;
}

/* Responsive Typography */
@media (max-width: 992px) {
    body {
        font-size: 17px;
    }
    
    h1, .entry-title {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    h4 {
        font-size: 1.35rem;
    }
    
    .entry-content {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1, .entry-title {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    blockquote {
        padding: 1.5rem 2rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 16px;
        line-height: 1.7;
    }
    
    h1, .entry-title {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    h4 {
        font-size: 1.15rem;
    }
    
    p {
        margin-bottom: 1.5rem;
    }
    
    ul, ol {
        padding-left: 1.5rem;
    }
}

/* Content Containers */
.single-post-content, 
.page-content {
    margin-bottom: 3rem;
}

.single-post-content .entry-content,
.page-content .entry-content {
    margin-top: 2rem;
}

/* Reading Experience */
@media (min-width: 768px) {
    .entry-content {
        padding: 0 1rem;
    }
    
    .entry-content p {
        font-size: 1.1rem;
        line-height: 1.85;
        margin-bottom: 2rem;
    }
    
    .entry-content blockquote {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* Lists in Content */
.entry-content ul,
.entry-content ol {
    margin-bottom: 2rem;
    padding-left: 2.5rem;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.8rem;
    position: relative;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ul ul {
    list-style-type: circle;
}

.entry-content ul ul ul {
    list-style-type: square;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content ol ol {
    list-style-type: lower-alpha;
}

.entry-content ol ol ol {
    list-style-type: lower-roman;
}

/* Tables in Content */
.entry-content table {
    border: 1px solid #dee2e6;
    margin-bottom: 2.5rem;
    width: 100%;
}

.entry-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #dee2e6;
}

.entry-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

.entry-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Code blocks in Content */
.entry-content pre {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 6px;
    overflow-x: auto;
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 0.95em;
    line-height: 1.7;
    border-left: 4px solid #2a7d2e;
}

/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 48%;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 576px) {
    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* Comments Section */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.comments-title {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.comment-list {
    padding-left: 0;
    list-style: none;
}

.comment-body {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.comment-metadata {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
}

/* Page Links (for paginated posts) */
.page-links {
    margin: 2rem 0;
    padding: 1rem 0;
    font-weight: 500;
}

.page-links .page-number {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0 0.25rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.page-links a .page-number {
    background-color: transparent;
}

.page-links a:hover .page-number {
    background-color: #e9ecef;
} 