/*
Theme Name: Theme 4 - Typewriter Style
Theme URI: https://vs3.net
Author: Pau Inocencio
Author URI: https://vs3.net
Description: A minimal WordPress theme with typewriter-style typography-focused design with maximum simplicity.
Tags: blog, minimal, clean, simple, responsive, typewriter
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tripeak-test-four
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Roboto+Mono:wght@400&display=swap');

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

body {
    font-family: 'Roboto Mono', 'Courier', 'Helvetica', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #4B4B4B;
    font-weight: 400;
    font-size: 15px;
    line-height: 28px;
    background-color: #fff;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
    -webkit-font-smoothing: antialiased;
    color: #353535;
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 30px;
    margin-top: 2rem;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

h5, h6 {
    font-size: 18px;
}

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: #353535;
    text-decoration: underline;
    text-decoration-color: #F2E39B;
    font-weight: 400;
}

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

/* Links within headings should inherit heading font weight */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    font-weight: inherit;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #F2E39B;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    text-decoration: underline;
    text-decoration-color: #353535;
}

/* Header Styles */
.site-header {
    margin-bottom: 10px;
}

.site-intro {
    margin-top: 10px;
    margin-bottom: 2rem;
    border-radius: 15px;
}

.site-intro p {
    margin-bottom: 0.5rem;
    font-size: 15px;
}

.site-title {
    font-size: 30px;
    margin: 0;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    color: #353535;
}

.site-title a {
    color: #353535;
    font-weight: inherit;
}

.site-description {
    font-size: 15px;
    color: #4B4B4B;
    margin: 0;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
}

.site-intro-blink {
    display: inline-block;
    font-weight: 400;
    font-size: 15px;
    font-family: 'Roboto Mono', 'Courier', 'Helvetica', sans-serif;
    color: #CAD2D4;
    margin-left: 0;
    animation: blink-cursor 1.2s infinite;
    vertical-align: baseline;
    line-height: 28px;
    opacity: 1;
}

@keyframes blink-cursor {
    0%, 50% { 
        opacity: 1; 
    }
    51%, 100% { 
        opacity: 0; 
    }
}

/* Main Content */
.site-main {
    margin-bottom: 3rem;
}

/* Posts Listing */
.posts-container h2 {
    font-size: 30px;
    margin-bottom: 35px;
}

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

.post-item {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 20px;
}

.post-item::before {
    content: "•";
    color: #353535;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.post-item a {
    background-color: transparent;
    color: #353535;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    line-height: 1.4;
    transition: background-color 0.2s ease;
}

.post-item a:hover {
    background-color: #F2E39B;
    text-decoration: none;
}

.post-meta {
    display: none;
}

/* Single Post Styles */
.single-post .entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 30px;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.entry-content {
    line-height: 1.7;
}

.entry-content p {
    margin-bottom: 1.2rem;
}

.entry-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.entry-content ul, 
.entry-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.3rem;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid #F2E39B !important;
    color: #666;
    font-style: italic;
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-size: 15px;
    color: #4B4B4B;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

