/* ==========================================================================
   Traverse This Earth - Restored Travel Blog Design System
   Matches original 2018-2020 aesthetic (Warm Sage & Editorial Typography)
   ========================================================================== */

:root {
    --tte-primary: #8a8f6a;            /* Original Traverse This Earth sage green */
    --tte-primary-dark: #6e7350;
    --tte-primary-light: #f4f6ee;
    --tte-accent-gold: #d39230;        /* Original warm gold accent */
    --tte-dark: #212121;               /* Dark topbar and header tones */
    --tte-text-heading: #242424;
    --tte-text-body: #374151;
    --tte-text-muted: #6b7280;
    --tte-bg-page: #fdfdfd;
    --tte-bg-card: #ffffff;
    --tte-bg-subtle: #f8fafc;
    --tte-border: #e5e7eb;
    --tte-border-light: #f1f5f9;
    
    --tte-font-heading: 'Roboto Condensed', 'Plus Jakarta Sans', -apple-system, sans-serif;
    --tte-font-serif: 'PT Serif', 'Merriweather', Georgia, serif;
    --tte-font-sans: 'PT Sans', 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* Base Global Reset & Typography */
body {
    background-color: #f7f7f7 !important;
    color: var(--tte-text-body);
    font-family: var(--tte-font-sans);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* Top Branding Bar */
.tte-topbar {
    background-color: var(--tte-dark);
    color: #9ca3af;
    font-size: 0.82rem;
    padding: 8px 0;
    letter-spacing: 0.04em;
}

.tte-topbar .tte-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.tte-topbar-tagline {
    font-weight: 500;
    color: #d1d5db;
}

.tte-topbar-social a {
    color: #9ca3af;
    margin-left: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tte-topbar-social a:hover {
    color: var(--tte-primary);
}

/* Site Header */
.tte-site-header {
    background: #ffffff;
    border-bottom: 1px solid #ececec;
    padding: 40px 20px 25px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.tte-site-title {
    font-family: var(--tte-font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.tte-site-title a {
    color: var(--tte-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.tte-site-title a:hover {
    color: var(--tte-primary);
}

.tte-site-subtitle {
    font-family: var(--tte-font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: #78716c;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Main Navigation Bar */
.tte-nav-bar {
    background: #ffffff;
    border-bottom: 2px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.tte-nav-container {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.tte-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tte-nav-menu li a {
    display: block;
    padding: 14px 18px;
    font-family: var(--tte-font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tte-nav-menu li a:hover,
.tte-nav-menu li.current-menu-item a {
    color: var(--tte-primary);
    border-bottom-color: var(--tte-primary);
}

/* Main Content Layout Container */
.tte-main-wrapper {
    max-width: 1180px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Post Cards Grid (Archive / Home Feed) */
.tte-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.tte-post-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #eeeeee;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.tte-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.tte-card-thumbnail-wrap {
    position: relative;
    width: 100%;
    height: 230px;
    background-color: #e5e7eb;
    overflow: hidden;
}

.tte-card-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tte-post-card:hover .tte-card-thumbnail-wrap img {
    transform: scale(1.04);
}

.tte-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--tte-primary);
    color: #ffffff;
    font-family: var(--tte-font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.tte-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tte-card-meta {
    font-size: 0.82rem;
    color: var(--tte-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tte-card-title {
    font-family: var(--tte-font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
}

.tte-card-title a {
    color: var(--tte-text-heading);
    text-decoration: none;
    transition: color 0.2s;
}

.tte-card-title a:hover {
    color: var(--tte-primary);
}

.tte-card-excerpt {
    font-family: var(--tte-font-sans);
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tte-readmore-btn {
    align-self: flex-start;
    font-family: var(--tte-font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tte-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 2px;
    transition: all 0.2s;
}

.tte-readmore-btn:hover {
    color: var(--tte-primary-dark);
    border-bottom-color: var(--tte-primary-dark);
    transform: translateX(3px);
}

/* ==========================================================================
   Single Post Article View
   ========================================================================== */

.single-post .entry-content,
.tte-single-article {
    background: #ffffff;
    max-width: 840px;
    margin: 30px auto;
    padding: 48px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.tte-post-header {
    text-align: center;
    margin-bottom: 36px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 28px;
}

.tte-post-header .tte-category-badge {
    position: static;
    display: inline-block;
    margin-bottom: 14px;
}

.single-post h1.entry-title,
.tte-article-title {
    font-family: var(--tte-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--tte-text-heading);
    margin: 10px 0 16px;
}

.tte-article-meta {
    font-family: var(--tte-font-sans);
    font-size: 0.88rem;
    color: var(--tte-text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

/* Article Body Typography (PT Serif / Merriweather) */
.single-post .entry-content p,
.tte-article-body p {
    font-family: var(--tte-font-serif);
    font-size: 1.125rem;
    line-height: 1.9;
    color: #2e3440;
    margin-bottom: 1.9rem;
}

.single-post .entry-content h2,
.tte-article-body h2 {
    font-family: var(--tte-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tte-dark);
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.single-post .entry-content h3,
.tte-article-body h3 {
    font-family: var(--tte-font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tte-dark);
    margin-top: 2.2rem;
    margin-bottom: 1rem;
}

/* Blockquotes */
.single-post .entry-content blockquote,
.tte-article-body blockquote {
    background: #fbfbf9;
    border-left: 4px solid var(--tte-primary);
    padding: 20px 26px;
    margin: 2.5rem 0;
    font-family: var(--tte-font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: #4b5563;
    border-radius: 0 6px 6px 0;
}

/* Image Figures & Captions */
.single-post .entry-content figure,
.single-post .entry-content .wp-block-image,
.tte-article-body figure {
    margin: 3rem 0;
    text-align: center;
}

.single-post .entry-content img,
.tte-article-body img {
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    max-width: 100%;
    height: auto;
}

.single-post .entry-content figcaption,
.tte-article-body figcaption {
    font-family: var(--tte-font-sans);
    font-size: 0.88rem;
    font-style: italic;
    color: #64748b;
    margin-top: 10px;
    line-height: 1.4;
}

/* Author Bio Box */
.tte-author-bio-box {
    margin-top: 48px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.tte-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--tte-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--tte-font-heading);
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(138, 143, 106, 0.3);
}

.tte-author-info h4 {
    margin: 0 0 6px;
    font-family: var(--tte-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tte-dark);
}

.tte-author-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.55;
}

/* Reading Progress Bar */
.tte-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--tte-primary);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Footer Styling */
.tte-site-footer {
    background: var(--tte-dark);
    color: #9ca3af;
    padding: 40px 20px 30px;
    text-align: center;
    font-size: 0.88rem;
    margin-top: 60px;
}

.tte-site-footer p {
    margin: 6px 0;
}

.tte-site-footer a {
    color: var(--tte-primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .tte-site-title { font-size: 2rem; }
    .single-post .entry-content, .tte-single-article { padding: 28px 20px; }
    .single-post h1.entry-title { font-size: 1.85rem; }
    .tte-author-bio-box { flex-direction: column; text-align: center; }
}

/* Layout Container: 2-Column Main + Sidebar */
.tte-content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Featured Hero Story */
.tte-featured-hero {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 40px;
    border: 1px solid #e5e7eb;
}

.tte-hero-media {
    position: relative;
    width: 100%;
    max-height: 440px;
    overflow: hidden;
    background: #e2e8f0;
}

.tte-hero-media img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tte-hero-media:hover img {
    transform: scale(1.03);
}

.tte-hero-content {
    padding: 32px;
}

.tte-hero-title {
    font-family: var(--tte-font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 12px 0 14px;
}

.tte-hero-title a {
    color: var(--tte-dark);
    text-decoration: none;
}

.tte-hero-title a:hover {
    color: var(--tte-primary);
}

.tte-highlight-tag {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
}

.tte-hero-btn {
    display: inline-block;
    background: var(--tte-primary);
    color: #ffffff !important;
    font-family: var(--tte-font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tte-hero-btn:hover {
    background: var(--tte-primary-dark);
    transform: translateY(-2px);
}

/* Section Header */
.tte-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 28px;
}

.tte-section-heading h3 {
    font-family: var(--tte-font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tte-dark);
    margin: 0;
}

.tte-story-count {
    font-size: 0.85rem;
    color: var(--tte-primary-dark);
    font-weight: 600;
    background: var(--tte-primary-light);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Sidebar & Widgets */
.tte-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tte-widget {
    background: #ffffff;
    border-radius: 8px;
    padding: 26px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tte-widget-title {
    font-family: var(--tte-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tte-dark);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tte-primary);
}

.tte-about-widget {
    text-align: center;
}

.tte-author-badge {
    margin-bottom: 14px;
}

.tte-avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--tte-primary);
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 14px rgba(138, 143, 106, 0.35);
}

.tte-about-widget h4 {
    font-family: var(--tte-font-heading);
    font-size: 1.3rem;
    margin: 0;
}

.tte-about-widget p {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.6;
}

.tte-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.tte-social-item {
    font-size: 0.78rem;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    color: #475569;
    font-weight: 600;
}

.tte-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tte-category-list li {
    border-bottom: 1px dashed #e2e8f0;
    padding: 8px 0;
}

.tte-category-list li:last-child {
    border-bottom: none;
}

.tte-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--tte-text-heading);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.tte-category-list a:hover {
    color: var(--tte-primary);
}

.tte-category-list em {
    font-style: normal;
    font-size: 0.8rem;
    color: #94a3b8;
}

.tte-recovery-note {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.tte-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: #e2e8f0;
}

@media (max-width: 960px) {
    .tte-content-layout {
        grid-template-columns: 1fr;
    }
}

/* Archive Banner Header */
.tte-archive-header {
    background: #ffffff;
    border-radius: 8px;
    padding: 32px 30px;
    margin-bottom: 36px;
    border-left: 4px solid var(--tte-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tte-archive-label {
    font-family: var(--tte-font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tte-primary-dark);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.tte-archive-title {
    font-family: var(--tte-font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--tte-dark);
    margin: 0;
}

/* Suppress legacy WordPress theme-compat fallback headers */
#header:not(.tte-site-header),
#page > #header,
#headerimg,
#page > hr {
    display: none !important;
}
