/*
Theme Name: Letterhanna Studio
Theme URI: https://letterhannastudio.com
Author: Letterhanna Studio
Description: Clean, elegant, classic theme for handwriting script font showcase
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: letterhanna
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

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

body {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2a2a2a;
    background-color: #fdfbf7;
}

a {
    color: #2a2a2a;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #8b7355;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 30px;
    font-weight: 600;
}

h4 {
    font-size: 24px;
    font-weight: 500;
}

h5 {
    font-size: 20px;
    font-weight: 500;
}

h6 {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 2px solid #e8e3db;
    padding: 40px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo & Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 25px;
}

.site-logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.site-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.site-identity h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    color: #1a1a1a;
}

/* Logo di halaman post lebih kecil */
.single-post .site-identity h1,
.single .site-identity h1,
.page .site-identity h1 {
    font-family: 'Playfair Display', serif;
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 8px;
        letter-spacing: 1.5px;
        color: #1a1a1a;
}

.site-identity h1 a {
    color: #1a1a1a;
}

.site-identity h1 a:hover {
    color: #8b7355;
}

.site-identity p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: #7a7a7a;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Navigation & Search */
.header-right {
    display: flex;
    align-items: center;
    gap: 35px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: #2a2a2a;
}

.main-navigation a:hover {
    color: #8b7355;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 3px;
}

.search-form {
    position: relative;
}

.search-form input[type="search"] {
    padding: 10px 40px 10px 18px;
    border: 2px solid #e8e3db;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Lora', serif;
    width: 220px;
    transition: all 0.3s ease;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.search-form button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #7a7a7a;
    font-size: 16px;
}

/* Main Content */
.site-content {
    padding: 80px 0;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 60px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #8b7355, #c9a885);
}

/* Font Gallery (Shop) */
.font-gallery {
    margin-bottom: 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.gallery-item {
    background: #fff;
    border: 1px solid #e8e3db;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    aspect-ratio: 3/2;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #8b7355;
}

.gallery-item a {
    display: block;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Blog Section */
.blog-section {
    background-color: #fff;
    padding: 80px 0;
    border-top: 2px solid #e8e3db;
    border-bottom: 2px solid #e8e3db;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

.blog-item {
    transition: transform 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
}

.blog-item img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 2px;
}

.blog-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #1a1a1a;
}

.blog-item .excerpt {
    font-size: 15px;
    color: #5a5a5a;
    line-height: 1.7;
}

/* Single Post */
.single-post .post-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8e3db;
}

.single-post h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.single-post .post-thumbnail {
    text-align: center;
    margin-bottom: 40px;
}

.single-post .post-thumbnail img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.post-meta {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    color: #7a7a7a;
    font-style: italic;
    letter-spacing: 0.5px;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.9;
}

.post-content img {
    margin: 40px 0;
    border-radius: 2px;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-left: 40px;
    margin-bottom: 25px;
    padding-left: 20px;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 12px;
    line-height: 1.8;
}

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

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

/* WordPress Gallery */
.post-content .gallery {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.post-content .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.post-content .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    transition: transform 0.3s ease;
}

.post-content .gallery-item:hover img {
    transform: scale(1.05);
}

.post-content .gallery-caption {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Gallery columns */
.post-content .gallery-columns-1 {
    grid-template-columns: repeat(1, 1fr);
}

.post-content .gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.post-content .gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.post-content .gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.post-content .gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.post-content .gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 768px) {
    .post-content .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e8e3db;
}

.page-header .page-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.page-header .search-query {
    color: #8b7355;
}

/* Search Results */
.search-results {
    max-width: 900px;
    margin: 0 auto;
}

.search-result-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e8e3db;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-thumbnail {
    flex-shrink: 0;
    width: 250px;
}

.search-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.search-content {
    flex: 1;
}

.search-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.search-title a {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.search-title a:hover {
    color: #8b7355;
}

.search-meta {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: #7a7a7a;
    font-style: italic;
    margin-bottom: 15px;
}

.search-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #5a5a5a;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 600;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #a38968;
    padding-left: 5px;
}

/* No Results */
.no-results {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
}

.no-results h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.no-results p {
    font-size: 16px;
    color: #5a5a5a;
    line-height: 1.7;
    margin-bottom: 30px;
}

.search-form-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.search-form-wrapper .search-form {
    width: 100%;
}

.search-form-wrapper input[type="search"] {
    width: 100%;
}

/* Pagination */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e8e3db;
    border-radius: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    color: #2a2a2a;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #8b7355;
    color: #fff;
    border-color: #8b7355;
}

.pagination .current {
    background: #8b7355;
    color: #fff;
    border-color: #8b7355;
}



/* Footer */
.site-footer {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #e8e3db;
    padding: 70px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    color: #fff;
}

.footer-info p {
    margin-bottom: 12px;
    font-size: 15px;
    color: #c9c9c9;
}

