/*
Theme Name: Being Prepared
Theme URI: https://beingprepared.blog
Author: Jeff Morgan
Description: A clean editorial theme for the Being Prepared blog — Jeff Morgan's writing on crisis response, emergency planning, and preparedness. Source Serif body, Inter UI, Aviem navy accents. Posts inherit the design automatically.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: being-prepared
*/

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #F9FAFB;
  color: #0F1419;
  font-family: 'Source Serif 4', Georgia, serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #04619a; }
img { max-width: 100%; height: auto; }
.bp-page { max-width: 900px; margin: 0 auto; padding: 2.5rem 2.5rem 4rem; }

/* ---------- Nav ---------- */
.bp-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 1rem; border-bottom: 1px solid #04619a;
  font-family: 'Inter', sans-serif; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.bp-nav-brand a { color: #04619a; text-decoration: none; }
.bp-nav-links { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.bp-nav-links a { color: #3A3D42; text-decoration: none; transition: color 0.15s; }
.bp-nav-links a:hover, .bp-nav-links .current-menu-item a { color: #04619a; }

/* ---------- Masthead (home) ---------- */
.bp-masthead { padding: 2.5rem 0 2rem; border-bottom: 0.5px solid rgba(15,20,25,0.2); }
.bp-kicker {
  font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; color: #0d7fb5; font-weight: 600; margin-bottom: 16px;
}
.bp-masthead-statement {
  font-size: 40px; line-height: 1.15; font-weight: 400; margin-bottom: 20px;
  max-width: 720px; color: #04619a; letter-spacing: -0.005em;
}
.bp-masthead-sub { font-family: 'Inter', sans-serif; font-size: 16px; color: #3A3D42; line-height: 1.6; max-width: 560px; }

/* ---------- Sections ---------- */
.bp-section { padding: 1.75rem 0 1.25rem; border-top: 0.5px solid rgba(15,20,25,0.2); }
.bp-section:first-of-type { border-top: none; padding-top: 2rem; }
.bp-section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.bp-section-link { font-family: 'Inter', sans-serif; font-size: 14px; color: #04619a; text-decoration: none; font-weight: 500; }

/* ---------- Featured grid ---------- */
.bp-start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.bp-featured-item .bp-hero {
  display: block; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 1rem;
  background: linear-gradient(rgba(4,97,154,0.85), rgba(4,97,154,0.6)); background-size: cover; background-position: center;
  border-radius: 2px; filter: contrast(1.1);
}
.bp-featured-item .bp-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #5A5E63;
  letter-spacing: 0.05em; margin-bottom: 8px; text-transform: uppercase; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.bp-featured-item h3 { font-size: 22px; line-height: 1.3; margin-bottom: 8px; font-weight: 500; }
.bp-featured-item h3 a { color: #04619a; text-decoration: none; }
.bp-featured-item p { font-family: 'Inter', sans-serif; font-size: 16px; color: #3A3D42; line-height: 1.6; }

/* ---------- Category marks ---------- */
.bp-cat-mark { display: inline-block; width: 12px; height: 12px; flex-shrink: 0; }
.bp-cat-mark.framework { border: 1.5px solid #04619a; transform: rotate(45deg); }
.bp-cat-mark.essay { border: 1.5px solid #04619a; border-radius: 50%; }
.bp-cat-mark.case { background: #04619a; }
.bp-cat-mark.exercise { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #04619a; width: 13px; height: 11px; }

/* ---------- Latest list ---------- */
.bp-latest-list { display: flex; flex-direction: column; }
.bp-latest-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 0.5px dotted rgba(15,20,25,0.3); gap: 1rem;
}
.bp-latest-item:last-child { border-bottom: none; }
.bp-latest-item .left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.bp-latest-item .title { font-size: 20px; color: #0F1419; font-weight: 400; text-decoration: none; }
.bp-latest-item:hover .title { color: #04619a; }
.bp-latest-item .date {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #5A5E63;
  white-space: nowrap; text-transform: uppercase; font-weight: 500;
}

/* ---------- Topic pills ---------- */
.bp-topics { display: flex; flex-wrap: wrap; gap: 10px; font-family: 'Inter', sans-serif; list-style: none; }
.bp-pill {
  font-size: 14px; padding: 8px 16px; border: 1px solid #04619a; border-radius: 100px;
  color: #04619a; text-decoration: none; transition: background 0.15s; font-weight: 500;
}
.bp-pill:hover { background: rgba(4,97,154,0.08); }
.bp-pill .count { color: #5A5E63; margin-left: 4px; font-weight: 400; }

.bp-mark-legend {
  margin-top: 1.5rem; padding-top: 1rem; border-top: 0.5px dotted rgba(15,20,25,0.2);
  display: flex; flex-wrap: wrap; gap: 1.5rem; font-family: 'Inter', sans-serif; font-size: 12px; color: #5A5E63;
}
.bp-mark-legend-item { display: flex; align-items: center; gap: 8px; }

/* ---------- Single post ---------- */
.bp-post-column { max-width: 600px; margin: 0 auto; }
.bp-post-header { padding: 3rem 0 2rem; }
.bp-post-header .bp-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.05em;
  color: #0d7fb5; margin-bottom: 1.25rem; text-transform: uppercase; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.bp-post-title { font-size: 46px; line-height: 1.1; font-weight: 500; margin-bottom: 1.25rem; color: #04619a; letter-spacing: -0.015em; }
.bp-post-dek { font-size: 22px; line-height: 1.45; color: #2A2D32; font-style: italic; margin-bottom: 1.75rem; }
.bp-byline { font-family: 'Inter', sans-serif; font-size: 14px; color: #5A5E63; display: flex; gap: 16px; font-weight: 500; }
.bp-post-hero {
  width: 100%; aspect-ratio: 16 / 9; margin: 0 0 2.5rem; border-radius: 2px;
  background-size: cover; background-position: center; filter: contrast(1.1);
}

.bp-post-body { font-size: 21px; line-height: 1.7; color: #0F1419; }
.bp-post-body p { margin: 0 0 1.5rem; }
.bp-post-body h2 { font-size: 28px; font-weight: 600; color: #04619a; margin: 2.5rem 0 1rem; line-height: 1.25; }
.bp-post-body h3 { font-size: 23px; font-weight: 600; margin: 2rem 0 0.75rem; }
.bp-post-body ul, .bp-post-body ol { margin: 0 0 1.5rem 1.5rem; }
.bp-post-body li { margin-bottom: 0.5rem; }
.bp-post-body a { color: #04619a; }
.bp-post-body img { border-radius: 2px; margin: 1.5rem 0; }
.bp-post-body blockquote, .bp-post-body .wp-block-quote, .bp-post-body .wp-block-pullquote {
  border-left: 4px solid #04619a; padding: 0.5rem 0 0.5rem 1.75rem; margin: 2.5rem 0;
  font-size: 26px; line-height: 1.35; font-style: italic; color: #04619a; font-weight: 500;
}
.bp-post-body .wp-block-pullquote p, .bp-post-body blockquote p { margin: 0; font-size: inherit; }
.bp-post-body figure { margin: 1.5rem 0; }
.bp-post-body figcaption { font-family: 'Inter', sans-serif; font-size: 13px; color: #5A5E63; margin-top: 6px; }

/* ---------- Post-end CTA ---------- */
.bp-cta { margin: 3.5rem 0 1.5rem; padding: 2rem 0; border-top: 1px solid #04619a; border-bottom: 1px solid #04619a; }
.bp-cta-kicker { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: #0d7fb5; margin-bottom: 14px; font-weight: 600; }
.bp-cta-text { font-size: 20px; line-height: 1.55; margin-bottom: 1.5rem; max-width: 520px; color: #0F1419; }
.bp-btn {
  display: inline-block; padding: 14px 28px; background: #04619a; color: #FFFFFF; border: none;
  border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 15px; cursor: pointer;
  letter-spacing: 0.03em; font-weight: 500; text-decoration: none; transition: background 0.15s;
}
.bp-btn:hover { background: #034d7a; color: #fff; }

/* ---------- Next/prev ---------- */
.bp-next-post { padding-top: 1rem; }
.bp-next-kicker { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: #5A5E63; margin-bottom: 10px; font-weight: 500; }
.bp-next-post .title { font-size: 24px; color: #04619a; margin-bottom: 6px; font-weight: 500; text-decoration: none; display: block; }
.bp-next-post .dek { font-family: 'Inter', sans-serif; font-size: 15px; color: #3A3D42; line-height: 1.5; }

/* ---------- Page / generic content ---------- */
.bp-content { max-width: 640px; margin: 0 auto; }
.bp-page-header { padding: 3rem 0 2rem; }
.bp-page-title { font-size: 40px; line-height: 1.15; font-weight: 500; color: #04619a; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.bp-page-dek { font-size: 20px; color: #3A3D42; font-style: italic; }
.bp-rich { font-size: 19px; line-height: 1.7; }
.bp-rich p { margin: 0 0 1.5rem; }
.bp-rich h2 { font-size: 26px; color: #04619a; font-weight: 600; margin: 2.25rem 0 1rem; }
.bp-rich h3 { font-size: 21px; font-weight: 600; margin: 1.75rem 0 0.75rem; }
.bp-rich ul, .bp-rich ol { margin: 0 0 1.5rem 1.5rem; }
.bp-rich a { color: #04619a; }

/* ---------- Archive ---------- */
.bp-archive-header { padding: 2.5rem 0 1.5rem; border-bottom: 0.5px solid rgba(15,20,25,0.2); margin-bottom: 0.5rem; }
.bp-pagination { font-family: 'Inter', sans-serif; margin-top: 2.5rem; display: flex; gap: 12px; }
.bp-pagination .page-numbers {
  padding: 8px 14px; border: 1px solid rgba(4,97,154,0.4); border-radius: 6px;
  text-decoration: none; color: #04619a; font-size: 14px;
}
.bp-pagination .page-numbers.current { background: #04619a; color: #fff; border-color: #04619a; }

/* ---------- Footer ---------- */
.bp-site-footer {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 0.5px solid rgba(15,20,25,0.2);
  font-family: 'Inter', sans-serif; font-size: 13px; color: #5A5E63;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.bp-site-footer a { color: #3A3D42; text-decoration: none; }
.bp-site-footer a:hover { color: #04619a; }

.bp-empty { font-family: 'Inter', sans-serif; color: #5A5E63; font-size: 16px; padding: 1rem 0; }

/* ---------- WPForms (contact) ---------- */
.wpforms-container { max-width: 600px; margin: 1.5rem 0 2rem; font-family: 'Inter', sans-serif; }
.wpforms-container .wpforms-field-label { font-weight: 600; }
.wpforms-container input[type=text], .wpforms-container input[type=email], .wpforms-container textarea { border: 1px solid #5A5E63; border-radius: 6px; }
.wpforms-container input:focus, .wpforms-container textarea:focus { outline: 2px solid #1d9ad6; border-color: #04619a; }
.wpforms-container button[type=submit] { background: #04619a; border: none; border-radius: 6px; padding: 14px 28px; font-weight: 500; letter-spacing: .03em; }
.wpforms-container button[type=submit]:hover { background: #034d7a; }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .bp-page { padding: 1.5rem 1.25rem 3rem; }
  .bp-masthead-statement { font-size: 28px; }
  .bp-start-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .bp-nav { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bp-nav-links { gap: 14px; font-size: 11px; }
  .bp-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bp-latest-item .title { font-size: 17px; }
  .bp-post-title { font-size: 32px; }
  .bp-post-dek { font-size: 18px; }
  .bp-post-body { font-size: 18px; }
  .bp-post-body blockquote, .bp-post-body .wp-block-pullquote { font-size: 21px; }
  .bp-page-title { font-size: 30px; }
}
