/* legitorscam2026.com — early 2020s blog aesthetic */

:root {
  --bg: #f4f4f0;
  --paper: #fffef9;
  --text: #1a1a1a;
  --muted: #555;
  --link: #1e3a5f;
  --link-hover: #2c5282;
  --border: #ccc9be;
  --accent: #1e3a5f;
  --accent-dark: #0f2440;
  --accent-mid: #2c5282;
  --accent-light: #e8eef5;
  --score-good: #2e7d32;
  --score-warn: #f9a825;
  --score-bad: #c62828;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

/* Header */
.site-header {
  background: #2c2c2c;
  color: #e8e8e8;
  border-bottom: 4px solid var(--accent);
  padding: 1rem 0;
}

.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-title {
  margin: 0;
  font-size: 1.75rem;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-title a:hover {
  color: #a8c5e8;
}

.site-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: #aaa;
  font-family: Georgia, serif;
}

.site-nav {
  margin-top: 0.75rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.site-nav a {
  color: #9ec8ff;
  margin-right: 1.25rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  text-decoration: underline;
}

/* Layout */
.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
}

@media (max-width: 768px) {
  .wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 2;
  }
}

main {
  min-width: 0;
}

/* Content card */
.content {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Sidebar */
.sidebar .widget {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.sidebar .widget h3 {
  margin: 0 0 0.6rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.sidebar ul {
  margin: 0;
  padding-left: 1.1rem;
}

.sidebar li {
  margin-bottom: 0.35rem;
}

/* Typography */
h1 {
  font-size: 1.65rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.6rem;
  font-family: Arial, Helvetica, sans-serif;
}

h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.post-meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border);
}

.post-meta a {
  color: var(--muted);
}

.lead {
  font-size: 1.05rem;
  font-style: italic;
  color: #333;
}

p {
  margin: 0 0 1rem;
}

hr {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 1.5rem 0;
}

/* Post list */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.post-list h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.post-list h2 a {
  text-decoration: none;
}

.post-list h2 a:hover {
  text-decoration: underline;
}

.post-excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

/* Brennan score colors: 0 = red → 50 = yellow → 100 = green (via --score) */
.score-badge,
.brennan-score {
  --score: 50;
  --score-h: calc(var(--score) * 1.2);
}

.score-badge {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  margin-left: 0.35rem;
  vertical-align: middle;
  border: 1px solid;
  background: hsl(var(--score-h), 82%, 90%);
  color: hsl(var(--score-h), 75%, 26%);
  border-color: hsl(var(--score-h), 60%, 42%);
}

/* Methodology tier examples (fixed band midpoints when no --score set) */
.score-badge.tier-legit:not([style*="--score"]) { --score: 90; }
.score-badge.tier-caution:not([style*="--score"]) { --score: 70; }
.score-badge.tier-flags:not([style*="--score"]) { --score: 50; }
.score-badge.tier-likely:not([style*="--score"]) { --score: 30; }
.score-badge.tier-run:not([style*="--score"]) { --score: 10; }
.brennan-score.tier-legit:not([style*="--score"]) { --score: 90; }
.brennan-score.tier-caution:not([style*="--score"]) { --score: 70; }
.brennan-score.tier-flags:not([style*="--score"]) { --score: 50; }
.brennan-score.tier-likely:not([style*="--score"]) { --score: 30; }
.brennan-score.tier-run:not([style*="--score"]) { --score: 10; }

/* Score box in articles */
.brennan-score {
  background: hsl(var(--score-h), 80%, 94%);
  border: 2px solid hsl(var(--score-h), 55%, 42%);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-family: Arial, Helvetica, sans-serif;
}

.brennan-score .score-number {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1;
  color: hsl(var(--score-h), 72%, 28%);
}

.brennan-score .score-tier {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 0.25rem;
  color: hsl(var(--score-h), 68%, 32%);
}

/* Sidebar / list: numeric score highlights */
.sidebar strong[style*="--score"] {
  font-size: 1.05em;
  color: hsl(calc(var(--score) * 1.2), 72%, 28%);
}

.brennan-score table {
  width: 100%;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  border-collapse: collapse;
}

.brennan-score th,
.brennan-score td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.brennan-score th {
  background: #eee;
}

.score-scale-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.score-scale-note .score-badge {
  margin: 0 0.15rem;
}

/* Red flags list */
.red-flags {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  margin: 1rem 0;
}

.red-flags ol {
  margin: 0;
  padding-left: 1.25rem;
}

.red-flags li {
  margin-bottom: 0.5rem;
}

/* Company says box */
.company-says {
  background: #f0f4f8;
  border: 1px solid #b0c4de;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.company-says h3 {
  margin-top: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  color: #1a4d7a;
}

/* Screenshot placeholder */
.screenshot {
  border: 1px solid var(--border);
  background: #e8e8e8;
  padding: 2rem 1rem;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 1rem 0;
}

.screenshot img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Receipts / archive links */
.receipts {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  background: #fafafa;
  border: 1px dashed var(--border);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.receipts ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

/* Cross-links & HTML sitemap */
.see-also {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  font-size: 0.95rem;
}

.investigation-series .investigation-prev-next {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.investigation-prev-next li {
  margin: 0.35rem 0;
}

.investigation-prev-next .prev a::before {
  content: "";
}

.series-note {
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

.sitemap-page .sitemap-section {
  margin: 2rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sitemap-hint {
  font-weight: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

.sitemap-intro,
.sitemap-cross {
  font-size: 0.95rem;
  color: var(--muted);
}

.sitemap-series li {
  margin: 0.5rem 0;
}

.sitemap-cluster {
  list-style: none;
  padding: 0;
}

.sitemap-cluster > li {
  margin: 0.65rem 0;
  line-height: 1.5;
}

.sitemap-see {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.sitemap-all {
  columns: 1;
  padding-left: 1.25rem;
}

@media (min-width: 640px) {
  .sitemap-all {
    columns: 2;
  }
}

/* Footer */
.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

/* Methodology tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.data-table th {
  background: #eee;
  font-family: Arial, sans-serif;
}

.about-photo {
  float: right;
  width: min(240px, 42%);
  margin: 0 0 1rem 1.25rem;
  border: 3px solid var(--border);
  background: var(--paper);
  padding: 0;
  text-align: center;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.about-photo figcaption {
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  border-top: 1px solid var(--border);
}

.author-widget .author-thumb {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--border);
}

@media (max-width: 520px) {
  .about-photo {
    float: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1.25rem;
  }
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* FAQ (AEO / readability) */
.faq-list {
  margin: 1rem 0 1.5rem;
}

.faq-list dt {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  margin-top: 1rem;
  color: var(--accent);
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 0.35rem 0 0;
  padding-left: 0;
}

/* Skip link (accessibility + SEO structure) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}

.skip-link:focus {
  left: 0;
}
