@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-newsreader: 'Newsreader';
  --font-public-sans: 'Public Sans';
}

:root {
  --paper: #faf7f1;
  --paper-deep: #f2ece0;
  --card: #fffdf9;
  --ink: #1c1a17;
  --ink-soft: #514c43;
  --muted: #8a8276;
  --line: #e4dccc;
  --line-strong: #d6ccb6;
  --amber: #b5852f;
  --amber-deep: #8c6418;
  --amber-soft: #f3e7cd;
  --amber-wash: #fbf4e3;
  --verify: #5d5347;
  --verify-soft: #efe9dd;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 16px 40px rgba(44, 36, 22, 0.10);
  --shadow-soft: 0 8px 22px rgba(44, 36, 22, 0.06);
  --measure: min(1120px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-public-sans), ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-newsreader), Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-invert {
  color: var(--amber);
}

/* ---------- Masthead (documentary, left wordmark + evidence rule) ---------- */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  width: var(--measure);
  margin: 0 auto;
}

.masthead-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 16px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.wordmark-name {
  font-family: var(--font-newsreader), Georgia, serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wordmark-kicker {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead-edition {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.edition-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.masthead-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 11px 0 14px;
  border-top: 2px solid var(--ink);
}

.rule-tagline {
  font-family: var(--font-newsreader), Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--amber-deep);
}

.masthead-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.masthead-nav a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.masthead-nav a:hover {
  color: var(--amber-deep);
  border-color: var(--amber);
}

main {
  width: var(--measure);
  margin: 0 auto;
}

/* ---------- Lead (asymmetric, figure on the side) ---------- */
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}

.lead h1 {
  margin: 4px 0 0;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.1;
  font-weight: 600;
}

.lead-lede {
  max-width: 36rem;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.7;
}

.lead-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
}

.lead-notes div {
  padding-left: 16px;
  border-left: 2px solid var(--amber);
}

