/*
Theme Name: ASB Kitchen Homestead
Author: AI Designer
Description: A warm, organic scrapbook-style theme for home cooking and bistro journals.
Version: 20.0
*/

:root {
  /* Colors - Modern Homestead */
  --c-bg: #F9F7F2; /* Warm Parchment */
  --c-text: #2D302D; /* Deep Charcoal Green */
  --c-primary: #4A5D45; /* Sage Forest */
  --c-accent: #BC6C25; /* Earthy Rust */
  --c-border: #E5E1D8;
  --c-white: #FFFFFF;
  --c-cream: #FFFDF9;
  
  /* Typography */
  --f-display: 'Fraunces', serif;
  --f-body: 'Hanken Grotesk', sans-serif;
  
  /* Spacing */
  --s-sidebar: 350px;
  --radius: 0px;
}

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

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  display: flex;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--c-text);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* LAYOUT: SIDEBAR LEFT */
.site-wrapper {
    display: flex;
    width: 100%;
}

.sidebar-left {
    width: var(--s-sidebar);
    height: 100vh;
    background: var(--c-cream);
    border-right: 1px solid var(--c-border);
    position: fixed;
    top: 0;
    left: 0;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.main-content {
    flex-grow: 1;
    margin-left: var(--s-sidebar);
    width: calc(100% - var(--s-sidebar));
}

.logo {
    font-family: var(--f-display);
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    color: var(--c-primary);
    margin-bottom: 80px;
    display: block;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-nav a {
    font-family: var(--f-display);
    font-size: 1.5rem;
    color: var(--c-text);
    position: relative;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--c-accent);
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
}

.sidebar-nav a:hover::before, .sidebar-nav .current-menu-item a::before {
    opacity: 1;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid var(--c-border);
}

/* HERO: Scrapbook */
.hero {
    padding: 100px 80px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 7rem);
    margin-bottom: 40px;
    font-style: italic;
}

.hero-img-wrap {
    position: relative;
    padding: 40px;
}

.hero-img-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 80%; height: 100%;
    background: var(--c-primary);
    z-index: -1;
    opacity: 0.1;
}

.hero-img {
    box-shadow: 30px 30px 0px var(--c-accent);
}

/* CARDS: Journal Style */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    padding: 100px 80px;
}

.card {
    display: flex;
    flex-direction: column;
    transition: 0.4s;
}

.card-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 35px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

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

.card-cat {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--c-accent);
    margin-bottom: 15px;
}

.card-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.card-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 35px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--c-border);
    padding-top: 25px;
}

.card-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.read-link {
    font-family: var(--f-display);
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: underline;
}

/* BLOCKS */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 80px;
    background: var(--c-cream);
    border-y: 1px solid var(--c-border);
}

.expertise-item h4 {
    color: var(--c-primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* PAGINATION */
.pagination {
    padding: 0 80px 100px;
    display: flex;
    gap: 15px;
}

.pagination .page-numbers {
    padding: 10px 20px;
    background: var(--c-cream);
    border: 1px solid var(--c-border);
    font-family: var(--f-display);
}

.pagination .current {
    background: var(--c-primary);
    color: white;
    border-color: var(--c-primary);
}

/* FOOTER */
.site-footer {
    background: var(--c-primary);
    color: var(--c-white);
    padding: 100px 80px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 100px;
    margin-bottom: 80px;
}

.footer-col h4 {
    color: var(--c-cream);
    margin-bottom: 30px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ENTRY CONTENT */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}
.entry-content h2 { font-size: 3.5rem; margin: 4rem 0 2rem; font-style: italic; }
.entry-content p { margin-bottom: 2rem; }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .sidebar-left { width: 100px; padding: 40px 20px; }
    .logo { font-size: 1.2rem; }
    .sidebar-nav { display: none; }
    .main-content { margin-left: 100px; width: calc(100% - 100px); }
    .hero { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-content { margin-left: 0; width: 100%; }
    .sidebar-left { display: none; }
    .posts-grid { grid-template-columns: 1fr; padding: 40px; }
    .hero { padding: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 50px; }
}
