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

:root {
    /* Palette — warm Thai greens and golds */
    --jungle:     #1e3a2f;
    --jungle-l:   #2a5040;
    --saffron:    #c9942a;
    --saffron-l:  #e0aa40;
    --cream:      #faf6ed;
    --parchment:  #f0e8d4;
    --parchment-2:#e0d0b4;
    --bark:       #1a110a;
    --umber:      #5c3d1e;
    --dust:       #8a6840;
    --rule:       #d8c8a4;
    --card:       #ffffff;

    --display:  'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
    --sans:     'Source Sans 3', 'Helvetica Neue', sans-serif;

    --radius:     5px;
    --radius-lg:  10px;
    --container:  900px;

    --shadow-sm:  0 2px 8px rgba(26,17,10,0.09);
    --shadow-md:  0 6px 24px rgba(26,17,10,0.13);
}

body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--bark);
    background: var(--cream);
}

a { color: var(--jungle-l); text-decoration: none; }
a:hover { color: var(--saffron); }

img { display: block; max-width: 100%; height: auto; }

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

/* === Header === */
.site-header {
    background: var(--jungle);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 2rem;
}
.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
}
.site-logo .logo-main {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--saffron-l);
    letter-spacing: 0.01em;
}
.site-logo .logo-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0 1rem;
    height: 64px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    border-bottom-color: var(--saffron);
}

/* === Hero Banner === */
.site-hero {
    background: var(--jungle);
    background-image:
        radial-gradient(ellipse at 70% 50%, rgba(201,148,42,0.15) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20 Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
    padding: 4rem 0;
    color: #fff;
    text-align: center;
}
.hero-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--saffron-l);
    margin-bottom: 0.75rem;
}
.site-hero h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    font-style: italic;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.hero-tagline {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === Section titles === */
.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dust);
    margin-bottom: 0.35rem;
}
.section-title {
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--jungle);
    line-height: 1.2;
}

/* === Blog listing === */
.blog-section { padding: 4rem 0; }
.post-list { display: flex; flex-direction: column; gap: 2rem; }

.post-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.post-card-thumb {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.post-card-thumb-placeholder {
    background: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dust);
    font-size: 2.5rem;
}
.post-card-body {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--parchment);
}
.post-card-meta {
    font-size: 0.78rem;
    color: var(--dust);
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.post-card-title {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--jungle);
    line-height: 1.25;
    margin-bottom: 0.6rem;
    transition: color 0.2s;
}
.post-card:hover .post-card-title { color: var(--saffron); }
.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--umber);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--saffron);
}
.post-card-read-more::after { content: '→'; }

/* === Post page === */
.post-hero {
    background: var(--jungle);
    padding: 3.5rem 0 3rem;
    color: #fff;
}
.post-hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--saffron-l);
    margin-bottom: 0.6rem;
}
.post-hero h1 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    font-style: italic;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.post-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.03em;
}

.post-body {
    padding: 3rem 0 4rem;
}
.post-content {
    max-width: 720px;
}
.post-content p {
    margin-bottom: 1.2rem;
    color: var(--bark);
    font-size: 1.02rem;
    line-height: 1.85;
}
.post-content h2, .post-content h3 {
    font-family: var(--display);
    color: var(--jungle);
    margin: 2rem 0 0.75rem;
}
.post-content h2 { font-size: 1.7rem; font-weight: 600; }
.post-content h3 { font-size: 1.3rem; font-weight: 600; }
.post-content strong { color: var(--jungle-l); font-weight: 600; }
.post-content em { font-style: italic; }
.post-content ul, .post-content ol {
    margin: 0 0 1.2rem 1.5rem;
    color: var(--bark);
}
.post-content li { margin-bottom: 0.4rem; line-height: 1.75; }
.post-content a { color: var(--jungle-l); border-bottom: 1px solid var(--rule); }
.post-content a:hover { color: var(--saffron); border-bottom-color: var(--saffron); }

.post-content img {
    border-radius: var(--radius);
    margin: 1.5rem auto;
    box-shadow: var(--shadow-sm);
}
.post-content img.alignright {
    float: right;
    margin: 0.5rem 0 1rem 2rem;
    max-width: 320px;
}
.post-content img.alignleft {
    float: left;
    margin: 0.5rem 2rem 1rem 0;
    max-width: 320px;
}
.post-content .aligncenter { text-align: center; }
.post-content .aligncenter img { margin: 1.5rem auto; float: none; }
.post-clearfix { clear: both; }

/* Recipe styling within posts */
.recipe-ingredients {
    background: var(--parchment);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 3px solid var(--saffron);
}
.recipe-ingredients h4 {
    font-family: var(--display);
    font-size: 1.1rem;
    color: var(--jungle);
    margin-bottom: 0.75rem;
}

/* === Static pages (About, etc.) === */
.page-hero {
    background: var(--jungle);
    padding: 3rem 0;
    color: #fff;
}
.page-hero h1 {
    font-family: var(--display);
    font-size: 2.4rem;
    font-weight: 600;
    font-style: italic;
    color: #fff;
}
.page-body {
    padding: 3rem 0 4rem;
    max-width: 720px;
}
.page-body p {
    margin-bottom: 1.2rem;
    font-size: 1.02rem;
    line-height: 1.85;
}
.page-body ul { margin: 0 0 1.2rem 1.5rem; }
.page-body li { margin-bottom: 0.4rem; line-height: 1.75; }
.page-body a { color: var(--jungle-l); border-bottom: 1px solid var(--rule); }
.page-body a:hover { color: var(--saffron); }

/* === Sidebar / page grid === */
.page-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    padding: 3rem 0 4rem;
    align-items: start;
}
.sidebar {
    position: sticky;
    top: 84px;
}
.sidebar-widget {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jungle);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--parchment-2);
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li { padding: 0.3rem 0; border-bottom: 1px solid var(--parchment); }
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget a { font-size: 0.9rem; color: var(--jungle-l); }
.sidebar-widget a:hover { color: var(--saffron); }
.sidebar-widget .post-date { font-size: 0.75rem; color: var(--dust); display: block; }

/* === Footer === */
.site-footer {
    background: var(--jungle);
    color: rgba(255,255,255,0.6);
    padding: 2.5rem 0;
    margin-top: auto;
    font-size: 0.85rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.footer-brand {
    font-family: var(--display);
    font-size: 1.1rem;
    color: var(--saffron-l);
    font-style: italic;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.footer-links a:hover { color: var(--saffron-l); }

/* === Responsive === */
@media (max-width: 700px) {
    .post-card { grid-template-columns: 1fr; }
    .post-card-thumb { aspect-ratio: 16/9; height: auto; }
    .page-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .header-inner { height: auto; padding: 0.75rem 0; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
    .site-nav a { height: auto; padding: 0.4rem 0.75rem; border-bottom: none; border-left: 3px solid transparent; }
    .site-nav a.active { border-left-color: var(--saffron); border-bottom: none; }
    .footer-inner { flex-direction: column; text-align: center; }
}
