/* The Growth Engine News. Light news-site theme, white background.
   Brand accents match brandoncorrell.com (violet/blue gradient). */
:root {
  --paper: #ffffff;
  --paper2: #f5f6f8;
  --line: #e4e6eb;
  --rule: #111114;
  --text: #16171b;
  --text2: #474a53;
  --muted: #767984;
  --kicker: #6234e8;
  --link: #2450c9;
  --violet: #7c4dff;
  --grad: linear-gradient(92deg, #8b5cf6, #3b82f6);
  --card: #f6f4ff;
  --card-line: #e0d9ff;
  --max: 700px;
  --wide: 1160px;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 18px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Utility bar + masthead */
.util { border-bottom: 1px solid var(--line); font: 500 12px/1 var(--sans); color: var(--muted); }
.util .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.util a { color: var(--muted); text-decoration: none; }
.util a:hover { color: var(--text); }
.mast { text-align: center; padding: 18px 0 14px; }
.brand { display: inline-block; color: var(--text); text-decoration: none; font: 800 clamp(30px, 6.4vw, 50px)/1 var(--serif); letter-spacing: -.02em; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.mast-sub { font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.navbar { border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: #fff; z-index: 40; }
.nav { display: flex; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--text); text-decoration: none; font: 700 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 13px 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--kicker); }
.nav a[aria-current] { color: var(--kicker); border-bottom-color: var(--violet); }
@media (max-width: 640px) { .nav { justify-content: flex-start; padding: 0 4px; } .util .hide-sm { display: none; } }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 60; }
.draft-banner { background: #fff4d6; color: #6b4a00; font: 600 13px/1.4 var(--sans); text-align: center; padding: 8px 16px; border-bottom: 1px solid #f0d58a; }

/* Trending strip */
.trending { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; font-size: 14px; }
.trending::-webkit-scrollbar { display: none; }
.trending strong { font: 800 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 6px 9px; border-radius: 4px; white-space: nowrap; }
.trending a { color: var(--text); text-decoration: none; white-space: nowrap; font-weight: 600; }
.trending a:hover { color: var(--kicker); }
.trending span { color: var(--line); }

/* Article page: main column + sidebar on wide screens */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.page > main { max-width: var(--max); width: 100%; margin: 0 auto; }
.side { display: none; }
@media (min-width: 1080px) {
  .page { grid-template-columns: minmax(0, var(--max)) 300px; justify-content: center; }
  .page > main { margin: 0; }
  .side { display: block; padding-top: 34px; }
  .side-in { position: sticky; top: 64px; }
}

.article { padding: 28px 0 8px; }
.kicker { display: inline-block; font: 800 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); text-decoration: none; margin-bottom: 12px; }
.article h1 { font: 800 clamp(31px, 6.4vw, 48px)/1.08 var(--serif); letter-spacing: -.015em; margin: 0 0 14px; text-wrap: balance; }
.dek { font: 400 clamp(19px, 3.2vw, 22px)/1.45 var(--serif); color: var(--text2); margin: 0 0 18px; text-wrap: pretty; }
.byline { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline strong { display: block; color: var(--text); font-size: 15px; }
.hero-img { margin: 0 0 24px; }
.hero-img img { width: 100%; border-radius: 6px; aspect-ratio: 1200/630; object-fit: cover; }
.lead { font-size: 20px; line-height: 1.6; font-weight: 500; margin: 0 0 22px; }
.lead::first-letter { font: 800 3.2em/.86 var(--serif); float: left; margin: 6px 10px 0 0; color: var(--kicker); }
.body p { margin: 0 0 20px; }
.body h2 { font: 800 clamp(24px, 4vw, 29px)/1.2 var(--serif); margin: 38px 0 12px; }
.body h3 { font: 700 21px/1.3 var(--serif); margin: 28px 0 10px; }
.body ol, .body ul { padding-left: 1.3em; margin: 0 0 22px; }
.body li { margin: 0 0 12px; padding-left: 4px; }
.body li::marker { color: var(--kicker); font-weight: 800; }
.body blockquote { margin: 22px 0 26px; padding: 16px 18px; background: var(--paper2); border-left: 4px solid var(--violet); border-radius: 0 8px 8px 0; font: 500 16px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.body a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.body a[target]::after { content: "↗"; font-size: .7em; margin-left: 2px; vertical-align: super; opacity: .55; }

/* Tie-in card */
.tiein { margin: 34px 0 30px; padding: 22px 22px 24px; background: var(--card); border: 1px solid var(--card-line); border-radius: 12px; }
.tiein h2 { margin-top: 0 !important; }
.tiein p:last-of-type { margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 10px; background: var(--grad); color: #fff !important; text-decoration: none; font: 700 17px/1 var(--sans); box-shadow: 0 6px 18px rgba(91,76,240,.25); width: 100%; }
.btn:hover { filter: brightness(1.06); }
.btn::after { content: none !important; }
@media (min-width: 560px) { .btn { width: auto; } }
.cta-note { font-size: 13px; color: var(--muted); margin: 10px 0 0 !important; }

/* Rotating house ads: photo + SalesBeast logo, labeled */
.ad { margin: 34px 0; }
.ad-label { display: block; font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #9a9ca5; margin-bottom: 6px; text-align: center; }
.adcard { display: grid; grid-template-columns: 1fr; text-decoration: none; color: #fff !important; background: #0f1020; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 28px rgba(16,16,40,.18); }
.adcard::after { content: none !important; }
.adcard-photo { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.adcard-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; background: radial-gradient(420px 220px at 100% 0%, rgba(139,92,246,.35), transparent 60%), #0f1020; }
.adcard-logo { height: 22px; width: auto; align-self: flex-start; margin-bottom: 4px; }
.adcard-eyebrow { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #c4b5fd; }
.adcard-head { font: 800 24px/1.12 var(--serif); }
.adcard-copy { font: 400 15px/1.45 var(--sans); color: #d6d7e0; }
.adcard-btn { align-self: flex-start; margin-top: 6px; background: var(--grad); color: #fff; font: 700 15px/1 var(--sans); padding: 13px 18px; border-radius: 9px; }
.adcard:hover .adcard-btn { filter: brightness(1.08); }
@media (min-width: 640px) {
  .adcard-inline { grid-template-columns: 1fr 1fr; }
  .adcard-inline .adcard-photo { height: 100%; aspect-ratio: auto; }
}
.ad-side { margin: 0 0 26px; }
.adcard-side .adcard-head { font-size: 21px; }

/* Photos */
.photo { margin: 28px 0; }
.photo img { width: 100%; border-radius: 8px; aspect-ratio: 3/2; object-fit: cover; background: var(--paper2); }
.photo figcaption { font: 400 12px/1.4 var(--sans); color: var(--muted); margin-top: 6px; }
.hero-photo { margin: 0 0 26px; }
.hero-photo img { aspect-ratio: 16/9; }

/* Story cards */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; padding: 14px 0 6px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards-wide { padding-top: 22px; }
.card { text-decoration: none; color: var(--text); display: block; }
.card-img { display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; background: var(--paper2); margin-bottom: 8px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card .k { font: 800 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--kicker); }
.card h3 { font: 800 17px/1.22 var(--serif); margin: 5px 0 0; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } .card h3 { font-size: 20px; } }
.upnext { margin: 10px 0 34px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.upnext .section-title { display: block; margin-bottom: 12px; }
.upnext .card h3 { font-size: 24px; }
.home-sec { margin-bottom: 26px; }
.section-title a { color: inherit; text-decoration: none; }

/* Sticky Game Plan bar */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #0f1020; color: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.18); font: 500 15px/1.35 var(--sans); }
.sticky-cta[hidden] { display: none; }
.sticky-text { flex: 1; }
.sticky-text b { color: #c4b5fd; }
.sticky-btn { background: var(--grad); color: #fff; text-decoration: none; font: 700 15px/1 var(--sans); padding: 13px 18px; border-radius: 9px; white-space: nowrap; }
.sticky-x { background: none; border: 0; color: #9a9ca5; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px; }
@media (max-width: 640px) { .sticky-text { display: none; } .sticky-btn { flex: 1; text-align: center; } }
@media (min-width: 1100px) { .sticky-cta { justify-content: center; } .sticky-text { flex: none; } }

.side h3 { font: 800 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 3px solid var(--rule); }
.side ol { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.side li { counter-increment: n; border-bottom: 1px solid var(--line); padding: 12px 0 12px 34px; position: relative; }
.side li::before { content: counter(n); position: absolute; left: 0; top: 8px; font: 800 24px/1 var(--serif); color: var(--kicker); }
.side li a { color: var(--text); text-decoration: none; font: 700 15px/1.35 var(--serif); }
.side li a:hover { text-decoration: underline; }

.sources { font-size: 14px; color: var(--text2); border-top: 1px solid var(--line); padding-top: 16px; margin: 8px 0 22px; }
.sources h4 { font: 800 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.sources ul { margin: 0; padding-left: 1.1em; }
.sources li { margin-bottom: 6px; }
.disclosure { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.author-box { display: flex; gap: 14px; align-items: flex-start; background: var(--paper2); border-radius: 10px; padding: 18px; margin: 0 0 36px; font-size: 15px; color: var(--text2); }
.author-box img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.author-box strong { color: var(--text); }

/* Lists and cards */
.section-title { font: 800 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin: 0 0 4px; padding-bottom: 9px; border-bottom: 3px solid var(--rule); }
.keep { padding: 8px 0 40px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 1fr 112px; gap: 16px; align-items: start; padding: 16px 0; text-decoration: none; color: var(--text); }
.list a.no-thumb { grid-template-columns: 1fr; }
.list .k { font: 800 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--kicker); }
.list h3 { font: 800 20px/1.22 var(--serif); margin: 6px 0 4px; }
.list p { margin: 0; font-size: 15px; color: var(--text2); line-height: 1.5; }
.list img { width: 112px; aspect-ratio: 1200/630; object-fit: cover; border-radius: 4px; margin-top: 4px; }
.list a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 700px) { .list a { grid-template-columns: 1fr 180px; } .list img { width: 180px; } }

.top { display: grid; gap: 30px; grid-template-columns: 1fr; padding: 22px 0 30px; }
@media (min-width: 960px) { .top { grid-template-columns: 1.65fr 1fr; } .top .col + .col { border-left: 1px solid var(--line); padding-left: 30px; } }
.top .list a { grid-template-columns: 1fr; }
.top .list img { display: none; }
.lead-story { text-decoration: none; color: var(--text); display: block; }
.lead-story .art { aspect-ratio: 1200/630; border-radius: 6px; overflow: hidden; background: var(--paper2); margin-bottom: 14px; }
.lead-story .art img { width: 100%; height: 100%; object-fit: cover; }
.lead-story h2 { font: 800 clamp(29px, 4.8vw, 42px)/1.08 var(--serif); letter-spacing: -.015em; margin: 8px 0 10px; text-wrap: balance; }
.lead-story p { margin: 0; color: var(--text2); font: 400 19px/1.5 var(--serif); }
.lead-story:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.home-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); padding-bottom: 30px; }
@media (min-width: 1080px) { .home-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.cat-head { padding: 28px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.cat-head h1 { font: 800 clamp(32px, 6vw, 46px)/1.1 var(--serif); margin: 0 0 8px; }
.cat-head p { margin: 0 0 18px; color: var(--text2); }
.empty { color: var(--muted); padding: 30px 0; }

/* Footer */
.foot { border-top: 3px solid var(--rule); background: var(--paper2); color: var(--text2); font-size: 14px; padding: 28px 0 40px; margin-top: 20px; }
.foot a { color: var(--text); }
.foot p { margin: 0 0 8px; }