.footer-info a {
    color: #e8e3db;
}

.footer-info a:hover {
    color: #c9a885;
}

.footer-logo {
    width: 100px;
    margin-top: 25px;
    opacity: 0.9;
}

.footer-menu {
    margin-top: 30px;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav-list li a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    color: #c9c9c9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-nav-list li a:hover {
    color: #c9a885;
    padding-left: 5px;
}

.footer-links h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    color: #fff;
}

.social-links,
.marketplace-links {
    margin-bottom: 30px;
}

.social-links h4,
.marketplace-links h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c9a885;
}

.social-links ul,
.marketplace-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #e8e3db;
    font-size: 20px;
    transition: all 0.3s ease;
}

.marketplace-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e8e3db;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-links a:hover,
.marketplace-links a:hover {
    background: #8b7355;
    border-color: #8b7355;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.3);
}

/* Subscribe Form */
.footer-subscribe {
    margin-top: 0px;
}

.footer-subscribe h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #fff;
}

.footer-subscribe p {
    font-size: 14px;
    color: #c9c9c9;
    margin-bottom: 20px;
}

/* Jetpack Subscribe Form Styling */
.footer-subscribe .jetpack_subscription_widget {
    margin: 0;
}
.footer-subscribe .jetpack_subscription_widget h2{
    color: #ccc;
    font-size: 24px;
}
.footer-subscribe .jetpack_subscription_widget form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-subscribe .jetpack_subscription_widget input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-subscribe .jetpack_subscription_widget input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-subscribe .jetpack_subscription_widget input[type="email"]:focus {
    outline: none;
    border-color: #8b7355;
    background: rgba(255, 255, 255, 0.12);
}

.footer-subscribe .jetpack_subscription_widget button,
.footer-subscribe .jetpack_subscription_widget input[type="submit"] {
    padding: 14px 30px;
    background: #8b7355;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-subscribe .jetpack_subscription_widget button:hover,
.footer-subscribe .jetpack_subscription_widget input[type="submit"]:hover {
    background: #a38968;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.4);
}

.footer-subscribe .jetpack_subscription_widget p {
    margin: 0;
}

.footer-subscribe .jetpack_subscription_widget .success,
.footer-subscribe .jetpack_subscription_widget .error {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
}

.footer-subscribe .jetpack_subscription_widget .success {
    background: rgba(76, 175, 80, 0.2);
    color: #a5d6a7;
}

.footer-subscribe .jetpack_subscription_widget .error {
    background: rgba(244, 67, 54, 0.2);
    color: #ef9a9a;
}

.footer-bottom {
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: #999;
}

/* Responsive */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-subscribe {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 24px;
    }

    .header-inner {
        flex-direction: column;
        gap: 25px;
    }

    .site-branding {
        flex-direction: column;
        text-align: center;
    }

    .site-identity h1 {
        font-size: 26px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .gallery-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .search-form input[type="search"] {
        width: 180px;
    }

    .subscribe-form {
        flex-direction: column;
    }
}
/* Mobile - Hide menu, search, and logo image on smallest screens */
@media (max-width: 768px) {
    .site-logo {
        display: none;
    }

    .main-navigation {
        display: none;
    }

    .search-form {
        display: none;
    }

    .site-branding {
        width: 100%;
        text-align: center;
    }

    .site-identity h1 {
        font-size: 22px;
    }

    .site-identity p {
        font-size: 14px;
    }

    .header-inner {
        justify-content: center;
    }

    .header-right {
        display: none;
    }
}

.custom-buy-button {
    display: block;
    background-color: #1a1a1a;
    color: #f5e6c8;
    padding: 16px 100px;
    width: 100%;
    max-width: 600px;
    margin: 24px auto;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
}



.custom-buy-button:hover {
    background-color: #0d0d0d;
    color: #ffd700;
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.25);
    transform: translateY(-2px);
}

.custom-buy-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Archive Pages (Category & Tag) */
.archive-description {
    text-align: center;
    font-size: 16px;
    color: #5a5a5a;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.7;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.archive-item {
    background: #fff;
    border: 1px solid #e8e3db;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.archive-thumbnail {
    overflow: hidden;
}

.archive-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.archive-item:hover .archive-thumbnail img {
    transform: scale(1.05);
}

.archive-content {
    padding: 25px;
}

.archive-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.archive-title a {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.archive-title a:hover {
    color: #8b7355;
}

.archive-meta {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    color: #7a7a7a;
    font-style: italic;
    margin-bottom: 15px;
}

.archive-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #5a5a5a;
    margin-bottom: 15px;
}

.tag-name {
    color: #8b7355;
}

/* Responsive Archive */
@media (max-width: 968px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

.post-content .image-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
}

.post-content .image-center img {
    margin: 0;
    padding: 0;
    display: auto;
}