/* ============================================================
   MARSHALL PLAN CENTER — style.css
   Dark scheme · CFR-inspired editorial
   Fonts: Cormorant Garamond (display) · Lora (body) · DM Sans (ui)
   ============================================================ */

:root {
  --bg:          #111214;
  --bg-card:     #18191c;
  --bg-hover:    #1e2024;
  --surface:     #212326;

  --ink:         #e8e4dc;
  --ink-mid:     #a09890;
  --ink-faint:   #585450;

  --accent:      #c8a96e;
  --accent-dim:  #7a6440;

  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'DM Sans', Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border-mid);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-emblem {
  width: 34px;
  height: 34px;
  color: var(--accent);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.logo-subtitle {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mid);
  line-height: 1.4;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  color: var(--ink-mid);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--ink); }

.btn-search {
  background: none;
  border: none;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  margin-left: 0.25rem;
}
.btn-search:hover { color: var(--ink); }

/* Remove ornament rules */
.header-rule { display: none; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  padding: 2.5rem 0 5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ============================================================
   ARTICLES GRID
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-mid);
}

.card {
  background: var(--bg-card);
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
}
.card:hover { background: var(--bg-hover); }

.card--feature {
  grid-column: 1 / 3;
  flex-direction: row;
  border-bottom: 1px solid var(--border-mid);
  min-height: 320px;
}

.card--horizontal {
  grid-column: 1 / 3;
  flex-direction: row;
  border-top: 1px solid var(--border-mid);
  min-height: 200px;
}

.card--standard {
  border-right: 1px solid var(--border-mid);
}
.card--standard-right {
  border-right: none;
}

/* Card Art */
.card-art {
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.7);
}

.card--feature .card-art { width: 400px; min-height: 320px; }
.card--horizontal .card-art { width: 240px; min-height: 200px; }
.card--standard .card-art { height: 180px; width: 100%; }

/* Art fills — dark, flat */
.card-art--1 { background-color: #1a2030; }
.card-art--2 { background-color: #201818; }
.card-art--3 { background-color: #181c28; }
.card-art--4 { background-color: #182018; }
.card-art--5 { background-color: #201a10; }
.card-art--6 { background-color: #1a1c20; }

/* Card Body */
.card-body {
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}
.card--feature .card-title { font-size: 1.75rem; }
.card--standard .card-title { font-size: 1.15rem; }
.card--horizontal .card-title { font-size: 1.2rem; }

.card-excerpt {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--ink-mid);
  flex: 1;
  margin-bottom: 1.25rem;
}

.card-meta {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.card-author { color: var(--ink-mid); }
.card-dot { opacity: 0.4; }

.card-link {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
  transition: opacity 0.15s;
}
.card-link:hover { opacity: 0.7; }

/* Hero image */
.article-hero { margin: 2rem 0 2.5rem; }
.article-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.6);
}
.hero-caption {
  margin-top: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-align: center;
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border-mid);
}

.footer-rule { display: none; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-logo-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.footer-emblem {
  width: 26px;
  height: 26px;
  color: var(--accent);
  opacity: 0.8;
}
.footer-logo-text { display: flex; flex-direction: column; }
.footer-logo-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-mid);
}
.footer-logo-sub {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  flex: 1;
}
.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-faint);
  padding: 0.25rem 1.1rem 0.25rem 0;
  margin-right: 1.1rem;
  border-right: 1px solid var(--border);
  transition: color 0.15s;
  white-space: nowrap;
}
.footer-nav a:last-child { border-right: none; margin-right: 0; }
.footer-nav a:hover { color: var(--ink-mid); }

.footer-base {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2.5rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .articles-grid { grid-template-columns: 1fr; }
  .card--feature,
  .card--horizontal { grid-column: 1; flex-direction: column; }
  .card--feature .card-art,
  .card--horizontal .card-art { width: 100%; min-height: 180px; }
  .card--standard { border-right: none; border-bottom: 1px solid var(--border-mid); }
  .footer-inner { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .footer-nav { flex-direction: column; }
  .footer-nav a { border-right: none; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 1.25rem; }
  .logo-title { font-size: 0.95rem; }
  .main-nav a { padding: 0.35rem 0.55rem; font-size: 0.65rem; }
  .container { padding: 0 1.25rem; }
  .card-body { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo-block { animation: fadeUp 0.4s ease both; }
.main-nav   { animation: fadeUp 0.4s 0.08s ease both; }

.card {
  opacity: 0;
  animation: fadeUp 0.45s ease forwards;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.16s; }
.card:nth-child(3) { animation-delay: 0.22s; }
.card:nth-child(4) { animation-delay: 0.28s; }
.card:nth-child(5) { animation-delay: 0.34s; }

/* ============================================================
   CARD AS LINK
   ============================================================ */
a.card {
  display: flex;
  text-decoration: none;
  cursor: pointer;
}

a.card .card-title {
  transition: color 0.15s;
  text-decoration: none;
}
a.card:hover .card-title {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Logo as link */
a.logo-block,
a.footer-logo-block {
  text-decoration: none;
  display: flex;
  align-items: center;
}
a.logo-block { gap: 0.75rem; }
a.footer-logo-block { gap: 0.7rem; flex-shrink: 0; }