/* CrappyRv â site styles v1
   Brand notes (draft, Sara to review):
   - Charcoal + warning-yellow accent for "watchdog" feel
   - Bold sans-serif headlines, readable serif for body warmth
*/

:root {
  --bg: #14181c;
  --bg-alt: #1c2128;
  --surface: #232a32;
  --ink: #e8edf2;
  --ink-soft: #b3bcc6;
  --ink-muted: #7c8794;
  --accent: #f5b700;       /* warning yellow */
  --accent-hot: #e23e3e;   /* alarm red â used sparingly */
  --accent-soft: #fff3c0;
  --line: #2c333c;
  --maxw: 1100px;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Georgia, "Iowan Old Style", "Source Serif Pro", serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .ui {
  font-family: "Helvetica Neue", "Inter", system-ui, -apple-system, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(245,183,0,0.25); }
a:hover { color: #ffd24a; border-bottom-color: var(--accent); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: var(--maxw); margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-family: "Helvetica Neue", system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--ink);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand img {
  height: 44px; width: auto; display: block;
  background: #fff; padding: 4px 10px; border-radius: 4px;
}
.brand .dot { color: var(--accent); }
.tagline {
  display: inline-block; margin-left: 0.75rem;
  font-family: "Helvetica Neue", system-ui, sans-serif;
  font-weight: 600; font-size: 0.85rem;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
}
@media (max-width: 720px) { .tagline { display: none; } }
.nav-links {
  display: flex; gap: 1.25rem; align-items: center;
  font-family: "Helvetica Neue", system-ui, sans-serif;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--ink-soft);
  border: none;
  font-weight: 600;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); color: var(--ink);
  padding: 0.4rem 0.7rem; border-radius: 4px; cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 1rem 1.25rem;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 0%, rgba(245,183,0,0.08), transparent 50%),
    radial-gradient(circle at 90% 30%, rgba(226,62,62,0.06), transparent 60%),
    var(--bg);
}
.hero .eyebrow {
  font-family: "Helvetica Neue", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem;
  color: var(--accent); font-weight: 700; margin-bottom: 0.75rem;
}
.hero p.lede {
  font-size: 1.25rem; color: var(--ink-soft); max-width: 720px;
}
.hero .cta-row {
  margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: "Helvetica Neue", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #1a1a1a; border-color: var(--accent);
}
.btn-primary:hover { background: #ffd24a; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
section { padding: 3rem 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-eyebrow {
  font-family: "Helvetica Neue", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem;
  color: var(--accent); font-weight: 700;
}

/* Cards / grids */
.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-top: 0; }
.card .meta { color: var(--ink-muted); font-size: 0.9rem; }

/* Pull quote */
.pullquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(245,183,0,0.06);
  font-size: 1.2rem;
  color: var(--ink);
}

/* Stats row */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem;
  margin-top: 2rem;
}
.stat {
  background: var(--surface); border: 1px solid var(--line); padding: 1.25rem; border-radius: var(--radius);
}
.stat .num {
  font-family: "Helvetica Neue", system-ui, sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--accent);
}
.stat .label { color: var(--ink-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* Video embeds */
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); background: #000; border: 1px solid var(--line);
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* Email signup */
.signup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}
.signup h2 { margin-top: 0; }
.signup form {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem;
}
.signup input[type=email] {
  flex: 1; min-width: 220px;
  padding: 0.75rem 1rem;
  font-size: 1rem; font-family: inherit;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.signup small { color: var(--ink-muted); }

/* Footer */
.site-footer {
  background: #0e1115;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem;
}
.footer-grid h4 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent); margin: 0 0 0.75rem;
}
.footer-grid a { color: var(--ink-soft); border: none; display: block; padding: 0.2rem 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  color: var(--ink-muted); font-size: 0.85rem;
}

/* Draft watermark â Sara review */
.draft-banner {
  background: var(--accent-hot);
  color: white;
  text-align: center;
  font-family: "Helvetica Neue", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem;
  letter-spacing: 0.05em;
}

