/* Elegant CSS inspired by Komoder's minimalist design */
:root {
  --primary-color: #2c2c2c;
  --secondary-color: #f7f7f7;
  --accent-color: #8b7355;
  --accent-light: #a68b5b;
  --text-color: #3a3a3a;
  --text-light: #6a6a6a;
  --text-lighter: #9a9a9a;
  --border-color: #e8e8e8;
  --background: #fefefe;
  --background-alt: #f9f9f9;
  --background-warm: #faf9f7;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.02);
  --radius: 8px;
  --radius-large: 16px;
  --font-primary: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --font-secondary: "Crimson Pro", Georgia, serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.65;
  color: var(--text-color);
  background: var(--background-warm);
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--background-warm);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(250, 249, 247, 0.85);
  transition: var(--transition-fast);
}

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

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.site-title:hover {
  color: var(--accent-color);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.site-nav a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

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

/* Main content */
.page-content {
  min-height: calc(100vh - 200px);
  padding: 3rem 0;
  background: var(--background-warm);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.15;
}
h2 {
  font-size: 2.125rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}
h3 {
  font-size: 1.625rem;
  margin-bottom: 1rem;
}
h4 {
  font-size: 1.375rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.75rem;
  line-height: 1.75;
  color: var(--text-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 5rem 0 6rem;
  background: var(--background-warm);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 20%,
    rgba(139, 115, 85, 0.03) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  position: relative;
}

.hero p {
  font-size: 1.375rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  position: relative;
}

/* Cards */
.card {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-large);
  padding: 2.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color),
    transparent
  );
  opacity: 0;
  transition: var(--transition);
}


.card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Posts */
.post-list {
  margin: 3rem 0;
}

.post-item {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-large);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.post-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
  opacity: 0;
  transition: var(--transition);
}


.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--accent-color);
}

.post-meta {
  color: var(--text-lighter);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-excerpt {
  color: var(--text-light);
  line-height: 1.6;
}

/* Post page */
.post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.post-meta {
  color: var(--text-lighter);
  font-size: 1rem;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-external {
  margin: 3rem 0;
  text-align: center;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.external-link:hover {
  background: var(--accent-light);
}

.post-author-bio {
  background: var(--background-alt);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 3rem 0;
}

.post-author-bio h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.post-author-bio p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Page */
.page-header {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Authors */
.author-card {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}


.author-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.author-bio {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-col p {
  color: #ccc;
  margin-bottom: 0;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: #999;
  margin-bottom: 0;
}






/* Responsive */
@media (max-width: 768px) {
  .site-header .wrapper {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .site-nav {
    gap: 1.5rem;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .wrapper {
    padding: 0 1.25rem;
  }

  .grid {
    gap: 1.5rem;
  }

  .card {
    padding: 2rem;
  }

  .post-item {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .page-title {
    font-size: 1.75rem;
  }
}
