:root {
    --primary-color: #5d4e75;
    --secondary-color: #85677b;
    --accent-color: #adadc9;
    --light-color: #d6d6f5;
    --text-dark: #333333;
    --text-light: #ffffff;
    --shadow: 0 4px 6px rgba(93, 78, 117, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-color);
    margin: 0;
    padding: 0;
}

/* Classic Typography Hierarchy */
h1 { font-size: 2.5rem; font-weight: bold; margin-bottom: 1rem; }
h2 { font-size: 2rem; font-weight: bold; margin-bottom: 0.875rem; }
h3 { font-size: 1.5rem; font-weight: bold; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; font-weight: bold; margin-bottom: 0.625rem; }
h5 { font-size: 1.125rem; font-weight: bold; margin-bottom: 0.5rem; }
h6 { font-size: 1rem; font-weight: bold; margin-bottom: 0.5rem; }

/* Adaptive border-radius */
.br-small { border-radius: 4px; }
.br-medium { border-radius: 8px; }
.br-large { border-radius: 12px; }

/* Smooth transitions for all elements */
* {
    transition: all 0.3s ease-out;
}

/* Gentle scale effect */
.scale-hover:hover {
    transform: scale(1.05);
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

/* Hero section in card style */
.hero-container {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.hero-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(93, 78, 117, 0.15);
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.hero-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

/* Pinterest Masonry Layout */
.masonry-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
    break-inside: avoid;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    break-inside: avoid;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.masonry-item-content {
    padding: 1.5rem;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

.masonry-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.masonry-item p {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Sections */
.section {
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.section-alt {
    background-color: white;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    border-top: 4px solid var(--secondary-color);
}

/* WordPress Post List */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

/* Post Card */
.post-item {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Featured Image */
.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Title */
.post-item h3 {
    font-size: 1.125rem;
    margin: 1rem;
    line-height: 1.4;
}

.post-item h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.post-item h3 a:hover {
    color: var(--secondary-color);
}

/* Post Excerpt */
.post-item p {
    margin: 0 1rem 1.25rem;
    color: #555;
    flex: 1 0 auto;
}

/* "Read More" Button */
.post-item > a:last-of-type {
    align-self: flex-start;
    margin: 0 1rem 1.25rem;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.2s ease-in-out;
}

.post-item > a:last-of-type:hover {
    background: var(--secondary-color);
}

/* Pagination */
nav.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    transition: background 0.2s ease;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.next.page-numbers,
.prev.page-numbers {
    border-color: transparent;
    color: var(--primary-color);
}

.next.page-numbers:hover,
.prev.page-numbers:hover {
    color: var(--secondary-color);
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #777;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumbs span {
    color: #555;
}

/* Page Content */
.page-content {
    max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 0 1rem 2rem;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Page Featured Image */
.page-content .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Page Title */
.page-content h1 {
    font-size: 1.75rem;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
    color: var(--text-dark);
    text-align: center;
}

/* Page Content */
.page-content .content p {
    margin-bottom: 1rem;
    color: #444;
}

/* Current Menu Item */
#top_menus .current-menu-item .nav-link,
#top_menus .current_page_item .nav-link {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer Menu */
.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.footer-menu a {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu a:hover,
.footer-menu a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }
    
    .breadcrumbs {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .page-content h1 {
        font-size: 1.35rem;
    }
    
    #top_menus {
        gap: 0.75rem;
        padding: 1rem 0;
    }
    
    .post-item h3 {
        font-size: 1rem;
    }
    
    .footer-menu {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
}

/* 404 Page Styles */
.error-404 {
    text-align: center;
    padding: 3rem 1rem;
}

.error-404 h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Homepage Minimalist Styles */
.homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section Styles */
.hero-section {
    margin-bottom: 4rem;
    background-color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 400px;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0;
}

.hero-text {
    padding: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 78, 117, 0.3);
}

/* Random Posts Section */
.random-posts {
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background-color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(93, 78, 117, 0.2);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

/* Blog Link Section */
.blog-link-section {
    text-align: center;
    padding: 2rem 0;
}

.blog-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.blog-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(133, 103, 123, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .homepage {
        padding: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-text {
        order: 2;
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .posts-grid {
        gap: 1rem;
    }
    
    .post-content {
        padding: 1rem;
    }
}

/* Add Tachyons utility classes we need */
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.w-100 { width: 100%; }
.mb3 { margin-bottom: 1rem; }