/* The Herding Gene - Site Styles
*/

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

:root {
    --thg-color-primary: #1a4d2e;
    --thg-color-secondary: #4a7c59;
    --thg-color-accent: #7eb77f;
    --thg-color-text: #2d3748;
    --thg-color-text-light: #4a5568;
    --thg-color-bg: #ffffff;
    --thg-color-bg-alt: #f7fafc;
    --thg-color-border: #e2e8f0;
    --thg-font-primary: 'Georgia', 'Times New Roman', serif;
    --thg-font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --thg-max-width: 1200px;
    --thg-content-width: 800px;
}

.thg-body {
    font-family: var(--thg-font-primary);
    font-size: 18px;
    line-height: 1.7;
    color: var(--thg-color-text);
    background-color: var(--thg-color-bg);
}

/* Header */
.thg-header {
    background-color: var(--thg-color-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.thg-header-container {
    max-width: var(--thg-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thg-logo {
    text-decoration: none;
}

.thg-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.thg-nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.thg-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: var(--thg-font-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.thg-nav-link:hover,
.thg-nav-active {
    color: var(--thg-color-accent);
}

.thg-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.thg-mobile-bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Main Content */
.thg-main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.thg-hero {
    background: linear-gradient(135deg, var(--thg-color-primary) 0%, var(--thg-color-secondary) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: #ffffff;
}

.thg-hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.thg-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.thg-content-section {
    max-width: var(--thg-content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.thg-content-section h2 {
    font-size: 1.8rem;
    color: var(--thg-color-primary);
    margin: 2rem 0 1rem;
}

.thg-content-section h3 {
    font-size: 1.4rem;
    color: var(--thg-color-secondary);
    margin: 1.5rem 0 0.75rem;
}

.thg-content-section p {
    margin-bottom: 1.25rem;
}

.thg-content-section ul,
.thg-content-section ol {
    margin: 1rem 0 1.5rem 2rem;
}

.thg-content-section li {
    margin-bottom: 0.5rem;
}

/* Featured Section */
.thg-featured-section {
    background-color: var(--thg-color-bg-alt);
    padding: 3rem 2rem;
}

.thg-section-title {
    font-size: 1.8rem;
    text-align: center;
    color: var(--thg-color-primary);
    margin-bottom: 2rem;
}

.thg-featured-grid {
    max-width: var(--thg-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.thg-featured-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--thg-color-border);
}

.thg-featured-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.thg-featured-link {
    color: var(--thg-color-primary);
    text-decoration: none;
}

.thg-featured-link:hover {
    color: var(--thg-color-secondary);
}

.thg-featured-date {
    font-family: var(--thg-font-secondary);
    font-size: 0.85rem;
    color: var(--thg-color-text-light);
}

.thg-featured-excerpt {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--thg-color-text-light);
}

.thg-section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Buttons */
.thg-btn {
    display: inline-block;
    background-color: var(--thg-color-primary);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--thg-font-secondary);
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.thg-btn:hover {
    background-color: var(--thg-color-secondary);
}

.thg-btn-secondary {
    display: inline-block;
    border: 2px solid var(--thg-color-primary);
    color: var(--thg-color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--thg-font-secondary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.thg-btn-secondary:hover {
    background-color: var(--thg-color-primary);
    color: #ffffff;
}

/* About Preview */
.thg-about-preview {
    max-width: var(--thg-content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.thg-about-content {
    margin-top: 1.5rem;
}

.thg-about-content p {
    margin-bottom: 1.5rem;
}

/* Article Styles */
.thg-article {
    max-width: var(--thg-content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.thg-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--thg-color-border);
}

.thg-article-title {
    font-size: 2.2rem;
    color: var(--thg-color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.thg-article-date {
    font-family: var(--thg-font-secondary);
    font-size: 0.9rem;
    color: var(--thg-color-text-light);
}

.thg-article-author {
    font-family: var(--thg-font-secondary);
    font-size: 0.9rem;
    color: var(--thg-color-text-light);
    margin-left: 1rem;
}

.thg-article-content h2 {
    font-size: 1.6rem;
    color: var(--thg-color-primary);
    margin: 2.5rem 0 1rem;
}

.thg-article-content h3 {
    font-size: 1.3rem;
    color: var(--thg-color-secondary);
    margin: 2rem 0 0.75rem;
}

.thg-article-content p {
    margin-bottom: 1.25rem;
}

.thg-article-content ul,
.thg-article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.thg-article-content li {
    margin-bottom: 0.5rem;
}

.thg-article-content strong {
    color: var(--thg-color-primary);
}

.thg-article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--thg-color-border);
}

.thg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.thg-tags-label {
    font-family: var(--thg-font-secondary);
    font-size: 0.9rem;
    color: var(--thg-color-text-light);
    margin-right: 0.5rem;
}

.thg-tag {
    background-color: var(--thg-color-bg-alt);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-family: var(--thg-font-secondary);
    font-size: 0.85rem;
    color: var(--thg-color-text-light);
}

/* List Styles */
.thg-list-section {
    max-width: var(--thg-content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.thg-list-header {
    margin-bottom: 2rem;
}

.thg-list-title {
    font-size: 2.2rem;
    color: var(--thg-color-primary);
    margin-bottom: 0.75rem;
}

.thg-list-description {
    color: var(--thg-color-text-light);
}

.thg-list-items {
    margin-top: 2rem;
}

.thg-list-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--thg-color-border);
}

.thg-list-item:first-child {
    border-top: 1px solid var(--thg-color-border);
}

.thg-list-item-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.thg-list-item-link {
    color: var(--thg-color-primary);
    text-decoration: none;
}

.thg-list-item-link:hover {
    color: var(--thg-color-secondary);
}

.thg-list-item-date {
    font-family: var(--thg-font-secondary);
    font-size: 0.85rem;
    color: var(--thg-color-text-light);
}

.thg-list-item-excerpt {
    margin-top: 0.75rem;
    color: var(--thg-color-text-light);
}

.thg-read-more {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--thg-color-secondary);
    font-family: var(--thg-font-secondary);
    font-size: 0.9rem;
    text-decoration: none;
}

.thg-read-more:hover {
    color: var(--thg-color-primary);
}

/* Footer */
.thg-footer {
    background-color: var(--thg-color-primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 1.5rem;
}

.thg-footer-container {
    max-width: var(--thg-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.thg-footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.thg-footer-logo {
    font-size: 1.3rem;
    font-weight: bold;
}

.thg-footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.thg-footer-heading {
    font-family: var(--thg-font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.thg-footer-links {
    list-style: none;
}

.thg-footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 2;
}

.thg-footer-link:hover {
    color: var(--thg-color-accent);
}

.thg-footer-author-name {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.thg-footer-author-credentials {
    font-size: 0.85rem;
    opacity: 0.8;
}

.thg-footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
}

.thg-copyright {
    font-family: var(--thg-font-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .thg-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--thg-color-primary);
        padding: 1rem 2rem;
    }

    .thg-nav.thg-nav-open {
        display: block;
    }

    .thg-nav-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .thg-mobile-toggle {
        display: flex;
    }

    .thg-header-container {
        position: relative;
    }

    .thg-hero-title {
        font-size: 1.8rem;
    }

    .thg-hero-subtitle {
        font-size: 1rem;
    }

    .thg-footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .thg-article-title,
    .thg-list-title {
        font-size: 1.8rem;
    }

    .thg-content-section,
    .thg-article,
    .thg-list-section {
        padding: 2rem 1.5rem;
    }
}