.lead-notes dt {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.lead-notes dd {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.lead-figure {
  margin: 0;
}

.lead-figure-image {
  height: clamp(280px, 36vw, 420px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(28, 26, 23, 0.05), rgba(28, 26, 23, 0.32)),
    url("/images/honestatlas-lead.jpg") center / cover no-repeat,
    linear-gradient(150deg, #e7d9bb 0%, #d8be8c 45%, #b5852f 100%);
  box-shadow: var(--shadow);
}

.lead-figure figcaption {
  margin: 12px 2px 0;
  font-family: var(--font-newsreader), Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Section heading ---------- */
.band-heading {
  max-width: 44rem;
  margin-bottom: 30px;
}

.band-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.band-heading p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.pillars,
.recent,
.about {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Pillar map (numbered dossier cards) ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pillar-card {
  background: var(--card);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: background 0.18s ease;
}

.pillar-card:hover {
  background: var(--amber-wash);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pillar-index {
  font-family: var(--font-newsreader), Georgia, serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--amber-deep);
}

.pillar-count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pillar-card h3 {
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.25;
}

.pillar-summary {
  margin: 10px 0 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pillar-checks {
  list-style: none;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
}

.pillar-checks li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.pillar-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--amber);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ---------- Method band (full-bleed dark documentary) ---------- */
.method {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
}

.method > * {
  width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.method-intro {
  max-width: 44rem;
  margin-bottom: 36px;
}

.method-intro h2 {
  color: #faf3e4;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.method-intro p {
  margin: 12px 0 0;
  color: #c8c0b1;
  font-size: 1.02rem;
}

.method-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(250, 247, 241, 0.14);
  border: 1px solid rgba(250, 247, 241, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.method-steps li {
  display: flex;
  gap: 18px;
  padding: 26px 26px;
  background: var(--ink);
}

.method-step-num {
  font-family: var(--font-newsreader), Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
}

.method-steps h3 {
  color: #faf3e4;
  font-size: 1.18rem;
  font-weight: 600;
}

.method-steps p {
  margin: 8px 0 0;
  color: #bdb5a6;
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ---------- Recent analyses (ledger / index list) ---------- */
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.ledger-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-date {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.ledger-date time {
  font-family: var(--font-newsreader), Georgia, serif;
  font-size: 0.96rem;
  color: var(--ink);
}

.ledger-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-deep);
  background: var(--amber-wash);
}

.ledger-main {
  display: block;
}

.ledger-main h3 {
  font-size: 1.46rem;
  font-weight: 600;
  line-height: 1.25;
  transition: color 0.15s ease;
}

.ledger-main:hover h3 {
  color: var(--amber-deep);
}

.ledger-main p {
  margin: 8px 0 12px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 44rem;
}

.ledger-cue {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--amber-deep);
}

.ledger-cue::after {
  content: " \2192";
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
}

.about-lede h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.about-lede p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.74;
}

.about-principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-principles li {
  background: var(--card);
  padding: 18px 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: var(--measure);
  margin: 0 auto;
  padding: 48px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
}

.footer-name {
  font-family: var(--font-newsreader), Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-desc {
  margin: 12px 0 16px;
  max-width: 30rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.62;
}

.footer-disclosure {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-principles-head {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.footer-principles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-principles li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

/* ---------- Article ---------- */
.article-shell {
  max-width: 760px;
  padding: 36px 0 80px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--amber-deep);
}

.article-body {
  background: transparent;
}

.article-chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  background: var(--amber-wash);
}

.article-head h1 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.article-dek {
  margin: 26px 0 0;
  font-family: var(--font-newsreader), Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- Signature: What we know / What to verify split ---------- */
.know-verify {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 30px 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.kv-panel {
  padding: 22px 22px 24px;
}

.kv-know {
  background: var(--amber-wash);
  border-right: 1px solid var(--line-strong);
}

.kv-verify {
  background: var(--verify-soft);
}

.kv-tag {
  display: inline-block;
  font-family: var(--font-newsreader), Georgia, serif;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.kv-tag-know {
  color: var(--amber-deep);
}

.kv-tag-verify {
  color: var(--verify);
}

.kv-note {
  margin: 4px 0 14px;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.kv-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.kv-panel li {
  position: relative;
  padding-left: 24px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.kv-know li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--amber);
}

.kv-verify li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: -1px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--verify);
  border: 1.5px solid var(--verify);
  border-radius: 50%;
}

/* ---------- Article content ---------- */
.article-content {
  margin-top: 34px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-content h2 {
  margin: 44px 0 14px;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
}

.article-content h3 {
  margin: 30px 0 10px;
  font-size: 1.28rem;
  font-weight: 600;
}

.article-content p {
  margin: 0 0 20px;
}

.article-content a {
  color: var(--amber-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.article-content a:hover {
  color: var(--ink);
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.article-content ul li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--amber);
  border-radius: 2px;
  transform: rotate(45deg);
}

.article-content ol {
  counter-reset: step;
}

.article-content ol li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  counter-increment: step;
}

.article-content ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-newsreader), Georgia, serif;
  font-weight: 600;
  color: var(--amber-deep);
}

.article-content blockquote {
  margin: 30px 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--amber);
  font-family: var(--font-newsreader), Georgia, serif;
  font-style: italic;
  font-size: 1.36rem;
  line-height: 1.5;
  color: var(--ink);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
  border: 1px solid var(--line-strong);
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.article-content th:last-child,
.article-content td:last-child {
  border-right: 0;
}

.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-content th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-public-sans), sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-content tbody tr:nth-child(even) td {
  background: var(--amber-wash);
}

/* ---------- FAQ + sources ---------- */
.faq-section,
.source-note {
  margin-top: 44px;
}

.faq-section h2,
.source-note h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.faq-section details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  gap: 10px;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::before {
  content: "+";
  color: var(--amber);
  font-weight: 700;
}

.faq-section details[open] summary::before {
  content: "\2013";
}

.faq-section details p {
  margin: 12px 0 0 20px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.source-note {
  padding: 22px 24px;
  background: var(--amber-wash);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}

.source-note h2 {
  border-bottom: 0;
  padding-bottom: 0;
}

.source-note p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.article-foot {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-deep);
  font-weight: 700;
}

.back-link::before {
  content: "\2190";
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .lead {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .lead-notes {
    grid-template-columns: 1fr;
  }

  .know-verify {
    grid-template-columns: 1fr;
  }

  .kv-know {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ledger-date {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
  }
}
