/* ==========================================================================
   hajasgabor.com — Type A cikk-sablon stíluslap
   ========================================================================== */

:root {
  --paper:       #faf6ef;
  --paper-warm:  #f3ede1;
  --surface:     #ffffff;
  --ink:         #1f1d1a;
  --ink-soft:    #554e44;
  --ink-faint:   #8a8276;
  --accent:      #3f5d44;
  --accent-soft: rgba(63, 93, 68, 0.08);
  --accent-warm: #b8855a;
  --border:      rgba(31, 29, 26, 0.08);
  --border-strong: rgba(31, 29, 26, 0.16);
  --shadow-soft: 0 1px 2px rgba(31,29,26,.04), 0 8px 24px -12px rgba(31,29,26,.1);
  --shadow-lift: 0 2px 4px rgba(31,29,26,.06), 0 20px 40px -20px rgba(31,29,26,.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ──────────── NAV ──────────── */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav.top .inner {
  max-width: 1180px; margin: 0 auto;
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700; font-size: 20px;
  letter-spacing: -0.01em; color: var(--ink);
  text-decoration: none;
}
.brand em { font-style: italic; color: var(--accent); font-weight: 500; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }

/* ──────────── ARTICLE HEADER ──────────── */
.article-head {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-faint);
  text-decoration: none; margin-bottom: 36px;
  transition: color .15s;
}
.back-link:hover { color: var(--accent); }
.article-meta-top {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap;
}
.category-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 3px;
}
.tag-projektek { background: rgba(63,93,68,0.12); color: #2d4532; }
.tag-adat      { background: rgba(184,133,90,0.15); color: #8a5a30; }
.tag-technika  { background: rgba(74,94,122,0.12); color: #33435a; }
.tag-kozelet   { background: rgba(122,79,94,0.12); color: #5c3747; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }
.meta-text { font-size: 13px; color: var(--ink-faint); }

h1.article-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700; font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05; letter-spacing: -0.025em;
  color: var(--ink); max-width: 22ch;
}
h1.article-title em {
  font-style: italic; color: var(--accent); font-weight: 500;
}
.article-hook {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(17px, 1.8vw, 21px); line-height: 1.5;
  color: var(--ink-soft); max-width: 60ch; margin-top: 24px;
  font-style: italic; font-weight: 400;
}

/* ──────────── COVER ──────────── */
.article-cover {
  max-width: 1180px; margin: 40px auto 0; padding: 0 28px;
}
.cover-frame {
  width: 100%; aspect-ratio: 21/9;
  border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700; font-size: 96px; font-style: italic;
  color: rgba(255,255,255,0.92); letter-spacing: -0.03em;
}
.cover-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-projektek { background: linear-gradient(135deg, #3f5d44 0%, #5a7d5f 100%); }
.cover-adat      { background: linear-gradient(135deg, #b8855a 0%, #c89d74 100%); }
.cover-technika  { background: linear-gradient(135deg, #4a5e7a 0%, #6d7f98 100%); }
.cover-kozelet   { background: linear-gradient(135deg, #7a4f5e 0%, #98717f 100%); }

/* ──────────── DEMO CTA ──────────── */
.demo-cta {
  max-width: 720px; margin: 40px auto 0; padding: 0 28px;
}
.demo-cta-inner {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow-soft);
}
.demo-cta .demo-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.demo-cta-text { flex: 1; }
.demo-cta-title {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 17px; color: var(--ink); margin-bottom: 2px;
}
.demo-cta-note {
  font-size: 13px; color: var(--ink-faint);
}
.demo-cta-btn {
  padding: 10px 20px; background: var(--ink); color: var(--paper);
  text-decoration: none; border-radius: 100px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s;
}
.demo-cta-btn:hover { background: var(--accent); }
.demo-cta-btn .ext-icon {
  font-size: 11px; opacity: 0.7;
}
@media (max-width: 600px) {
  .demo-cta-inner { flex-direction: column; align-items: flex-start; }
  .demo-cta-btn { align-self: stretch; justify-content: center; }
}

/* ──────────── ARTICLE BODY ──────────── */
.article-body {
  max-width: 720px; margin: 0 auto;
  padding: 56px 28px 60px;
  font-size: 18px; line-height: 1.75;
  color: var(--ink);
}
.article-body > * + * { margin-top: 1.25em; }

.article-body p.lede::first-letter {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.6em; font-weight: 700;
  float: left; line-height: 0.9;
  margin: 0.08em 0.12em 0 -0.02em;
  color: var(--accent);
}

.article-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700; font-size: 32px; line-height: 1.2;
  letter-spacing: -0.02em; margin-top: 56px; margin-bottom: 8px;
  color: var(--ink);
}
.article-body h2 em { font-style: italic; color: var(--accent); font-weight: 500; }

.article-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 22px; line-height: 1.3;
  letter-spacing: -0.015em; margin-top: 36px; margin-bottom: 4px;
  color: var(--ink);
}

.article-body ul, .article-body ol { padding-left: 0; list-style: none; }
.article-body ul li, .article-body ol li {
  position: relative; padding-left: 28px; margin-top: 8px;
}
.article-body ul li::before {
  content: ''; position: absolute; left: 6px; top: 0.75em;
  width: 10px; height: 1px; background: var(--accent);
}
.article-body ol { counter-reset: olcount; }
.article-body ol li { counter-increment: olcount; }
.article-body ol li::before {
  content: counter(olcount) '.'; position: absolute; left: 0; top: 0;
  font-family: 'Fraunces', serif; font-weight: 600; color: var(--accent);
}

.article-body strong { font-weight: 600; color: var(--ink); }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--accent); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.article-body a:hover { text-decoration-thickness: 2px; }

.article-body code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.88em;
  background: var(--paper-warm); padding: 2px 6px;
  border-radius: 3px; color: var(--ink);
}
.article-body pre {
  background: #201e1b; color: #e8e2d5;
  padding: 20px 24px; border-radius: 8px;
  overflow-x: auto; font-size: 14px; line-height: 1.6;
  margin: 24px 0;
}
.article-body pre code {
  background: transparent; padding: 0; color: inherit; font-size: inherit;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px; margin-left: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic; font-size: 22px; line-height: 1.5;
  color: var(--ink-soft); max-width: 52ch;
}

.article-body figure { margin: 32px 0; }
.article-body figure img { width: 100%; border-radius: 8px; display: block; }
.article-body figcaption {
  font-size: 13px; color: var(--ink-faint); margin-top: 10px;
  text-align: center; font-style: italic;
}

.callout-box {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent-warm);
  padding: 20px 24px; border-radius: 6px; margin: 32px 0;
}
.callout-box .callout-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-warm); margin-bottom: 8px;
}
.callout-box p { font-size: 16px; margin: 0; }

.pull-fact {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 40px 0;
}
@media (max-width: 600px) { .pull-fact { grid-template-columns: 1fr; } }
.pull-fact .fact {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px; text-align: center;
}
.pull-fact .fact-num {
  font-family: 'Fraunces', serif; font-size: 36px; font-weight: 700;
  color: var(--accent); line-height: 1; letter-spacing: -0.02em;
}
.pull-fact .fact-label {
  font-size: 12px; color: var(--ink-faint);
  margin-top: 6px; letter-spacing: 0.02em;
}

/* ──────────── AUTHOR CARD ──────────── */
.author-box {
  max-width: 720px; margin: 0 auto; padding: 0 28px 60px;
}
.author-card {
  background: var(--paper-warm); border-radius: 14px;
  padding: 28px 32px;
  display: flex; gap: 20px; align-items: center;
}
.author-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.author-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
  display: block;
}
.author-name {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 18px; color: var(--ink);
}
.author-bio { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* ──────────── RELATED ──────────── */
.related {
  border-top: 1px solid var(--border);
  padding: 60px 0 80px; background: var(--paper-warm);
}
.related h3 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 22px; margin-bottom: 24px; color: var(--ink);
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
.mini-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 20px;
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.mini-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.mini-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.mini-card h4 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 16px; line-height: 1.3; color: var(--ink);
}

/* ──────────── FOOTER ──────────── */
footer.site-foot {
  border-top: 1px solid var(--border); padding: 32px 0;
  background: var(--paper-warm);
  font-size: 13px; color: var(--ink-faint); text-align: center;
}