/* Footer Navigation */
.footer-navigation {
    margin: 0;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.footer-menu li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.footer-menu li:not(:last-child)::after {
    content: " | ";
    color: #4B4B4B;
    margin: 0 8px;
    font-weight: 400;
}

.footer-menu a {
    color: #353535;
    text-decoration: none;
    font-family: 'Roboto Mono', 'Courier', 'Helvetica', sans-serif;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #4B4B4B;
    text-decoration: none;
}

/* Main Navigation (match footer nav) */
.main-navigation {
    text-align: left;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.primary-menu li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.primary-menu li:not(:last-child)::after {
    content: " | ";
    color: #4B4B4B;
    margin: 0 8px;
    font-weight: 400;
}

.primary-menu a {
    color: #353535;
    text-decoration: none;
    font-family: 'Roboto Mono', 'Courier', 'Helvetica', sans-serif;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.primary-menu a:hover {
    color: #4B4B4B;
    text-decoration: none;
}

/* Navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

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

.nav-previous,
.nav-next {
    max-width: 45%;
}

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

/* Pagination */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    color: #353535;
    text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
    text-decoration: underline;
}

/* Search Form */
.search-form {
    margin: 2rem 0;
}

.search-field {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    font-size: 15px;
    font-family: 'Roboto Mono', 'Courier', 'Helvetica', sans-serif;
}

.search-submit {
    margin-top: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #353535;
    color: #fff;
    border: none;
    font-size: 15px;
    font-family: 'Roboto Mono', 'Courier', 'Helvetica', sans-serif;
    cursor: pointer;
}

.search-submit:hover {
    background: #4B4B4B;
}

/* 404 Page */
.error-404 {
    text-align: center;
    margin: 3rem 0;
}

.error-404 h1 {
    font-size: 30px;
    margin-bottom: 35px;
}

/* Archive Pages */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 30px;
    margin-bottom: 35px;
}

.archive-description {
    color: #666;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    .nav-links {
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-next {
        text-align: left;
    }
}

/* WordPress Latest Posts Block Styling */
.wp-block-latest-posts.wp-block-latest-posts__list {
    list-style: none;
    padding-left: 0;
}

.wp-block-latest-posts.wp-block-latest-posts__list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 20px;
}

.wp-block-latest-posts.wp-block-latest-posts__list li::before {
    content: "•";
    color: #353535;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.wp-block-latest-posts.wp-block-latest-posts__list li a {
    background-color: #F2E39B;
    color: #353535;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    font-family: 'Roboto Mono', 'Courier', 'Helvetica', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    transition: background-color 0.2s ease;
}

.wp-block-latest-posts.wp-block-latest-posts__list li a:hover {
    background-color: #F7DC6F;
    text-decoration: none;
}

/* WordPress Core Styles */
.aligncenter {
    text-align: center;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
}

.primary-menu a,
.footer-menu a {
    color: #353535;
    text-decoration: none;
    font-family: 'Roboto Mono', 'Courier', 'Helvetica', sans-serif;
    font-size: 15px;
    line-height: 1;
    padding: 0 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.footer-menu a:hover,
.footer-menu .current-menu-item > a,
.footer-menu .current_page_item > a {
    background-color: #F2E39B;
    color: #353535;
    text-decoration: none;
}

.nav-previous a,
.nav-next a {
    background-color: #F2E39B;
    color: #353535;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Roboto Mono', 'Courier', 'Helvetica', sans-serif;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: #F7DC6F;
    color: #353535;
    text-decoration: none;
}

.social-link {
    text-decoration: underline;
    transition: transform 0.18s cubic-bezier(.4,1.5,.5,1), color 0.2s, text-decoration-color 0.2s;
    will-change: transform;
    display: inline-block;
}

.social-link:hover {
    transform: translateY(-4px);
    color: #353535;
    text-decoration: underline;
}

.wp-block-image figcaption {
    font-style: italic;
    text-align: left;
}

.wp-block-quote {
    border-left: 2px solid #F2E39B;
} 

/* WordPress Block Button Styles */
.wp-block-buttons .wp-block-button__link {
    font-size: 15px;
    margin-bottom: 15px;
    background-color: #F2E39B;
    color: #353535;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid #F2E39B;
    transition: all 0.2s ease;
    display: inline-block;
}

.wp-block-buttons .wp-block-button__link:hover {
    background-color: #353535;
    color: #F2E39B;
    border-color: #353535;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} 

/* Inline Code Styling */
code {
    background-color: #f8f9fa;
    color: #e83e8c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Roboto Mono', 'Courier', monospace;
    font-size: 14px;
    border: 1px solid #e9ecef;
    font-weight: 500;
}

/* Code Block Styling */
pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background-color: transparent;
    color: #333;
    padding: 0;
    border: none;
    font-size: 14px;
    line-height: 1.5;
} 

/* Caption Alignment */
.wp-caption-text,
.wp-block-image figcaption,
.wp-block-embed figcaption,
figcaption,
.caption,
.wp-caption {
    text-align: left !important;
    font-style: italic !important;
} 