:root {
  --epb-bg: #000000;
  --epb-surface: #0c0c0c;
  --epb-surface-2: #111111;
  --epb-text: #ffffff;
  --epb-text-soft: #a9b1bc;
  --epb-border: rgba(255,255,255,.12);
  --epb-accent: #ff7a1a;
  --epb-accent-hover: #ff8e39;
  --epb-radius: 22px;
  --epb-radius-lg: 28px;
  --epb-shadow: 0 24px 60px rgba(0,0,0,.35);
  --epb-max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--epb-bg);
  color: var(--epb-text);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 1rem; line-height: 1.12; }

.epb-container {
  width: min(calc(100% - 64px), var(--epb-max));
  margin: 0 auto;
}
.epb-pad-top { padding-top: 60px; }
.epb-section { padding: 56px 0; }
.eyebrow {
  color: var(--epb-accent);
  font-size: 1.1rem;
  font-weight: 700;
  max-width: 680px;
}
.epb-button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--epb-accent);
  color: #fff;
  padding: 14px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.epb-button:hover,
button:hover,
input[type="submit"]:hover { background: var(--epb-accent-hover); }
.epb-text-link { color: var(--epb-accent); font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(0,0,0,.92);
  border-bottom: 1px solid var(--epb-border);
}
.site-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-branding .custom-logo {
  max-height: 58px;
  width: auto;
}
.site-title {
  font-size: 1.05rem;
  font-weight: 800;
}
.site-description { display: none; }

.epb-menu,
.epb-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.epb-menu a,
.epb-footer-menu a {
  font-weight: 700;
  font-size: .98rem;
}
.epb-menu a:hover,
.epb-footer-menu a:hover { color: var(--epb-accent); }

.epb-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--epb-border);
  border-radius: 12px;
}
.epb-menu-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  display: block;
  margin: 3px auto;
}

.epb-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 85px);
  padding: 72px 0 96px;
}
.epb-hero__content h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  max-width: 620px;
  margin-bottom: 40px;
}
.epb-hero-image,
.epb-feature-image,
.epb-post-card__thumb img,
.epb-horizontal-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--epb-radius);
}
.epb-hero__media {
  height: min(62vw, 560px);
}
.epb-placeholder {
  min-height: 240px;
  width: 100%;
  border-radius: var(--epb-radius);
  background: linear-gradient(135deg, #1d1d1d, #101010);
}

.epb-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 52px;
}
.epb-horizontal-card {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 24px;
  align-items: start;
}
.epb-horizontal-card__thumb {
  height: 176px;
  overflow: hidden;
  border-radius: var(--epb-radius);
}
.epb-horizontal-card__content h2 {
  font-size: clamp(1.3rem, 2vw, 2rem);
  margin-bottom: 12px;
}
.epb-horizontal-card__content p {
  font-size: 1.15rem;
  color: var(--epb-text-soft);
  max-width: 420px;
}

.epb-feature-section {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
  align-items: center;
  padding: 70px 0 100px;
}
.epb-feature-image-wrap {
  border-radius: var(--epb-radius-lg);
  overflow: hidden;
  box-shadow: var(--epb-shadow);
}
.epb-feature-copy h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin-bottom: 42px;
}
.epb-feature-item { margin-bottom: 48px; }
.epb-feature-item h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.epb-feature-item p {
  font-size: 1.2rem;
  color: var(--epb-text-soft);
  max-width: 520px;
}

.archive-layout,
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  padding-bottom: 80px;
}
.archive-header-block h1,
.epb-single-header h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.archive-description,
.epb-lead,
.epb-entry-content p,
.epb-entry-content li {
  color: var(--epb-text-soft);
  font-size: 1.08rem;
}
.epb-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.epb-post-card {
  border: 1px solid var(--epb-border);
  border-radius: var(--epb-radius);
  overflow: hidden;
  background: var(--epb-surface);
}
.epb-post-card__thumb {
  display: block;
  height: 260px;
  overflow: hidden;
}
.epb-post-card__content { padding: 24px; }
.epb-post-card__title { font-size: 1.5rem; }
.epb-post-card__excerpt { color: var(--epb-text-soft); }

