*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --max-width: 960px;
  --accent-color: #ff8a5c;
  --text-color: #2f2f2f;
  --bg-color: #fffaf6;
  --card-bg: #ffffffcc;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

header {
  background: linear-gradient(150deg, rgba(255, 138, 92, 0.9), rgba(255, 192, 118, 0.9));
  color: #fff;
  padding: 3rem 1rem 4rem;
  position: relative;
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1514996937319-344454492b37?auto=format&fit=crop&w=1200&q=80")
    center / cover no-repeat;
  opacity: 0.2;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.header-content h1 {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.header-content p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.ad-slot {
  width: 100%;
  min-height: 90px;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.95rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2rem;
}

main {
  max-width: var(--max-width);
  margin: -2rem auto 3rem;
  padding: 0 1rem;
}

.article-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 3rem;
}

.article-card {
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(6px);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.article-thumb {
  position: relative;
  padding-top: 62%;
  background: #ddd;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.article-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-content h2 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  color: #1f1f1f;
}

.article-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  color: rgba(0, 0, 0, 0.5);
}

.article-excerpt {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
}

.article-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent-color);
}

footer {
  background: #1f1f1f;
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 1rem;
}

footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner nav a {
  margin-right: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner nav a:last-child {
  margin-right: 0;
}

.hero-banner {
  position: relative;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  border-radius: 22px;
  padding: 6rem 2rem;
  margin-bottom: 2rem;
  color: #fff;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(255, 138, 92, 0.45));
  z-index: 0;
}

.hero-banner .hero-text {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.hero-banner .hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-banner .hero-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.84);
}

.article-wrapper {
  max-width: 780px;
  margin: 0 auto 4rem;
  padding: 0 1rem 2rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}

.article-wrapper .article-body {
  padding: 2.5rem;
}

.article-wrapper .article-body p {
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.article-wrapper .article-body p:last-child {
  margin-bottom: 0;
}

.article-wrapper .article-meta {
  margin-bottom: 1.5rem;
  color: rgba(0, 0, 0, 0.55);
}

.article-wrapper .article-meta span + span::before {
  content: "•";
  margin: 0 0.65rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  header {
    padding: 2.5rem 1rem 3.5rem;
  }

  .header-content h1 {
    font-size: 2.2rem;
  }

  .hero-banner {
    padding: 4.5rem 1.5rem;
  }

  .hero-banner .hero-text h1 {
    font-size: 2rem;
  }

  .article-wrapper .article-body {
    padding: 2rem 1.5rem;
  }
}

