@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #faf8ff;
  --text: #222;
  --accent: #a277ff;
  --accent-dark: #805dff;
  --header-bg: #fff;
  --footer-bg: #f4f0ff;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  font-size: 1.8rem;
  color: var(--accent-dark);
  margin-bottom: 0.3rem;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  margin-right: 1.2rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent-dark);
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.intro {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  margin-bottom: 2rem;
}

.intro h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-dark);
}

.articles article {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.articles article:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.articles h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

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

.articles a:hover {
  text-decoration: underline;
}

footer {
  background-color: var(--footer-bg);
  padding: 1.5rem;
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #ddd;
}

@media screen and (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  nav a {
    display: inline-block;
    margin-bottom: 0.5rem;
  }

  .intro, .articles article {
    padding: 1rem;
  }
}

.articles img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  article img {
    height: auto;
  }
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(to right, #ffecd2, #fcb69f);
  color: #333;
  border-radius: 12px;
}
