:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;

  --primary: #4f46e5;
  --primary-light: #eef2ff;

  --border: #e5e7eb;

  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
}


/* DARK MODE VARIABLES */
[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111827;
  --text: #f1f5f9;
  --muted: #94a3b8;

  --primary: #818cf8;
  --primary-light: #1e293b;

  --border: #1f2937;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* CONTAINER */
.container {
  max-width: 1150px;
  margin: auto;
  padding: 24px;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
  line-height: 1.3;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 20px;
 text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

/* MOBILE */
#menuBtn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 20px;
  gap: 10px;
}

.mobile-menu.show {
  display: flex;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 30px;
}

.hero img {
  width: 100%;
  border-radius: var(--radius-lg);
  height: 420px;
  object-fit: cover;
}

.hero-content span {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

.hero-content h1 {
  font-size: 36px;
  margin: 10px 0;
}

/* POSTS GRID */
.posts {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* CARD */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.25s;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 16px;
}

.card-content span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.card-content h3 {
  margin: 8px 0;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* ARTICLE PAGE */
.article-page {
  max-width: 800px;
  margin: auto;
}

.article-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.article-content {
  margin-top: 30px;
  background: var(--surface);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* FOOTER */
.footer {
  margin-top: 80px;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .hero {
    grid-template-columns: 1fr;
  }

  .posts {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  #menuBtn {
    display: block;
  }
}


.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.theme-toggle:hover {
  background: var(--primary-light);
}

/* TITLE LINKS */
.title-link {
  text-decoration: none;
  color: var(--text);
  transition: 0.2s;
}

.title-link:hover {
  color: var(--primary);
}

/* READ MORE BUTTON */
.read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: 0.2s;
}

.read-more:hover {
  text-decoration: underline;
}

/* HERO BUTTON VARIANT */
.hero-btn {
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

.hero-btn:hover {
  opacity: 0.9;
}