/* Site CSS for hepatitisc.hu */
:root {
  --font-display: 'Gelasio', Georgia, serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-primary: #2f4f43;
  --color-secondary: #7c9a8e;
  --color-accent: #b5763f;
  --color-surface: #f7f5f2;
  --color-ink: #1b2e27;
  --color-ink-light: #3d564b;
  --color-panel-bg: rgba(124, 154, 142, 0.12);
  --color-panel-border: rgba(47, 79, 67, 0.18);
  --max-width: 860px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-surface);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Base typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent);
}

/* Explicit list rules for BOTH intro panel prose and article text containers */
.hepa-intro-prose ul,
.hepa-intro-prose ol,
.hepa-body-text ul,
.hepa-body-text ol,
.hepa-disclaimer ul,
.hepa-disclaimer ol {
  padding-left: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.hepa-intro-prose li,
.hepa-body-text li,
.hepa-disclaimer li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

/* Sticky top header - slim & understated */
.hepa-top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(247, 245, 242, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 79, 67, 0.12);
  padding: 0.6rem 1rem;
}

.hepa-top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}

.hepa-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.hepa-brand:hover {
  color: var(--color-accent);
}

.hepa-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hepa-nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink-light);
  text-decoration: none;
}

.hepa-nav-link:hover,
.hepa-nav-link.active {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Main container with generous whitespace below topbar */
.hepa-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

/* Homepage Opening - Overlapping blocks */
.hepa-hero-wrap {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 4.5rem;
}

.hepa-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  position: relative;
  z-index: 2;
  margin-left: 0.75rem;
  margin-bottom: -1.25rem;
  text-shadow: 0 2px 4px var(--color-surface);
  max-width: 90%;
}

.hepa-intro-box {
  background-color: var(--color-panel-bg);
  border: 1px solid var(--color-panel-border);
  border-radius: 12px;
  padding: 3rem 1.75rem 2rem;
  position: relative;
  z-index: 1;
}

.hepa-intro-prose {
  font-size: 1.1rem;
  color: var(--color-ink);
  line-height: 1.7;
}

.hepa-intro-prose p:last-child {
  margin-bottom: 0;
}

/* Pitch entries section */
.hepa-pitches-wrap {
  margin: 3.5rem 0 4rem;
}

.hepa-pitches-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hepa-pitch-card {
  border-left: 4px solid var(--color-secondary);
  padding: 0.25rem 0 0.25rem 1.25rem;
}

.hepa-pitch-title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.hepa-pitch-desc {
  font-size: 1rem;
  color: var(--color-ink-light);
  margin: 0;
}

/* Section Header */
.hepa-section-heading {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(47, 79, 67, 0.12);
  padding-bottom: 0.5rem;
}

/* Article presentation - Numbered list */
.hepa-article-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hepa-article-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.5rem 1.25rem;
  align-items: start;
}

.hepa-article-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  text-align: right;
  user-select: none;
  padding-top: 0.1rem;
}

.hepa-article-main {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hepa-article-title-link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  line-height: 1.3;
}

.hepa-article-title-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.hepa-article-summary {
  font-size: 1.02rem;
  color: var(--color-ink-light);
  margin: 0;
  line-height: 1.55;
}

.hepa-article-date {
  font-size: 0.85rem;
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Article & Page view */
.hepa-header-single {
  margin-bottom: 2.5rem;
}

.hepa-single-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin-bottom: 0.75rem;
  line-height: 1.18;
}

.hepa-meta-line {
  font-size: 0.9rem;
  color: var(--color-ink-light);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hepa-disclaimer {
  background-color: rgba(181, 118, 63, 0.08);
  border: 1px solid rgba(181, 118, 63, 0.25);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: #5c3e1e;
  line-height: 1.55;
}

.hepa-disclaimer strong {
  color: #3b2711;
}

.hepa-body-text {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-ink);
}

.hepa-body-text h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(47, 79, 67, 0.12);
  padding-bottom: 0.4rem;
}

.hepa-body-text h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.hepa-body-text blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-ink-light);
}

.hepa-article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(47, 79, 67, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hepa-back-link {
  font-weight: 600;
  text-decoration: none;
}

/* Site footer */
.hepa-footer {
  border-top: 1px solid rgba(47, 79, 67, 0.12);
  background-color: rgba(247, 245, 242, 0.8);
  padding: 2.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-ink-light);
}

.hepa-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hepa-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hepa-footer-links a {
  color: var(--color-ink-light);
  text-decoration: none;
}

.hepa-footer-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.hepa-footer-note {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Mobile responsiveness adjustments */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .hepa-top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hepa-hero-wrap {
    margin-top: 0.5rem;
    margin-bottom: 3rem;
  }

  .hepa-hero-title {
    font-size: 2.1rem;
    margin-left: 0.25rem;
    margin-bottom: -1rem;
    max-width: 100%;
  }

  .hepa-intro-box {
    padding: 2.25rem 1.25rem 1.5rem;
  }

  .hepa-article-item {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.25rem 0.75rem;
  }

  .hepa-article-num {
    font-size: 2rem;
  }

  .hepa-main {
    padding: 2.5rem 1rem 3rem;
  }
}
