﻿/* ============================================================
   ONISOWURUN SAMPSON BLOG
   Fonts: Cormorant Garamond (headings) + Inter (body)
   Palette: Near-black | Warm white | Deep gold accent
   ============================================================ */

:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #1c1c1c;
  --color-text-muted: #6b6b6b;
  --color-border: #e5e1da;
  --color-accent: #8B6914;
  --color-accent-light: #f0e8d4;
  --color-header-bg: #0e0e0e;
  --color-footer-bg: #111111;
  --color-footer-text: #c8c2b8;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 4px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --transition: 0.22s ease;
  --container-max: 1200px;
  --container-pad: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}
.header .logo {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg);
  padding: 6px 14px;
  border-radius: 6px;
}
.logo-img { height: 36px; width: auto; object-fit: contain; }
.nav-list { display: flex; gap: 2rem; list-style: none; }
.nav-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active { border-bottom: 2px solid var(--color-accent); padding-bottom: 2px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: var(--transition); }

/* HERO */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.page-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,9,8,0.88) 40%, rgba(10,9,8,0.55));
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 620px;
}
.page-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(139,105,20,0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.page-desc { font-size: 1.05rem; color: rgba(255,255,255,0.78); max-width: 500px; line-height: 1.7; }

/* BREADCRUMB */
.breadcrumb { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 0.65rem 0; }
.breadcrumb .container { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* BLOG SECTION */
.blog-section { padding: 4rem 0 5rem; }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }

.blog-card--featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  transition: box-shadow var(--transition);
}
.blog-card--featured:hover { box-shadow: var(--shadow-lg); }
.blog-card--featured .blog-card-image { aspect-ratio: auto; min-height: 300px; }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-image { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.04); }

.blog-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}
.featured-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #111;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}
.blog-card-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 0.75rem; flex-wrap: wrap; }
.blog-meta i { margin-right: 0.3rem; color: var(--color-accent); }
.blog-card-content h2 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; line-height: 1.28; margin-bottom: 0.65rem; }
.blog-card-content h2 a { transition: color var(--transition); }
.blog-card-content h2 a:hover { color: var(--color-accent); }
.blog-card-content p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.65; margin-bottom: 1.25rem; flex: 1; }
.read-more { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; color: var(--color-accent); transition: gap var(--transition); margin-top: auto; }
.read-more:hover { gap: 0.7rem; }
.no-posts { text-align: center; padding: 5rem 2rem; color: var(--color-text-muted); }
.no-posts i { font-size: 2.5rem; margin-bottom: 1rem; color: var(--color-border); display: block; }
.no-posts h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.5rem; }

/* SIDEBAR */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; }
.sidebar-card h3 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.9rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--color-border); }
.sidebar-author { text-align: center; }
.sidebar-author img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.9rem; border: 2px solid var(--color-accent-light); }
.sidebar-author h3 { border-bottom: none; margin-bottom: 0.25rem; font-size: 1.15rem; }
.author-title { font-size: 0.78rem; color: var(--color-accent); margin-bottom: 0.65rem; font-style: italic; }
.sidebar-author p { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-links a { font-size: 0.875rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 0.5rem; transition: color var(--transition); padding: 0.2rem 0; }
.sidebar-links a:hover { color: var(--color-accent); }
.sidebar-links i { width: 14px; color: var(--color-accent); font-size: 0.78rem; }
.sidebar-cta { background: #0e0e0e; border-color: #0e0e0e; }
.sidebar-cta h3 { color: #fff; border-color: rgba(255,255,255,0.12); }
.sidebar-cta p { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 1rem; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.65rem 1.4rem; border-radius: var(--radius); cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition); border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: #704f0e; border-color: #704f0e; }
.btn-outline { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent-light); }
.btn-sm { font-size: 0.75rem; padding: 0.45rem 1rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* POST PAGE */
.post-hero { position: relative; background: #0e0e0e; }
.post-hero-img { position: absolute; inset: 0; overflow: hidden; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,9,8,0.5), rgba(10,9,8,0.85)); }
.post-hero-content { position: relative; z-index: 1; padding: 5rem 0 3.5rem; max-width: 760px; }
.post-hero-content--no-img { padding: 3.5rem 0 3rem; }
.post-meta-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.post-category { background: var(--color-accent); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 2px; }
.post-read-time { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.post-read-time i { margin-right: 0.3rem; }
.post-title { font-family: var(--font-serif); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; color: #fff; line-height: 1.18; margin-bottom: 0.85rem; }
.post-description { font-size: 1.1rem; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 1.5rem; font-style: italic; }
.post-byline { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); }
.byline-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.2); }
.byline-name { display: block; font-weight: 600; font-size: 0.9rem; color: #fff; }
.byline-date { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.byline-date i { margin-right: 0.3rem; color: var(--color-accent); }
.post-body-wrap { padding: 4rem 0 5rem; }
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.post-content { font-size: 1.05rem; line-height: 1.85; color: #2a2a2a; }
.post-content h2 { font-family: var(--font-serif); font-size: 1.85rem; font-weight: 600; margin: 2.5rem 0 1rem; color: var(--color-text); line-height: 1.2; }
.post-content h3 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--color-text); }
.post-content p { margin-bottom: 1.4rem; }
.post-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol { margin: 1rem 0 1.4rem 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote { border-left: 3px solid var(--color-accent); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--color-accent-light); font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; color: #444; border-radius: 0 var(--radius) var(--radius) 0; }
.post-content img { width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }
.post-content hr { border: none; border-top: 1px solid var(--color-border); margin: 2.5rem 0; }
.post-sidebar .sidebar-author img { width: 72px; height: 72px; }

/* CTA */
.cta-section { background: #0e0e0e; padding: 5rem 0; }
.cta-content { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-content h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; color: #fff; margin-bottom: 1rem; line-height: 1.22; }
.cta-content p { font-size: 1rem; color: rgba(255,255,255,0.65); margin-bottom: 2rem; line-height: 1.7; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.logo-img--footer { height: 30px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; margin-top: 0.75rem; color: rgba(255,255,255,0.5); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-links a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; color: rgba(255,255,255,0.6); font-size: 0.8rem; transition: all var(--transition); }
.social-links a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.footer-links h4, .footer-contact h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-links ul, .footer-contact ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a, .footer-contact a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-bottom { padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.powered-by a { color: rgba(255,255,255,0.5); text-decoration: underline; text-underline-offset: 3px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .blog-layout, .post-layout { grid-template-columns: 1fr; }
  .blog-sidebar, .post-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --container-pad: 1.25rem; }
  .nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: #111; padding: 1.5rem; z-index: 99; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { display: block; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-toggle { display: flex; }
  .blog-card--featured { grid-template-columns: 1fr; }
  .blog-card--featured .blog-card-image { min-height: 220px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-sidebar, .post-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .page-title { font-size: 2rem; }
  .post-title { font-size: 1.75rem; }
}
