:root {
  /* Dalcu.com theme */
  --primary-color: #10b981;
  --secondary-color: #059669;
  --accent-color: #f59e0b;
  --background-dark: #0f0f23;
  --background-light: #1a1a2e;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border-color: #27272a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Backwards-compat for existing classes */
  --bg: var(--background-dark);
  --fg: var(--text-primary);
  --muted: var(--text-secondary);
  --card: var(--card-bg);
  --border: var(--border-color);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global heading colors for dark theme */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  a {
    color: var(--text-primary);
  }
}

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

a:hover {
  text-decoration: underline;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


.site-header {
  background: rgba(15, 15, 35, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.site-header .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  height: 2rem;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.brand span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links a {
  margin-left: 1rem;
  color: var(--text-secondary);
  position: relative;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}


.hero {
  position: relative;
  height: 24rem;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 0 1rem;
}

.section-spaced {
  padding: 3rem 0;
}

.h1 {
  margin: 0 0 .5rem 0;
  font-size: 2rem;
  font-weight: 700;
}

.h2 {
  margin: 0 0 .5rem 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.lead-muted {
  margin: 0 0 .75rem 0;
}

.meta {
  font-size: .875rem;
}

.separator {
  margin: 0 .5rem;
}

.footer-links {
  margin-top: .5rem;
}

.container-narrow--article {
  max-width: 56rem;
}

.feature {
  width: 100%;
  height: 24rem;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.header-block {
  margin-bottom: 1.5rem;
}

.author-card .card-body {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.12);
}

.card img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.25rem 1.25rem 1.5rem 1.25rem;
}

.card .h2 {
  line-height: 1.25;
}

.card .h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.card .h2 a:hover {
  color: var(--primary-color);
}

.muted {
  color: var(--text-secondary);
}

.card .meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .25rem;
}

.card .separator {
  color: var(--text-muted);
}

.card .lead-muted {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Date + reading time row */
.card .meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: .5rem;
}

.card .meta-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  color: var(--secondary-color);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
}

.tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  background: var(--glass-bg);
  color: var(--text-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
}

.content img {
  max-width: 100%;
  height: auto;
}

.content p, .content li {
  color: var(--text-secondary);
}

footer.site-footer {
  background: var(--background-dark);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 2rem;
}


