/* ============================================================
   Anthem Editorial — Design System
   Emre Simdi Personal Site
   ============================================================ */

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

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #FAFAF8;
  --surface:     #FFFFFF;
  --border:      #E8E6E1;
  --border-soft: #F0EDE8;
  --text:        #1A1A1A;
  --text-2:      #4B5563;
  --text-3:      #9CA3AF;
  --navy:        #585E6C;
  --navy-dark:   #3D4250;
  --up:          #16A34A;
  --up-bg:       #F0FDF4;
  --down:        #DC2626;
  --down-bg:     #FEF2F2;
  --neutral-bg:  #F3F4F6;
  --font-serif:  'Newsreader', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --radius:      8px;
  --radius-lg:   12px;
}

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Layout --- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-brand:hover { color: var(--navy); }
.nav-tagline {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--text-3);
  flex: 1;
  padding-left: 14px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active {
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.footer-meta {
  font-size: 13px;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-2);
}
.footer-links a:hover { color: var(--text); }

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-sm { padding: 20px; }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.badge-up   { color: var(--up);   background: var(--up-bg); }
.badge-down { color: var(--down); background: var(--down-bg); }
.badge-navy { color: var(--surface); background: var(--navy); }
.badge-neutral { color: var(--text-2); background: var(--neutral-bg); }

/* --- Typography --- */
.serif { font-family: var(--font-serif); }
.label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
}

/* --- Divider --- */
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* --- Page sections --- */
.page-hero {
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}
.page-hero .tagline {
  font-size: 14px;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.5;
}

/* --- Article Card (homepage) --- */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.article-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-color: var(--navy);
}
.article-card-body {
  padding: 28px;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.article-card-date {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.article-card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  background: var(--neutral-bg);
  padding: 2px 8px;
  border-radius: 20px;
}
.article-card h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}
.article-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}
.read-more:hover { gap: 8px; }

/* --- Widget: Skills --- */
.widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.widget-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.widget-header h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-2);
}
.widget-header a {
  font-size: 12px;
  color: var(--navy);
  font-weight: 500;
}
.widget-header a:hover { text-decoration: underline; }
.widget-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.widget-col {
  padding: 16px 20px;
}
.widget-col:first-child {
  border-right: 1px solid var(--border-soft);
}
.widget-col-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}
.widget-col-label.up   { color: var(--up); }
.widget-col-label.down { color: var(--down); }
.widget-skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
}
.widget-skill-row:last-child { border-bottom: none; }
.widget-skill-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.widget-skill-pct {
  font-size: 13px;
  font-weight: 600;
}
.widget-skill-pct.up   { color: var(--up); }
.widget-skill-pct.down { color: var(--down); }
.widget-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--text-3);
}

/* --- Teaser Card (US China) --- */
.teaser-card {
  background: var(--navy);
  border: 1px solid var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.teaser-card:hover {
  box-shadow: 0 4px 20px rgba(88,94,108,0.3);
}
.teaser-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.teaser-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.teaser-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.3;
}
.teaser-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 20px;
}
.teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.15s;
}
.teaser-cta:hover { background: rgba(255,255,255,0.1); }

/* --- Section headers --- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.section-header a {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.section-header a:hover { text-decoration: underline; }

/* --- Article full page --- */
.article-full {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.article-full-header {
  margin-bottom: 36px;
}
.article-full-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-full-date {
  font-size: 13px;
  color: var(--text-3);
}
.article-full h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.article-full .dek {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.55;
  font-style: italic;
  font-family: var(--font-serif);
  border-left: 3px solid var(--navy);
  padding-left: 16px;
}
.article-full-body h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  line-height: 1.3;
  color: var(--text);
}
.article-full-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 18px;
}
.article-full-body ul {
  margin: 0 0 18px 24px;
}
.article-full-body ul li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 6px;
}
.article-full-body .data-note {
  font-size: 13px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 40px;
}

