@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root { --ink: #3a332e; --muted: #a89a8d; --line: #ece3d9; --paper: #fffdfa; --blush: #f6ece4; --accent: #c98a72; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: 'Jost', -apple-system, sans-serif; line-height: 1.6; font-weight: 300; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; margin: 0; font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.placeholder-img { background: linear-gradient(135deg, #f3e9df, #eaddce); display: flex; align-items: center; justify-content: center; color: #c3b3a3; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; object-fit: cover; }

.topbar { background: var(--blush); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.topbar .wrap { display: flex; justify-content: space-between; padding: 8px 24px; color: var(--muted); }

.site-header { padding: 40px 24px 28px; text-align: center; }
.logo-group { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-box { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 24px; color: var(--accent); }
.logo-img { height: 160px; width: auto; max-width: 480px; object-fit: contain; }
.site-name { font-size: 38px; letter-spacing: .02em; }
.site-tagline { font-size: 13px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

.main-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.main-nav .wrap { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.main-nav a { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 15px 0; display: block; color: var(--ink); }
.main-nav a.home { color: var(--accent); }
.main-nav a:hover { color: var(--accent); }

.hero-banner { position: relative; height: 460px; margin: 0; }
.hero-banner .placeholder-img, .hero-banner img { width: 100%; height: 100%; }
.hero-banner-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30,20,14,.65), rgba(30,20,14,0) 55%); display: flex; align-items: flex-end; }
.hero-banner-copy { color: #fff; padding: 40px; max-width: 640px; }
.hero-banner-copy .cat-tag { color: #f0d9c9; }
.hero-banner-copy h1 { font-size: 42px; line-height: 1.2; margin: 10px 0; color: #fff; }
.hero-banner-copy p { font-size: 15px; color: #ecdfd4; }
.hero-banner-copy .byline { color: #ecdfd4; margin-top: 6px; }

.layout { max-width: 1120px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 300px; gap: 46px; align-items: start; }

.alt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.alt-row.reverse { direction: rtl; }
.alt-row.reverse > * { direction: ltr; }
.alt-row .placeholder-img, .alt-row img { width: 100%; height: 320px; border-radius: 4px; }
.cat-tag { color: var(--accent); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.alt-row h2 { font-size: 30px; line-height: 1.25; margin: 10px 0 12px; }
.alt-row p { font-size: 14.5px; color: #6d6259; margin: 0 0 10px; }
.meta, .byline { color: var(--muted); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }

.section-heading { text-align: center; margin-bottom: 30px; }
.section-heading h2 { font-size: 26px; }
.section-heading .rule { width: 40px; height: 1px; background: var(--accent); margin: 10px auto 0; }
section.cat-section { margin-bottom: 56px; }

.post-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.gallery-card { display: block; }
.gallery-card .placeholder-img, .gallery-card img { width: 100%; height: 240px; border-radius: 4px; margin-bottom: 14px; }
.gallery-card h3 { font-size: 19px; line-height: 1.3; margin: 4px 0; }

.sidebar { display: flex; flex-direction: column; gap: 30px; }
.widget h3 { font-family: 'Cormorant Garamond', serif; font-size: 18px; margin: 0 0 16px; text-align: center; }
.mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-gallery .placeholder-img, .mini-gallery img { width: 100%; height: 76px; border-radius: 3px; }
.trending-list { list-style: none; margin: 0; padding: 0; }
.trending-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.trending-list li:last-child { border-bottom: none; }
.t-title a { font-size: 14px; }
.t-meta { color: var(--muted); font-size: 11px; margin-top: 3px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag-cloud a { background: var(--blush); font-size: 11.5px; padding: 6px 13px; border-radius: 99px; letter-spacing: .04em; }
.newsletter-widget { text-align: center; }
.newsletter-widget p { font-size: 13px; color: var(--muted); }
.newsletter-widget input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 3px; margin-bottom: 8px; font-family: inherit; }
.newsletter-widget button { width: 100%; background: var(--accent); color: #fff; border: none; padding: 10px; border-radius: 3px; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; cursor: pointer; }
.social-row { display: flex; gap: 14px; justify-content: center; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.social-row a:hover { color: var(--accent); }
.ad-widget { text-align: center; color: var(--muted); font-size: 11px; padding: 30px 10px; border: 1px dashed var(--line); text-transform: uppercase; letter-spacing: .06em; }

.category-title { font-size: 34px; text-align: center; margin: 0 0 34px; }
.featured-ribbon { display: inline-block; background: #b3241c; color: #fff; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 2px; margin-bottom: 8px; }

.single-post-header { text-align: center; margin-bottom: 30px; max-width: 720px; margin-left: auto; margin-right: auto; }
.single-post-header h1 { font-size: 40px; line-height: 1.2; margin: 10px 0 12px; }
.single-post-headline { width: 100%; height: 420px; object-fit: cover; border-radius: 4px; margin-bottom: 36px; }
.single-post-content { font-size: 16.5px; line-height: 1.85; max-width: 720px; margin: 0 auto; color: #574d44; }
.single-post-content p { margin: 0 0 20px; }
.single-post-content a { color: var(--accent); text-decoration: underline; }
.single-post-content img { border-radius: 4px; margin: 22px 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); justify-content: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.tag-pill-link { background: var(--blush); font-size: 12px; padding: 5px 12px; border-radius: 99px; }

.related-posts { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 30px; }
.related-posts h2 { text-align: center; font-size: 22px; margin-bottom: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.post-card .placeholder-img, .post-card img { width: 100%; height: 170px; border-radius: 4px; margin-bottom: 10px; }
.post-card h3 { font-size: 17px; margin: 4px 0; }
.post-card p { font-size: 13px; color: var(--muted); margin: 0 0 6px; }

.search-form { display: flex; gap: 8px; margin: 0 auto 30px; max-width: 480px; }
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; font-family: inherit; }
.search-form button { background: var(--accent); color: #fff; border: none; border-radius: 99px; padding: 0 20px; cursor: pointer; }

.empty-state { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty-state h1 { color: var(--ink); font-size: 30px; }
.btn { display: inline-block; margin-top: 18px; background: var(--accent); color: #fff; padding: 11px 24px; border-radius: 99px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

.site-footer { background: var(--blush); padding: 50px 24px 22px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(2, 1fr); gap: 30px; text-align: center; padding-bottom: 24px; border-bottom: 1px solid #e6d7c8; }
.footer-grid h4 { font-family: 'Cormorant Garamond', serif; font-size: 17px; margin: 0 0 12px; }
.footer-grid p { font-size: 13px; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13px; }
.footer-bottom { text-align: center; padding-top: 16px; font-size: 11.5px; color: var(--muted); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .alt-row, .alt-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .post-grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
