@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..800;1,400..800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
:root {
    --farm-bg: #fafafa;
    --farm-text: #18181b;
    --farm-text-muted: #52525b;
    --farm-muted: var(--farm-text-muted);
    --farm-surface: #ffffff;
    --farm-surface-hover: #ffffff;
    --farm-border: #e4e4e7;
    --farm-border-hover: #d4d4d8;
    --farm-primary: #18181b;
    --farm-primary-light: rgba(24, 24, 27, 0.04);
    --farm-primary-dark: #09090b;
    --farm-accent: #059669;
    --farm-accent-light: rgba(5, 150, 105, 0.08);
    --farm-heading-font: 'Playfair Display', serif;
    --farm-body-font: 'Plus Jakarta Sans', sans-serif;
}
.farm-body {
    font-family: var(--farm-body-font);
    background-color: var(--farm-bg);
    color: var(--farm-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.farm-body * { box-sizing: border-box; margin: 0; padding: 0; }
.farm-body a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
.farm-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header Layout Styles matching Mockup */
.farm-header {
    background: #ffffff;
    border-bottom: 1px solid var(--farm-border);
    padding: 0;
}
.farm-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.farm-logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.farm-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.farm-logo-text {
    font-family: var(--farm-heading-font);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--farm-text);
    letter-spacing: -0.5px;
}
.farm-header-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #f4f4f5;
    border-radius: 20px;
    padding: 6px 16px;
    width: 280px;
}
.farm-header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.82rem;
    font-family: inherit;
    width: 100%;
    color: var(--farm-text);
}
.farm-search-icon {
    font-size: 0.85rem;
    color: #71717a;
    cursor: pointer;
}
.farm-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.farm-link-signin {
    font-size: 0.85rem;
    font-weight: 600;
    color: #71717a;
}
.farm-link-signin:hover {
    color: var(--farm-text);
}
.farm-btn-signup {
    border: 1px solid var(--farm-accent);
    color: var(--farm-accent);
    background: transparent;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}
.farm-btn-signup:hover {
    background: var(--farm-accent-light);
}
.farm-nav-wrap {
    border-top: 1px solid var(--farm-border);
    padding: 12px 0;
}
.farm-nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}
.farm-nav-list a {
    font-size: 0.82rem;
    font-weight: 700;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.farm-nav-list a:hover {
    color: var(--farm-accent);
}

/* Hero Section */
.farm-hero-section {
    background: #eefaf6;
    border-radius: 20px;
    padding: 50px;
    margin: 30px 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}
.farm-hero-content {
    display: flex;
    flex-direction: column;
}
.farm-hero-greet {
    font-family: var(--farm-heading-font);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--farm-text);
    line-height: 1.15;
    margin-bottom: 16px;
}
.farm-hero-greet span {
    color: var(--farm-accent);
}
.farm-hero-bio {
    font-size: 0.95rem;
    color: var(--farm-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}
.farm-hero-buttons {
    display: flex;
    gap: 12px;
}
.farm-btn-primary {
    background: var(--farm-primary);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.88rem;
}
.farm-btn-primary:hover {
    background: var(--farm-primary-dark);
}
.farm-btn-secondary {
    border: 1px solid var(--farm-accent);
    color: var(--farm-accent);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.88rem;
}
.farm-btn-secondary:hover {
    background: var(--farm-accent-light);
}
.farm-hero-img-wrap {
    width: 100%;
    aspect-ratio: 1.25;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.farm-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections Structure & Headings */
.farm-section-header {
    border-bottom: 1px solid var(--farm-border);
    padding-bottom: 8px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.farm-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--farm-text);
    border-bottom: 2px solid var(--farm-text);
    padding-bottom: 8px;
    margin-bottom: -9px;
    display: inline-block;
}

/* Layout Grids */
.farm-main-sidebar-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.farm-main-feed-col {
    display: flex;
    flex-direction: column;
}
.farm-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Featured Section Grid (Large Left, Smaller Stack Right) */
.farm-featured-section {
    margin-bottom: 40px;
}
.farm-featured-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}
.farm-featured-large {
    display: flex;
    flex-direction: column;
}
.farm-featured-large-img {
    aspect-ratio: 1.77;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}
