/*
Theme Name: Stephanie Blog Theme
Theme URI: https://www.stephanietobola.com/
Author: Custom Website Rebuild
Description: Lightweight WordPress blog theme designed to visually align with the Stephanie Tobola static site rebuild.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: stephanie-blog-theme
*/

:root {
  --brand-primary: #0C486D;
  --brand-primary-dark: #1f2a33;
  --brand-soft: #f7f1ea;
  --brand-cream: #fffaf5;
  --brand-text: #0C486D;
  --brand-muted: #5f6b76;
  --brand-border: rgba(47, 42, 38, 0.12);
  --brand-shadow: 0 16px 40px rgba(47, 42, 38, 0.08);
}

body {
  margin: 0;
  color: var(--brand-text);
  background: var(--brand-cream);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  color: var(--brand-primary-dark);
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.section-padding {
  padding: 5rem 0;
}

.bg-soft {
  background: var(--brand-soft);
}

.text-muted-custom {
  color: var(--brand-muted);
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.section-title h1,
.section-title h2 {
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.site-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--brand-border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--brand-text);
}

.site-tagline {
  display: block;
  color: var(--brand-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav a {
  color: var(--brand-text);
  font-weight: 650;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--brand-primary);
}

.social-strip {
  background: var(--brand-primary);
  color: var (--brand-primary);
  padding: 0.65rem 0;
}

.social-strip .container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-strip a {
  color: var (--brand-primary);
  font-weight: 700;
  font-size: 0.88rem;
}

.content-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 1.35rem;
  box-shadow: var(--brand-shadow);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.post-card {
  overflow: hidden;
}

.post-card__image {
  aspect-ratio: 16 / 10;
  background: var(--brand-soft);
  overflow: hidden;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 1.5rem;
}

.post-card h2,
.post-card h3 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.post-meta {
  color: var(--brand-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.btn,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  background: var(--brand-primary);
  color: #fff !important;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.btn:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--brand-primary-dark);
  color: #fff !important;
}

.single-post-wrap {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 2rem;
  align-items: start;
}

.single-article {
  padding: 2rem;
}

.single-article h1 {
  margin-top: 0;
  line-height: 1.1;
}

.single-featured-image {
  margin: 1.5rem 0;
  border-radius: 1rem;
  overflow: hidden;
}

.sidebar-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h2,
.sidebar-card h3 {
  margin-top: 0;
}

.site-footer {
  padding: 3rem 0;
  background: var(--brand-text);
  color: #fff;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

@media (max-width: 900px) {
  .post-grid,
  .single-post-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .section-padding {
    padding: 3.5rem 0;
  }
}