/*
Theme Name: The Famous Wealth
Theme URI: https://thefamouswealth.com/
Author: The Famous Wealth
Author URI: https://thefamouswealth.com/
Description: A modern editorial magazine theme for The Famous Wealth — celebrity net worth profiles. Dark ink + gold accent, mobile-first, with a ranked "Richest Right Now" leaderboard, filterable profile grid, and a dedicated net worth profile layout. Rebuilt from the October 2025 archive of thefamouswealth.com.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-famous-wealth
Tags: magazine, editorial, net-worth, celebrities, responsive, dark, gold
*/

/* Google Fonts with system fallbacks (headings: Playfair Display; body: Inter) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #101623;
  --ink-2: #1b2436;
  --ink-3: #2a364e;
  --gold: #c9a227;
  --gold-2: #e3c25c;
  --gold-soft: #f6ecd2;
  --paper: #faf9f6;
  --card: #ffffff;
  --muted: #5b6472;
  --line: #e6e2d8;
  --red: #9b2c2c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 22, 35, .10);
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
table { border-collapse: collapse; width: 100%; }
button, input { font: inherit; }
.screen-reader-text {
  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: absolute; left: -9999px; top: 0; background: var(--gold); color: #fff; padding: .6em 1em; z-index: 100; }
.skip-link:focus { left: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #cfd6e2; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar a { color: var(--gold-2); }
.topbar .topbar-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.site-brand { display: flex; flex-direction: column; line-height: 1.05; flex-shrink: 0; }
.site-title { font-family: var(--font-head); font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.site-title a { color: var(--ink); }
.site-title a em { font-style: normal; color: var(--gold); }
.site-tagline { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 12px; font-size: 13px; font-weight: 600;
  letter-spacing: .4px; text-transform: uppercase; color: var(--ink-2); border-radius: 8px;
}
.main-nav a:hover, .main-nav .current-menu-item a { background: var(--gold-soft); color: #7a5f06; }
.header-search { display: flex; align-items: center; }
.header-search input[type="search"] {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; width: 170px;
  background: var(--paper); outline: none;
}
.header-search input[type="search"]:focus { border-color: var(--gold); }
.menu-toggle { display: none; background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font-weight: 700; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 55%, #3a2f10 100%); color: #fff; padding: 54px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-kicker { color: var(--gold-2); font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.hero h1 { font-size: 52px; margin: .35em 0 .2em; color: #fff; }
.hero h1 a { color: #fff; }
.hero h1 a:hover { color: var(--gold-2); }
.hero p { color: #d6dce8; font-size: 17px; max-width: 560px; }
.hero-figure { font-size: 46px; font-weight: 800; font-family: var(--font-head); color: var(--gold-2); margin: .35em 0 .1em; }
.hero-figure small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #aeb8ca; margin-top: 6px; }
.hero-cta { display: inline-block; margin-top: 18px; background: var(--gold); color: #1a1405; font-weight: 700; padding: 12px 22px; border-radius: 999px; }
.hero-cta:hover { background: var(--gold-2); color: #1a1405; }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ink-3); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Monogram fallback tile (used when a photo is unavailable) */
.tfw-monogram {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #233250, #6b5510);
  color: var(--gold-2); font-family: var(--font-head); font-weight: 800;
  aspect-ratio: 4 / 3; width: 100%; font-size: 64px; letter-spacing: 1px; text-align: center;
}
.tfw-monogram.small { font-size: 44px; }