.farm-featured-large-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.farm-featured-large:hover .farm-featured-large-img img {
    transform: scale(1.02);
}
.farm-meta-tag {
    color: var(--farm-accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}
.farm-featured-large-title {
    font-family: var(--farm-heading-font);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--farm-text);
}
.farm-featured-large-title a:hover {
    color: var(--farm-accent);
}
.farm-featured-large-desc {
    font-size: 0.9rem;
    color: var(--farm-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}
.farm-card-meta {
    font-size: 0.75rem;
    color: #71717a;
    font-weight: 500;
}

.farm-featured-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.farm-featured-small-card {
    display: flex;
    gap: 16px;
    align-items: center;
}
.farm-featured-small-img {
    width: 130px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.farm-featured-small-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.farm-featured-small-content {
    flex-grow: 1;
}
.farm-featured-small-title {
    font-family: var(--farm-heading-font);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--farm-text);
}
.farm-featured-small-title a:hover {
    color: var(--farm-accent);
}

/* Latest Posts Grid */
.farm-latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.farm-latest-card {
    display: flex;
    flex-direction: column;
}
.farm-latest-card-img {
    aspect-ratio: 1.6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}
.farm-latest-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.farm-latest-card:hover .farm-latest-card-img img {
    transform: scale(1.02);
}
.farm-latest-card-title {
    font-family: var(--farm-heading-font);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--farm-text);
}
.farm-latest-card-title a:hover {
    color: var(--farm-accent);
}
.farm-latest-card-desc {
    font-size: 0.85rem;
    color: var(--farm-text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Popular Posts Numbered Sidebar */
.farm-popular-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.farm-popular-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.farm-popular-number {
    font-family: var(--farm-heading-font);
    font-size: 2.2rem;
    font-weight: 700;
    color: #e4e4e7;
    line-height: 0.9;
    width: 36px;
    flex-shrink: 0;
}
.farm-popular-body {
    flex-grow: 1;
}
.farm-popular-title {
    font-family: var(--farm-heading-font);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--farm-text);
}
.farm-popular-title a:hover {
    color: var(--farm-accent);
}

/* Category & Article Page Fallback layouts */
.farm-horizontal-card {
    background: #ffffff;
    border: 1px solid var(--farm-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.farm-horizontal-card:hover {
    border-color: var(--farm-accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.farm-card-thumb-wrap {
    width: 32%;
    position: relative;
    overflow: hidden;
}
.farm-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.farm-card-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--farm-accent);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 2;
}
.farm-card-body {
    width: 68%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.farm-card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #71717a;
    margin-bottom: 6px;
}
.farm-rating-stars {
    color: #facc15;
}
.farm-card-title {
    font-family: var(--farm-heading-font);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--farm-text);
}
.farm-card-title a:hover {
    color: var(--farm-accent);
}
.farm-card-desc {
    font-size: 0.85rem;
    color: var(--farm-text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.farm-card-author-line {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--farm-text);
}

/* Sidebar Widgets for Inner Pages */
.farm-sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--farm-border);
    border-radius: 12px;
    padding: 24px;
}
.farm-widget-title {
    font-family: var(--farm-heading-font);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--farm-text);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--farm-border);
    padding-bottom: 8px;
}
.farm-author-widget-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.farm-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}
.farm-author-widget-name {
    font-family: var(--farm-heading-font);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--farm-text);
}
.farm-author-widget-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--farm-accent);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.farm-author-widget-bio {
    font-size: 0.82rem;
    color: var(--farm-text-muted);
    line-height: 1.45;
}
.farm-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.farm-tag-item {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: #f4f4f5;
    border-radius: 20px;
    color: #71717a;
    font-weight: 600;
}
.farm-tag-item:hover {
    color: #ffffff;
    background: var(--farm-accent);
}
.farm-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.farm-recent-post-item {
    display: flex;
    gap: 10px;
    align-items: center;
}
.farm-recent-post-thumb {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.farm-recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.farm-recent-post-content {
    flex-grow: 1;
}
.farm-recent-post-title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.farm-recent-post-title a:hover {
    color: var(--farm-accent);
}
.farm-recent-post-date {
    font-size: 0.68rem;
    color: #71717a;
}

/* Footer layout */
.farm-footer {
    background: #18181b;
    border-top: 1px solid var(--farm-border);
    padding: 60px 0 30px;
    margin-top: 60px;
    color: #a1a1aa;
}
.farm-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}
.farm-footer-brand p {
    font-size: 0.82rem;
    margin-top: 15px;
    line-height: 1.5;
}
.farm-footer-logo-text {
    font-family: var(--farm-heading-font);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}
