/* shared.css — SSI site-wide styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --white: #ffffff; --black: #000000; --text: #2b2b2b;
  --light-bg: #f7f7f7; --border: #e0e0e0; --red: #c8102e;
  --mid-gray: #777;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Roboto', Arial, sans-serif;
  --condensed: 'Barlow Condensed', Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

header { background: var(--white); border-bottom: 2px solid var(--black); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo-wrap img { height: 58px; width: auto; }
nav { display: flex; align-items: center; }
nav a { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--text); padding: 7px 13px; white-space: nowrap; transition: color 0.15s; border-bottom: 2px solid transparent; }
nav a:hover, nav a.active { color: var(--black); border-bottom-color: var(--black); }
.search-wrap { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; padding: 0 4px; }
.search-wrap input { border: none; outline: none; padding: 6px 10px; font-size: 13px; width: 130px; font-family: var(--sans); color: var(--text); background: transparent; }
.search-wrap button { background: none; border: none; padding: 5px 8px; cursor: pointer; color: var(--mid-gray); }

footer { background: var(--black); color: var(--white); padding: 44px 0 20px; margin-top: 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-logo { margin-bottom: 28px; }
.footer-logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-about p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.75; }
.footer-col h4 { font-family: var(--condensed); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-social { display: flex; gap: 18px; }
.footer-social a { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 1px; text-transform: uppercase; font-family: var(--condensed); transition: color 0.2s; }
.footer-social a:hover { color: var(--white); }

.section-divider { margin: 36px 0 20px; display: flex; align-items: center; gap: 12px; }
.section-divider h2 { font-family: var(--sans); font-size: 16px; font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: 2px; }
.section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.post-card { cursor: pointer; display: block; }
.post-card-img { aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; background: #eee; margin-bottom: 10px; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-cat { font-family: var(--condensed); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 5px; }
.post-card h3 { font-family: var(--condensed); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--text); }
.post-card:hover h3 { text-decoration: underline; }

@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2,1fr); } .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } nav { display: none; } .footer-cols { grid-template-columns: 1fr; } }
