:root {
  --kf-primary: #121820;
  --kf-secondary: #475569;
  --kf-accent: #c2410c;
  --kf-surface: #f8fafc;
  --kf-ink: #0f172a;
  
  --kf-font-display: 'Bodoni Moda', Georgia, serif;
  --kf-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  font-size: 16px;
  background-color: var(--kf-surface);
  color: var(--kf-ink);
  -webkit-font-smoothing: antialiased;
}

body.kf-vaz {
  font-family: var(--kf-font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.kf-fotartalom {
  flex: 1 0 auto;
}

.kf-oldal-keret {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Header - minimal top */
.kf-tetolec {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.kf-tetolec-belso {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.kf-brand-link {
  font-family: var(--kf-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--kf-ink);
  text-decoration: none;
  text-transform: uppercase;
}

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

/* Homepage Opening - Marquee */
.kf-nyito-blokk {
  width: 100%;
  margin-bottom: 6rem;
}

.kf-nyito-fej {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kf-stacked-title {
  font-family: var(--kf-font-display);
  text-transform: uppercase;
  margin: 0 0 2.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: max(2rem, calc((100vw - 1240px) / 2 + 2rem));
  padding-right: 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.kf-title-line {
  display: block;
  white-space: nowrap;
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.kf-line-1 { font-size: clamp(3.5rem, 10vw, 9rem); font-weight: 900; font-style: normal; }
.kf-line-2 { font-size: clamp(2.5rem, 7.5vw, 6.8rem); font-weight: 400; font-style: italic; }
.kf-line-3 { font-size: clamp(4rem, 12vw, 10.5rem); font-weight: 700; font-style: normal; color: var(--kf-accent); }
.kf-line-4 { font-size: clamp(2.2rem, 6vw, 5.2rem); font-weight: 300; font-style: normal; letter-spacing: 0.08em; }
.kf-line-5 { font-size: clamp(3.2rem, 8.5vw, 7.8rem); font-weight: 800; font-style: italic; }
.kf-line-6 { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 400; font-style: normal; }

.kf-nyito-leiras {
  font-family: var(--kf-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--kf-secondary);
  margin-bottom: 2.5rem;
  border-left: 2px solid var(--kf-accent);
  padding-left: 1rem;
}

.kf-bevezeto-hasab {
  max-width: 580px;
  font-family: var(--kf-font-body);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--kf-ink);
  font-weight: 300;
}

.kf-bevezeto-hasab p + p {
  margin-top: 1.25rem;
}

/* Section Pitch */
.kf-szekcio-bemutato {
  margin-bottom: 6rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.kf-szekcio-minta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
}

.kf-szekcio-elem {
  grid-column: span 6;
  background-color: #ffffff;
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.kf-szekcio-nev {
  font-family: var(--kf-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--kf-ink);
}

.kf-szekcio-leiras {
  font-size: 1rem;
  color: var(--kf-secondary);
  line-height: 1.7;
}

/* Section Heading */
.kf-szekcio-focim,
.kf-lista-cim {
  font-family: var(--kf-font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.kf-lista-fejlec {
  margin-bottom: 4rem;
}

.kf-lista-leiras {
  font-size: 1.2rem;
  color: var(--kf-secondary);
  max-width: 680px;
  margin-top: 1rem;
}

/* Uneven Tile Mosaic */
.kf-cikk-halozat {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: 6rem;
}

.kf-cikk-doboz {
  background-color: #ffffff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.kf-cikk-doboz:hover {
  border-color: var(--kf-primary);
  transform: translateY(-2px);
}

/* Explicit CSS grid line placement for uneven layout */
.kf-cikk-halozat > :nth-child(6n + 1) {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 380px;
  background-color: var(--kf-primary);
  color: #ffffff;
}

.kf-cikk-halozat > :nth-child(6n + 1) .kf-cikk-cim a {
  color: #ffffff;
}

.kf-cikk-halozat > :nth-child(6n + 1) .kf-cikk-leiras {
  color: rgba(255, 255, 255, 0.8);
}

.kf-cikk-halozat > :nth-child(6n + 1) .kf-datum {
  color: rgba(255, 255, 255, 0.5);
}

.kf-cikk-halozat > :nth-child(6n + 2) {
  grid-column: span 4;
  grid-row: span 1;
  min-height: 260px;
}

.kf-cikk-halozat > :nth-child(6n + 3) {
  grid-column: span 4;
  grid-row: span 1;
  min-height: 260px;
}

.kf-cikk-halozat > :nth-child(6n + 4) {
  grid-column: span 5;
  grid-row: span 2;
  min-height: 340px;
  border-left: 4px solid var(--kf-accent);
}

.kf-cikk-halozat > :nth-child(6n + 5) {
  grid-column: span 7;
  grid-row: span 1;
  min-height: 240px;
}

.kf-cikk-halozat > :nth-child(6n + 6) {
  grid-column: span 7;
  grid-row: span 1;
  min-height: 240px;
}

.kf-cikk-cim {
  font-family: var(--kf-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.kf-cikk-cim a {
  color: var(--kf-ink);
  text-decoration: none;
}

.kf-cikk-cim a:hover {
  text-decoration: underline;
  text-decoration-color: var(--kf-accent);
}

.kf-cikk-leiras {
  font-size: 0.98rem;
  color: var(--kf-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 400;
}

.kf-datum {
  font-family: var(--kf-font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--kf-secondary);
  align-self: flex-end;
}

/* Single Article */
.kf-egyedi-cikk {
  max-width: 760px;
  margin: 2rem auto 8rem auto;
}

.kf-cikk-fejlec {
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.kf-fejlec-titulus {
  font-family: var(--kf-font-display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.kf-fejlec-bevezeto {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--kf-secondary);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 2rem;
}

.kf-meta-adat {
  font-family: var(--kf-font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--kf-accent);
}

.kf-cikk-tartalom {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--kf-ink);
  font-weight: 400;
}

.kf-cikk-tartalom p {
  margin-bottom: 1.8rem;
}

.kf-cikk-tartalom h2,
.kf-cikk-tartalom h3 {
  font-family: var(--kf-font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 3rem 0 1.25rem 0;
}

.kf-cikk-tartalom blockquote {
  font-family: var(--kf-font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  border-left: 3px solid var(--kf-accent);
  padding-left: 2rem;
  margin: 2.5rem 0;
  color: var(--kf-primary);
}

/* Footer - Footer-Led Chrome */
.kf-lablec-keret {
  background-color: var(--kf-primary);
  color: #ffffff;
  padding: 6rem 0 5rem 0;
  margin-top: 6rem;
}

.kf-lablec-belso {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.kf-lablec-cim {
  font-family: var(--kf-font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.25rem;
}

.kf-lablec-szoveg {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 400px;
}

.kf-lablec-alcim {
  font-family: var(--kf-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--kf-accent);
  display: block;
  margin-bottom: 1.75rem;
}

.kf-navigacio-lista {
  list-style: none;
}

.kf-navigacio-lista li {
  margin-bottom: 0.9rem;
}

.kf-navigacio-lista a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-family: var(--kf-font-display);
  transition: color 0.15s ease;
}

.kf-navigacio-lista a:hover {
  color: var(--kf-accent);
}

.kf-lablec-szerzoi {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .kf-szekcio-minta {
    grid-template-columns: 1fr;
  }
  .kf-szekcio-elem {
    grid-column: span 1;
  }
  
  .kf-cikk-halozat {
    grid-template-columns: repeat(6, 1fr);
  }
  .kf-cikk-halozat > :nth-child(6n + 1) { grid-column: span 6; grid-row: span 1; min-height: auto; }
  .kf-cikk-halozat > :nth-child(6n + 2) { grid-column: span 6; grid-row: span 1; min-height: auto; }
  .kf-cikk-halozat > :nth-child(6n + 3) { grid-column: span 6; grid-row: span 1; min-height: auto; }
  .kf-cikk-halozat > :nth-child(6n + 4) { grid-column: span 6; grid-row: span 1; min-height: auto; }
  .kf-cikk-halozat > :nth-child(6n + 5) { grid-column: span 6; grid-row: span 1; min-height: auto; }
  .kf-cikk-halozat > :nth-child(6n + 6) { grid-column: span 6; grid-row: span 1; min-height: auto; }
  
  .kf-lablec-belso {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .kf-oldal-keret,
  .kf-tetolec-belso,
  .kf-lablec-belso {
    padding: 0 1.25rem;
  }
  
  .kf-stacked-title {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  
  .kf-cikk-doboz {
    padding: 2rem;
  }
  
  .kf-cikk-halozat {
    grid-template-columns: 1fr;
  }
  .kf-cikk-halozat > * {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}