.farm-footer-col-title {
    font-family: var(--farm-heading-font);
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}
.farm-footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.farm-footer-col a {
    color: #a1a1aa;
    font-size: 0.82rem;
}
.farm-footer-col a:hover {
    color: #ffffff;
}
.farm-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    text-align: center;
    font-size: 0.75rem;
}

/* Article Page specific layouts */
.farm-article-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
    padding: 30px 0;
}
.farm-article-wrap {
    background: #ffffff;
    border: 1px solid var(--farm-border);
    padding: 35px;
    border-radius: 12px;
}
.farm-article-title {
    font-family: var(--farm-heading-font);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--farm-text);
}
.farm-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--farm-border);
}
.farm-meta-author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.farm-article-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}
.farm-article-content {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--farm-text);
}
.farm-article-content h2, .farm-article-content h3 {
    font-family: var(--farm-heading-font);
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--farm-text);
}
.farm-article-content p {
    margin-bottom: 18px;
}
.farm-silo-link {
    background: #eefaf6;
    border-left: 4px solid var(--farm-accent);
    padding: 12px 18px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
    font-size: 0.9rem;
}
.farm-author-box {
    display: flex;
    gap: 20px;
    background: #f4f4f5;
    padding: 24px;
    border-radius: 8px;
    margin-top: 40px;
}
.farm-author-box img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.farm-author-name {
    font-family: var(--farm-heading-font);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--farm-text);
}
.farm-author-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--farm-accent);
    margin-bottom: 6px;
}
.farm-author-bio {
    font-size: 0.82rem;
    color: var(--farm-text-muted);
}
.farm-related {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--farm-border);
}
.farm-related h3 {
    font-family: var(--farm-heading-font);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}
.farm-related ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.farm-related a {
    color: var(--farm-accent);
    font-weight: 600;
    font-size: 0.9rem;
}
.farm-related a:hover {
    text-decoration: underline;
}
.farm-breadcrumb {
    font-size: 0.82rem;
    color: var(--farm-text-muted);
    margin-bottom: 20px;
}
.farm-legal-wrap {
    background: #ffffff;
    border: 1px solid var(--farm-border);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
}
.farm-legal-wrap h1 {
    font-family: var(--farm-heading-font);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--farm-border);
    padding-bottom: 12px;
}
.farm-legal-wrap h2 {
    font-family: var(--farm-heading-font);
    font-size: 1.3rem;
    font-weight: 800;
    margin: 25px 0 12px;
}

@media (max-width: 992px) {
    .farm-main-sidebar-layout { grid-template-columns: 1fr; }
    .farm-featured-grid { grid-template-columns: 1fr; }
    .farm-article-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .farm-header-inner { flex-direction: column; gap: 15px; border-radius: 0; padding: 20px 0; }
    .farm-header-search { width: 100%; }
    .farm-nav-list { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .farm-hero-section { grid-template-columns: 1fr; padding: 30px; gap: 30px; }
    .farm-hero-greet { font-size: 2rem; }
    .farm-latest-grid { grid-template-columns: 1fr; }
    .farm-featured-small-card { flex-direction: column; align-items: flex-start; }
    .farm-featured-small-img { width: 100%; height: 180px; }
    .farm-horizontal-card { flex-direction: column; }
    .farm-card-thumb-wrap { width: 100%; aspect-ratio: 1.6; }
    .farm-card-body { width: 100%; padding: 20px; }
    .farm-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .farm-article-wrap { padding: 20px; }
}