/* ---------- Sections ---------- */
.section { padding: 48px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--ink); padding-bottom: 12px; margin-bottom: 26px; }
.section-head h2 { font-size: 30px; margin: 0; }
.section-head h2 span { color: var(--gold); }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Leaderboard ---------- */
.leaderboard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.leaderboard table { font-size: 15px; }
.leaderboard th {
  text-align: left; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.leaderboard td { padding: 14px 18px; border-bottom: 1px solid #f0ede4; vertical-align: middle; }
.leaderboard tr:last-child td { border-bottom: 0; }
.leaderboard tr:hover td { background: #fdfaf1; }
.lb-rank { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--gold); width: 52px; }
.lb-name { font-weight: 700; font-size: 16px; }
.lb-name a:hover { color: var(--gold); }
.lb-cat { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.lb-figure { font-family: var(--font-head); font-size: 20px; font-weight: 700; white-space: nowrap; }
.lb-source { font-size: 12px; color: var(--muted); }
.lb-note { padding: 12px 18px; font-size: 13px; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); }

/* ---------- Filter + grid ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; align-items: center; }
.filter-bar .filter-label { font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-right: 6px; color: var(--muted); }
.filter-btn {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2);
}
.filter-btn:hover { border-color: var(--gold); color: #7a5f06; }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 16px rgba(16, 22, 35, .06); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; background: var(--ink-2); }
.card-media img { width: 100%; aspect-ratio: 590 / 354; object-fit: cover; }
.card-media .tfw-monogram { aspect-ratio: 590 / 354; }
.card-cat {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: #1a1405;
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 20px; margin: 0 0 8px; }
.card-body h3 a:hover { color: var(--gold); }
.card-excerpt { color: var(--muted); font-size: 14px; margin-bottom: 14px; flex: 1; }
.card-figure { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--ink); }
.card-figure small { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); display: block; }
.card-meta { font-size: 12px; color: var(--muted); margin-top: 10px; }
.no-results { display: none; text-align: center; color: var(--muted); padding: 30px 0; }

/* ---------- Archive index ---------- */
.archive-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.archive-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.archive-col h3 { font-size: 18px; border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 12px; }
.archive-col ul { list-style: none; margin: 0; padding: 0; }
.archive-col li { padding: 7px 0; border-bottom: 1px solid #f0ede4; font-size: 14px; }
.archive-col li:last-child { border-bottom: 0; }
.archive-col li a:hover { color: var(--gold); }

/* ---------- Single profile ---------- */
.profile-hero { background: var(--ink); color: #fff; padding: 44px 0 34px; }
.profile-hero .wrap { max-width: 860px; }
.profile-hero .crumbs { font-size: 13px; color: #aeb8ca; margin-bottom: 14px; }
.profile-hero .crumbs a { color: var(--gold-2); }
.profile-hero h1 { font-size: 44px; color: #fff; margin-bottom: 10px; }
.profile-hero .profile-sub { color: #d6dce8; font-size: 17px; }
.profile-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.profile-media { margin-top: -1px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.profile-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.profile-media .tfw-monogram { aspect-ratio: 16 / 9; font-size: 90px; }
.estimate-box {
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #fff8e1, #fdf3d0); border: 1px solid #ecd98a; border-radius: var(--radius);
  padding: 22px 26px; margin: 28px 0;
}
.estimate-box .est-figure { font-family: var(--font-head); font-size: 42px; font-weight: 800; line-height: 1.05; }
.estimate-box .est-label { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #7a5f06; }
.estimate-box .est-source { font-size: 13px; color: var(--muted); max-width: 340px; }
.entry-content { font-size: 17px; }
.entry-content h2 { font-size: 28px; margin: 1.4em 0 .5em; padding-top: .4em; border-top: 1px solid var(--line); }
.entry-content h3 { font-size: 21px; margin: 1.2em 0 .4em; }
.entry-content blockquote { border-left: 4px solid var(--gold); margin: 1.2em 0; padding: .4em 0 .4em 1.1em; color: var(--muted); font-style: italic; }
.entry-content table { margin: 1em 0; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--paper); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.quick-facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quick-facts th { width: 200px; }
.method-note {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 16px 20px; font-size: 14px; color: var(--muted); margin: 32px 0;
}
.method-note strong { color: var(--ink); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; margin: 36px 0 10px; font-weight: 600; }
.related { margin: 40px 0 8px; }
.related h2 { font-size: 26px; }

/* ---------- Pages / generic ---------- */
.page-head { background: var(--ink); color: #fff; padding: 40px 0 30px; }
.page-head h1 { color: #fff; font-size: 40px; margin: 0; }
.page-head p { color: #d6dce8; margin: 8px 0 0; max-width: 720px; }
.content-narrow { max-width: 820px; margin: 0 auto; padding: 36px 20px 10px; font-size: 17px; }
.content-narrow h2 { font-size: 26px; margin-top: 1.4em; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 36px 0 8px; }
.pagination a, .pagination span { border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb8ca; margin-top: 56px; padding: 44px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 34px; }
.site-footer h3 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.site-footer a { color: #d6dce8; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; font-size: 14px; }
.footer-brand { font-family: var(--font-head); font-size: 26px; color: #fff; font-weight: 800; }
.footer-brand em { font-style: normal; color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--ink-3); padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 38px; }
  .grid, .archive-index { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; width: 100%; order: 3; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 0; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .header-search { display: none; }
  .site-header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 620px) {
  .grid, .archive-index { grid-template-columns: 1fr; }
  .hero h1, .profile-hero h1 { font-size: 30px; }
  .site-title { font-size: 24px; }
  .estimate-box .est-figure { font-size: 32px; }
  .leaderboard .lb-source, .leaderboard th:nth-child(4) { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .topbar-note { display: none; }
}
