/* Be1Millionaire — single-file stylesheet. Edit CSS variables to re-theme. */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #1a2421;
  --muted: #5b6b64;
  --brand: #0e6b45;      /* deep green — wealth/trust */
  --brand-dark: #0a4f33;
  --accent: #d4a72c;     /* gold */
  --border: #e4e6e0;
  --radius: 10px;
  --maxw: 1080px;
  font-size: 17px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; border-radius: var(--radius); }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; padding-top: .8rem; padding-bottom: .8rem;
}
.logo {
  font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--ink);
  letter-spacing: -.02em;
}
.logo span { color: var(--accent); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.site-header nav a {
  text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500;
}
.site-header nav a:hover { color: var(--brand); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--brand-dark), var(--brand)); color: #fff; padding: 4rem 0; }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  color: var(--accent); font-weight: 700; margin: 0 0 .75rem;
}
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); margin: 0 0 1rem; line-height: 1.15; letter-spacing: -.02em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lede { max-width: 40rem; font-size: 1.12rem; color: #e8f0ec; margin: 0 0 1.75rem; }

.btn {
  display: inline-block; background: var(--accent); color: #1a1502; font-weight: 700;
  padding: .7rem 1.5rem; border-radius: 999px; text-decoration: none; border: 0;
}
.btn:hover { filter: brightness(1.07); color: #1a1502; }
.btn-outline { background: transparent; border: 2px solid var(--brand); color: var(--brand); }

/* Cards & grids */
.section-title { margin: 2.75rem 0 1.25rem; font-size: 1.45rem; letter-spacing: -.01em; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .15s ease;
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.card img { border-radius: 0; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card h3 { margin: .5rem 0 .4rem; font-size: 1.08rem; line-height: 1.35; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card p { margin: 0 0 .6rem; color: var(--muted); font-size: .92rem; }
.card time { color: var(--muted); font-size: .8rem; }

.badge {
  display: inline-block; background: #e9f3ee; color: var(--brand); font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .6rem; border-radius: 999px; text-decoration: none;
}

/* Blog list */
.page-title { margin: 2.5rem 0 1.5rem; font-size: 2rem; letter-spacing: -.02em; }
.post-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.list-item {
  display: flex; gap: 1.25rem; justify-content: space-between; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.list-item h2 { margin: .4rem 0; font-size: 1.25rem; line-height: 1.3; }
.list-item h2 a { text-decoration: none; color: var(--ink); }
.list-item h2 a:hover { color: var(--brand); }
.list-item p { margin: 0 0 .5rem; color: var(--muted); }
.list-item time { color: var(--muted); font-size: .82rem; }
.list-item img { width: 180px; aspect-ratio: 16/10; object-fit: cover; flex-shrink: 0; }

.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 2rem 0 3rem; color: var(--muted); }

/* Article */
.article { max-width: 760px; padding-top: 2.25rem; padding-bottom: 3rem; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; letter-spacing: -.02em; margin: .75rem 0; }
.breadcrumbs { font-size: .85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.post-meta { color: var(--muted); font-size: .9rem; margin: 0 0 1.25rem; }
.featured { margin: 0 0 1.5rem; }

.disclosure-note {
  background: #fdf6e3; border: 1px solid #f0e0b0; border-radius: var(--radius);
  font-size: .85rem; color: #6b5d2a; padding: .7rem 1rem; margin: 0 0 1.5rem;
}

.prose h2 { margin: 2.25rem 0 .75rem; font-size: 1.5rem; letter-spacing: -.01em; }
.prose h3 { margin: 1.75rem 0 .6rem; font-size: 1.2rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote {
  border-left: 4px solid var(--accent); margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem;
  color: var(--muted); font-style: italic;
}
.prose code {
  background: #eef1ee; padding: .15rem .4rem; border-radius: 5px; font-size: .88em;
}
.prose pre { background: #14201b; color: #d8e6de; padding: 1.1rem 1.3rem; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .55rem .8rem; text-align: left; }
.prose th { background: #eef4f0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

.author-box {
  margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.author-box p { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }

.related { padding-bottom: 3rem; }
.about-strip { padding-bottom: 3.5rem; }
.about-strip p { max-width: 46rem; color: var(--muted); margin-bottom: 1.25rem; }

/* Newsletter */
.newsletter { background: var(--brand-dark); color: #fff; padding: 3rem 0; text-align: center; }
.newsletter h2 { margin: 0 0 .4rem; }
.newsletter p { color: #cfe0d7; margin: 0 0 1.4rem; }
.newsletter form { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.newsletter input {
  padding: .7rem 1.1rem; border-radius: 999px; border: 0; min-width: 260px; font-size: 1rem;
}
.newsletter button {
  padding: .7rem 1.6rem; border-radius: 999px; border: 0; background: var(--accent);
  font-weight: 700; font-size: 1rem; cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 2rem 0; margin-top: 0; color: var(--muted); font-size: .88rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: .9rem; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--brand); }

/* Mobile */
@media (max-width: 640px) {
  .list-item { flex-direction: column-reverse; }
  .list-item img { width: 100%; }
  .hero { padding: 3rem 0; }
}
