/* Herding Instinct Test - Site Styles
*/

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

:root {
    --hit-color-primary: #4a3728;
    --hit-color-secondary: #7d5a3c;
    --hit-color-accent: #c49a6c;
    --hit-color-text: #2d3748;
    --hit-color-text-light: #4a5568;
    --hit-color-bg: #ffffff;
    --hit-color-bg-alt: #faf8f5;
    --hit-color-border: #e8e0d8;
    --hit-font-primary: 'Georgia', 'Times New Roman', serif;
    --hit-font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --hit-max-width: 1200px;
    --hit-content-width: 800px;
}

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

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

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

/* Skip Link */
.hit-skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hit-color-primary);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 5px 5px;
    text-decoration: none;
    z-index: 200;
    transition: top 0.2s ease;
}

.hit-skip-link:focus {
    top: 0;
}

.hit-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hit-logo-img {
    height: 32px;
    width: auto;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Breadcrumb */
.hit-breadcrumb {
    max-width: var(--hit-content-width);
    margin: 0 auto;
    padding: 1rem 2rem 0;
}

.hit-breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    font-family: var(--hit-font-secondary);
    font-size: 0.85rem;
}

.hit-breadcrumb li::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--hit-color-text-light);
}

.hit-breadcrumb li:last-child::after {
    content: "";
}

.hit-breadcrumb a {
    color: var(--hit-color-secondary);
    text-decoration: none;
}

.hit-breadcrumb a:hover {
    color: var(--hit-color-primary);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hit-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);
}

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

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

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

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

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

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

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

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .hit-nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--hit-color-primary);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .hit-nav-list.hit-nav-open {
        display: flex;
    }

    .hit-nav-link {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hit-nav-item:last-child .hit-nav-link {
        border-bottom: none;
    }

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

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

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

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

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

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

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