/* ===== DESIGN TOKENS — DESERT INK ===== */
:root {
  --bg: #1A1310;
  --bg-alt: #1F1915;
  --bg-dark: #100D0A;
  --bg-card: #241E19;
  --accent: #C2703E;
  --accent-dim: rgba(194, 112, 62, 0.12);
  --accent-glow: rgba(194, 112, 62, 0.2);
  --sand: #E8D5B7;
  --sand-light: #F0E6D8;
  --amber: #D4A853;
  --amber-dim: rgba(212, 168, 83, 0.1);
  --text: #F0E6D8;
  --text-secondary: #A89A8B;
  --text-muted: #6B5E52;
  --border: rgba(232, 213, 183, 0.1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Crimson Pro', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 4px 20px rgba(0,0,0,0.35);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
  --radius: 12px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(26, 19, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 3rem;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sand);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--sand);
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--amber-dim) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-label::before {
  content: '';
  width: 40px; height: 2px;
  background: var(--accent);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--sand);
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}
.hero-title .red { color: var(--accent); }
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition);
}
.hero-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 20px var(--accent-glow);
}
.hero-x-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sand);
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--sand);
  border-radius: 100px;
  transition: all var(--transition);
  margin-top: 2rem;
}
.hero-x-badge svg { width: 16px; height: 16px; fill: currentColor; }
.hero-x-badge:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== SECTION SHARED ===== */
.section {
  padding: 6rem 3rem;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  width: 30px; height: 2px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--sand);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.section-divider {
  width: 60px; height: 3px;
  background: var(--accent);
  margin-bottom: 2.5rem;
}

/* ===== FILTER BUTTONS ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.filter-btn:hover {
  border-color: var(--sand);
  color: var(--sand);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-btn .flag {
  margin-right: 0.3rem;
}

/* ===== ARTICLES GRID ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.article-card-img {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.article-card:hover .article-card-img img {
  transform: scale(1.05);
}
.article-card-img.img-fallback {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #2A2118 50%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card-img.img-fallback::after {
  content: '📰';
  font-size: 2.5rem;
  opacity: 0.3;
}
.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--accent);
  transition: height var(--transition);
}
.article-card:hover {
  box-shadow: var(--shadow-hover), 0 0 30px var(--accent-glow);
  transform: translateY(-4px);
  border-color: rgba(194, 112, 62, 0.2);
}
.article-card:hover::before { height: 100%; }
.article-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.article-card-pub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-card-lang {
  font-size: 0.85rem;
  line-height: 1;
}
.article-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sand);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.article-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-card-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.article-card-arrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}
.article-card:hover .article-card-arrow { gap: 0.6rem; }

/* ===== OPEN LETTER SECTION ===== */
.letter-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1A0E08 50%, var(--bg-dark) 100%);
  color: #fff;
  padding: 6rem 3rem;
  position: relative;
  overflow: hidden;
}
.letter-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(194,112,62,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.letter-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.letter-section .section-label {
  justify-content: center;
  color: var(--amber);
}
.letter-section .section-label::before {
  background: var(--amber);
}
.letter-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.letter-quote {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  position: relative;
  padding: 0 2rem;
}
.letter-quote::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--accent);
  position: absolute;
  top: -2rem; left: -0.5rem;
  line-height: 1;
  opacity: 0.5;
}
.letter-source {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.letter-body {
  text-align: left;
  max-width: 680px;
  margin: 2.5rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.letter-body p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 2;
  margin-bottom: 1.5rem;
  text-indent: 0;
}
.letter-body p:first-child::first-letter {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  color: var(--accent);
  font-weight: 700;
}
.letter-closing {
  margin-top: 2.5rem !important;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-style: italic;
  color: var(--amber) !important;
  text-indent: 0 !important;
  line-height: 1.8 !important;
}
.letter-closing strong {
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--sand);
  letter-spacing: 0.02em;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 3rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer span { color: var(--accent); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  .navbar.scrolled { padding: 0.7rem 1.5rem; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }
  .hero { padding: 7rem 1.5rem 3rem; min-height: auto; }
  .hero-title { font-size: clamp(2.8rem, 10vw, 4rem); }
  .section { padding: 4rem 1.5rem; }
  .letter-section { padding: 4rem 1.5rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 0.4rem; }
  .filter-btn { font-size: 0.72rem; padding: 0.45rem 1rem; }
}