/* --- Placeholder (US China / About) --- */
.placeholder-section {
  padding: 80px 24px;
  text-align: center;
}
.placeholder-section h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.placeholder-section p {
  font-size: 16px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.placeholder-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  background: var(--neutral-bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
}

/* --- Homepage bottom grid --- */
.home-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.home-bottom-grid > div {
  display: flex;
  flex-direction: column;
}
.home-bottom-grid > div .widget-card {
  flex: 1;
}

/* --- Power Bar (US vs China) --- */
.power-bar-track {
  display: flex;
  height: 12px;
  background: var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
}
.power-bar-track.lg { height: 20px; border-radius: 10px; }
.power-bar-track.sm { height: 7px; border-radius: 4px; }
.power-bar-fill-usa {
  background: #2563EB;
  height: 100%;
  border-radius: 6px 0 0 6px;
  flex-shrink: 0;
}
.power-bar-fill-china {
  background: #DC2626;
  height: 100%;
  flex: 1;
  border-radius: 0 6px 6px 0;
}

/* --- Power Widget (homepage) --- */
.power-widget-main {
  padding: 16px 20px 14px;
}
.power-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.power-widget-score-usa {
  font-size: 22px;
  font-weight: 700;
  color: #2563EB;
  font-family: var(--font-serif);
}
.power-widget-score-china {
  font-size: 22px;
  font-weight: 700;
  color: #DC2626;
  font-family: var(--font-serif);
}
.power-widget-vs {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 6px;
}
.power-widget-momentum {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 7px;
}
.power-widget-momentum .china-gain { color: #DC2626; font-weight: 600; }
.power-widget-domains {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.power-widget-domain-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.power-widget-domain-name {
  font-size: 12px;
  color: var(--text-2);
  width: 72px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- US vs China Page --- */
.vc-overall {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.vc-overall-scores {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.vc-overall-bar-wrap {
  flex: 1;
  min-width: 120px;
  padding: 0 20px;
  align-self: center;
}
.vc-score-block { display: flex; flex-direction: column; }
.vc-score-block.right { align-items: flex-end; }
.vc-score-flag-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.vc-score-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}
.vc-score-num.usa { color: #2563EB; }
.vc-score-num.china { color: #DC2626; }
.vc-score-prev {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.vc-momentum-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 14px;
}
.vc-momentum-tag.china-gain { background: #FEF2F2; color: #DC2626; }
.vc-momentum-tag.usa-gain   { background: #EFF6FF; color: #2563EB; }
.vc-editorial {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--text-2);
  line-height: 1.65;
  border-left: 3px solid var(--navy);
  padding-left: 16px;
  margin-top: 20px;
  max-width: 620px;
}

/* Domain accordion cards */
.vc-domain {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--surface);
}
.vc-domain > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}
.vc-domain > summary::-webkit-details-marker { display: none; }
.vc-domain > summary:hover { background: #F9F8F6; }
.vc-domain[open] > summary { border-bottom: 1px solid var(--border-soft); background: #F9F8F6; }
.vc-domain-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  min-width: 175px;
}
/* desktop: meta-row sits inline, bar stretches to fill */
.vc-domain-meta-row {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  min-width: 0;
}
.vc-domain-bar-wrap { flex: 1; min-width: 0; }
.vc-domain-scores {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}
.vc-domain-scores .usa { color: #2563EB; }
.vc-domain-scores .china { color: #DC2626; }
.vc-domain-scores .sep { color: var(--text-3); font-weight: 400; margin: 0 1px; }
.vc-domain-momentum {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}
.vc-domain-momentum.china-gain { background: #FEF2F2; color: #DC2626; }
.vc-domain-momentum.usa-gain   { background: #EFF6FF; color: #2563EB; }
.vc-chevron {
  font-size: 11px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.vc-domain[open] .vc-chevron { transform: rotate(180deg); }
.vc-domain-body { padding: 20px; }

.vc-watch {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.vc-watch-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 6px;
}

/* Sub-metric rows */
.vc-submetric {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}
.vc-submetric > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  cursor: pointer;
  list-style: none;
  background: var(--bg);
  transition: background 0.15s;
}
.vc-submetric > summary::-webkit-details-marker { display: none; }
.vc-submetric > summary:hover { background: var(--border-soft); }
.vc-submetric[open] > summary { border-bottom: 1px solid var(--border-soft); }
.vc-sub-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  min-width: 175px;
  flex-shrink: 0;
}
.vc-sub-bar-wrap { flex: 1; }
.vc-sub-scores {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.vc-sub-scores .usa { color: #2563EB; }
.vc-sub-scores .china { color: #DC2626; }
.vc-sub-chevron { font-size: 10px; color: var(--text-3); flex-shrink: 0; transition: transform 0.2s; }
.vc-submetric[open] .vc-sub-chevron { transform: rotate(180deg); }
.vc-submetric-body {
  padding: 12px 14px;
  background: var(--surface);
}
.vc-rationale {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 10px;
}
.vc-news-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: flex-start;
}
.vc-news-item:last-child { border-bottom: none; }
.vc-news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.vc-news-dot.usa     { background: #2563EB; }
.vc-news-dot.china   { background: #DC2626; }
.vc-news-dot.neutral { background: var(--text-3); }
.vc-news-content { flex: 1; }
.vc-news-headline { font-size: 13px; color: var(--text); line-height: 1.4; }
.vc-news-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* Methodology */
.vc-methodology {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.vc-methodology > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
}
.vc-methodology > summary::-webkit-details-marker { display: none; }
.vc-methodology > summary::after { content: '▾'; font-size: 11px; color: var(--text-3); transition: transform 0.2s; }
.vc-methodology[open] > summary::after { transform: rotate(180deg); }
.vc-methodology-body {
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}
.vc-methodology-body p { margin-bottom: 8px; }
.vc-methodology-body p:last-child { margin-bottom: 0; }
.vc-disclaimer {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 24px;
  line-height: 1.6;
  padding-bottom: 8px;
}

/* --- Coming Soon --- */
.coming-soon-label {
  font-size: inherit;
  font-weight: 500;
  color: var(--text-3);
  font-family: inherit;
  font-style: normal;
  margin-left: 8px;
}
.coming-soon-fade {
  opacity: 0.4;
  filter: grayscale(60%);
  pointer-events: none;
  user-select: none;
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .page-hero h1      { font-size: 22px; }
  .page-hero .tagline { font-size: 13px; }
  .nav-links         { gap: 16px; }
  .nav-links a       { font-size: 13px; }
  .nav-tagline       { display: none; }
  .widget-skill-name { font-size: 12px; }
  .widget-skill-pct  { font-size: 11px; }
  .article-full h1   { font-size: 26px; }
  .container, .article-full { padding-left: 16px; padding-right: 16px; }
  .footer-inner      { flex-direction: column; align-items: flex-start; gap: 8px; }
  .home-bottom-grid  { grid-template-columns: 1fr; }
  .vc-score-num         { font-size: 34px; }
  .vc-overall-bar-wrap  { order: 3; flex: 0 0 100%; padding: 0; margin-top: 4px; }
  .vc-domain-title        { font-size: 14px; flex: 1; }
  .vc-domain > summary    { flex-wrap: wrap; }
  .vc-domain-meta-row     { flex: 0 0 100%; order: 3; margin-top: 2px; padding-bottom: 4px; }
  .vc-chevron             { order: 2; }
  .vc-sub-name       { min-width: 110px; }
  .vc-sub-scores     { display: none; }
}
