/* ── Dark Editorial — variables ───────────────────────────── */
:root {
  --sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --fg:      #f1f5f9;
  --fg-2:    #94a3b8;
  --fg-3:    #475569;
  --bg:      #0f172a;
  --bg-2:    #1e293b;
  --bg-3:    #334155;
  --border:  #1e293b;
  --accent:  #f59e0b;
  --radius:  10px;
  --max:     1120px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--fg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── Header ───────────────────────────────────────────────── */
.de-header {
  background: var(--bg);
  border-bottom: 1px solid var(--bg-2);
  padding: 0 24px;
}
.de-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.de-header__logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.de-header__logo img { height: 30px; }
.de-header__nav .nav { display: flex; list-style: none; margin: 0; padding: 0; }
.de-header__nav .nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.de-header__nav .nav a:hover { background: var(--bg-2); color: var(--fg); }

/* ── Shared atoms ─────────────────────────────────────────── */
.de-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.de-meta { font-size: 13px; color: var(--fg-3); display: flex; align-items: center; gap: 6px; }
.de-dot { color: var(--fg-3); }

/* ── Main ─────────────────────────────────────────────────── */
.de-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 80px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.de-hero {
  position: relative;
  display: block;
  aspect-ratio: 21/9;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 32px;
  background: var(--bg-2);
}
@media (max-width: 600px) { .de-hero { aspect-ratio: 4/3; } }
.de-hero__img { position: absolute; inset: 0; }
.de-hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.de-hero:hover .de-hero__img img { transform: scale(1.03); }
.de-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
}
.de-hero__body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.de-hero__title {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.de-hero__excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,.8);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.de-hero .de-meta { color: rgba(255,255,255,.6); }
.de-hero .de-dot { color: rgba(255,255,255,.4); }

/* ── Grid ─────────────────────────────────────────────────── */
.de-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .de-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .de-grid { grid-template-columns: 1fr; } }

.de-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.de-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.de-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-3); }
.de-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.de-card:hover .de-card__img img { transform: scale(1.04); }
.de-card__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.de-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 12px; padding: 48px 0 0; }
.pagination .btn {
  padding: 8px 20px;
  border: 1px solid var(--bg-3);
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg-2);
  background: var(--bg-2);
}
.pagination .btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────── */
.de-footer {
  border-top: 1px solid var(--bg-2);
  background: var(--bg);
}
.de-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-3);
}
.de-footer__inner nav { display: flex; gap: 16px; }
.de-footer__inner a { color: var(--fg-3); }
.de-footer__inner a:hover { color: var(--accent); }