/* Utility */
.muted { color: var(--ink-muted); }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 3rem 0; }
ul.clean { list-style: none; padding: 0; }
ul.clean li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
ul.clean li:last-child { border-bottom: none; }

/* =========================================================
   Article / blog-post styles
   ========================================================= */

.post-hero {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 10%, rgba(245,183,0,0.08), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(226,62,62,0.06), transparent 60%),
    var(--bg);
}
.post-hero .post-eyebrow {
  font-family: "Helvetica Neue", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem;
  color: var(--accent); font-weight: 700; margin-bottom: 0.75rem;
}
.post-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 920px;
}
.post-hero .post-deck {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 1rem 0 1.5rem;
}
.post-meta {
  font-family: "Helvetica Neue", system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--ink-muted);
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem; margin-top: 1.5rem;
}
.post-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.post-meta strong { color: var(--ink-soft); font-weight: 600; }

article.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  font-size: 1.08rem;
  line-height: 1.7;
}
article.post > p:first-of-type::first-letter {
  font-family: "Helvetica Neue", system-ui, sans-serif;
  float: left;
  font-size: 4rem;
  line-height: 0.9;
  padding: 0.3rem 0.6rem 0 0;
  color: var(--accent);
  font-weight: 900;
}
article.post h2 {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 3rem;
}
article.post h2:first-of-type { border-top: none; padding-top: 0; margin-top: 2.5rem; }
article.post h3 {
  color: var(--accent);
  margin-top: 2rem;
}
article.post p, article.post li { color: var(--ink); }
article.post ul, article.post ol { padding-left: 1.5rem; margin: 1rem 0 1.5rem; }
article.post li { margin: 0.5rem 0; }
article.post a {
  border-bottom: 1px solid rgba(245,183,0,0.4);
}
article.post a:hover { border-bottom-color: var(--accent); }

.post-figure {
  margin: 2.5rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(135deg, #2a313a 0%, #1c2128 100%);
  min-height: 280px;
}
.post-figure figcaption {
  padding: 0.85rem 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  font-style: italic;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.callout.warning { border-left-color: var(--accent-hot); background: rgba(226,62,62,0.06); }
.callout h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.callout.warning h4 { color: var(--accent-hot); }

.tldr {
  background: rgba(245,183,0,0.07);
  border: 1px solid rgba(245,183,0,0.3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2.5rem;
}
.tldr h4 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-family: "Helvetica Neue", system-ui, sans-serif;
}
.tldr p { margin: 0; color: var(--ink-soft); }

.share-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
}
.share-row .share-label {
  font-family: "Helvetica Neue", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}
.share-row a {
  border: none;
  background: var(--surface);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  font-family: "Helvetica Neue", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.share-row a:hover { background: var(--accent); color: #1a1a1a; }

.related-posts {
  margin: 3rem 0 1rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.related-posts h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
.related-posts ul { list-style: none; padding: 0; margin: 0; }
.related-posts li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.related-posts li:last-child { border-bottom: none; }
.related-posts a {
  border: none;
  font-family: "Helvetica Neue", system-ui, sans-serif;
  font-weight: 600;
  color: var(--ink);
}
.related-posts a:hover { color: var(--accent); }

.byline-strip {
  display: flex; gap: 1rem; align-items: center;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.byline-strip .byline-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.byline-strip strong { color: var(--ink); }

/* Blog index card variant */
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: border-color 0.15s ease;
}
.post-card:hover { border-color: var(--accent); }
.post-card .post-card-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.post-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.post-card h3 a { color: var(--ink); border: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card .post-card-dek {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}
.post-card .post-card-readmore {
  display: inline-block;
  margin-top: 1rem;
  font-family: "Helvetica Neue", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  border: none;
}

.category-strip {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin: 2rem 0 1rem;
}
.category-chip {
  font-family: "Helvetica Neue", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.category-chip:hover, .category-chip.active {
  border-color: var(--accent);
  color: var(--accent);
}