.sidebar-area,
.widget,
.comments-area,
.epb-single-post {
  border: 1px solid var(--epb-border);
  background: var(--epb-surface);
  border-radius: var(--epb-radius);
}
.sidebar-area { padding: 24px; height: fit-content; position: sticky; top: 108px; }
.widget { padding: 22px; margin-bottom: 20px; }
.widget:last-child { margin-bottom: 0; }
.widget-title { font-size: 1.2rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin-bottom: 12px; }
.widget a { color: var(--epb-text-soft); }
.widget a:hover { color: var(--epb-accent); }

.epb-search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.epb-search-input,
.comment-form input,
.comment-form textarea,
.search-field {
  width: 100%;
  border: 1px solid var(--epb-border);
  background: #090909;
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
}
.comment-form label { display: block; margin-bottom: 8px; font-weight: 600; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }

.epb-single-post { padding: 32px; }
.epb-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--epb-text-soft);
}
.epb-single-thumbnail { margin: 30px 0; overflow: hidden; border-radius: var(--epb-radius); }
.epb-entry-content > * { max-width: 100%; }
.epb-entry-content h2,
.epb-entry-content h3,
.epb-entry-content h4 { margin-top: 2rem; }
.epb-entry-content a { color: var(--epb-accent); }
.epb-entry-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--epb-accent);
  background: #0a0a0a;
}
.epb-tags a {
  display: inline-block;
  margin: 0 10px 10px 0;
  padding: 8px 12px;
  border: 1px solid var(--epb-border);
  border-radius: 999px;
  color: var(--epb-text-soft);
}
.epb-post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0;
}
.epb-post-navigation a { color: var(--epb-accent); font-weight: 700; }

.comments-area { padding: 32px; margin-top: 28px; }
.comment-list { list-style: none; padding: 0; margin: 24px 0 0; }
.epb-comment { margin-bottom: 20px; }
.epb-comment-inner { display: flex; gap: 16px; }
.epb-comment-avatar img { border-radius: 50%; }
.epb-comment-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.epb-comment-meta span,
.epb-comment-text,
.logged-in-as,
.comment-notes { color: var(--epb-text-soft); }
.epb-comment-reply a { color: var(--epb-accent); font-weight: 700; }
.children { list-style: none; margin-left: 30px; padding-left: 0; }

.epb-pagination { margin-top: 36px; }
.nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.page-numbers {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--epb-border);
  background: var(--epb-surface);
}
.page-numbers.current,
.page-numbers:hover { background: var(--epb-accent); border-color: var(--epb-accent); }

.epb-empty-state,
.epb-not-found {
  max-width: 720px;
  padding-bottom: 80px;
}
.epb-not-found h1 { font-size: clamp(2.2rem, 5vw, 4rem); }

.site-footer {
  border-top: 1px solid var(--epb-border);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--epb-border);
}
.footer-copy h2 { font-size: clamp(2rem, 4vw, 3rem); }
.footer-copy p {
  max-width: 520px;
  color: #d5d8dd;
  font-size: 1.15rem;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-wrap .custom-logo { max-width: 220px; max-height: 220px; width: auto; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
}
.footer-bottom p { color: var(--epb-text-soft); }

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  overflow: hidden;
}

@media (max-width: 1180px) {
  .epb-hero,
  .epb-feature-section,
  .archive-layout,
  .single-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-area { position: static; }
}

@media (max-width: 900px) {
  .epb-menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .main-navigation {
    position: absolute;
    top: 85px;
    right: 16px;
    width: min(360px, calc(100% - 32px));
    background: #050505;
    border: 1px solid var(--epb-border);
    border-radius: 18px;
    padding: 18px;
    display: none;
  }
  .main-navigation.is-open { display: block; }
  .epb-menu { flex-direction: column; align-items: flex-start; gap: 16px; }
  .epb-grid-two,
  .epb-post-grid { grid-template-columns: 1fr; }
  .epb-horizontal-card { grid-template-columns: 1fr; }
  .epb-horizontal-card__thumb { height: 230px; }
  .footer-grid,
  .footer-bottom { grid-template-columns: 1fr; display: grid; justify-content: start; }
}

@media (max-width: 640px) {
  .epb-container { width: min(calc(100% - 32px), var(--epb-max)); }
  .site-header__inner { min-height: 74px; }
  .epb-hero { min-height: auto; gap: 36px; padding: 38px 0 56px; }
  .epb-hero__content h1 { margin-bottom: 28px; }
  .epb-hero__media { height: 300px; }
  .epb-single-post,
  .comments-area,
  .sidebar-area { padding: 20px; }
}
