:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0b0c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f5f6;
  --muted: rgba(245, 245, 246, 0.68);
  --soft: rgba(245, 245, 246, 0.42);
  --red: #991b1b;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(84, 84, 90, 0.28), transparent 34rem),
    linear-gradient(180deg, #111214 0%, #060607 30%, #040404 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.ep-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.25) 1px, transparent 1px);
  background-size: 160px 160px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.ep-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.ep-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.ep-brand,
.ep-top-nav a,
.ep-eyebrow {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.ep-brand {
  font-size: 11px;
  color: rgba(245, 245, 246, 0.72);
}

.ep-top-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ep-top-nav a {
  font-size: 11px;
  color: rgba(245, 245, 246, 0.54);
}

.ep-hero-card,
.ep-article-card,
.ep-post-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  backdrop-filter: blur(18px);
}

.ep-hero-card {
  min-height: 320px;
  padding: 40px;
  margin-bottom: 28px;
}

.ep-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.72)),
    url("/entrypoint/ENhero03.jpg") center 28% / cover no-repeat;
  opacity: 0.9;
}

.ep-hero-card--article::before {
  opacity: 0.82;
}

.ep-hero-glow {
  position: absolute;
  inset: auto auto -30% -10%;
  width: 30rem;
  height: 30rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 68%);
  filter: blur(30px);
}

.ep-hero-copy,
.ep-article-heading {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.ep-eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  color: rgba(245, 245, 246, 0.62);
}

.ep-hero-copy h1,
.ep-article-heading h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-wrap: balance;
}

.ep-hero-copy p,
.ep-article-intro {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

.ep-article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13px;
  color: var(--soft);
}

.ep-article-meta span + span::before {
  content: "Ă˘â‚¬Ë";
  margin-right: 14px;
}

.ep-post-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.ep-post-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ep-post-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.ep-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.08) brightness(0.92);
}

.ep-post-card__body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
}

.ep-post-card__body h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.ep-post-card__body h2 a:hover {
  color: rgba(255,255,255,0.82);
}

.ep-post-card__excerpt {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.ep-post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  color: var(--soft);
}

.ep-post-card__footer a {
  color: var(--text);
}

.ep-post-card__footer a:hover {
  color: rgba(255,255,255,0.78);
}

.ep-article-layout {
  display: block;
}

.ep-article-card {
  padding: 22px;
}

.ep-article-hero {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #080808;
}

.ep-article-hero img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.ep-article-content {
  width: min(100%, 760px);
  margin: 0 auto;
  padding-top: 28px;
}

.ep-article-content > *:first-child {
  margin-top: 0;
}

.ep-article-content p,
.ep-article-content li,
.ep-article-content blockquote {
  font-size: 18px;
  line-height: 1.88;
  color: rgba(245, 245, 246, 0.86);
}

.ep-article-content p {
  margin: 0 0 1.15em;
}

.ep-article-content h2,
.ep-article-content h3,
.ep-article-content h4 {
  margin: 1.8em 0 0.7em;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.ep-article-content h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.ep-article-content h3 {
  font-size: clamp(22px, 3vw, 28px);
}

.ep-article-content ul,
.ep-article-content ol {
  margin: 0 0 1.25em 1.2em;
  padding: 0;
}

.ep-article-content li + li {
  margin-top: 0.5em;
}

.ep-article-content a {
  color: #f7d7d7;
  text-decoration: underline;
  text-decoration-color: rgba(153, 27, 27, 0.7);
  text-underline-offset: 0.2em;
}

.ep-article-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 26px auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.ep-article-content iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 20px;
}

.ep-video {
  margin: 30px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ep-article-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 24px;
}

.ep-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(153, 27, 27, 0.5);
  background: rgba(153, 27, 27, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ep-button:hover {
  background: rgba(153, 27, 27, 0.3);
  border-color: rgba(153, 27, 27, 0.85);
  transform: translateY(-1px);
}

.ep-button--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.ep-button--ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.28);
}

@media (max-width: 900px) {
  .ep-post-card {
    grid-column: span 12;
  }

  .ep-hero-card {
    padding: 28px 22px;
    min-height: 260px;
  }

  .ep-article-card {
    padding: 16px;
  }

  .ep-article-content {
    padding-top: 20px;
  }

  .ep-article-content p,
  .ep-article-content li,
  .ep-article-content blockquote {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .ep-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 16px;
  }

  .ep-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ep-top-nav {
    gap: 12px;
  }

  .ep-post-card__body {
    padding: 18px;
  }

  .ep-article-content iframe {
    min-height: 240px;
  }

  .ep-article-actions {
    flex-direction: column;
  }

  .ep-button {
    width: 100%;
  }
}