:root {
  --brand: #bd1d1d;
  --brand-dark: #961414;
  --brand-darker: #6f0f0f;
  --brand-soft: #fdf2f2;
  --text: #111827;
  --muted: #6b7280;
  --bg: #f9fafb;
  --surface: #fff;
  --border: #e5e7eb;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --t: 0.18s ease-in-out;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.nav {
  background: var(--brand);
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__logo {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo-mark {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 5px;
  transform: rotate(45deg);
  position: relative;
}
.nav__logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--brand);
  border-radius: 2px;
}
.nav__links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a {
  opacity: 0.85;
  transition: opacity var(--t);
}
.nav__links a:hover,
.nav__links a.is-active {
  opacity: 1;
}
.hero {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
}
.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 400px;
}
.featured__media {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
  display: block;
}
.featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured:hover .featured__media img {
  transform: scale(1.04);
}
.featured__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 999px;
}
.featured__body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured__cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
  margin-bottom: 12px;
}
.featured__title {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.featured__title a:hover {
  color: var(--brand);
}
.featured__excerpt {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
}
.featured__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition:
    background var(--t),
    gap var(--t);
}
.featured__cta:hover {
  background: var(--brand-dark);
  gap: 12px;
}
.cats {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cats__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-right: 8px;
}
.chip {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--t);
}
.chip:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.chip__count {
  opacity: 0.6;
  margin-left: 4px;
}
.grid {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--t),
    box-shadow var(--t);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #f3f4f6;
  display: block;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__media img {
  transform: scale(1.06);
}
.card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__title {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.card__title a:hover {
  color: var(--brand);
}
.card__excerpt {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.newsletter {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}
.newsletter__inner {
  background: linear-gradient(135deg, var(--brand), var(--brand-darker));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.newsletter__title {
  font-size: 26px;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.newsletter__text {
  opacity: 0.9;
  font-size: 15px;
  margin: 0;
}
.newsletter__form {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.newsletter__form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  min-width: 0;
}
.newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.newsletter__form button {
  border: 0;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  padding: 0 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: background var(--t);
  white-space: nowrap;
}
.newsletter__form button:hover {
  background: #f3f4f6;
}
.article-hero {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 20px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
  transition: color var(--t);
}
.back:hover {
  color: var(--brand);
}
.article-hero__cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
  margin-bottom: 12px;
}
.article-hero__title {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -1px;
}
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}
.article-hero__cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}
.article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-size: 17px;
  line-height: 1.75;
  color: #1f2937;
}
.article-body h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 40px 0 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.article-body p {
  margin: 0 0 20px;
}
.article-body p:first-of-type::first-letter {
  font-size: 56px;
  font-weight: 800;
  float: left;
  line-height: 1;
  padding: 6px 12px 0 0;
  color: var(--brand);
}
.article-tags {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-tag {
  padding: 6px 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  transition: background var(--t);
}
.article-tag:hover {
  background: #f7d9d9;
}
.related {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 20px;
}
.related__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -0.5px;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.not-found {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}
.not-found__code {
  font-size: 80px;
  margin: 0;
  color: var(--brand);
  font-weight: 800;
  line-height: 1;
}
.not-found__text {
  font-size: 18px;
  color: var(--muted);
  margin: 12px 0 24px;
}
.not-found__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: background var(--t);
}
.not-found__btn:hover {
  background: var(--brand-dark);
}
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  margin-top: 80px;
}
.footer a {
  color: #fff;
}
@media (max-width: 900px) {
  .featured {
    grid-template-columns: 1fr;
  }
  .featured__media {
    aspect-ratio: 16/9;
  }
  .featured__body {
    padding: 32px 24px;
  }
  .featured__title {
    font-size: 22px;
  }
  .newsletter__inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .nav__links {
    display: none;
  }
  .article-hero__title {
    font-size: 30px;
  }
  .article-body {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    margin-top: 24px;
  }
  .newsletter__form {
    flex-direction: column;
    background: transparent;
    padding: 0;
    gap: 10px;
  }
  .newsletter__form input {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
  }
  .newsletter__form button {
    padding: 14px 24px;
  }
}
